I'm having some troublems with the response message. I'm using axis 1.5 as soap server and the Python ZSI library as a client.
There are some differences between the approach of the both framework, but I was able to conquer those.
But now I'm getting a strange response from axis, wich I doubt to be correct.
Can somebody please take a look at my wsdl and the response in my attachments.
specially to the next line:
<ns2:lineupTypeArray xmlns:ns2="" xmlns:enc=" http://www.w3.org/2001/06/soap-encoding" xmlns:ns2=" http://gti-ia-zo.nl/ett
Types.xsd" enc:arrayType="ns2:lineupType[0]">
This tells me that there should be a lineupTypeArray in my wsdl since this is pointing to ns2. I guess thet this should be an ampty namspace and that the namspace of my wsdl should be ns3.
Can somebody verify this or not........
greetings
Roel Bindels
<?xml version="1.0" encoding="UTF-8"?> <!-- edited with XMLSpy v2006 sp2 U (http://www.altova.com) by Roel Bindels (GTI) --> <!-- Copyright 2006 GTI ETT project --> <!-- --> <wsdl:definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:ettService="http://www.gti-ia-zo.nl/ettService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ett="http://gti-ia-zo.nl/ettTypes.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.gti-ia-zo.nl/ettService"> <wsdl:types> <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ett="http://gti-ia-zo.nl/ettTypes.xsd" targetNamespace="http://gti-ia-zo.nl/ettTypes.xsd"> <complexType name="segments"> <annotation> <documentation> The Segment collection </documentation> </annotation> <sequence> <element name="segmentCode" maxOccurs="unbounded"> <simpleType> <annotation> <documentation> The SegmentCode XML string type </documentation> </annotation> <restriction base="string"/> </simpleType> </element> </sequence> </complexType> <complexType name="product"> <annotation> <documentation>The product type</documentation> </annotation> <all> <element name="productCode"> <simpleType> <annotation> <documentation> A string with a length restriction of 5 </documentation> </annotation> <restriction base="string"> <maxLength value="5"/> </restriction> </simpleType> </element> <element name="blendGroup"> <simpleType> <annotation> <documentation> A string with a length restriction of 5 </documentation> </annotation> <restriction base="string"> <maxLength value="5"/> </restriction> </simpleType> </element> </all> </complexType> <complexType name="shipParameters"> <annotation> <documentation> The ship parameter type </documentation> </annotation> <all> <element name="startFlow"> <simpleType> <annotation> <documentation> A decimal with 2 dig restriction </documentation> </annotation> <restriction base="decimal"> <fractionDigits value="2" fixed="true"/> </restriction> </simpleType> </element> <element name="startQuantity"> <simpleType> <annotation> <documentation> A decimal with 2 dig restriction </documentation> </annotation> <restriction base="decimal"> <fractionDigits value="2" fixed="true"/> </restriction> </simpleType> </element> <element name="endFlow"> <simpleType> <annotation> <documentation> A decimal with 2 dig restriction </documentation> </annotation> <restriction base="decimal"> <fractionDigits value="2" fixed="true"/> </restriction> </simpleType> </element> <element name="endQuantity"> <simpleType> <annotation> <documentation> A decimal with 2 dig restriction </documentation> </annotation> <restriction base="decimal"> <fractionDigits value="2" fixed="true"/> </restriction> </simpleType> </element> </all> </complexType> <complexType name="action"> <annotation> <documentation>The action type</documentation> </annotation> <all> <element name="type"> <simpleType> <annotation> <documentation> A string with a length restriction of 7 </documentation> </annotation> <restriction base="string"> <maxLength value="7"/> </restriction> </simpleType> </element> <element name="user"> <simpleType> <annotation> <documentation> A string with a length restriction of 7 </documentation> </annotation> <restriction base="string"> <maxLength value="7"/> </restriction> </simpleType> </element> <element name="timeStamp" type="dateTime"/> <element name="amountOfOil"> <simpleType> <annotation> <documentation> A decimal with 2 dig restriction </documentation> </annotation> <restriction base="decimal"> <fractionDigits value="2" fixed="true"/> </restriction> </simpleType> </element> <element name="message"> <simpleType> <annotation> <documentation> A string with a length restriction of 256 </documentation> </annotation> <restriction base="string"> <maxLength value="256"/> </restriction> </simpleType> </element> <element name="comment"> <simpleType> <annotation> <documentation> A string with a length restriction of 256 </documentation> </annotation> <restriction base="string"> <maxLength value="256"/> </restriction> </simpleType> </element> </all> </complexType> <complexType name="actions"> <annotation> <documentation>The action type list</documentation> </annotation> <sequence> <element name="action" type="ett:action" minOccurs="0" maxOccurs="unbounded"/> </sequence> </complexType> <complexType name="transfer"> <annotation> <documentation>The transfer type</documentation> </annotation> <all> <element name="transferCode"> <simpleType> <annotation> <documentation> A string with a length restriction of 11 </documentation> </annotation> <restriction base="string"> <maxLength value="11"/> </restriction> </simpleType> </element> <element name="state"> <simpleType> <restriction base="integer"/> </simpleType> </element> <element name="flyingSwitchDependency"> <simpleType> <annotation> <documentation> A string with a length restriction of 7 </documentation> </annotation> <restriction base="string"> <maxLength value="7"/> </restriction> </simpleType> </element> <element name="quantityTarget"> <simpleType> <annotation> <documentation> A decimal with 2 dig restriction </documentation> </annotation> <restriction base="decimal"> <fractionDigits value="2" fixed="true"/> </restriction> </simpleType> </element> <element name="quantityMax"> <simpleType> <annotation> <documentation> A decimal with 2 dig restriction </documentation> </annotation> <restriction base="decimal"> <fractionDigits value="2" fixed="true"/> </restriction> </simpleType> </element> <element name="mixerStartOn"> <simpleType> <restriction base="boolean"/> </simpleType> </element> <element name="mixerAfterwardsOn"> <simpleType> <restriction base="boolean"/> </simpleType> </element> <element name="mixerAfterwardsOnTime"> <simpleType> <annotation> <documentation> A decimal with 2 dig restriction </documentation> </annotation> <restriction base="decimal"> <fractionDigits value="2" fixed="true"/> </restriction> </simpleType> </element> <element name="lineup"> <simpleType> <annotation> <documentation> The lineup XML string type </documentation> </annotation> <restriction base="string"/> </simpleType> </element> <element name="shipParameters" type="ett:shipParameters"/> <element name="product" type="ett:product"/> </all> </complexType> <complexType name="reportTransfer"> <annotation> <documentation> The report transfer type </documentation> </annotation> <all> <element name="transferCode"> <simpleType> <annotation> <documentation> A string with a length restriction of 11 </documentation> </annotation> <restriction base="string"> <maxLength value="11"/> </restriction> </simpleType> </element> <element name="state"> <simpleType> <restriction base="integer"/> </simpleType> </element> <element name="flyingSwitchDependency"> <simpleType> <annotation> <documentation> A string with a length restriction of 7 </documentation> </annotation> <restriction base="string"> <maxLength value="7"/> </restriction> </simpleType> </element> <element name="pumpHours"> <simpleType> <annotation> <documentation> A decimal with 2 dig restriction </documentation> </annotation> <restriction base="decimal"> <fractionDigits value="2" fixed="true"/> </restriction> </simpleType> </element> <element name="quantityActual"> <simpleType> <annotation> <documentation> A decimal with 2 dig restriction </documentation> </annotation> <restriction base="decimal"> <fractionDigits value="2" fixed="true"/> </restriction> </simpleType> </element> <element name="lineup"> <simpleType> <annotation> <documentation> The lineup XML string type </documentation> </annotation> <restriction base="string"/> </simpleType> </element> <element name="actions" type="ett:actions"/> <element name="product" type="ett:product"/> </all> </complexType> <complexType name="batch"> <annotation> <documentation>The batch type</documentation> </annotation> <sequence> <element name="batchCode"> <simpleType> <annotation> <documentation> A string with a length restriction of 2 </documentation> </annotation> <restriction base="string"> <maxLength value="2"/> </restriction> </simpleType> </element> <element name="transfer" type="ett:transfer" maxOccurs="unbounded"/> </sequence> </complexType> <complexType name="reportBatch"> <annotation> <documentation>The report batch type</documentation> </annotation> <sequence> <element name="batchCode"> <simpleType> <annotation> <documentation> A string with a length restriction of 7 </documentation> </annotation> <restriction base="string"> <maxLength value="7"/> </restriction> </simpleType> </element> <element name="reportTransfer" type="ett:reportTransfer" maxOccurs="unbounded"/> </sequence> </complexType> <complexType name="nomination"> <annotation> <documentation>The nomination type</documentation> </annotation> <sequence> <element name="nominationCode"> <simpleType> <annotation> <documentation> A string with a length restriction of 5 </documentation> </annotation> <restriction base="string"> <maxLength value="5"/> </restriction> </simpleType> </element> <element name="shipCode"> <simpleType> <annotation> <documentation> A string with a length restriction of 7 </documentation> </annotation> <restriction base="string"> <maxLength value="7"/> </restriction> </simpleType> </element> <element name="batch" type="ett:batch" maxOccurs="unbounded"/> </sequence> </complexType> <complexType name="nominations"> <annotation> <documentation> The collection of nominations </documentation> </annotation> <sequence> <element name="returnStatus"> <simpleType> <annotation> <documentation> A interger value returning the status </documentation> </annotation> <restriction base="integer"/> </simpleType> </element> <element name="nomination" type="ett:nomination" minOccurs="0" maxOccurs="unbounded"/> </sequence> </complexType> <complexType name="releasedTransfers"> <annotation> <documentation> The collection of released transfers </documentation> </annotation> <sequence> <element name="returnStatus"> <simpleType> <annotation> <documentation> A interger value returning the status </documentation> </annotation> <restriction base="integer"/> </simpleType> </element> <element name="nominations" type="ett:nominations"/> </sequence> </complexType> <complexType name="lineupType"> <annotation> <documentation> The respons and parameter type for Lineup </documentation> </annotation> <sequence> <element name="transferCode"> <simpleType> <annotation> <documentation> A string with a length restriction of 11 </documentation> </annotation> <restriction base="string"> <maxLength value="11"/> </restriction> </simpleType> </element> <element name="product" type="ett:product"/> <element name="lineup"> <simpleType> <annotation> <documentation> The lineup XML string type </documentation> </annotation> <restriction base="string"/> </simpleType> </element> <element name="segments"> <simpleType> <annotation> <documentation> The segments XML string type </documentation> </annotation> <restriction base="string"/> </simpleType> </element> </sequence> </complexType> <complexType name="returnLineupType"> <annotation> <documentation> The respons and parameter type for returnLineup </documentation> </annotation> <sequence> <element name="returnStatus"> <simpleType> <annotation> <documentation> A interger value returning the status </documentation> </annotation> <restriction base="integer"/> </simpleType> </element> <element name="lineupType" type="ett:lineupType" minOccurs="0" maxOccurs="unbounded"/> </sequence> </complexType> <complexType name="nominationTransfer"> <annotation> <documentation>The return collection</documentation> </annotation> <sequence> <element name="nominationCode"> <simpleType> <annotation> <documentation> A string with a length restriction of 7 </documentation> </annotation> <restriction base="string"> <maxLength value="7"/> </restriction> </simpleType> </element> <element name="batch" type="ett:reportBatch" maxOccurs="unbounded"/> </sequence> </complexType> <complexType name="nominationTransfers"> <annotation> <documentation>The return collection</documentation> </annotation> <sequence> <element name="nomiationTransfer" type="ett:nominationTransfer" minOccurs="0" maxOccurs="unbounded"/> </sequence> </complexType> </schema> </wsdl:types> <wsdl:message name="getTransferStateInput"> <wsdl:part name="transferCode" type="xsd:string"/> </wsdl:message> <wsdl:message name="getTransferStateResponse"> <wsdl:part name="getTransferStateReturn" type="xsd:int"/> </wsdl:message> <wsdl:message name="setTransferStateInput"> <wsdl:part name="transferCode" type="xsd:string"/> <wsdl:part name="transferStatus" type="xsd:int"/> </wsdl:message> <wsdl:message name="setTransferStateResponse"> <wsdl:part name="getTransferStateReturn" type="xsd:int"/> </wsdl:message> <wsdl:message name="getLineupInput"> <wsdl:part name="transferCode" type="xsd:string"/> </wsdl:message> <wsdl:message name="getLineupResponse"> <wsdl:part name="getLineupReturn" type="ett:returnLineupType"/> </wsdl:message> <wsdl:message name="sendLineupInput"> <wsdl:part name="lineupType" type="ett:lineupType"/> </wsdl:message> <wsdl:message name="sendLineupResponse"> <wsdl:part name="sendLineupReturn" type="xsd:int"/> </wsdl:message> <wsdl:message name="getReleasedTransferInput"> </wsdl:message> <wsdl:message name="getReleasedTransferResponse"> <wsdl:part name="getReleasedTransferReturn" type="ett:nominations"/> </wsdl:message> <wsdl:message name="setValidTransferInput"> <wsdl:part name="transferCode" type="xsd:string"/> </wsdl:message> <wsdl:message name="setValidTransferResponse"> <wsdl:part name="setValidTransferReturn" type="xsd:int"/> </wsdl:message> <wsdl:message name="sendTransferReportInput"> <wsdl:part name="nominationTransfers" type="ett:nominationTransfers"/> </wsdl:message> <wsdl:message name="sendTransferReportResponse"> <wsdl:part name="setTransferStateReturn" type="xsd:int"/> </wsdl:message> <wsdl:portType name="ettPortType"> <wsdl:operation name="getTransferState"> <wsdl:input name="getTransferStateInput" message="ettService:getTransferStateInput"/> <wsdl:output name="getTransferStateOutput" message="ettService:getTransferStateResponse"/> </wsdl:operation> <wsdl:operation name="setTransferState"> <wsdl:input name="setTransferStateInput" message="ettService:setTransferStateInput"/> <wsdl:output name="setTransferStateOutput" message="ettService:setTransferStateResponse"/> </wsdl:operation> <wsdl:operation name="getLineup"> <wsdl:input name="getLineupInput" message="ettService:getLineupInput"/> <wsdl:output name="getLineupOutput" message="ettService:getLineupResponse"/> </wsdl:operation> <wsdl:operation name="sendLineup"> <wsdl:input name="sendLineupInput" message="ettService:sendLineupInput"/> <wsdl:output name="sendLineupOutput" message="ettService:sendLineupResponse"/> </wsdl:operation> <wsdl:operation name="getReleasedTransfer"> <wsdl:input name="getReleasedTransferInput" message="ettService:getReleasedTransferInput"/> <wsdl:output name="getReleasedTransferOutput" message="ettService:getReleasedTransferResponse"/> </wsdl:operation> <wsdl:operation name="setValidTransfer"> <wsdl:input name="setValidTransferInput" message="ettService:setValidTransferInput"/> <wsdl:output name="setValidTransferOutput" message="ettService:setValidTransferResponse"/> </wsdl:operation> <wsdl:operation name="sendTransferReport"> <wsdl:input name="sendTransferReportInput" message="ettService:sendTransferReportInput"/> <wsdl:output name="sendTransferReportOutput" message="ettService:sendTransferReportResponse"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="ettServiceSoapBinding" type="ettService:ettPortType"> <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="getTransferState"> <wsdlsoap:operation soapAction="http://www.gti-ia-zo.nl/ettService/getTransferState"/> <wsdl:input> <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.gti-ia-zo.nl/ettService"/> </wsdl:input> <wsdl:output> <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.gti-ia-zo.nl/ettService"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="setTransferState"> <wsdlsoap:operation soapAction="http://www.gti-ia-zo.nl/ettService/setTransferState"/> <wsdl:input> <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.gti-ia-zo.nl/ettService"/> </wsdl:input> <wsdl:output> <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.gti-ia-zo.nl/ettService"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="getLineup"> <wsdlsoap:operation soapAction="http://www.gti-ia-zo.nl/ettService/getLineup"/> <wsdl:input> <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.gti-ia-zo.nl/ettService"/> </wsdl:input> <wsdl:output> <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.gti-ia-zo.nl/ettService"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="sendLineup"> <wsdlsoap:operation soapAction="http://www.gti-ia-zo.nl/ettService/sendLineup"/> <wsdl:input> <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.gti-ia-zo.nl/ettService"/> </wsdl:input> <wsdl:output> <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.gti-ia-zo.nl/ettService"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="getReleasedTransfer"> <wsdlsoap:operation soapAction="http://www.gti-ia-zo.nl/ettService/getReleasedTransfer"/> <wsdl:input> <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.gti-ia-zo.nl/ettService"/> </wsdl:input> <wsdl:output> <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.gti-ia-zo.nl/ettService"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="setValidTransfer"> <wsdlsoap:operation soapAction="http://www.gti-ia-zo.nl/ettService/setValidTransfer"/> <wsdl:input> <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.gti-ia-zo.nl/ettService"/> </wsdl:input> <wsdl:output> <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.gti-ia-zo.nl/ettService"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="sendTransferReport"> <wsdlsoap:operation soapAction="http://www.gti-ia-zo.nl/ettService/sendTransferReport"/> <wsdl:input> <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.gti-ia-zo.nl/ettService"/> </wsdl:input> <wsdl:output> <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.gti-ia-zo.nl/ettService"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="ettService"> <wsdl:port name="ettService" binding="ettService:ettServiceSoapBinding"> <wsdlsoap:address location="http://IA-P12-VMWARE:8080/ett/ettService"/> </wsdl:port> </wsdl:service> </wsdl:definitions>
_________________________________ Thu Mar 16 15:31:29 2006 REQUEST: <SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ZSI="http://www.zolera.com/schemas/ZSI/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Header></SOAP-ENV:Header><SOAP-ENV:Body xmlns:ns1="http://www.gti-ia-zo.nl/ettService"><ns1:getLineup><transferCode xsi:type="xsd:string">01001.01.01</transferCode></ns1:getLineup></SOAP-ENV:Body></SOAP-ENV:Envelope> _________________________________ Thu Mar 16 15:31:29 2006 RESPONSE: 200 OK ------- Server: Apache Axis C++/1.3 Connection: close Content-Length: 726 Content-Type: text/xml <?xml version='1.0' encoding='utf-8' ?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SOAP-ENV:Body> <ns1:getLineupResponse xmlns:ns1="http://www.gti-ia-zo.nl/ettService"> <returnLineupType xsi:type="ns2:returnLineupType" xmlns:ns2="http://gti-ia-zo.nl/ettTypes.xsd"><returnStatus xsi:type="xsd:integer">0</returnStatus> <ns2:lineupTypeArray xmlns:ns2="" xmlns:enc="http://www.w3.org/2001/06/soap-encoding" xmlns:ns2="http://gti-ia-zo.nl/ettTypes.xsd" enc:arrayType="ns2:lineupType[0]"> </ns2:lineupTypeArray> </returnLineupType></ns1:getLineupResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope>