Hi,
I have been staring at this document for about 1/2 an hour now and cannot spot what is wrong. I simple want two methods. One which runs a simulation and outputs files to a given folder (RunSimulation). The second should retreive the files and send then back to the client (ReturnFiles) Please will someone with a fresh pair of eyes try to spot why this error is occuring.
When I run the following command:
wscompile -import -verbose -keep -f:wsi -mapping ./build/WEB-INF/cimmsimservice-mapping.xml -s ./src -d ./build/WEB-INF/classes config.xml
I get this error:
warning: ignoring operation "ReturnFile": message part does not refer to a schema element declaration
[ServiceInterfaceGenerator: creating service interface: cimmsim.cimmsimservice.CimmsimService]
[CustomExceptionGenerator: generating CustomException for: cimmsim.cimmsimservice.CimmsimFaultMessage]
WSDL document
<?xml version="1.0" encoding="UTF-8"?>
<definitions
name="cimmsim"
targetNamespace="http://www.immunologygrid.org/cimmsimservice"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://www.immunologygrid.org/cimmsimservice"
xmlns:types="http://www.immunologygrid.org/cimmsimservice/types"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<types>
<xsd:schema targetNamespace="http://www.immunologygrid.org/cimmsimservice/types" elementFormDefault="qualified">
<xsd:annotation>
<xsd:documentation xml:lang="en">C-ImmSim Service</xsd:documentation>
</xsd:annotation>
<xsd:element name="cimmsim_results" type="xsd:string"/>
<xsd:element name="FileInput" type="xsd:string"/>
<xsd:element name="cimmsimFault" type="xsd:string" />
<xsd:element name="stringID" type="xsd:string" />
<xsd:element name="filesFault" type="xsd:string" />^
</xsd:schema>
</types>
<!-- Request message -->
<message name="CimmsimRequestMessage">
<part name="parameter" element="types:FileInput" />
<part name="datfile" type="xsd:base64Binary"/>
</message>
<!-- Response message -->
<message name="CimmsimResponseMessage">
<part name="parameter2" element="types:cimmsim_results" />
</message>
<!-- Fault messages -->
<message name="CimmsimFaultMessage">
<part name="cimmsimFault" element="types:cimmsimFault" />
</message>
<message name="getFilesMessage">
<part name="body" element="types:stringID" />
</message>
<message name="getFilesResponse">
<part name="body" type="xsd:base64Binary" />
</message>
<!-- Fault messages -->
<message name="returnFileFaultMessage">
<part name="fileFault" element="types:filesFault" />
</message>
<!-- Simple Service PortType definition -->
<portType name="CimmsimServicePortType">
<operation name="RunSimulation">
<input message="tns:CimmsimRequestMessage"/>
<output message="tns:CimmsimResponseMessage"/>
<fault name="cimmsimFault" message="tns:CimmsimFaultMessage"/>
</operation>
<operation name="ReturnFile">
<input message="tns:getFilesMessage"/>
<output message="tns:getFilesResponse"/>
<fault name="fileFault" message="tns:returnFileFaultMessage"/>
</operation>
</portType>
<binding name="CimmsimServicePortTypeSOAPBinding" type="tns:CimmsimServicePortType">
<documentation>SOAP Binding for the CimmsimServicePortType</documentation>
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="RunSimulation">
<soap:operation soapAction="CimmsimServicePortType#RunSimulation"/>
<input>
<mime:multipartRelated>
<mime:part>
<soap:body parts="parameter" use="literal"/>
</mime:part>
<mime:part>
<mime:content part="datfile" type="text/plain"/>
</mime:part>
</mime:multipartRelated>
</input>
<output>
<soap:body use="literal"/>
</output>
<fault name="cimmsimFault">
<soap:fault name="cimmsimFault" use="literal" />
</fault>
</operation>
<operation name="ReturnFile">
<soap:operation soapAction="CimmsimServicePortType#ReturnFile"/>
<input>
<soap:body parts="body" use="literal"/>
</input>
<output>
<soap:body parts="body" use="literal"/>
</output>
<fault name="fileFault">
<soap:fault name="fileFault" use="literal" />
</fault>
</operation>
</binding>
<service name="CimmsimService">
<port name="CimmsimServicePortTypeSOAPPort" binding="tns:CimmsimServicePortTypeSOAPBinding">
<soap:address location="http://localhost:5051/cimmsim/cimmsimservice/"/>
</port>
</service>
</definitions>