[JBossWS] - wsconsume Ant task fails to find
by balkanboy
I have the following in my build.xml:
| <path id="web.services.classpath">
| <fileset dir="${env.JAVA_HOME}/lib" includes="*.jar" />
| <filesetdir="${jboss.home}/lib/endorsed/" includes="*.jar" />
| <fileset dir="${jboss.home}/lib/" includes="*.jar" />
| <fileset dir="${jboss.home}/client/">
| <include name="activation.jar" />
| <include name="getopt.jar" />
| <include name="wstx.jar" />
| <include name="jbossall-client.jar" />
| <include name="log4j.jar" />
| <include name="mail.jar" />
| <include name="jbossws-spi.jar" />
| <include name="stax-api.jar" />
| <include name="jaxb-api.jar" />
| <include name="jaxb-impl.jar" />
| <include name="jaxb-xjc.jar" />
| <include name="streambuffer.jar" />
| <include name="stax-ex.jar" />
| <include name="javassist.jar" />
| <include name="jboss-xml-inding.jar" />
| <include name="jbossws-client.jar" />
| <include name="jboss-jaxws.jar" />
| <include name="jboss-jaxrpc.jar" />
| <include name="jboss-saaj.jar" />
| <include name="jboss-srp-client.jar" />
| <include name="jbossws-common.jar" />
| <include name="jaxws-tools.jar" />
| <include name="jaxws-rt.jar" />
| </fileset>
| </path>
|
| <target name="wstaskdef">
| <taskdef name="wsconsume"
| classname="org.jboss.wsf.spi.tools.ant.WSConsumeTask">
| <classpath>
| <path refid="web.services.classpath" />
| </classpath>
| </taskdef>
| </target>
|
| <target name="wsdltojava" depends="init,wstaskdef">
| <wsconsume fork="false"
| verbose="true"
| destdir="${classes.gen.dir}"
| sourcedestdir="${src.gen.dir}"
| keep="true" package="com.example.wsclient"
| wsdl="${resources.dir}/wsdl/DataMartService.wsdl"
| wsdlLocation="http://localhost:8080/datamart/DatamartRemote?wsdl" />
| </target>
|
And a WSDL that contains a type like this:
| <xs:complexType name='brmEntry'>
| <xs:sequence>
| <xs:element minOccurs='0' name='barcode' type='xs:string'/>
| <xs:element minOccurs='0' name='barcodeType' type='xs:string'/>
| <xs:element minOccurs='0' name='idTag' type='xs:string'/>
| <xs:element minOccurs='0' name='imageStream' ns1:expectedContentTypes='application/octet-stream' type='xs:base64Binary' xmlns:ns1='http://www.w3.org/2005/05/xmlmime'/>
| <xs:element minOccurs='0' name='timestamp' type='xs:dateTime'/>
| </xs:sequence>
|
When I invoke the 'wsconsume' task from Ant, I get the following:
package javax.activation does not exist
[wsconsume] import javax.activation.DataHandler;
[wsconsume] ^
[wsconsume] BrmEntry.java:50: cannot find symbol
[wsconsume] symbol : class DataHandler
[wsconsume] location: class com.raf.uspsbrm.datamart.wsclient.BrmEntry
[wsconsume] protected DataHandler imageStream;
The only way I was able to get around this issue is to add "activation.jar" to Ant's classpath (I'm using Ant 1.7), or use the 'wsconsume.sh' script.
Does anyone have any idea how to fix the Ant task without necessarily altering Ant's CLASSPATH or is this necessary for 'wsconsume' to work from within Ant?
Thanks in advance!
Martin
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096337#4096337
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096337
18Â years, 9Â months
[JBossWS] - Re: SoapFaultException using anyType
by wcydaip
Can anyone tell me which version of JBoss works with jdk1.4.2 and supports the anyType type element?
This seemed to state that there was a problem with rpc encoded web-services: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032888#4032888
I've tried to change them to literal, but, have been unsuccessful..
And this says that it's fixed, but, it doesn't say which version to use:
http://jira.jboss.com/jira/browse/JBWS-1595
Thanks.
Graham
Here's the wsdl. If you see anything that might be causing the problem please let me know:
| <?xml version='1.0' encoding='UTF-8' ?>
| <!-- Generated 04/03/06 by Microsoft SOAP Toolkit WSDL File Generator, Version 3.00.1325.0 -->
| <definitions
| name='ALMVTC'
| targetNamespace=' http://actcenters.com/ALMVTC.WSDL'
| xmlns:wsdlns='http://actcenters.com/ALMVTC/wsdl/'
| xmlns:typens='http://actcenters.com/ALMVTC/type/'
| xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
| xmlns:xsd='http://www.w3.org/2001/XMLSchema'
| xmlns:stk='http://schemas.microsoft.com/soap-toolkit/wsdl-extension'
| xmlns:dime='http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/'
| xmlns:ref='http://schemas.xmlsoap.org/ws/2002/04/reference/'
| xmlns:content='http://schemas.xmlsoap.org/ws/2002/04/content-type/'
| xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'
| xmlns='http://schemas.xmlsoap.org/wsdl/'>
|
| <types>
| <schema
| targetNamespace='http://actcenters.com/ALMVTC/type/'
| xmlns='http://www.w3.org/2001/XMLSchema'
| xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/'
| xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'
| elementFormDefault='qualified'>
|
| <import namespace='http://schemas.xmlsoap.org/soap/encoding/'/>
| <import namespace='http://schemas.xmlsoap.org/wsdl/'/>
| <import namespace='http://schemas.xmlsoap.org/ws/2002/04/reference/'/>
| <import namespace='http://schemas.xmlsoap.org/ws/2002/04/content-type/'/>
|
| </schema>
| </types>
|
| <message name='Registration.register'>
| <part name='sRequest' type='xsd:anyType'/>
| </message>
|
| <message name='Registration.registerResponse'>
| <part name='Result' type='xsd:anyType'/>
|
| </message>
|
| <message name='ScheduleData.getScheduleData'>
| <part name='sRequest' type='xsd:anyType'/>
| </message>
|
| <message name='ScheduleData.getScheduleDataResponse'>
| <part name='Result' type='xsd:anyType'/>
| </message>
|
| <message name='Schedule.getVersion'>
|
| </message>
|
| <message name='Schedule.getVersionResponse'>
| <part name='Result' type='xsd:anyType'/>
| </message>
|
| <message name='Schedule.getSiteTitleList'>
| <part name='SiteTitleList' type='xsd:anyType'/>
| <part name='sTitleId' type='xsd:anyType'/>
|
| <part name='sSiteName' type='xsd:anyType'/>
| </message>
|
| <message name='Schedule.getSiteTitleListResponse'>
| <part name='Result' type='xsd:boolean'/>
| <part name='SiteTitleList' type='xsd:anyType'/>
| </message>
|
| <message name='Schedule.setInactiveFlag'>
| <part name='sTitleId' type='xsd:anyType'/>
|
| <part name='sSiteID' type='xsd:anyType'/>
| <part name='sInactive' type='xsd:anyType'/>
| <part name='sErr' type='xsd:anyType'/>
| </message>
|
| <message name='Schedule.setInactiveFlagResponse'>
| <part name='Result' type='xsd:boolean'/>
| <part name='sErr' type='xsd:anyType'/>
| </message>
|
| <message name='Schedule.getSiteName'>
| <part name='sSiteID' type='xsd:anyType'/>
| <part name='sSiteName' type='xsd:anyType'/>
| </message>
|
| <message name='Schedule.getSiteNameResponse'>
| <part name='Result' type='xsd:boolean'/>
| <part name='sSiteName' type='xsd:anyType'/>
| </message>
|
| <message name='Schedule.setSitesTitleFlag'>
| <part name='sRequest' type='xsd:anyType'/>
| </message>
|
| <message name='Schedule.setSitesTitleFlagResponse'>
| <part name='Result' type='xsd:anyType'/>
| </message>
|
| <message name='Schedule.getStatesByTitleId'>
|
| <part name='sRequest' type='xsd:anyType'/>
| </message>
|
| <message name='Schedule.getStatesByTitleIdResponse'>
| <part name='Result' type='xsd:anyType'/>
| </message>
|
| <message name='Schedule.getSitesBySiteNameTitleId'>
| <part name='sRequest' type='xsd:anyType'/>
| </message>
|
| <message name='Schedule.getSitesBySiteNameTitleIdResponse'>
| <part name='Result' type='xsd:anyType'/>
| </message>
|
| <message name='Schedule.getProctorStationIdsByStateTitle'>
| <part name='sRequest' type='xsd:anyType'/>
| </message>
|
| <message name='Schedule.getProctorStationIdsByStateTitleResponse'>
|
| <part name='Result' type='xsd:anyType'/>
| </message>
|
| <message name='Schedule.getProctorStationInfo'>
| <part name='sRequest' type='xsd:anyType'/>
| </message>
|
| <message name='Schedule.getProctorStationInfoResponse'>
| <part name='Result' type='xsd:anyType'/>
| </message>
|
| <message name='Schedule.getTestCenters'>
| <part name='sRequest' type='xsd:anyType'/>
| </message>
|
| <message name='Schedule.getTestCentersResponse'>
| <part name='Result' type='xsd:anyType'/>
| </message>
|
| <message name='Schedule.getAvailableDays'>
|
| <part name='sRequest' type='xsd:anyType'/>
| </message>
|
| <message name='Schedule.getAvailableDaysResponse'>
| <part name='Result' type='xsd:anyType'/>
| </message>
|
| <message name='Schedule.getAvailableAppointments'>
| <part name='sRequest' type='xsd:anyType'/>
| </message>
|
| <message name='Schedule.getAvailableAppointmentsResponse'>
| <part name='Result' type='xsd:anyType'/>
| </message>
|
| <message name='Schedule.scheduleAppointment'>
| <part name='sRequest' type='xsd:anyType'/>
| </message>
|
| <message name='Schedule.scheduleAppointmentResponse'>
|
| <part name='Result' type='xsd:anyType'/>
| </message>
|
| <message name='Schedule.cancelAppointment'>
| <part name='sRequest' type='xsd:anyType'/>
| </message>
|
| <message name='Schedule.cancelAppointmentResponse'>
| <part name='Result' type='xsd:anyType'/>
| </message>
|
| <message name='Schedule.serviceCheck'>
| <part name='sRequest' type='xsd:anyType'/>
| </message>
|
| <message name='Schedule.serviceCheckResponse'>
| <part name='Result' type='xsd:anyType'/>
| </message>
|
| <message name='Schedule.getCandidateScheduleData'>
|
| <part name='sRequest' type='xsd:anyType'/>
| </message>
|
| <message name='Schedule.getCandidateScheduleDataResponse'>
| <part name='Result' type='xsd:anyType'/>
| </message>
|
| <portType name='RegistrationSoapPort'>
|
| <operation name='register' parameterOrder='sRequest'>
|
| <input message='wsdlns:Registration.register'/>
| <output message='wsdlns:Registration.registerResponse'/>
| </operation>
|
| </portType>
|
| <portType name='ScheduleDataSoapPort'>
|
| <operation name='getScheduleData' parameterOrder='sRequest'>
| <input message='wsdlns:ScheduleData.getScheduleData'/>
|
| <output message='wsdlns:ScheduleData.getScheduleDataResponse'/>
| </operation>
|
| </portType>
|
| <portType name='ScheduleSoapPort'>
|
| <operation name='getVersion' parameterOrder=''>
|
| <output message='wsdlns:Schedule.getVersionResponse'/>
|
| </operation>
|
| <operation name='getSiteTitleList' parameterOrder='SiteTitleList sTitleId sSiteName'>
| <input message='wsdlns:Schedule.getSiteTitleList'/>
| <output message='wsdlns:Schedule.getSiteTitleListResponse'/>
| </operation>
|
| <operation name='setInactiveFlag' parameterOrder='sTitleId sSiteID sInactive sErr'>
| <input message='wsdlns:Schedule.setInactiveFlag'/>
| <output message='wsdlns:Schedule.setInactiveFlagResponse'/>
|
| </operation>
|
| <operation name='getSiteName' parameterOrder='sSiteID sSiteName'>
| <input message='wsdlns:Schedule.getSiteName'/>
| <output message='wsdlns:Schedule.getSiteNameResponse'/>
| </operation>
|
| <operation name='setSitesTitleFlag' parameterOrder='sRequest'>
| <input message='wsdlns:Schedule.setSitesTitleFlag'/>
| <output message='wsdlns:Schedule.setSitesTitleFlagResponse'/>
|
| </operation>
|
| <operation name='getStatesByTitleId' parameterOrder='sRequest'>
| <input message='wsdlns:Schedule.getStatesByTitleId'/>
| <output message='wsdlns:Schedule.getStatesByTitleIdResponse'/>
| </operation>
|
| <operation name='getSitesBySiteNameTitleId' parameterOrder='sRequest'>
| <input message='wsdlns:Schedule.getSitesBySiteNameTitleId'/>
| <output message='wsdlns:Schedule.getSitesBySiteNameTitleIdResponse'/>
|
| </operation>
|
| <operation name='getProctorStationIdsByStateTitle' parameterOrder='sRequest'>
| <input message='wsdlns:Schedule.getProctorStationIdsByStateTitle'/>
| <output message='wsdlns:Schedule.getProctorStationIdsByStateTitleResponse'/>
| </operation>
|
| <operation name='getProctorStationInfo' parameterOrder='sRequest'>
| <input message='wsdlns:Schedule.getProctorStationInfo'/>
| <output message='wsdlns:Schedule.getProctorStationInfoResponse'/>
|
| </operation>
|
| <operation name='getTestCenters' parameterOrder='sRequest'>
| <input message='wsdlns:Schedule.getTestCenters'/>
| <output message='wsdlns:Schedule.getTestCentersResponse'/>
| </operation>
|
| <operation name='getAvailableDays' parameterOrder='sRequest'>
| <input message='wsdlns:Schedule.getAvailableDays'/>
| <output message='wsdlns:Schedule.getAvailableDaysResponse'/>
|
| </operation>
|
| <operation name='getAvailableAppointments' parameterOrder='sRequest'>
| <input message='wsdlns:Schedule.getAvailableAppointments'/>
| <output message='wsdlns:Schedule.getAvailableAppointmentsResponse'/>
| </operation>
|
| <operation name='scheduleAppointment' parameterOrder='sRequest'>
| <input message='wsdlns:Schedule.scheduleAppointment'/>
| <output message='wsdlns:Schedule.scheduleAppointmentResponse'/>
|
| </operation>
|
| <operation name='cancelAppointment' parameterOrder='sRequest'>
| <input message='wsdlns:Schedule.cancelAppointment'/>
| <output message='wsdlns:Schedule.cancelAppointmentResponse'/>
| </operation>
|
| <operation name='serviceCheck' parameterOrder='sRequest'>
| <input message='wsdlns:Schedule.serviceCheck'/>
| <output message='wsdlns:Schedule.serviceCheckResponse'/>
|
| </operation>
|
| <operation name='getCandidateScheduleData' parameterOrder='sRequest'>
| <input message='wsdlns:Schedule.getCandidateScheduleData'/>
| <output message='wsdlns:Schedule.getCandidateScheduleDataResponse'/>
| </operation>
|
| </portType>
|
| <binding name='RegistrationSoapBinding' type='wsdlns:RegistrationSoapPort' >
|
| <stk:binding preferredEncoding='UTF-8'/>
| <soap:binding style="document" transport='http://schemas.xmlsoap.org/soap/http'/>
|
| <operation name='register'>
| <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Registration.register'/>
| <input>
| <soap:body use="literal"/>
| </input>
| <output>
|
| <soap:body use="literal"/>
| </output>
| </operation>
|
| </binding>
|
| <binding name='ScheduleDataSoapBinding' type='wsdlns:ScheduleDataSoapPort' >
|
| <stk:binding preferredEncoding='UTF-8'/>
| <soap:binding style="document" transport='http://schemas.xmlsoap.org/soap/http'/>
|
| <operation name='getScheduleData'>
| <soap:operation soapAction='http://actcenters.com/ALMVTC/action/ScheduleData.getScheduleData'/>
| <input>
| <soap:body use="literal"/>
| </input>
| <output>
| <soap:body use="literal"/>
| </output>
|
| </operation>
|
| </binding>
|
| <binding name='ScheduleSoapBinding'
| type='wsdlns:ScheduleSoapPort' >
|
| <stk:binding preferredEncoding='UTF-8'/>
| <soap:binding style="document" transport='http://schemas.xmlsoap.org/soap/http'/>
|
| <operation name='getVersion'>
| <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.getVersion'/>
|
| <input>
| <soap:body use="literal"/>
| </input>
| <output>
| <soap:body use="literal"/>
| </output>
| </operation>
|
| <operation name='getSiteTitleList'>
|
| <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.getSiteTitleList'/>
| <input>
| <soap:body use="literal"/>
| </input>
| <output>
| <soap:body use="literal"/>
| </output>
| </operation>
|
| <operation name='setInactiveFlag'>
| <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.setInactiveFlag'/>
| <input>
| <soap:body use="literal"/>
| </input>
| <output>
| <soap:body use="literal"/>
| </output>
| </operation>
|
| <operation name='getSiteName'>
| <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.getSiteName'/>
| <input>
| <soap:body use="literal"/>
| </input>
| <output>
| <soap:body use="literal"/>
| </output>
|
| </operation>
|
| <operation name='setSitesTitleFlag'>
| <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.setSitesTitleFlag'/>
| <input>
| <soap:body use="literal"/>
| </input>
| <output>
| <soap:body use="literal"/>
| </output>
| </operation>
|
| <operation name='getStatesByTitleId'>
| <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.getStatesByTitleId'/>
| <input>
| <soap:body use="literal"/>
| </input>
| <output>
|
| <soap:body use="literal"/>
| </output>
| </operation>
|
| <operation name='getSitesBySiteNameTitleId'>
| <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.getSitesBySiteNameTitleId'/>
| <input>
| <soap:body use="literal"/>
| </input>
|
| <output>
| <soap:body use="literal"/>
| </output>
| </operation>
|
| <operation name='getProctorStationIdsByStateTitle'>
| <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.getProctorStationIdsByStateT...'/>
| <input>
| <soap:body use="literal"/>
| </input>
| <output>
| <soap:body use="literal"/>
| </output>
| </operation>
|
| <operation name='getProctorStationInfo'>
| <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.getProctorStationInfo'/>
| <input>
| <soap:body use="literal"/>
| </input>
| <output>
| <soap:body use="literal"/>
| </output>
| </operation>
|
| <operation name='getTestCenters'>
| <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.getTestCenters'/>
|
| <input>
| <soap:body use="literal"/>
| </input>
| <output>
| <soap:body use="literal"/>
| </output>
| </operation>
|
| <operation name='getAvailableDays'>
|
| <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.getAvailableDays'/>
| <input>
| <soap:body use="literal"/>
| </input>
| <output>
| <soap:body use="literal"/>
| </output>
| </operation>
|
| <operation name='getAvailableAppointments'>
| <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.getAvailableAppointments'/>
| <input>
| <soap:body use="literal"/>
| </input>
| <output>
| <soap:body use="literal"/>
| </output>
| </operation>
|
| <operation name='scheduleAppointment'>
| <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.scheduleAppointment'/>
| <input>
| <soap:body use="literal"/>
| </input>
| <output>
| <soap:body use="literal"/>
| </output>
|
| </operation>
|
| <operation name='cancelAppointment'>
| <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.cancelAppointment'/>
| <input>
| <soap:body use="literal"/>
| </input>
| <output>
| <soap:body use="literal"/>
| </output>
| </operation>
|
| <operation name='serviceCheck'>
| <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.serviceCheck'/>
| <input>
| <soap:body use="literal"/>
| </input>
| <output>
| <soap:body use="literal"/>
| </output>
| </operation>
|
| <operation name='getCandidateScheduleData'>
| <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.getCandidateScheduleData'/>
| <input>
| <soap:body use="literal"/>
| </input>
|
| <output>
| <soap:body use="literal"/>
| </output>
| </operation>
|
| </binding>
|
| <service name='ALMVTC' >
| <port name='RegistrationSoapPort' binding='wsdlns:RegistrationSoapBinding' >
| <soap:address location='http://cwcdev.corporate.act.org/schedule/ALMVTC.WSDL'/>
|
| </port>
| <port name='ScheduleDataSoapPort' binding='wsdlns:ScheduleDataSoapBinding' >
| <soap:address location='http://cwcdev.corporate.act.org/schedule/ALMVTC.WSDL'/>
| </port>
| <port name='ScheduleSoapPort' binding='wsdlns:ScheduleSoapBinding' >
| <soap:address location='http://cwcdev.corporate.act.org/schedule/ALMVTC.WSDL'/>
| </port>
| </service>
|
| </definitions>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096326#4096326
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096326
18Â years, 9Â months