Hi, I have developed a soap service using Gsoap that works fine when I call te service from the gsoap client. I then used the Axis WSDL2Java program to generate Java stubs from the WSDL generated by Gsoap. I have the Java client running but when it calls the Gsoap method I see in the Gsoap log file called TEST.log a bunch of messages saying:
Tags 'supplierName' and 'ns1:supplierName' match but namespaces differ Unknown element 'supplierName' (level=3, 1) IGNORING element 'supplierName' Here supplierName is an xsd__string which is a typedef tochar*. But it does not seem to matter what the type is. The namespaces differ and so the element is ignored and comes through to the make empty/null even though I know the Java client is setting it. Here's the two WSDL's , one on the Gsoap side and the other that I generated by using Java2WSDL by pointing Java2WSDL at the Java code I generated by running WSDL2Java against the Gsoap WSDL. <<GSOAP_WSDL.txt>> <<AXIS_WSDL.txt>> Charlie Vogel Bold Web Development Work (206) 766-3856 Cell (206) 679-2699 M/S 2J-53 Email <mailto:[EMAIL PROTECTED]>
<?xml version="1.0" encoding="UTF-8"?> <definitions name="BoldToolBoxSearch" targetNamespace="http://tbsearch.webbold.boeing" xmlns:tns="http://tbsearch.webbold.boeing" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns3="urn:BoldTBSearch/ns3.xsd" xmlns:ns1="urn:BoldTBSearch" xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:MIME="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:DIME="http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/" xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/"> <types> <documentation> </documentation> <schema targetNamespace="urn:BoldTBSearch/ns3.xsd" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns3="urn:BoldTBSearch/ns3.xsd" xmlns:ns1="urn:BoldTBSearch" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified" attributeFormDefault="unqualified"> <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <complexType name="docTypes"> <sequence> <element name="docType" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/> <element name="issueDate" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/> <element name="issueNumber" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/> </sequence> </complexType> <complexType name="searchResults"> <sequence> <element name="docType" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true" default="None"/> <element name="Reference" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true" default="None"/> <element name="Description" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true" default="None"/> <element name="Model" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true" default="None"/> <element name="Effectivity" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true" default="None"/> <element name="RevNum" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true" default="None"/> <element name="Location" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true" default="None"/> <element name="HitHighLightXML" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true" default="None"/> <element name="DocNum" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true" default="None"/> <element name="RevDate" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true" default="None"/> <element name="SubDocType" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true" default="None"/> <element name="CageCode" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true" default="None"/> <element name="SupplierName" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true" default="None"/> </sequence> </complexType> <complexType name="docHits"> <sequence> <element name="docType" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/> <element name="num-hits" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/> </sequence> </complexType> </schema> <schema targetNamespace="urn:BoldTBSearch" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns3="urn:BoldTBSearch/ns3.xsd" xmlns:ns1="urn:BoldTBSearch" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="qualified"> <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <complexType name="ArrayOfdocTypes"> <complexContent> <restriction base="SOAP-ENC:Array"> <sequence> <element name="item" type="ns3:docTypes" minOccurs="0" maxOccurs="unbounded"/> </sequence> <attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ns3:docTypes[]"/> </restriction> </complexContent> </complexType> <complexType name="ArrayOfsearchResults"> <complexContent> <restriction base="SOAP-ENC:Array"> <sequence> <element name="item" type="ns3:searchResults" minOccurs="0" maxOccurs="unbounded"/> </sequence> <attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ns3:searchResults[]"/> </restriction> </complexContent> </complexType> <complexType name="ArrayOfdocHits"> <complexContent> <restriction base="SOAP-ENC:Array"> <sequence> <element name="item" type="ns3:docHits" minOccurs="0" maxOccurs="unbounded"/> </sequence> <attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="ns3:docHits[]"/> </restriction> </complexContent> </complexType> </schema> </types> <message name="SearchRequest"> <part name="searchSize" type="xsd:int"/> <part name="request" type="xsd:string"/> <part name="ata" type="xsd:string"/> <part name="model" type="xsd:string"/> <part name="airlineCode" type="xsd:string"/> <part name="partNumber" type="xsd:string"/> <part name="supplierName" type="xsd:string"/> <part name="enterpriseCode" type="xsd:string"/> <part name="docTypesin" type="ns1:ArrayOfdocTypes"/> </message> <message name="SearchResponse"> <part name="searchResults" type="ns1:ArrayOfsearchResults"/> </message> <message name="SearchDocHitsRequest"> <part name="request" type="xsd:string"/> <part name="ata" type="xsd:string"/> <part name="model" type="xsd:string"/> <part name="airlineCode" type="xsd:string"/> <part name="partNumber" type="xsd:string"/> <part name="supplierName" type="xsd:string"/> <part name="enterpriseCode" type="xsd:string"/> <part name="docTypesin" type="ns1:ArrayOfdocTypes"/> </message> <message name="SearchDocHitsResponse"> <part name="docHits" type="ns1:ArrayOfdocHits"/> </message> <portType name="BoldToolBoxSearchPortType"> <operation name="Search"> <documentation>Service definition of function ns1__Search</documentation> <input message="tns:SearchRequest"/> <output message="tns:SearchResponse"/> </operation> <operation name="SearchDocHits"> <documentation>Service definition of function ns1__SearchDocHits</documentation> <input message="tns:SearchDocHitsRequest"/> <output message="tns:SearchDocHitsResponse"/> </operation> </portType> <binding name="BoldToolBoxSearch" type="tns:BoldToolBoxSearchPortType"> <SOAP:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="Search"> <SOAP:operation style="rpc" soapAction=""/> <input> <SOAP:body use="encoded" namespace="urn:BoldTBSearch" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <SOAP:body use="encoded" namespace="urn:BoldTBSearch" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="SearchDocHits"> <SOAP:operation style="rpc" soapAction=""/> <input> <SOAP:body use="encoded" namespace="urn:BoldTBSearch" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <SOAP:body use="encoded" namespace="urn:BoldTBSearch" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> </binding> <service name="BoldToolBoxSearch"> <documentation>gSOAP 2.7.3 generated service definition</documentation> <port name="BoldToolBoxSearch" binding="tns:BoldToolBoxSearch"> <SOAP:address location="http://bold-prod.cs.boeing.com/BoldTBSearchServer"/> </port> </service> </definitions>
<?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions targetNamespace="BoldTBSearch" xmlns:impl="BoldTBSearch" xmlns:intf="BoldTBSearch" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns1="http://net.java" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> <!--WSDL created by Apache Axis version: 1.3 Built on Oct 05, 2005 (05:23:37 EDT)--> <wsdl:message name="getBoldToolBoxSearchRequest1"> <wsdl:part name="in0" type="xsd:anyType"/> </wsdl:message> <wsdl:message name="getBoldToolBoxSearchResponse"> <wsdl:part name="getBoldToolBoxSearchReturn" type="xsd:anyType"/> </wsdl:message> <wsdl:message name="getBoldToolBoxSearchAddressRequest"> </wsdl:message> <wsdl:message name="getBoldToolBoxSearchAddressResponse"> <wsdl:part name="getBoldToolBoxSearchAddressReturn" type="soapenc:string"/> </wsdl:message> <wsdl:message name="getBoldToolBoxSearchRequest"> </wsdl:message> <wsdl:message name="getBoldToolBoxSearchResponse1"> <wsdl:part name="getBoldToolBoxSearchReturn" type="impl:BoldToolBoxSearchPortType"/> </wsdl:message> <wsdl:portType name="BoldToolBoxSearch"> <wsdl:operation name="getBoldToolBoxSearchAddress"> <wsdl:input name="getBoldToolBoxSearchAddressRequest" message="impl:getBoldToolBoxSearchAddressRequest"/> <wsdl:output name="getBoldToolBoxSearchAddressResponse" message="impl:getBoldToolBoxSearchAddressResponse"/> </wsdl:operation> <wsdl:operation name="getBoldToolBoxSearch"> <wsdl:input name="getBoldToolBoxSearchRequest" message="impl:getBoldToolBoxSearchRequest"/> <wsdl:output name="getBoldToolBoxSearchResponse" message="impl:getBoldToolBoxSearchResponse"/> </wsdl:operation> <wsdl:operation name="getBoldToolBoxSearch" parameterOrder="in0"> <wsdl:input name="getBoldToolBoxSearchRequest1" message="impl:getBoldToolBoxSearchRequest1"/> <wsdl:output name="getBoldToolBoxSearchResponse1" message="impl:getBoldToolBoxSearchResponse1"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="localhost:31567SoapBinding" type="impl:BoldToolBoxSearch"> <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="getBoldToolBoxSearchAddress"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="getBoldToolBoxSearchAddressRequest"> <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="BoldTBSearch"/> </wsdl:input> <wsdl:output name="getBoldToolBoxSearchAddressResponse"> <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="BoldTBSearch"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="getBoldToolBoxSearch"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="getBoldToolBoxSearchRequest"> <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="BoldTBSearch"/> </wsdl:input> <wsdl:output name="getBoldToolBoxSearchResponse"> <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="BoldTBSearch"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="getBoldToolBoxSearch"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="getBoldToolBoxSearchRequest1"> <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="BoldTBSearch"/> </wsdl:input> <wsdl:output name="getBoldToolBoxSearchResponse1"> <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="BoldTBSearch"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="BoldToolBoxSearchService"> <wsdl:port name="localhost:31567" binding="impl:localhost:31567SoapBinding"> <wsdlsoap:address location="http://localhost:31567"/> </wsdl:port> </wsdl:service> </wsdl:definitions>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
