Hi
attached is the wsdl and the ant file
target is wsdlFileService
Thanks
Romain
njnjut wrote:
> show your wsdl and ant task! i will do a test for you!
> ------------------------------------------------------------------------
> njnjut
> 2007-03-12
> ------------------------------------------------------------------------
> *发件人:* Romain Quilici
> *发送时间:* 2007-03-12 14:27:06
> *收件人:* [email protected]
> *抄送:*
> *主题:* [xfire-user] Wsdl to java problem
> Hi all,
> the java code generated from my wsdl file with
> org.codehaus.xfire.gen.WsGen does not work and crashes with
> Fault occurred!
> org.codehaus.xfire.fault.XFireFault: Parameter
> {http://www.chem.usyd.edu.au/mmsn/fileservice}in3 does not exist!
> at
> org.codehaus.xfire.service.binding.AbstractBinding.read(AbstractBinding.java:201)
> at
> org.codehaus.xfire.service.binding.DocumentBinding.readMessage(DocumentBinding.java:32)
> at
> org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)
> the wsdl and the binding files are attached, I have also attached my
> service.xml file. On both sides I have checked that document/literal(in
> the service.xml on the server, in the Service interface generated on the
> client) is used.
> Am I missing something ?
> Thanks for your help
> regards
> Romain
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> http://xircles.codehaus.org/manage_email
<jxb:bindings jxb:version="1.0"
xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<jxb:bindings schemaLocation="./file_service.wsdl#types?schema1"
node="/xsd:schema">
<jxb:schemaBindings>
<jxb:package name="usyd.fileservice.ws">
</jxb:package>
</jxb:schemaBindings>
</jxb:bindings>
</jxb:bindings>
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://www.chem.usyd.edu.au/mmsn/fileservice" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://www.chem.usyd.edu.au/mmsn/fileservice" xmlns:intf="http://www.chem.usyd.edu.au/mmsn/fileservice" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)-->
<wsdl:types>
<schema elementFormDefault="qualified" targetNamespace="http://www.chem.usyd.edu.au/mmsn/fileservice" xmlns="http://www.w3.org/2001/XMLSchema">
<element name="in0" type="xsd:string"/>
<element name="getParentReturn" type="xsd:string"/>
<element name="in1" type="xsd:string"/>
<element name="in2" type="xsd:string"/>
<element name="in3" type="xsd:string"/>
<element name="listFilesReturn">
<complexType>
<sequence>
<element maxOccurs="unbounded" minOccurs="0" name="item" type="xsd:string"/>
</sequence>
</complexType>
</element>
<element name="getHomeReturn" type="xsd:string"/>
<element name="in4" type="xsd:string"/>
<element name="in5" type="xsd:string"/>
<element name="getFilePathReturn" type="xsd:string"/>
</schema>
</wsdl:types>
<wsdl:message name="getHomeResponse">
<wsdl:part element="impl:getHomeReturn" name="getHomeReturn"/>
</wsdl:message>
<wsdl:message name="listFilesRequest">
<wsdl:part element="impl:in3" name="in0"/>
</wsdl:message>
<wsdl:message name="listFilesResponse">
<wsdl:part element="impl:listFilesReturn" name="listFilesReturn"/>
</wsdl:message>
<wsdl:message name="createRequest">
<wsdl:part element="impl:in1" name="in0"/>
<wsdl:part element="impl:in2" name="in1"/>
</wsdl:message>
<wsdl:message name="getFilePathRequest">
<wsdl:part element="impl:in4" name="in0"/>
<wsdl:part element="impl:in5" name="in1"/>
</wsdl:message>
<wsdl:message name="getFilePathResponse">
<wsdl:part element="impl:getFilePathReturn" name="getFilePathReturn"/>
</wsdl:message>
<wsdl:message name="createResponse">
</wsdl:message>
<wsdl:message name="getHomeRequest">
</wsdl:message>
<wsdl:message name="getParentRequest">
<wsdl:part element="impl:in0" name="in0"/>
</wsdl:message>
<wsdl:message name="getParentResponse">
<wsdl:part element="impl:getParentReturn" name="getParentReturn"/>
</wsdl:message>
<wsdl:portType name="FileService">
<wsdl:operation name="getParent" parameterOrder="in0">
<wsdl:input message="impl:getParentRequest" name="getParentRequest"/>
<wsdl:output message="impl:getParentResponse" name="getParentResponse"/>
</wsdl:operation>
<wsdl:operation name="create" parameterOrder="in0 in1">
<wsdl:input message="impl:createRequest" name="createRequest"/>
<wsdl:output message="impl:createResponse" name="createResponse"/>
</wsdl:operation>
<wsdl:operation name="listFiles" parameterOrder="in0">
<wsdl:input message="impl:listFilesRequest" name="listFilesRequest"/>
<wsdl:output message="impl:listFilesResponse" name="listFilesResponse"/>
</wsdl:operation>
<wsdl:operation name="getHome">
<wsdl:input message="impl:getHomeRequest" name="getHomeRequest"/>
<wsdl:output message="impl:getHomeResponse" name="getHomeResponse"/>
</wsdl:operation>
<wsdl:operation name="getFilePath" parameterOrder="in0 in1">
<wsdl:input message="impl:getFilePathRequest" name="getFilePathRequest"/>
<wsdl:output message="impl:getFilePathResponse" name="getFilePathResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="file_serviceSoapBinding" type="impl:FileService">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="getParent">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getParentRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="getParentResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="create">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="createRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="createResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="listFiles">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="listFilesRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="listFilesResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getHome">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getHomeRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="getHomeResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getFilePath">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getFilePathRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="getFilePathResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="FileServiceService">
<wsdl:port binding="impl:file_serviceSoapBinding" name="file_service">
<wsdlsoap:address location="http://localhost:8080/axis/services/file_service"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
<!--
Build file for the BIS source code
Notes:
This is a build file for use with the Jakarta Ant build tool.
-->
<project name="xfire" default="usage">
<property file="build.properties"/>
<property environment="env"/>
<property name="catalina.home" value="${env.CATALINA_HOME}"/>
<!-- define the classpath -->
<path id="project.classpath">
<fileset dir="${project.dir}">
<include name="xfire-all-1.2.4.jar"/>
</fileset>
<fileset dir="${project.lib}">
<include name="*.jar"/>
</fileset>
</path>
<taskdef name="wsdlgen" classname="org.codehaus.xfire.gen.WsdlGenTask">
<classpath refid="project.classpath"/>
</taskdef>
<target name="java2wsdl">
<wsdlgen outputDirectory="E:\xfire-1.2.4\" wsdl="test.wsdl"></wsdlgen>
</target>
<target name="wsdlSink">
<java classname="org.codehaus.xfire.gen.WsGen"
fork="true" >
<classpath refid="project.classpath"/>
<arg line=" -wsdl CIMASink.wsdl -o . -p usyd.cima.channel.ws.xfire.sink -b jaxb -e bindingSink.xjb -overwrite true"/>
</java>
</target>
<target name="wsdlSource">
<java classname="org.codehaus.xfire.gen.WsGen"
fork="true" >
<classpath refid="project.classpath"/>
<arg line=" -wsdl CIMASource.wsdl -o . -p usyd.cima.channel.ws.xfire.source -b jaxb -e bindingSource.xjb -overwrite true"/>
</java>
</target>
<target name="wsdlFileService">
<java classname="org.codehaus.xfire.gen.WsGen"
fork="true" >
<classpath refid="project.classpath"/>
<arg line=" -wsdl file_service.wsdl -o . -p usyd.fileservice.ws -b jaxb -e bindingFileService.xjb -overwrite true"/>
</java>
</target>
</project>
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email