You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Jo...@genpt.com on 2004/04/20 16:46:14 UTC

SimpleDeserializer encountered a child element

I am having incredible problems trying to call an Axis web service from 
.NET.  I am working with MS support, but it is not going well.  I am now 
using Axis 1.2b.  There seems to be a lot of miscommunication between Axis 

and .NET in terms of interpretting WSDL.  The standard must leave a LOT to 

interpretation.

One of the problems initially is that his proxy generator interprets that 
the ParameterStyle should be bare, but when the web service is called, I 
get an exception.  It looks as though Axis is not getting the operation 
name in the soap envelope and is expecting it.  So, I have now forced 
(hand modified) the .NET proxy to use wrapped parameter style.  But I 
still get the problem below.

Here is what the SOAP trace looks like.

Request:

POST /axis/services/WEJOEI HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client 
Protocol 1.1.4322.573)
Content-Type: text/xml; charset=utf-8
SOAPAction: "urn:WEJOEI:genpt.com/PartInquiry"
Content-Length: 441
Expect: 100-continue
Connection: Keep-Alive
Host: localhost:8082

<?xml version="1.0" encoding="utf-8"?><soap:Envelope 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><partInquiry 
xmlns="urn:WEJOEI:genpt.com"><divNumber>70</divNumber><dcNumber>01</dcNumber><custNumber>994</custNumber><quantity>1</quantity><partId>1515</partId><lineId>FIL</lineId></partInquiry></soap:Body></soap:Envelope>


Response:

HTTP/1.1 100 Continue

HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=utf-8
Transfer-Encoding: chunked
Date: Tue, 20 Apr 2004 14:24:35 GMT
Server: Apache Coyote/1.0
Connection: close

21e
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode>soapenv:Server.userException</faultcode>
   <faultstring>org.xml.sax.SAXException: SimpleDeserializer encountered a 
child element, which is NOT expected, in something it was trying to 
deserialize.</faultstring>
   <detail/>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>
0

And here is the WSDL from axis:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:WEJOEI:genpt.com" 
xmlns:apachesoap="http://xml.apache.org/xml-soap" 
xmlns:impl="urn:WEJOEI:genpt.com" xmlns:intf="urn:WEJOEI:genpt.com" 
xmlns:tns1="urn:types:WEJOEI:genpt.com" 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.2beta
Built on Mar 31, 2004 (12:47:03 EST)-->
 <wsdl:types>
  <schema elementFormDefault="qualified" 
targetNamespace="urn:WEJOEI:genpt.com" xmlns="
http://www.w3.org/2001/XMLSchema">
   <element name="divNumber" type="xsd:string"/>
   <element name="dcNumber" type="xsd:string"/>
   <element name="custNumber" type="xsd:string"/>
   <element name="quantity" type="xsd:int"/>
   <element name="partId" type="xsd:string"/>
   <element name="lineId" type="xsd:string"/>
   <element name="returnData" type="tns1:returnData_t"/>
   <element name="orderDCAbbreviation" type="xsd:string"/>
   <element name="shippingCode" type="xsd:string"/>
   <element name="callbackFlag" type="xsd:string"/>
   <element name="purchaseOrder" type="xsd:string"/>
   <element name="remarks" type="xsd:string"/>
   <element name="typeCode" type="xsd:string"/>
   <element name="password" type="xsd:string"/>
   <element name="tams" type="xsd:string"/>
   <element name="tamsRevision" type="xsd:string"/>
   <element name="inqOrdCode" type="xsd:string"/>
   <element name="optionCode" type="xsd:string"/>
   <element name="orderRemarks" type="xsd:string"/>
  </schema>
  <schema elementFormDefault="qualified" 
targetNamespace="urn:types:WEJOEI:genpt.com" xmlns="
http://www.w3.org/2001/XMLSchema">
   <complexType name="messageData_t">
    <sequence>
     <element name="dcAbbreviation" nillable="true" type="xsd:string"/>
     <element name="messageNumber" nillable="true" type="xsd:string"/>
     <element name="messageText" nillable="true" type="xsd:string"/>
    </sequence>
   </complexType>
   <complexType name="returnData_t">
    <sequence>
     <element name="statusCode" type="xsd:int"/>
     <element maxOccurs="unbounded" name="messageDataCollection" 
nillable="true" type="tns1:messageData_t"/>
    </sequence>
   </complexType>
  </schema>
 </wsdl:types>
 <wsdl:message name="PartOrderMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartOrderResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiRequest">
      <wsdl:part element="impl:typeCode" name="typeCode"/>
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:password" name="password"/>
      <wsdl:part element="impl:tams" name="tams"/>
      <wsdl:part element="impl:tamsRevision" name="tamsRevision"/>
      <wsdl:part element="impl:inqOrdCode" name="inqOrdCode"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:optionCode" name="optionCode"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:orderRemarks" name="orderRemarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartOrderMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartOrderRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:portType name="WEJOEI">
      <wsdl:operation name="partInquiry" parameterOrder="divNumber 
dcNumber custNumber quantity partId lineId">
         <wsdl:input message="impl:PartInquiryRequest" 
name="PartInquiryRequest"/>
         <wsdl:output message="impl:PartInquiryResponse" 
name="PartInquiryResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partInquiryMfg" parameterOrder="divNumber 
dcNumber custNumber partId lineId">
         <wsdl:input message="impl:PartInquiryMfgRequest" 
name="PartInquiryMfgRequest"/>
         <wsdl:output message="impl:PartInquiryMfgResponse" 
name="PartInquiryMfgResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partOrder" parameterOrder="divNumber dcNumber 
custNumber quantity partId lineId orderDCAbbreviation shippingCode 
callbackFlag purchaseOrder remarks">
         <wsdl:input message="impl:PartOrderRequest" 
name="PartOrderRequest"/>
         <wsdl:output message="impl:PartOrderResponse" 
name="PartOrderResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partOrderMfg" parameterOrder="divNumber 
dcNumber custNumber quantity partId lineId orderDCAbbreviation 
shippingCode callbackFlag purchaseOrder remarks">
         <wsdl:input message="impl:PartOrderMfgRequest" 
name="PartOrderMfgRequest"/>
         <wsdl:output message="impl:PartOrderMfgResponse" 
name="PartOrderMfgResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partDownload" parameterOrder="divNumber 
dcNumber custNumber partId lineId">
         <wsdl:input message="impl:PartDownloadRequest" 
name="PartDownloadRequest"/>
         <wsdl:output message="impl:PartDownloadResponse" 
name="PartDownloadResponse"/>
      </wsdl:operation>
      <wsdl:operation name="inqjoei" parameterOrder="typeCode divNumber 
dcNumber custNumber password tams tamsRevision inqOrdCode quantity partId 
lineId optionCode orderDCAbbreviation shippingCode callbackFlag 
purchaseOrder orderRemarks">
         <wsdl:input message="impl:InqjoeiRequest" name="InqjoeiRequest"/>
         <wsdl:output message="impl:InqjoeiResponse" 
name="InqjoeiResponse"/>
      </wsdl:operation>
   </wsdl:portType>
   <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
      <wsdlsoap:binding style="document" transport="
http://schemas.xmlsoap.org/soap/http"/>
      <wsdl:operation name="partInquiry">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartInquiry"/>
         <wsdl:input name="PartInquiryRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartInquiryResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partInquiryMfg">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartInquiryMfg"/>
         <wsdl:input name="PartInquiryMfgRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartInquiryMfgResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partOrder">
         <wsdlsoap:operation soapAction="urn:WEJOEI:genpt.com/PartOrder"/>
         <wsdl:input name="PartOrderRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartOrderResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partOrderMfg">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartOrderMfg"/>
         <wsdl:input name="PartOrderMfgRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartOrderMfgResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partDownload">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartDownload"/>
         <wsdl:input name="PartDownloadRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartDownloadResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="inqjoei">
         <wsdlsoap:operation soapAction="urn:WEJOEI:genpt.com/Inqjoei"/>
         <wsdl:input name="InqjoeiRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="InqjoeiResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
   </wsdl:binding>
   <wsdl:service name="WEJOEI">
      <wsdl:port binding="impl:WEJOEISoapBinding" name="WEJOEI">
         <wsdlsoap:address location="
http://localhost:8080/axis/services/WEJOEI"/>
      </wsdl:port>
   </wsdl:service>
</wsdl:definitions>


RE: SimpleDeserializer encountered a child element

Posted by Anne Thomas Manes <an...@manes.net>.
This WSDL is invalid according to the WS-I Basic Profile. The SOAP and WSDL
specs are under-specified in regards to how to handle multiple parts in
Document/Literal messages, and this was a source of severe interoperability
issues. The WS-I Basic Profile clarifies this and many other points.

When using RPC style, each part represents an argument. When using Document
style, you don't have arguments; you have one message. 

The "Wrapped" style simulates an RPC invocation. You can invoke the service
using separate arguments, and Axis automagically generates the "wrapper" for
you.

Anne

-----Original Message-----
From: Joe_Rattz@genpt.com [mailto:Joe_Rattz@genpt.com] 
Sent: Tuesday, April 20, 2004 10:00 AM
To: axis-user@ws.apache.org
Subject: RE: SimpleDeserializer encountered a child element

Anne, I am really confused by all this terminology.  I thought I was going 
to have to do nothing but provide a valid WSDL and get Axis to generate 
from it.  Are you saying that the WSDL below is invalid?  It is generated 
from a 3rd party tool specifically for creating web services.  Is the WSDL 
invalid, or is it that it is valid, but Axis does not support this?

If I do what you suggest (though I don't see why I should have to if the 
WSDL is valid), that means that each operation will have a single part. 
That then seems to mean that each method on the client proxy will have a 
single argument.  Is this correct?  I don't want it to work that way.  I 
don't want the consumer of the web service to have to create an object and 
populate each member and then call the method with that single object as 
the argument.  I would prefer that the client proxy method have separate 
arguments for each piece of input data.  Will Axis support this?

Thanks.





"Anne Thomas Manes" <an...@manes.net> 
04/20/2004 11:48 AM
Please respond to
axis-user@ws.apache.org


To
<ax...@ws.apache.org>
cc

Subject
RE: SimpleDeserializer encountered a child element






Joe,

When using Document style, your message definition should include only one
<part> definition for your SOAP Body. 

To use "Wrapped" style, you must define a wrapper element in the <types>
section which has the same name as the operation name. This element 
contains
the parameter elements (defined using a <sequence> particle.) You then 
must
reference this element from the one <part> in your <message> definition.

Anne

-----Original Message-----
From: Joe_Rattz@genpt.com [mailto:Joe_Rattz@genpt.com] 
Sent: Tuesday, April 20, 2004 7:46 AM
To: axis-user@ws.apache.org
Cc: Joe_Rattz@genpt.com
Subject: SimpleDeserializer encountered a child element

I am having incredible problems trying to call an Axis web service from 
.NET.  I am working with MS support, but it is not going well.  I am now 
using Axis 1.2b.  There seems to be a lot of miscommunication between Axis 


and .NET in terms of interpretting WSDL.  The standard must leave a LOT to 


interpretation.

One of the problems initially is that his proxy generator interprets that 
the ParameterStyle should be bare, but when the web service is called, I 
get an exception.  It looks as though Axis is not getting the operation 
name in the soap envelope and is expecting it.  So, I have now forced 
(hand modified) the .NET proxy to use wrapped parameter style.  But I 
still get the problem below.

Here is what the SOAP trace looks like.

Request:

POST /axis/services/WEJOEI HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client 
Protocol 1.1.4322.573)
Content-Type: text/xml; charset=utf-8
SOAPAction: "urn:WEJOEI:genpt.com/PartInquiry"
Content-Length: 441
Expect: 100-continue
Connection: Keep-Alive
Host: localhost:8082

<?xml version="1.0" encoding="utf-8"?><soap:Envelope 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><partInquiry 
xmlns="urn:WEJOEI:genpt.com"><divNumber>70</divNumber><dcNumber>01</dcNumber
><custNumber>994</custNumber><quantity>1</quantity><partId>1515</partId><lin
eId>FIL</lineId></partInquiry></soap:Body></soap:Envelope>


Response:

HTTP/1.1 100 Continue

HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=utf-8
Transfer-Encoding: chunked
Date: Tue, 20 Apr 2004 14:24:35 GMT
Server: Apache Coyote/1.0
Connection: close

21e
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode>soapenv:Server.userException</faultcode>
   <faultstring>org.xml.sax.SAXException: SimpleDeserializer encountered a 

child element, which is NOT expected, in something it was trying to 
deserialize.</faultstring>
   <detail/>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>
0

And here is the WSDL from axis:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:WEJOEI:genpt.com" 
xmlns:apachesoap="http://xml.apache.org/xml-soap" 
xmlns:impl="urn:WEJOEI:genpt.com" xmlns:intf="urn:WEJOEI:genpt.com" 
xmlns:tns1="urn:types:WEJOEI:genpt.com" 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.2beta
Built on Mar 31, 2004 (12:47:03 EST)-->
 <wsdl:types>
  <schema elementFormDefault="qualified" 
targetNamespace="urn:WEJOEI:genpt.com" xmlns="
http://www.w3.org/2001/XMLSchema">
   <element name="divNumber" type="xsd:string"/>
   <element name="dcNumber" type="xsd:string"/>
   <element name="custNumber" type="xsd:string"/>
   <element name="quantity" type="xsd:int"/>
   <element name="partId" type="xsd:string"/>
   <element name="lineId" type="xsd:string"/>
   <element name="returnData" type="tns1:returnData_t"/>
   <element name="orderDCAbbreviation" type="xsd:string"/>
   <element name="shippingCode" type="xsd:string"/>
   <element name="callbackFlag" type="xsd:string"/>
   <element name="purchaseOrder" type="xsd:string"/>
   <element name="remarks" type="xsd:string"/>
   <element name="typeCode" type="xsd:string"/>
   <element name="password" type="xsd:string"/>
   <element name="tams" type="xsd:string"/>
   <element name="tamsRevision" type="xsd:string"/>
   <element name="inqOrdCode" type="xsd:string"/>
   <element name="optionCode" type="xsd:string"/>
   <element name="orderRemarks" type="xsd:string"/>
  </schema>
  <schema elementFormDefault="qualified" 
targetNamespace="urn:types:WEJOEI:genpt.com" xmlns="
http://www.w3.org/2001/XMLSchema">
   <complexType name="messageData_t">
    <sequence>
     <element name="dcAbbreviation" nillable="true" type="xsd:string"/>
     <element name="messageNumber" nillable="true" type="xsd:string"/>
     <element name="messageText" nillable="true" type="xsd:string"/>
    </sequence>
   </complexType>
   <complexType name="returnData_t">
    <sequence>
     <element name="statusCode" type="xsd:int"/>
     <element maxOccurs="unbounded" name="messageDataCollection" 
nillable="true" type="tns1:messageData_t"/>
    </sequence>
   </complexType>
  </schema>
 </wsdl:types>
 <wsdl:message name="PartOrderMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartOrderResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiRequest">
      <wsdl:part element="impl:typeCode" name="typeCode"/>
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:password" name="password"/>
      <wsdl:part element="impl:tams" name="tams"/>
      <wsdl:part element="impl:tamsRevision" name="tamsRevision"/>
      <wsdl:part element="impl:inqOrdCode" name="inqOrdCode"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:optionCode" name="optionCode"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:orderRemarks" name="orderRemarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartOrderMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartOrderRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:portType name="WEJOEI">
      <wsdl:operation name="partInquiry" parameterOrder="divNumber 
dcNumber custNumber quantity partId lineId">
         <wsdl:input message="impl:PartInquiryRequest" 
name="PartInquiryRequest"/>
         <wsdl:output message="impl:PartInquiryResponse" 
name="PartInquiryResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partInquiryMfg" parameterOrder="divNumber 
dcNumber custNumber partId lineId">
         <wsdl:input message="impl:PartInquiryMfgRequest" 
name="PartInquiryMfgRequest"/>
         <wsdl:output message="impl:PartInquiryMfgResponse" 
name="PartInquiryMfgResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partOrder" parameterOrder="divNumber dcNumber 
custNumber quantity partId lineId orderDCAbbreviation shippingCode 
callbackFlag purchaseOrder remarks">
         <wsdl:input message="impl:PartOrderRequest" 
name="PartOrderRequest"/>
         <wsdl:output message="impl:PartOrderResponse" 
name="PartOrderResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partOrderMfg" parameterOrder="divNumber 
dcNumber custNumber quantity partId lineId orderDCAbbreviation 
shippingCode callbackFlag purchaseOrder remarks">
         <wsdl:input message="impl:PartOrderMfgRequest" 
name="PartOrderMfgRequest"/>
         <wsdl:output message="impl:PartOrderMfgResponse" 
name="PartOrderMfgResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partDownload" parameterOrder="divNumber 
dcNumber custNumber partId lineId">
         <wsdl:input message="impl:PartDownloadRequest" 
name="PartDownloadRequest"/>
         <wsdl:output message="impl:PartDownloadResponse" 
name="PartDownloadResponse"/>
      </wsdl:operation>
      <wsdl:operation name="inqjoei" parameterOrder="typeCode divNumber 
dcNumber custNumber password tams tamsRevision inqOrdCode quantity partId 
lineId optionCode orderDCAbbreviation shippingCode callbackFlag 
purchaseOrder orderRemarks">
         <wsdl:input message="impl:InqjoeiRequest" name="InqjoeiRequest"/>
         <wsdl:output message="impl:InqjoeiResponse" 
name="InqjoeiResponse"/>
      </wsdl:operation>
   </wsdl:portType>
   <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
      <wsdlsoap:binding style="document" transport="
http://schemas.xmlsoap.org/soap/http"/>
      <wsdl:operation name="partInquiry">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartInquiry"/>
         <wsdl:input name="PartInquiryRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartInquiryResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partInquiryMfg">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartInquiryMfg"/>
         <wsdl:input name="PartInquiryMfgRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartInquiryMfgResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partOrder">
         <wsdlsoap:operation soapAction="urn:WEJOEI:genpt.com/PartOrder"/>
         <wsdl:input name="PartOrderRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartOrderResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partOrderMfg">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartOrderMfg"/>
         <wsdl:input name="PartOrderMfgRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartOrderMfgResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partDownload">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartDownload"/>
         <wsdl:input name="PartDownloadRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartDownloadResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="inqjoei">
         <wsdlsoap:operation soapAction="urn:WEJOEI:genpt.com/Inqjoei"/>
         <wsdl:input name="InqjoeiRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="InqjoeiResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
   </wsdl:binding>
   <wsdl:service name="WEJOEI">
      <wsdl:port binding="impl:WEJOEISoapBinding" name="WEJOEI">
         <wsdlsoap:address location="
http://localhost:8080/axis/services/WEJOEI"/>
      </wsdl:port>
   </wsdl:service>
</wsdl:definitions>




RE: SimpleDeserializer encountered a child element

Posted by Jo...@genpt.com.
Anne, I am really confused by all this terminology.  I thought I was going 
to have to do nothing but provide a valid WSDL and get Axis to generate 
from it.  Are you saying that the WSDL below is invalid?  It is generated 
from a 3rd party tool specifically for creating web services.  Is the WSDL 
invalid, or is it that it is valid, but Axis does not support this?

If I do what you suggest (though I don't see why I should have to if the 
WSDL is valid), that means that each operation will have a single part. 
That then seems to mean that each method on the client proxy will have a 
single argument.  Is this correct?  I don't want it to work that way.  I 
don't want the consumer of the web service to have to create an object and 
populate each member and then call the method with that single object as 
the argument.  I would prefer that the client proxy method have separate 
arguments for each piece of input data.  Will Axis support this?

Thanks.





"Anne Thomas Manes" <an...@manes.net> 
04/20/2004 11:48 AM
Please respond to
axis-user@ws.apache.org


To
<ax...@ws.apache.org>
cc

Subject
RE: SimpleDeserializer encountered a child element






Joe,

When using Document style, your message definition should include only one
<part> definition for your SOAP Body. 

To use "Wrapped" style, you must define a wrapper element in the <types>
section which has the same name as the operation name. This element 
contains
the parameter elements (defined using a <sequence> particle.) You then 
must
reference this element from the one <part> in your <message> definition.

Anne

-----Original Message-----
From: Joe_Rattz@genpt.com [mailto:Joe_Rattz@genpt.com] 
Sent: Tuesday, April 20, 2004 7:46 AM
To: axis-user@ws.apache.org
Cc: Joe_Rattz@genpt.com
Subject: SimpleDeserializer encountered a child element

I am having incredible problems trying to call an Axis web service from 
.NET.  I am working with MS support, but it is not going well.  I am now 
using Axis 1.2b.  There seems to be a lot of miscommunication between Axis 


and .NET in terms of interpretting WSDL.  The standard must leave a LOT to 


interpretation.

One of the problems initially is that his proxy generator interprets that 
the ParameterStyle should be bare, but when the web service is called, I 
get an exception.  It looks as though Axis is not getting the operation 
name in the soap envelope and is expecting it.  So, I have now forced 
(hand modified) the .NET proxy to use wrapped parameter style.  But I 
still get the problem below.

Here is what the SOAP trace looks like.

Request:

POST /axis/services/WEJOEI HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client 
Protocol 1.1.4322.573)
Content-Type: text/xml; charset=utf-8
SOAPAction: "urn:WEJOEI:genpt.com/PartInquiry"
Content-Length: 441
Expect: 100-continue
Connection: Keep-Alive
Host: localhost:8082

<?xml version="1.0" encoding="utf-8"?><soap:Envelope 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><partInquiry 
xmlns="urn:WEJOEI:genpt.com"><divNumber>70</divNumber><dcNumber>01</dcNumber
><custNumber>994</custNumber><quantity>1</quantity><partId>1515</partId><lin
eId>FIL</lineId></partInquiry></soap:Body></soap:Envelope>


Response:

HTTP/1.1 100 Continue

HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=utf-8
Transfer-Encoding: chunked
Date: Tue, 20 Apr 2004 14:24:35 GMT
Server: Apache Coyote/1.0
Connection: close

21e
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode>soapenv:Server.userException</faultcode>
   <faultstring>org.xml.sax.SAXException: SimpleDeserializer encountered a 

child element, which is NOT expected, in something it was trying to 
deserialize.</faultstring>
   <detail/>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>
0

And here is the WSDL from axis:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:WEJOEI:genpt.com" 
xmlns:apachesoap="http://xml.apache.org/xml-soap" 
xmlns:impl="urn:WEJOEI:genpt.com" xmlns:intf="urn:WEJOEI:genpt.com" 
xmlns:tns1="urn:types:WEJOEI:genpt.com" 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.2beta
Built on Mar 31, 2004 (12:47:03 EST)-->
 <wsdl:types>
  <schema elementFormDefault="qualified" 
targetNamespace="urn:WEJOEI:genpt.com" xmlns="
http://www.w3.org/2001/XMLSchema">
   <element name="divNumber" type="xsd:string"/>
   <element name="dcNumber" type="xsd:string"/>
   <element name="custNumber" type="xsd:string"/>
   <element name="quantity" type="xsd:int"/>
   <element name="partId" type="xsd:string"/>
   <element name="lineId" type="xsd:string"/>
   <element name="returnData" type="tns1:returnData_t"/>
   <element name="orderDCAbbreviation" type="xsd:string"/>
   <element name="shippingCode" type="xsd:string"/>
   <element name="callbackFlag" type="xsd:string"/>
   <element name="purchaseOrder" type="xsd:string"/>
   <element name="remarks" type="xsd:string"/>
   <element name="typeCode" type="xsd:string"/>
   <element name="password" type="xsd:string"/>
   <element name="tams" type="xsd:string"/>
   <element name="tamsRevision" type="xsd:string"/>
   <element name="inqOrdCode" type="xsd:string"/>
   <element name="optionCode" type="xsd:string"/>
   <element name="orderRemarks" type="xsd:string"/>
  </schema>
  <schema elementFormDefault="qualified" 
targetNamespace="urn:types:WEJOEI:genpt.com" xmlns="
http://www.w3.org/2001/XMLSchema">
   <complexType name="messageData_t">
    <sequence>
     <element name="dcAbbreviation" nillable="true" type="xsd:string"/>
     <element name="messageNumber" nillable="true" type="xsd:string"/>
     <element name="messageText" nillable="true" type="xsd:string"/>
    </sequence>
   </complexType>
   <complexType name="returnData_t">
    <sequence>
     <element name="statusCode" type="xsd:int"/>
     <element maxOccurs="unbounded" name="messageDataCollection" 
nillable="true" type="tns1:messageData_t"/>
    </sequence>
   </complexType>
  </schema>
 </wsdl:types>
 <wsdl:message name="PartOrderMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartOrderResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiRequest">
      <wsdl:part element="impl:typeCode" name="typeCode"/>
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:password" name="password"/>
      <wsdl:part element="impl:tams" name="tams"/>
      <wsdl:part element="impl:tamsRevision" name="tamsRevision"/>
      <wsdl:part element="impl:inqOrdCode" name="inqOrdCode"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:optionCode" name="optionCode"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:orderRemarks" name="orderRemarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartOrderMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartOrderRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:portType name="WEJOEI">
      <wsdl:operation name="partInquiry" parameterOrder="divNumber 
dcNumber custNumber quantity partId lineId">
         <wsdl:input message="impl:PartInquiryRequest" 
name="PartInquiryRequest"/>
         <wsdl:output message="impl:PartInquiryResponse" 
name="PartInquiryResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partInquiryMfg" parameterOrder="divNumber 
dcNumber custNumber partId lineId">
         <wsdl:input message="impl:PartInquiryMfgRequest" 
name="PartInquiryMfgRequest"/>
         <wsdl:output message="impl:PartInquiryMfgResponse" 
name="PartInquiryMfgResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partOrder" parameterOrder="divNumber dcNumber 
custNumber quantity partId lineId orderDCAbbreviation shippingCode 
callbackFlag purchaseOrder remarks">
         <wsdl:input message="impl:PartOrderRequest" 
name="PartOrderRequest"/>
         <wsdl:output message="impl:PartOrderResponse" 
name="PartOrderResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partOrderMfg" parameterOrder="divNumber 
dcNumber custNumber quantity partId lineId orderDCAbbreviation 
shippingCode callbackFlag purchaseOrder remarks">
         <wsdl:input message="impl:PartOrderMfgRequest" 
name="PartOrderMfgRequest"/>
         <wsdl:output message="impl:PartOrderMfgResponse" 
name="PartOrderMfgResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partDownload" parameterOrder="divNumber 
dcNumber custNumber partId lineId">
         <wsdl:input message="impl:PartDownloadRequest" 
name="PartDownloadRequest"/>
         <wsdl:output message="impl:PartDownloadResponse" 
name="PartDownloadResponse"/>
      </wsdl:operation>
      <wsdl:operation name="inqjoei" parameterOrder="typeCode divNumber 
dcNumber custNumber password tams tamsRevision inqOrdCode quantity partId 
lineId optionCode orderDCAbbreviation shippingCode callbackFlag 
purchaseOrder orderRemarks">
         <wsdl:input message="impl:InqjoeiRequest" name="InqjoeiRequest"/>
         <wsdl:output message="impl:InqjoeiResponse" 
name="InqjoeiResponse"/>
      </wsdl:operation>
   </wsdl:portType>
   <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
      <wsdlsoap:binding style="document" transport="
http://schemas.xmlsoap.org/soap/http"/>
      <wsdl:operation name="partInquiry">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartInquiry"/>
         <wsdl:input name="PartInquiryRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartInquiryResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partInquiryMfg">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartInquiryMfg"/>
         <wsdl:input name="PartInquiryMfgRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartInquiryMfgResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partOrder">
         <wsdlsoap:operation soapAction="urn:WEJOEI:genpt.com/PartOrder"/>
         <wsdl:input name="PartOrderRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartOrderResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partOrderMfg">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartOrderMfg"/>
         <wsdl:input name="PartOrderMfgRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartOrderMfgResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partDownload">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartDownload"/>
         <wsdl:input name="PartDownloadRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartDownloadResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="inqjoei">
         <wsdlsoap:operation soapAction="urn:WEJOEI:genpt.com/Inqjoei"/>
         <wsdl:input name="InqjoeiRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="InqjoeiResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
   </wsdl:binding>
   <wsdl:service name="WEJOEI">
      <wsdl:port binding="impl:WEJOEISoapBinding" name="WEJOEI">
         <wsdlsoap:address location="
http://localhost:8080/axis/services/WEJOEI"/>
      </wsdl:port>
   </wsdl:service>
</wsdl:definitions>




RE: SimpleDeserializer encountered a child element

Posted by Anne Thomas Manes <an...@manes.net>.
Joe,

When using Document style, your message definition should include only one
<part> definition for your SOAP Body. 

To use "Wrapped" style, you must define a wrapper element in the <types>
section which has the same name as the operation name. This element contains
the parameter elements (defined using a <sequence> particle.) You then must
reference this element from the one <part> in your <message> definition.

Anne

-----Original Message-----
From: Joe_Rattz@genpt.com [mailto:Joe_Rattz@genpt.com] 
Sent: Tuesday, April 20, 2004 7:46 AM
To: axis-user@ws.apache.org
Cc: Joe_Rattz@genpt.com
Subject: SimpleDeserializer encountered a child element

I am having incredible problems trying to call an Axis web service from 
.NET.  I am working with MS support, but it is not going well.  I am now 
using Axis 1.2b.  There seems to be a lot of miscommunication between Axis 

and .NET in terms of interpretting WSDL.  The standard must leave a LOT to 

interpretation.

One of the problems initially is that his proxy generator interprets that 
the ParameterStyle should be bare, but when the web service is called, I 
get an exception.  It looks as though Axis is not getting the operation 
name in the soap envelope and is expecting it.  So, I have now forced 
(hand modified) the .NET proxy to use wrapped parameter style.  But I 
still get the problem below.

Here is what the SOAP trace looks like.

Request:

POST /axis/services/WEJOEI HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client 
Protocol 1.1.4322.573)
Content-Type: text/xml; charset=utf-8
SOAPAction: "urn:WEJOEI:genpt.com/PartInquiry"
Content-Length: 441
Expect: 100-continue
Connection: Keep-Alive
Host: localhost:8082

<?xml version="1.0" encoding="utf-8"?><soap:Envelope 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><partInquiry 
xmlns="urn:WEJOEI:genpt.com"><divNumber>70</divNumber><dcNumber>01</dcNumber
><custNumber>994</custNumber><quantity>1</quantity><partId>1515</partId><lin
eId>FIL</lineId></partInquiry></soap:Body></soap:Envelope>


Response:

HTTP/1.1 100 Continue

HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=utf-8
Transfer-Encoding: chunked
Date: Tue, 20 Apr 2004 14:24:35 GMT
Server: Apache Coyote/1.0
Connection: close

21e
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode>soapenv:Server.userException</faultcode>
   <faultstring>org.xml.sax.SAXException: SimpleDeserializer encountered a 
child element, which is NOT expected, in something it was trying to 
deserialize.</faultstring>
   <detail/>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>
0

And here is the WSDL from axis:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:WEJOEI:genpt.com" 
xmlns:apachesoap="http://xml.apache.org/xml-soap" 
xmlns:impl="urn:WEJOEI:genpt.com" xmlns:intf="urn:WEJOEI:genpt.com" 
xmlns:tns1="urn:types:WEJOEI:genpt.com" 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.2beta
Built on Mar 31, 2004 (12:47:03 EST)-->
 <wsdl:types>
  <schema elementFormDefault="qualified" 
targetNamespace="urn:WEJOEI:genpt.com" xmlns="
http://www.w3.org/2001/XMLSchema">
   <element name="divNumber" type="xsd:string"/>
   <element name="dcNumber" type="xsd:string"/>
   <element name="custNumber" type="xsd:string"/>
   <element name="quantity" type="xsd:int"/>
   <element name="partId" type="xsd:string"/>
   <element name="lineId" type="xsd:string"/>
   <element name="returnData" type="tns1:returnData_t"/>
   <element name="orderDCAbbreviation" type="xsd:string"/>
   <element name="shippingCode" type="xsd:string"/>
   <element name="callbackFlag" type="xsd:string"/>
   <element name="purchaseOrder" type="xsd:string"/>
   <element name="remarks" type="xsd:string"/>
   <element name="typeCode" type="xsd:string"/>
   <element name="password" type="xsd:string"/>
   <element name="tams" type="xsd:string"/>
   <element name="tamsRevision" type="xsd:string"/>
   <element name="inqOrdCode" type="xsd:string"/>
   <element name="optionCode" type="xsd:string"/>
   <element name="orderRemarks" type="xsd:string"/>
  </schema>
  <schema elementFormDefault="qualified" 
targetNamespace="urn:types:WEJOEI:genpt.com" xmlns="
http://www.w3.org/2001/XMLSchema">
   <complexType name="messageData_t">
    <sequence>
     <element name="dcAbbreviation" nillable="true" type="xsd:string"/>
     <element name="messageNumber" nillable="true" type="xsd:string"/>
     <element name="messageText" nillable="true" type="xsd:string"/>
    </sequence>
   </complexType>
   <complexType name="returnData_t">
    <sequence>
     <element name="statusCode" type="xsd:int"/>
     <element maxOccurs="unbounded" name="messageDataCollection" 
nillable="true" type="tns1:messageData_t"/>
    </sequence>
   </complexType>
  </schema>
 </wsdl:types>
 <wsdl:message name="PartOrderMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartOrderResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiRequest">
      <wsdl:part element="impl:typeCode" name="typeCode"/>
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:password" name="password"/>
      <wsdl:part element="impl:tams" name="tams"/>
      <wsdl:part element="impl:tamsRevision" name="tamsRevision"/>
      <wsdl:part element="impl:inqOrdCode" name="inqOrdCode"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:optionCode" name="optionCode"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:orderRemarks" name="orderRemarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartOrderMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartOrderRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:portType name="WEJOEI">
      <wsdl:operation name="partInquiry" parameterOrder="divNumber 
dcNumber custNumber quantity partId lineId">
         <wsdl:input message="impl:PartInquiryRequest" 
name="PartInquiryRequest"/>
         <wsdl:output message="impl:PartInquiryResponse" 
name="PartInquiryResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partInquiryMfg" parameterOrder="divNumber 
dcNumber custNumber partId lineId">
         <wsdl:input message="impl:PartInquiryMfgRequest" 
name="PartInquiryMfgRequest"/>
         <wsdl:output message="impl:PartInquiryMfgResponse" 
name="PartInquiryMfgResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partOrder" parameterOrder="divNumber dcNumber 
custNumber quantity partId lineId orderDCAbbreviation shippingCode 
callbackFlag purchaseOrder remarks">
         <wsdl:input message="impl:PartOrderRequest" 
name="PartOrderRequest"/>
         <wsdl:output message="impl:PartOrderResponse" 
name="PartOrderResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partOrderMfg" parameterOrder="divNumber 
dcNumber custNumber quantity partId lineId orderDCAbbreviation 
shippingCode callbackFlag purchaseOrder remarks">
         <wsdl:input message="impl:PartOrderMfgRequest" 
name="PartOrderMfgRequest"/>
         <wsdl:output message="impl:PartOrderMfgResponse" 
name="PartOrderMfgResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partDownload" parameterOrder="divNumber 
dcNumber custNumber partId lineId">
         <wsdl:input message="impl:PartDownloadRequest" 
name="PartDownloadRequest"/>
         <wsdl:output message="impl:PartDownloadResponse" 
name="PartDownloadResponse"/>
      </wsdl:operation>
      <wsdl:operation name="inqjoei" parameterOrder="typeCode divNumber 
dcNumber custNumber password tams tamsRevision inqOrdCode quantity partId 
lineId optionCode orderDCAbbreviation shippingCode callbackFlag 
purchaseOrder orderRemarks">
         <wsdl:input message="impl:InqjoeiRequest" name="InqjoeiRequest"/>
         <wsdl:output message="impl:InqjoeiResponse" 
name="InqjoeiResponse"/>
      </wsdl:operation>
   </wsdl:portType>
   <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
      <wsdlsoap:binding style="document" transport="
http://schemas.xmlsoap.org/soap/http"/>
      <wsdl:operation name="partInquiry">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartInquiry"/>
         <wsdl:input name="PartInquiryRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartInquiryResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partInquiryMfg">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartInquiryMfg"/>
         <wsdl:input name="PartInquiryMfgRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartInquiryMfgResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partOrder">
         <wsdlsoap:operation soapAction="urn:WEJOEI:genpt.com/PartOrder"/>
         <wsdl:input name="PartOrderRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartOrderResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partOrderMfg">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartOrderMfg"/>
         <wsdl:input name="PartOrderMfgRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartOrderMfgResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partDownload">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartDownload"/>
         <wsdl:input name="PartDownloadRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartDownloadResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="inqjoei">
         <wsdlsoap:operation soapAction="urn:WEJOEI:genpt.com/Inqjoei"/>
         <wsdl:input name="InqjoeiRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="InqjoeiResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
   </wsdl:binding>
   <wsdl:service name="WEJOEI">
      <wsdl:port binding="impl:WEJOEISoapBinding" name="WEJOEI">
         <wsdlsoap:address location="
http://localhost:8080/axis/services/WEJOEI"/>
      </wsdl:port>
   </wsdl:service>
</wsdl:definitions>


RE: SimpleDeserializer encountered a child element

Posted by Jo...@genpt.com.
Anne, I also notice the following when I generate with the WSDL you 
provided.  In the SoapBindingSkelaton.java generated source module, there 
is the following:

        _params = new org.apache.axis.description.ParameterDesc [] {
            new org.apache.axis.description.ParameterDesc(new 
javax.xml.namespace.QName("urn:types:WEJOEI:genpt.com", 
"partInquiry_t>divNumber"), org.apache.axis.description.ParameterDesc.IN, 
new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", 
"string"), java.lang.String.class, false, false), 
            new org.apache.axis.description.ParameterDesc(new 
javax.xml.namespace.QName("urn:types:WEJOEI:genpt.com", 
"partInquiry_t>dcNumber"), org.apache.axis.description.ParameterDesc.IN, 
new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", 
"string"), java.lang.String.class, false, false), 
            new org.apache.axis.description.ParameterDesc(new 
javax.xml.namespace.QName("urn:types:WEJOEI:genpt.com", 
"partInquiry_t>custNumber"), org.apache.axis.description.ParameterDesc.IN, 
new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", 
"string"), java.lang.String.class, false, false), 
            new org.apache.axis.description.ParameterDesc(new 
javax.xml.namespace.QName("urn:types:WEJOEI:genpt.com", 
"partInquiry_t>quantity"), org.apache.axis.description.ParameterDesc.IN, 
new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", 
"string"), java.lang.String.class, false, false), 
            new org.apache.axis.description.ParameterDesc(new 
javax.xml.namespace.QName("urn:types:WEJOEI:genpt.com", 
"partInquiry_t>partId"), org.apache.axis.description.ParameterDesc.IN, new 
javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), 
java.lang.String.class, false, false), 
            new org.apache.axis.description.ParameterDesc(new 
javax.xml.namespace.QName("urn:types:WEJOEI:genpt.com", 
"partInquiry_t>lineId"), org.apache.axis.description.ParameterDesc.IN, new 
javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), 
java.lang.String.class, false, false), 
        };

Notice that each of the parameters has the "partInquiry_t>" text prepended 
to it.  This looks like a bug in WSDL2Java wouldn't you think?  Just in 
case, here is how I am invoiking WSDL2Java:

java -cp %AXISCLASSPATH% org.apache.axis.wsdl.WSDL2Java --server-side 
--skeletonDeploy true WEJOEI.wsdl

Does that look ok?

Thanks.




Joe_Rattz@genpt.com 
04/21/2004 01:06 PM
Please respond to
axis-user@ws.apache.org


To
axis-user@ws.apache.org
cc
sulabhs@microsoft.com
Subject
RE: SimpleDeserializer encountered a child element






Anne, when I run wsdl2java on the WSDL you gave me below, build the web 
service from it, deploy it, and then go to URL?wsdl, I get the wsdl below. 

 Notice that the elements in the partInquiry have "partInquiry_t&gt;;" 
prepended onto the name of the element, for example:

                        <element name="partInquiry_t&gt;divNumber" 
type="xsd:string" />

I am using Axis1.2beta.  This looks like a bug to me.  What do you think? 
Did you try generating and deploying a web service with it?  I ask because 

it is possible that there is something corrupted in my development 
environment at this point.  I have switched back and forth from Axis1.1, 
1.2a, and 1.2b several times now, not to mention that drastic changes to 
the WSDL I have made and tested, I am even doubting the integrity of my 
own environment.

Also, trying to create a doc/literal web service with a method similar to 
what you see here, do you think Axis1.1 would work properly for it?  I ask 

because I have read that 1.1 lacked some support for doc/literal web 
services.  But, I wonder if there is enough support for what I am trying 
to do?

Thanks.

Below is the url?wsdl from Axis:

<?xml version="1.0" encoding="UTF-8" ?>
<wsdl:definitions targetNamespace="urn:WEJOEI:genpt.com" 
xmlns:apachesoap="http://xml.apache.org/xml-soap"
    xmlns:impl="urn:WEJOEI:genpt.com" xmlns:intf="urn:WEJOEI:genpt.com" 
xmlns:tns1="urn:types:WEJOEI:genpt.com"
    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.2beta
Built on Mar 31, 2004 (12:47:03 EST)-->
    <wsdl:types>
        <schema elementFormDefault="qualified" 
targetNamespace="urn:types:WEJOEI:genpt.com" 
xmlns="http://www.w3.org/2001/XMLSchema">
            <element name="partInquiry">
                <complexType>
                    <sequence>
                        <element name="partInquiry_t&gt;divNumber" 
type="xsd:string" />
                        <element name="partInquiry_t&gt;dcNumber" 
type="xsd:string" />
                        <element name="partInquiry_t&gt;custNumber" 
type="xsd:string" />
                        <element name="partInquiry_t&gt;quantity" 
type="xsd:string" />
                        <element name="partInquiry_t&gt;partId" 
type="xsd:string" />
                        <element name="partInquiry_t&gt;lineId" 
type="xsd:string" />
                    </sequence>
                </complexType>
            </element>
            <element name="partInquiryResponse">
                <complexType>
                    <sequence>
                        <element name="partInquiryResult" 
type="tns1:returnData_t" />
                    </sequence>
                </complexType>
            </element>
            <complexType name="messageData_t">
                <sequence>
                    <element maxOccurs="1" minOccurs="0" 
name="dcAbbreviation" nillable="true" type="xsd:string" />
                    <element maxOccurs="1" minOccurs="0" 
name="messageNumber" nillable="true" type="xsd:string" />
                    <element maxOccurs="1" minOccurs="0" 
name="messageText" nillable="true" type="xsd:string" />
                </sequence>
            </complexType>
            <complexType name="returnData_t">
                <sequence>
                    <element name="statusCode" type="xsd:int" />
                    <element maxOccurs="unbounded" 
name="messageDataCollection" nillable="true" type="tns1:messageData_t" />
                </sequence>
            </complexType>
        </schema>
    </wsdl:types>
    <wsdl:message name="partInquiryRequest">
        <wsdl:part element="tns1:partInquiry" name="parameters" />
    </wsdl:message>
    <wsdl:message name="partInquiryResponse">
        <wsdl:part element="tns1:partInquiryResponse" name="parameters" />
    </wsdl:message>
    <wsdl:portType name="WEJOEI">
        <wsdl:operation name="partInquiry" parameterOrder="">
            <wsdl:input message="impl:partInquiryRequest" 
name="partInquiryRequest" />
            <wsdl:output message="impl:partInquiryResponse" 
name="partInquiryResponse" />
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
        <wsdlsoap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http" />
        <wsdl:operation name="partInquiry">
            <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartInquiry" />
            <wsdl:input name="partInquiryRequest">
                <wsdlsoap:body namespace="urn:types:WEJOEI:genpt.com" 
use="literal" />
            </wsdl:input>
            <wsdl:output name="partInquiryResponse">
                <wsdlsoap:body namespace="urn:types:WEJOEI:genpt.com" 
use="literal" />
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="WEJOEI">
        <wsdl:port binding="impl:WEJOEISoapBinding" name="WEJOEI">
            <wsdlsoap:address 
location="http://localhost:8080/axis/services/WEJOEI" />
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>





"Anne Thomas Manes" <an...@manes.net> 
04/20/2004 07:19 PM
Please respond to
axis-user@ws.apache.org


To
<ax...@ws.apache.org>
cc
<su...@microsoft.com>
Subject
RE: SimpleDeserializer encountered a child element






It is fine to use name="parameters" for the message part definition. (I
think this is a required convention for the .NET "wrapped" style; the name
of the element is not significant in Axis.)

At this point you're defining a number of elements twice, which might be
what's causing your problem. Also you still have a namespace attribute
specified in the <binding>. That has to go. Try this. Notice that I've
removed extraneous namespace declarations and gotten rid of the second
schema:

<?xml version="1.0" encoding="UTF-8" ?>
<wsdl:definitions 
  targetNamespace="urn:WEJOEI:genpt.com" 
  xmlns:impl="urn:WEJOEI:genpt.com" 
  xmlns:intf="urn:WEJOEI:genpt.com"
  xmlns:tns1="urn:types:WEJOEI:genpt.com"
  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
  xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <wsdl:types>
    <schema 
      targetNamespace="urn:types:WEJOEI:genpt.com" 
      xmlns="http://www.w3.org/2001/XMLSchema"
      elementFormDefault="qualified">
      <complexType name="messageData_t">
         <sequence>
            <element minOccurs="0" maxOccurs="1" 
               name="dcAbbreviation" 
               nillable="true" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="messageNumber" 
               nillable="true" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="messageText" 
               nillable="true" type="xsd:string" />
         </sequence>
      </complexType>
      <complexType name="returnData_t">
         <sequence>
            <element name="statusCode" type="xsd:int" />
            <element maxOccurs="unbounded" 
               name="messageDataCollection" nillable="true" 
               type="tns1:messageData_t" />
         </sequence>
      </complexType>
      <element name="partInquiry" type="tns1:partInquiry_t" />
      <complexType name="partInquiry_t">
         <sequence>
            <element minOccurs="0" maxOccurs="1" 
               name="divNumber" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="dcNumber" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="custNumber" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="quantity" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="partId" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="lineId" type="xsd:string" />
         </sequence>
      </complexType>
      <xsd:element name="partInquiryResponse" 
         type="tns1:partInquiryResponse_t" />
      <xsd:complexType name="partInquiryResponse_t">
         <xsd:sequence>
            <xsd:element minOccurs="0" maxOccurs="1" 
              name="partInquiryResult" type="tns1:returnData_t" />
         </xsd:sequence>
      </xsd:complexType>
    </schema>
  </wsdl:types>
  <wsdl:message name="partInquiryRequest">
    <wsdl:part element="tns1:partInquiry" name="parameters" />
  </wsdl:message>
  <wsdl:message name="partInquiryResponse">
    <wsdl:part element="tns1:partInquiryResponse" name="parameters" />
  </wsdl:message>
  <wsdl:portType name="WEJOEI">
    <wsdl:operation name="partInquiry">
      <wsdl:input message="impl:partInquiryRequest" 
          name="partInquiryRequest" />
      <wsdl:output message="impl:partInquiryResponse" 
          name="partInquiryResponse" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
    <wsdlsoap:binding style="document" 
       transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="partInquiry">
       <wsdlsoap:operation 
          soapAction="urn:WEJOEI:genpt.com/PartInquiry" />
       <wsdl:input name="partInquiryRequest">
          <wsdlsoap:body use="literal" />
       </wsdl:input>
       <wsdl:output name="partInquiryResponse">
          <wsdlsoap:body use="literal" />
       </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="WEJOEI">
    <wsdl:port binding="impl:WEJOEISoapBinding" name="WEJOEI">
       <wsdlsoap:address 
          location="http://localhost:8080/axis/services/WEJOEI" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>

-----Original Message-----
From: Joe_Rattz@genpt.com [mailto:Joe_Rattz@genpt.com] 
Sent: Tuesday, April 20, 2004 1:29 PM
To: axis-user@ws.apache.org
Cc: sulabhs@microsoft.com
Subject: RE: SimpleDeserializer encountered a child element

Ok, this is complicated.  It is more complicated than it looks because the 


MS support guy is telling me similar but different things.

I am including him on this message.  Perhaps with you and him able to swap 


info, this will be easier?

Here is the WSDL he and I are working with:

<?xml version="1.0" encoding="UTF-8" ?>
<wsdl:definitions targetNamespace="urn:WEJOEI:genpt.com" 
xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:apachesoap="http://xml.apache.org/xml-soap" 
xmlns:impl="urn:WEJOEI:genpt.com" xmlns:intf="urn:WEJOEI:genpt.com"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:tns1="urn:types:WEJOEI:genpt.com"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <wsdl:types>
        <schema targetNamespace="urn:types:WEJOEI:genpt.com" 
xmlns="http://www.w3.org/2001/XMLSchema"
            elementFormDefault="qualified">
            <complexType name="messageData_t">
                <sequence>
                    <element minOccurs="0" maxOccurs="1" 
name="dcAbbreviation" nillable="true" type="xsd:string" />
                    <element minOccurs="0" maxOccurs="1" 
name="messageNumber" nillable="true" type="xsd:string" />
                    <element minOccurs="0" maxOccurs="1" 
name="messageText" nillable="true" type="xsd:string" />
                </sequence>
            </complexType>
            <complexType name="returnData_t">
                <sequence>
                    <element name="statusCode" type="xsd:int" />
                    <element maxOccurs="unbounded" 
name="messageDataCollection" nillable="true" type="tns1:messageData_t" />
                </sequence>
            </complexType>
            <element name="partInquiry">
                <complexType>
                    <sequence>
                        <element minOccurs="0" maxOccurs="1" 
name="divNumber" type="xsd:string" />
                        <element minOccurs="0" maxOccurs="1" 
name="dcNumber" type="xsd:string" />
                        <element minOccurs="0" maxOccurs="1" 
name="custNumber" type="xsd:string" />
                        <element minOccurs="0" maxOccurs="1" 
name="quantity" type="xsd:string" />
                        <element minOccurs="0" maxOccurs="1" name="partId" 


type="xsd:string" />
                        <element minOccurs="0" maxOccurs="1" name="lineId" 


type="xsd:string" />
                    </sequence>
                </complexType>
            </element>
            <xsd:element name="partInquiryResponse">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element minOccurs="0" maxOccurs="1" 
name="partInquiryResult" type="tns1:returnData_t" />
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
        </schema>
        <schema targetNamespace="urn:WEJOEI:genpt.com" 
xmlns="http://www.w3.org/2001/XMLSchema"
            elementFormDefault="qualified">
            <element name="divNumber" type="xsd:string" />
            <element name="dcNumber" type="xsd:string" />
            <element name="custNumber" type="xsd:string" />
            <element name="quantity" type="xsd:int" />
            <element name="partId" type="xsd:string" />
            <element name="lineId" type="xsd:string" />
            <element name="returnData" type="tns1:returnData_t" />
            <element name="orderDCAbbreviation" type="xsd:string" />
            <element name="shippingCode" type="xsd:string" />
            <element name="callbackFlag" type="xsd:string" />
            <element name="purchaseOrder" type="xsd:string" />
            <element name="remarks" type="xsd:string" />
            <element name="typeCode" type="xsd:string" />
            <element name="password" type="xsd:string" />
            <element name="tams" type="xsd:string" />
            <element name="tamsRevision" type="xsd:string" />
            <element name="inqOrdCode" type="xsd:string" />
            <element name="optionCode" type="xsd:string" />
            <element name="orderRemarks" type="xsd:string" />
        </schema>
    </wsdl:types>
    <wsdl:message name="partInquiryRequest">
        <wsdl:part element="tns1:partInquiry" name="parameters" />
    </wsdl:message>
    <wsdl:message name="partInquiryResponse">
        <wsdl:part element="tns1:partInquiryResponse" name="parameters" />
    </wsdl:message>
    <wsdl:portType name="WEJOEI">
        <wsdl:operation name="partInquiry">
            <wsdl:input message="impl:partInquiryRequest" 
name="partInquiryRequest" />
            <wsdl:output message="impl:partInquiryResponse" 
name="partInquiryResponse" />
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
        <wsdlsoap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http" />
        <wsdl:operation name="partInquiry">
            <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartInquiry" />
            <wsdl:input name="partInquiryRequest">
                <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal" />
            </wsdl:input>
            <wsdl:output name="partInquiryResponse">
                <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal" />
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="WEJOEI">
        <wsdl:port binding="impl:WEJOEISoapBinding" name="WEJOEI">
            <wsdlsoap:address 
location="http://localhost:8080/axis/services/WEJOEI" />
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>


Anne, this is similar to what you are telling me to do.  But, notice that 
you told me to set the name attribute of the part of the message to 
"input", whereas he wants it to be "parameters".  What is the difference? 
Will "parameters" work?

Also, when I generate the Axis web service from this, and go to the WSDL 
URL (?wsdl), I get bad output WSDL that looks like:

<element name="&gt;partInquiry&gt;divNumber" type="xsd:string"/>

instead of:

<element name="divNumber" type="xsd:string"/>


I am using Axis1.2beta.


Thanks.




"Anne Thomas Manes" <an...@manes.net> 
04/20/2004 03:48 PM
Please respond to
axis-user@ws.apache.org


To
<ax...@ws.apache.org>
cc

Subject
RE: SimpleDeserializer encountered a child element






Sorry -- I didn't have time to complete my earlier email.
Here's an example of what your WSDL should look like.

Focusing on your first operation, partInquiry:

You need to define an element named "partInquiry". I suggest modifying 
your
first schema definition as follows:

<wsdl:types>
  <schema elementFormDefault="qualified" 
    targetNamespace="urn:WEJOEI:genpt.com" 
    xmlns="http://www.w3.org/2001/XMLSchema">
<element name="partInquiry>
 <complexType name="partInquiry_t"
  <sequence>
   <element name="divNumber" type="xsd:string"/>
   <element name="dcNumber" type="xsd:string"/>
   <element name="custNumber" type="xsd:string"/>
   <element name="quantity" type="xsd:int"/>
   <element name="partId" type="xsd:string"/>
   <element name="lineId" type="xsd:string"/>
  </sequence>
 </complexType>
</element>
...
  </schema>
...
</wsdl:types>

You must modify the "PartInquiryRequest" message definition:

   <wsdl:message name="PartInquiryRequest">
      <wsdl:part element="impl:partInquiry" name="input"/>
   </wsdl:message>

You should remove the parameterOrder attributes from your <portType>
definitions:

   <wsdl:portType name="WEJOEI">
      <wsdl:operation name="partInquiry">
         <wsdl:input message="impl:PartInquiryRequest" 
           name="partInquiryRequest"/>
         <wsdl:output message="impl:PartInquiryResponse" 
           name="partInquiryResponse"/>
      </wsdl:operation>
...
   </wsdl:portType>

You must also remove the namespace attribute from your <binding>
definitions:

   <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
      <wsdlsoap:binding style="document" 
        transport="http://schemas.xmlsoap.org/soap/http"/>
      <wsdl:operation name="partInquiry">
         <wsdlsoap:operation 
            soapAction="urn:WEJOEI:genpt.com/PartInquiry"/>
         <wsdl:input name="partInquiryRequest">
            <wsdlsoap:body use="literal"/>
         </wsdl:input>
         <wsdl:output name="partInquiryResponse">
            <wsdlsoap:body use="literal"/>
         </wsdl:output>
      </wsdl:operation>
...
   </wsdl:binding>

Regards,
Anne

-----Original Message-----
From: Joe_Rattz@genpt.com [mailto:Joe_Rattz@genpt.com] 
Sent: Tuesday, April 20, 2004 7:46 AM
To: axis-user@ws.apache.org
Cc: Joe_Rattz@genpt.com
Subject: SimpleDeserializer encountered a child element

I am having incredible problems trying to call an Axis web service from 
.NET.  I am working with MS support, but it is not going well.  I am now 
using Axis 1.2b.  There seems to be a lot of miscommunication between Axis 




and .NET in terms of interpretting WSDL.  The standard must leave a LOT to 




interpretation.

One of the problems initially is that his proxy generator interprets that 
the ParameterStyle should be bare, but when the web service is called, I 
get an exception.  It looks as though Axis is not getting the operation 
name in the soap envelope and is expecting it.  So, I have now forced 
(hand modified) the .NET proxy to use wrapped parameter style.  But I 
still get the problem below.

Here is what the SOAP trace looks like.

Request:

POST /axis/services/WEJOEI HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client 
Protocol 1.1.4322.573)
Content-Type: text/xml; charset=utf-8
SOAPAction: "urn:WEJOEI:genpt.com/PartInquiry"
Content-Length: 441
Expect: 100-continue
Connection: Keep-Alive
Host: localhost:8082

<?xml version="1.0" encoding="utf-8"?><soap:Envelope 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><partInquiry 
xmlns="urn:WEJOEI:genpt.com"><divNumber>70</divNumber><dcNumber>01</dcNumber
><custNumber>994</custNumber><quantity>1</quantity><partId>1515</partId><lin
eId>FIL</lineId></partInquiry></soap:Body></soap:Envelope>


Response:

HTTP/1.1 100 Continue

HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=utf-8
Transfer-Encoding: chunked
Date: Tue, 20 Apr 2004 14:24:35 GMT
Server: Apache Coyote/1.0
Connection: close

21e
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode>soapenv:Server.userException</faultcode>
   <faultstring>org.xml.sax.SAXException: SimpleDeserializer encountered a 



child element, which is NOT expected, in something it was trying to 
deserialize.</faultstring>
   <detail/>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>
0

And here is the WSDL from axis:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:WEJOEI:genpt.com" 
xmlns:apachesoap="http://xml.apache.org/xml-soap" 
xmlns:impl="urn:WEJOEI:genpt.com" xmlns:intf="urn:WEJOEI:genpt.com" 
xmlns:tns1="urn:types:WEJOEI:genpt.com" 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.2beta
Built on Mar 31, 2004 (12:47:03 EST)-->
 <wsdl:types>
  <schema elementFormDefault="qualified" 
targetNamespace="urn:WEJOEI:genpt.com" xmlns="
http://www.w3.org/2001/XMLSchema">
   <element name="divNumber" type="xsd:string"/>
   <element name="dcNumber" type="xsd:string"/>
   <element name="custNumber" type="xsd:string"/>
   <element name="quantity" type="xsd:int"/>
   <element name="partId" type="xsd:string"/>
   <element name="lineId" type="xsd:string"/>
   <element name="returnData" type="tns1:returnData_t"/>
   <element name="orderDCAbbreviation" type="xsd:string"/>
   <element name="shippingCode" type="xsd:string"/>
   <element name="callbackFlag" type="xsd:string"/>
   <element name="purchaseOrder" type="xsd:string"/>
   <element name="remarks" type="xsd:string"/>
   <element name="typeCode" type="xsd:string"/>
   <element name="password" type="xsd:string"/>
   <element name="tams" type="xsd:string"/>
   <element name="tamsRevision" type="xsd:string"/>
   <element name="inqOrdCode" type="xsd:string"/>
   <element name="optionCode" type="xsd:string"/>
   <element name="orderRemarks" type="xsd:string"/>
  </schema>
  <schema elementFormDefault="qualified" 
targetNamespace="urn:types:WEJOEI:genpt.com" xmlns="
http://www.w3.org/2001/XMLSchema">
   <complexType name="messageData_t">
    <sequence>
     <element name="dcAbbreviation" nillable="true" type="xsd:string"/>
     <element name="messageNumber" nillable="true" type="xsd:string"/>
     <element name="messageText" nillable="true" type="xsd:string"/>
    </sequence>
   </complexType>
   <complexType name="returnData_t">
    <sequence>
     <element name="statusCode" type="xsd:int"/>
     <element maxOccurs="unbounded" name="messageDataCollection" 
nillable="true" type="tns1:messageData_t"/>
    </sequence>
   </complexType>
  </schema>
 </wsdl:types>
 <wsdl:message name="PartOrderMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
<wsdl:message name="PartOrderMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartOrderResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiRequest">
      <wsdl:part element="impl:typeCode" name="typeCode"/>
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:password" name="password"/>
      <wsdl:part element="impl:tams" name="tams"/>
      <wsdl:part element="impl:tamsRevision" name="tamsRevision"/>
      <wsdl:part element="impl:inqOrdCode" name="inqOrdCode"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:optionCode" name="optionCode"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:orderRemarks" name="orderRemarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartOrderMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartOrderRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartOrderResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiRequest">
      <wsdl:part element="impl:typeCode" name="typeCode"/>
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:password" name="password"/>
      <wsdl:part element="impl:tams" name="tams"/>
      <wsdl:part element="impl:tamsRevision" name="tamsRevision"/>
      <wsdl:part element="impl:inqOrdCode" name="inqOrdCode"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:optionCode" name="optionCode"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:orderRemarks" name="orderRemarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartOrderMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartOrderRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:portType name="WEJOEI">
      <wsdl:operation name="partInquiry" parameterOrder="divNumber 
dcNumber custNumber quantity partId lineId">
         <wsdl:input message="impl:PartInquiryRequest" 
name="PartInquiryRequest"/>
         <wsdl:output message="impl:PartInquiryResponse" 
name="PartInquiryResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partInquiryMfg" parameterOrder="divNumber 
dcNumber custNumber partId lineId">
         <wsdl:input message="impl:PartInquiryMfgRequest" 
name="PartInquiryMfgRequest"/>
         <wsdl:output message="impl:PartInquiryMfgResponse" 
name="PartInquiryMfgResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partOrder" parameterOrder="divNumber dcNumber 
custNumber quantity partId lineId orderDCAbbreviation shippingCode 
callbackFlag purchaseOrder remarks">
         <wsdl:input message="impl:PartOrderRequest" 
name="PartOrderRequest"/>
         <wsdl:output message="impl:PartOrderResponse" 
name="PartOrderResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partOrderMfg" parameterOrder="divNumber 
dcNumber custNumber quantity partId lineId orderDCAbbreviation 
shippingCode callbackFlag purchaseOrder remarks">
         <wsdl:input message="impl:PartOrderMfgRequest" 
name="PartOrderMfgRequest"/>
         <wsdl:output message="impl:PartOrderMfgResponse" 
name="PartOrderMfgResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partDownload" parameterOrder="divNumber 
dcNumber custNumber partId lineId">
         <wsdl:input message="impl:PartDownloadRequest" 
name="PartDownloadRequest"/>
         <wsdl:output message="impl:PartDownloadResponse" 
name="PartDownloadResponse"/>
      </wsdl:operation>
      <wsdl:operation name="inqjoei" parameterOrder="typeCode divNumber 
dcNumber custNumber password tams tamsRevision inqOrdCode quantity partId 
lineId optionCode orderDCAbbreviation shippingCode callbackFlag 
purchaseOrder orderRemarks">
         <wsdl:input message="impl:InqjoeiRequest" name="InqjoeiRequest"/>
         <wsdl:output message="impl:InqjoeiResponse" 
name="InqjoeiResponse"/>
      </wsdl:operation>
   </wsdl:portType>
   <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
      <wsdlsoap:binding style="document" transport="
http://schemas.xmlsoap.org/soap/http"/>
      <wsdl:operation name="partInquiry">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartInquiry"/>
         <wsdl:input name="PartInquiryRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartInquiryResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partInquiryMfg">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartInquiryMfg"/>
         <wsdl:input name="PartInquiryMfgRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartInquiryMfgResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partOrder">
         <wsdlsoap:operation soapAction="urn:WEJOEI:genpt.com/PartOrder"/>
         <wsdl:input name="PartOrderRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartOrderResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partOrderMfg">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartOrderMfg"/>
         <wsdl:input name="PartOrderMfgRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartOrderMfgResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partDownload">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartDownload"/>
         <wsdl:input name="PartDownloadRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartDownloadResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="inqjoei">
         <wsdlsoap:operation soapAction="urn:WEJOEI:genpt.com/Inqjoei"/>
         <wsdl:input name="InqjoeiRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="InqjoeiResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
   </wsdl:binding>
   <wsdl:service name="WEJOEI">
      <wsdl:port binding="impl:WEJOEISoapBinding" name="WEJOEI">
         <wsdlsoap:address location="
http://localhost:8080/axis/services/WEJOEI"/>
      </wsdl:port>
   </wsdl:service>
</wsdl:definitions>








RE: SimpleDeserializer encountered a child element

Posted by Anne Thomas Manes <an...@manes.net>.
Joe,

I suggest you try reinstalling Axis 1.2 beta and try it again.
If this problem continues, then you should log it as a bug.

You can make Axis 1.1 work with Doc/literal, but you have to do a lot of
handcrafted modifications to the generated code.

Anne

-----Original Message-----
From: Joe_Rattz@genpt.com [mailto:Joe_Rattz@genpt.com] 
Sent: Wednesday, April 21, 2004 10:07 AM
To: axis-user@ws.apache.org
Cc: sulabhs@microsoft.com
Subject: RE: SimpleDeserializer encountered a child element

Anne, when I run wsdl2java on the WSDL you gave me below, build the web 
service from it, deploy it, and then go to URL?wsdl, I get the wsdl below. 
 Notice that the elements in the partInquiry have "partInquiry_t&gt;;" 
prepended onto the name of the element, for example:

                        <element name="partInquiry_t&gt;divNumber" 
type="xsd:string" />

I am using Axis1.2beta.  This looks like a bug to me.  What do you think? 
Did you try generating and deploying a web service with it?  I ask because 
it is possible that there is something corrupted in my development 
environment at this point.  I have switched back and forth from Axis1.1, 
1.2a, and 1.2b several times now, not to mention that drastic changes to 
the WSDL I have made and tested, I am even doubting the integrity of my 
own environment.

Also, trying to create a doc/literal web service with a method similar to 
what you see here, do you think Axis1.1 would work properly for it?  I ask 
because I have read that 1.1 lacked some support for doc/literal web 
services.  But, I wonder if there is enough support for what I am trying 
to do?

Thanks.

Below is the url?wsdl from Axis:

<?xml version="1.0" encoding="UTF-8" ?>
<wsdl:definitions targetNamespace="urn:WEJOEI:genpt.com" 
xmlns:apachesoap="http://xml.apache.org/xml-soap"
    xmlns:impl="urn:WEJOEI:genpt.com" xmlns:intf="urn:WEJOEI:genpt.com" 
xmlns:tns1="urn:types:WEJOEI:genpt.com"
    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.2beta
Built on Mar 31, 2004 (12:47:03 EST)-->
    <wsdl:types>
        <schema elementFormDefault="qualified" 
targetNamespace="urn:types:WEJOEI:genpt.com" 
xmlns="http://www.w3.org/2001/XMLSchema">
            <element name="partInquiry">
                <complexType>
                    <sequence>
                        <element name="partInquiry_t&gt;divNumber" 
type="xsd:string" />
                        <element name="partInquiry_t&gt;dcNumber" 
type="xsd:string" />
                        <element name="partInquiry_t&gt;custNumber" 
type="xsd:string" />
                        <element name="partInquiry_t&gt;quantity" 
type="xsd:string" />
                        <element name="partInquiry_t&gt;partId" 
type="xsd:string" />
                        <element name="partInquiry_t&gt;lineId" 
type="xsd:string" />
                    </sequence>
                </complexType>
            </element>
            <element name="partInquiryResponse">
                <complexType>
                    <sequence>
                        <element name="partInquiryResult" 
type="tns1:returnData_t" />
                    </sequence>
                </complexType>
            </element>
            <complexType name="messageData_t">
                <sequence>
                    <element maxOccurs="1" minOccurs="0" 
name="dcAbbreviation" nillable="true" type="xsd:string" />
                    <element maxOccurs="1" minOccurs="0" 
name="messageNumber" nillable="true" type="xsd:string" />
                    <element maxOccurs="1" minOccurs="0" 
name="messageText" nillable="true" type="xsd:string" />
                </sequence>
            </complexType>
            <complexType name="returnData_t">
                <sequence>
                    <element name="statusCode" type="xsd:int" />
                    <element maxOccurs="unbounded" 
name="messageDataCollection" nillable="true" type="tns1:messageData_t" />
                </sequence>
            </complexType>
        </schema>
    </wsdl:types>
    <wsdl:message name="partInquiryRequest">
        <wsdl:part element="tns1:partInquiry" name="parameters" />
    </wsdl:message>
    <wsdl:message name="partInquiryResponse">
        <wsdl:part element="tns1:partInquiryResponse" name="parameters" />
    </wsdl:message>
    <wsdl:portType name="WEJOEI">
        <wsdl:operation name="partInquiry" parameterOrder="">
            <wsdl:input message="impl:partInquiryRequest" 
name="partInquiryRequest" />
            <wsdl:output message="impl:partInquiryResponse" 
name="partInquiryResponse" />
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
        <wsdlsoap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http" />
        <wsdl:operation name="partInquiry">
            <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartInquiry" />
            <wsdl:input name="partInquiryRequest">
                <wsdlsoap:body namespace="urn:types:WEJOEI:genpt.com" 
use="literal" />
            </wsdl:input>
            <wsdl:output name="partInquiryResponse">
                <wsdlsoap:body namespace="urn:types:WEJOEI:genpt.com" 
use="literal" />
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="WEJOEI">
        <wsdl:port binding="impl:WEJOEISoapBinding" name="WEJOEI">
            <wsdlsoap:address 
location="http://localhost:8080/axis/services/WEJOEI" />
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>





"Anne Thomas Manes" <an...@manes.net> 
04/20/2004 07:19 PM
Please respond to
axis-user@ws.apache.org


To
<ax...@ws.apache.org>
cc
<su...@microsoft.com>
Subject
RE: SimpleDeserializer encountered a child element






It is fine to use name="parameters" for the message part definition. (I
think this is a required convention for the .NET "wrapped" style; the name
of the element is not significant in Axis.)

At this point you're defining a number of elements twice, which might be
what's causing your problem. Also you still have a namespace attribute
specified in the <binding>. That has to go. Try this. Notice that I've
removed extraneous namespace declarations and gotten rid of the second
schema:

<?xml version="1.0" encoding="UTF-8" ?>
<wsdl:definitions 
  targetNamespace="urn:WEJOEI:genpt.com" 
  xmlns:impl="urn:WEJOEI:genpt.com" 
  xmlns:intf="urn:WEJOEI:genpt.com"
  xmlns:tns1="urn:types:WEJOEI:genpt.com"
  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
  xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <wsdl:types>
    <schema 
      targetNamespace="urn:types:WEJOEI:genpt.com" 
      xmlns="http://www.w3.org/2001/XMLSchema"
      elementFormDefault="qualified">
      <complexType name="messageData_t">
         <sequence>
            <element minOccurs="0" maxOccurs="1" 
               name="dcAbbreviation" 
               nillable="true" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="messageNumber" 
               nillable="true" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="messageText" 
               nillable="true" type="xsd:string" />
         </sequence>
      </complexType>
      <complexType name="returnData_t">
         <sequence>
            <element name="statusCode" type="xsd:int" />
            <element maxOccurs="unbounded" 
               name="messageDataCollection" nillable="true" 
               type="tns1:messageData_t" />
         </sequence>
      </complexType>
      <element name="partInquiry" type="tns1:partInquiry_t" />
      <complexType name="partInquiry_t">
         <sequence>
            <element minOccurs="0" maxOccurs="1" 
               name="divNumber" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="dcNumber" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="custNumber" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="quantity" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="partId" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="lineId" type="xsd:string" />
         </sequence>
      </complexType>
      <xsd:element name="partInquiryResponse" 
         type="tns1:partInquiryResponse_t" />
      <xsd:complexType name="partInquiryResponse_t">
         <xsd:sequence>
            <xsd:element minOccurs="0" maxOccurs="1" 
              name="partInquiryResult" type="tns1:returnData_t" />
         </xsd:sequence>
      </xsd:complexType>
    </schema>
  </wsdl:types>
  <wsdl:message name="partInquiryRequest">
    <wsdl:part element="tns1:partInquiry" name="parameters" />
  </wsdl:message>
  <wsdl:message name="partInquiryResponse">
    <wsdl:part element="tns1:partInquiryResponse" name="parameters" />
  </wsdl:message>
  <wsdl:portType name="WEJOEI">
    <wsdl:operation name="partInquiry">
      <wsdl:input message="impl:partInquiryRequest" 
          name="partInquiryRequest" />
      <wsdl:output message="impl:partInquiryResponse" 
          name="partInquiryResponse" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
    <wsdlsoap:binding style="document" 
       transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="partInquiry">
       <wsdlsoap:operation 
          soapAction="urn:WEJOEI:genpt.com/PartInquiry" />
       <wsdl:input name="partInquiryRequest">
          <wsdlsoap:body use="literal" />
       </wsdl:input>
       <wsdl:output name="partInquiryResponse">
          <wsdlsoap:body use="literal" />
       </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="WEJOEI">
    <wsdl:port binding="impl:WEJOEISoapBinding" name="WEJOEI">
       <wsdlsoap:address 
          location="http://localhost:8080/axis/services/WEJOEI" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>

-----Original Message-----
From: Joe_Rattz@genpt.com [mailto:Joe_Rattz@genpt.com] 
Sent: Tuesday, April 20, 2004 1:29 PM
To: axis-user@ws.apache.org
Cc: sulabhs@microsoft.com
Subject: RE: SimpleDeserializer encountered a child element

Ok, this is complicated.  It is more complicated than it looks because the 

MS support guy is telling me similar but different things.

I am including him on this message.  Perhaps with you and him able to swap 

info, this will be easier?

Here is the WSDL he and I are working with:

<?xml version="1.0" encoding="UTF-8" ?>
<wsdl:definitions targetNamespace="urn:WEJOEI:genpt.com" 
xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:apachesoap="http://xml.apache.org/xml-soap" 
xmlns:impl="urn:WEJOEI:genpt.com" xmlns:intf="urn:WEJOEI:genpt.com"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:tns1="urn:types:WEJOEI:genpt.com"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <wsdl:types>
        <schema targetNamespace="urn:types:WEJOEI:genpt.com" 
xmlns="http://www.w3.org/2001/XMLSchema"
            elementFormDefault="qualified">
            <complexType name="messageData_t">
                <sequence>
                    <element minOccurs="0" maxOccurs="1" 
name="dcAbbreviation" nillable="true" type="xsd:string" />
                    <element minOccurs="0" maxOccurs="1" 
name="messageNumber" nillable="true" type="xsd:string" />
                    <element minOccurs="0" maxOccurs="1" 
name="messageText" nillable="true" type="xsd:string" />
                </sequence>
            </complexType>
            <complexType name="returnData_t">
                <sequence>
                    <element name="statusCode" type="xsd:int" />
                    <element maxOccurs="unbounded" 
name="messageDataCollection" nillable="true" type="tns1:messageData_t" />
                </sequence>
            </complexType>
            <element name="partInquiry">
                <complexType>
                    <sequence>
                        <element minOccurs="0" maxOccurs="1" 
name="divNumber" type="xsd:string" />
                        <element minOccurs="0" maxOccurs="1" 
name="dcNumber" type="xsd:string" />
                        <element minOccurs="0" maxOccurs="1" 
name="custNumber" type="xsd:string" />
                        <element minOccurs="0" maxOccurs="1" 
name="quantity" type="xsd:string" />
                        <element minOccurs="0" maxOccurs="1" name="partId" 

type="xsd:string" />
                        <element minOccurs="0" maxOccurs="1" name="lineId" 

type="xsd:string" />
                    </sequence>
                </complexType>
            </element>
            <xsd:element name="partInquiryResponse">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element minOccurs="0" maxOccurs="1" 
name="partInquiryResult" type="tns1:returnData_t" />
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
        </schema>
        <schema targetNamespace="urn:WEJOEI:genpt.com" 
xmlns="http://www.w3.org/2001/XMLSchema"
            elementFormDefault="qualified">
            <element name="divNumber" type="xsd:string" />
            <element name="dcNumber" type="xsd:string" />
            <element name="custNumber" type="xsd:string" />
            <element name="quantity" type="xsd:int" />
            <element name="partId" type="xsd:string" />
            <element name="lineId" type="xsd:string" />
            <element name="returnData" type="tns1:returnData_t" />
            <element name="orderDCAbbreviation" type="xsd:string" />
            <element name="shippingCode" type="xsd:string" />
            <element name="callbackFlag" type="xsd:string" />
            <element name="purchaseOrder" type="xsd:string" />
            <element name="remarks" type="xsd:string" />
            <element name="typeCode" type="xsd:string" />
            <element name="password" type="xsd:string" />
            <element name="tams" type="xsd:string" />
            <element name="tamsRevision" type="xsd:string" />
            <element name="inqOrdCode" type="xsd:string" />
            <element name="optionCode" type="xsd:string" />
            <element name="orderRemarks" type="xsd:string" />
        </schema>
    </wsdl:types>
    <wsdl:message name="partInquiryRequest">
        <wsdl:part element="tns1:partInquiry" name="parameters" />
    </wsdl:message>
    <wsdl:message name="partInquiryResponse">
        <wsdl:part element="tns1:partInquiryResponse" name="parameters" />
    </wsdl:message>
    <wsdl:portType name="WEJOEI">
        <wsdl:operation name="partInquiry">
            <wsdl:input message="impl:partInquiryRequest" 
name="partInquiryRequest" />
            <wsdl:output message="impl:partInquiryResponse" 
name="partInquiryResponse" />
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
        <wsdlsoap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http" />
        <wsdl:operation name="partInquiry">
            <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartInquiry" />
            <wsdl:input name="partInquiryRequest">
                <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal" />
            </wsdl:input>
            <wsdl:output name="partInquiryResponse">
                <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal" />
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="WEJOEI">
        <wsdl:port binding="impl:WEJOEISoapBinding" name="WEJOEI">
            <wsdlsoap:address 
location="http://localhost:8080/axis/services/WEJOEI" />
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>


Anne, this is similar to what you are telling me to do.  But, notice that 
you told me to set the name attribute of the part of the message to 
"input", whereas he wants it to be "parameters".  What is the difference? 
Will "parameters" work?

Also, when I generate the Axis web service from this, and go to the WSDL 
URL (?wsdl), I get bad output WSDL that looks like:

<element name="&gt;partInquiry&gt;divNumber" type="xsd:string"/>

instead of:

<element name="divNumber" type="xsd:string"/>


I am using Axis1.2beta.


Thanks.




"Anne Thomas Manes" <an...@manes.net> 
04/20/2004 03:48 PM
Please respond to
axis-user@ws.apache.org


To
<ax...@ws.apache.org>
cc

Subject
RE: SimpleDeserializer encountered a child element






Sorry -- I didn't have time to complete my earlier email.
Here's an example of what your WSDL should look like.

Focusing on your first operation, partInquiry:

You need to define an element named "partInquiry". I suggest modifying 
your
first schema definition as follows:

<wsdl:types>
  <schema elementFormDefault="qualified" 
    targetNamespace="urn:WEJOEI:genpt.com" 
    xmlns="http://www.w3.org/2001/XMLSchema">
<element name="partInquiry>
 <complexType name="partInquiry_t"
  <sequence>
   <element name="divNumber" type="xsd:string"/>
   <element name="dcNumber" type="xsd:string"/>
   <element name="custNumber" type="xsd:string"/>
   <element name="quantity" type="xsd:int"/>
   <element name="partId" type="xsd:string"/>
   <element name="lineId" type="xsd:string"/>
  </sequence>
 </complexType>
</element>
...
  </schema>
...
</wsdl:types>

You must modify the "PartInquiryRequest" message definition:

   <wsdl:message name="PartInquiryRequest">
      <wsdl:part element="impl:partInquiry" name="input"/>
   </wsdl:message>

You should remove the parameterOrder attributes from your <portType>
definitions:

   <wsdl:portType name="WEJOEI">
      <wsdl:operation name="partInquiry">
         <wsdl:input message="impl:PartInquiryRequest" 
           name="partInquiryRequest"/>
         <wsdl:output message="impl:PartInquiryResponse" 
           name="partInquiryResponse"/>
      </wsdl:operation>
...
   </wsdl:portType>

You must also remove the namespace attribute from your <binding>
definitions:

   <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
      <wsdlsoap:binding style="document" 
        transport="http://schemas.xmlsoap.org/soap/http"/>
      <wsdl:operation name="partInquiry">
         <wsdlsoap:operation 
            soapAction="urn:WEJOEI:genpt.com/PartInquiry"/>
         <wsdl:input name="partInquiryRequest">
            <wsdlsoap:body use="literal"/>
         </wsdl:input>
         <wsdl:output name="partInquiryResponse">
            <wsdlsoap:body use="literal"/>
         </wsdl:output>
      </wsdl:operation>
...
   </wsdl:binding>

Regards,
Anne

-----Original Message-----
From: Joe_Rattz@genpt.com [mailto:Joe_Rattz@genpt.com] 
Sent: Tuesday, April 20, 2004 7:46 AM
To: axis-user@ws.apache.org
Cc: Joe_Rattz@genpt.com
Subject: SimpleDeserializer encountered a child element

I am having incredible problems trying to call an Axis web service from 
.NET.  I am working with MS support, but it is not going well.  I am now 
using Axis 1.2b.  There seems to be a lot of miscommunication between Axis 



and .NET in terms of interpretting WSDL.  The standard must leave a LOT to 



interpretation.

One of the problems initially is that his proxy generator interprets that 
the ParameterStyle should be bare, but when the web service is called, I 
get an exception.  It looks as though Axis is not getting the operation 
name in the soap envelope and is expecting it.  So, I have now forced 
(hand modified) the .NET proxy to use wrapped parameter style.  But I 
still get the problem below.

Here is what the SOAP trace looks like.

Request:

POST /axis/services/WEJOEI HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client 
Protocol 1.1.4322.573)
Content-Type: text/xml; charset=utf-8
SOAPAction: "urn:WEJOEI:genpt.com/PartInquiry"
Content-Length: 441
Expect: 100-continue
Connection: Keep-Alive
Host: localhost:8082

<?xml version="1.0" encoding="utf-8"?><soap:Envelope 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><partInquiry 
xmlns="urn:WEJOEI:genpt.com"><divNumber>70</divNumber><dcNumber>01</dcNumber
><custNumber>994</custNumber><quantity>1</quantity><partId>1515</partId><lin
eId>FIL</lineId></partInquiry></soap:Body></soap:Envelope>


Response:

HTTP/1.1 100 Continue

HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=utf-8
Transfer-Encoding: chunked
Date: Tue, 20 Apr 2004 14:24:35 GMT
Server: Apache Coyote/1.0
Connection: close

21e
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode>soapenv:Server.userException</faultcode>
   <faultstring>org.xml.sax.SAXException: SimpleDeserializer encountered a 


child element, which is NOT expected, in something it was trying to 
deserialize.</faultstring>
   <detail/>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>
0

And here is the WSDL from axis:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:WEJOEI:genpt.com" 
xmlns:apachesoap="http://xml.apache.org/xml-soap" 
xmlns:impl="urn:WEJOEI:genpt.com" xmlns:intf="urn:WEJOEI:genpt.com" 
xmlns:tns1="urn:types:WEJOEI:genpt.com" 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.2beta
Built on Mar 31, 2004 (12:47:03 EST)-->
 <wsdl:types>
  <schema elementFormDefault="qualified" 
targetNamespace="urn:WEJOEI:genpt.com" xmlns="
http://www.w3.org/2001/XMLSchema">
   <element name="divNumber" type="xsd:string"/>
   <element name="dcNumber" type="xsd:string"/>
   <element name="custNumber" type="xsd:string"/>
   <element name="quantity" type="xsd:int"/>
   <element name="partId" type="xsd:string"/>
   <element name="lineId" type="xsd:string"/>
   <element name="returnData" type="tns1:returnData_t"/>
   <element name="orderDCAbbreviation" type="xsd:string"/>
   <element name="shippingCode" type="xsd:string"/>
   <element name="callbackFlag" type="xsd:string"/>
   <element name="purchaseOrder" type="xsd:string"/>
   <element name="remarks" type="xsd:string"/>
   <element name="typeCode" type="xsd:string"/>
   <element name="password" type="xsd:string"/>
   <element name="tams" type="xsd:string"/>
   <element name="tamsRevision" type="xsd:string"/>
   <element name="inqOrdCode" type="xsd:string"/>
   <element name="optionCode" type="xsd:string"/>
   <element name="orderRemarks" type="xsd:string"/>
  </schema>
  <schema elementFormDefault="qualified" 
targetNamespace="urn:types:WEJOEI:genpt.com" xmlns="
http://www.w3.org/2001/XMLSchema">
   <complexType name="messageData_t">
    <sequence>
     <element name="dcAbbreviation" nillable="true" type="xsd:string"/>
     <element name="messageNumber" nillable="true" type="xsd:string"/>
     <element name="messageText" nillable="true" type="xsd:string"/>
    </sequence>
   </complexType>
   <complexType name="returnData_t">
    <sequence>
     <element name="statusCode" type="xsd:int"/>
     <element maxOccurs="unbounded" name="messageDataCollection" 
nillable="true" type="tns1:messageData_t"/>
    </sequence>
   </complexType>
  </schema>
 </wsdl:types>
 <wsdl:message name="PartOrderMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
<wsdl:message name="PartOrderMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartOrderResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiRequest">
      <wsdl:part element="impl:typeCode" name="typeCode"/>
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:password" name="password"/>
      <wsdl:part element="impl:tams" name="tams"/>
      <wsdl:part element="impl:tamsRevision" name="tamsRevision"/>
      <wsdl:part element="impl:inqOrdCode" name="inqOrdCode"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:optionCode" name="optionCode"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:orderRemarks" name="orderRemarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartOrderMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartOrderRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartOrderResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiRequest">
      <wsdl:part element="impl:typeCode" name="typeCode"/>
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:password" name="password"/>
      <wsdl:part element="impl:tams" name="tams"/>
      <wsdl:part element="impl:tamsRevision" name="tamsRevision"/>
      <wsdl:part element="impl:inqOrdCode" name="inqOrdCode"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:optionCode" name="optionCode"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:orderRemarks" name="orderRemarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartOrderMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartOrderRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:portType name="WEJOEI">
      <wsdl:operation name="partInquiry" parameterOrder="divNumber 
dcNumber custNumber quantity partId lineId">
         <wsdl:input message="impl:PartInquiryRequest" 
name="PartInquiryRequest"/>
         <wsdl:output message="impl:PartInquiryResponse" 
name="PartInquiryResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partInquiryMfg" parameterOrder="divNumber 
dcNumber custNumber partId lineId">
         <wsdl:input message="impl:PartInquiryMfgRequest" 
name="PartInquiryMfgRequest"/>
         <wsdl:output message="impl:PartInquiryMfgResponse" 
name="PartInquiryMfgResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partOrder" parameterOrder="divNumber dcNumber 
custNumber quantity partId lineId orderDCAbbreviation shippingCode 
callbackFlag purchaseOrder remarks">
         <wsdl:input message="impl:PartOrderRequest" 
name="PartOrderRequest"/>
         <wsdl:output message="impl:PartOrderResponse" 
name="PartOrderResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partOrderMfg" parameterOrder="divNumber 
dcNumber custNumber quantity partId lineId orderDCAbbreviation 
shippingCode callbackFlag purchaseOrder remarks">
         <wsdl:input message="impl:PartOrderMfgRequest" 
name="PartOrderMfgRequest"/>
         <wsdl:output message="impl:PartOrderMfgResponse" 
name="PartOrderMfgResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partDownload" parameterOrder="divNumber 
dcNumber custNumber partId lineId">
         <wsdl:input message="impl:PartDownloadRequest" 
name="PartDownloadRequest"/>
         <wsdl:output message="impl:PartDownloadResponse" 
name="PartDownloadResponse"/>
      </wsdl:operation>
      <wsdl:operation name="inqjoei" parameterOrder="typeCode divNumber 
dcNumber custNumber password tams tamsRevision inqOrdCode quantity partId 
lineId optionCode orderDCAbbreviation shippingCode callbackFlag 
purchaseOrder orderRemarks">
         <wsdl:input message="impl:InqjoeiRequest" name="InqjoeiRequest"/>
         <wsdl:output message="impl:InqjoeiResponse" 
name="InqjoeiResponse"/>
      </wsdl:operation>
   </wsdl:portType>
   <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
      <wsdlsoap:binding style="document" transport="
http://schemas.xmlsoap.org/soap/http"/>
      <wsdl:operation name="partInquiry">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartInquiry"/>
         <wsdl:input name="PartInquiryRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartInquiryResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partInquiryMfg">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartInquiryMfg"/>
         <wsdl:input name="PartInquiryMfgRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartInquiryMfgResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partOrder">
         <wsdlsoap:operation soapAction="urn:WEJOEI:genpt.com/PartOrder"/>
         <wsdl:input name="PartOrderRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartOrderResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partOrderMfg">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartOrderMfg"/>
         <wsdl:input name="PartOrderMfgRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartOrderMfgResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partDownload">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartDownload"/>
         <wsdl:input name="PartDownloadRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartDownloadResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="inqjoei">
         <wsdlsoap:operation soapAction="urn:WEJOEI:genpt.com/Inqjoei"/>
         <wsdl:input name="InqjoeiRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="InqjoeiResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
   </wsdl:binding>
   <wsdl:service name="WEJOEI">
      <wsdl:port binding="impl:WEJOEISoapBinding" name="WEJOEI">
         <wsdlsoap:address location="
http://localhost:8080/axis/services/WEJOEI"/>
      </wsdl:port>
   </wsdl:service>
</wsdl:definitions>






RE: SimpleDeserializer encountered a child element

Posted by Jo...@genpt.com.
Anne, when I run wsdl2java on the WSDL you gave me below, build the web 
service from it, deploy it, and then go to URL?wsdl, I get the wsdl below. 
 Notice that the elements in the partInquiry have "partInquiry_t&gt;;" 
prepended onto the name of the element, for example:

                        <element name="partInquiry_t&gt;divNumber" 
type="xsd:string" />

I am using Axis1.2beta.  This looks like a bug to me.  What do you think? 
Did you try generating and deploying a web service with it?  I ask because 
it is possible that there is something corrupted in my development 
environment at this point.  I have switched back and forth from Axis1.1, 
1.2a, and 1.2b several times now, not to mention that drastic changes to 
the WSDL I have made and tested, I am even doubting the integrity of my 
own environment.

Also, trying to create a doc/literal web service with a method similar to 
what you see here, do you think Axis1.1 would work properly for it?  I ask 
because I have read that 1.1 lacked some support for doc/literal web 
services.  But, I wonder if there is enough support for what I am trying 
to do?

Thanks.

Below is the url?wsdl from Axis:

<?xml version="1.0" encoding="UTF-8" ?>
<wsdl:definitions targetNamespace="urn:WEJOEI:genpt.com" 
xmlns:apachesoap="http://xml.apache.org/xml-soap"
    xmlns:impl="urn:WEJOEI:genpt.com" xmlns:intf="urn:WEJOEI:genpt.com" 
xmlns:tns1="urn:types:WEJOEI:genpt.com"
    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.2beta
Built on Mar 31, 2004 (12:47:03 EST)-->
    <wsdl:types>
        <schema elementFormDefault="qualified" 
targetNamespace="urn:types:WEJOEI:genpt.com" 
xmlns="http://www.w3.org/2001/XMLSchema">
            <element name="partInquiry">
                <complexType>
                    <sequence>
                        <element name="partInquiry_t&gt;divNumber" 
type="xsd:string" />
                        <element name="partInquiry_t&gt;dcNumber" 
type="xsd:string" />
                        <element name="partInquiry_t&gt;custNumber" 
type="xsd:string" />
                        <element name="partInquiry_t&gt;quantity" 
type="xsd:string" />
                        <element name="partInquiry_t&gt;partId" 
type="xsd:string" />
                        <element name="partInquiry_t&gt;lineId" 
type="xsd:string" />
                    </sequence>
                </complexType>
            </element>
            <element name="partInquiryResponse">
                <complexType>
                    <sequence>
                        <element name="partInquiryResult" 
type="tns1:returnData_t" />
                    </sequence>
                </complexType>
            </element>
            <complexType name="messageData_t">
                <sequence>
                    <element maxOccurs="1" minOccurs="0" 
name="dcAbbreviation" nillable="true" type="xsd:string" />
                    <element maxOccurs="1" minOccurs="0" 
name="messageNumber" nillable="true" type="xsd:string" />
                    <element maxOccurs="1" minOccurs="0" 
name="messageText" nillable="true" type="xsd:string" />
                </sequence>
            </complexType>
            <complexType name="returnData_t">
                <sequence>
                    <element name="statusCode" type="xsd:int" />
                    <element maxOccurs="unbounded" 
name="messageDataCollection" nillable="true" type="tns1:messageData_t" />
                </sequence>
            </complexType>
        </schema>
    </wsdl:types>
    <wsdl:message name="partInquiryRequest">
        <wsdl:part element="tns1:partInquiry" name="parameters" />
    </wsdl:message>
    <wsdl:message name="partInquiryResponse">
        <wsdl:part element="tns1:partInquiryResponse" name="parameters" />
    </wsdl:message>
    <wsdl:portType name="WEJOEI">
        <wsdl:operation name="partInquiry" parameterOrder="">
            <wsdl:input message="impl:partInquiryRequest" 
name="partInquiryRequest" />
            <wsdl:output message="impl:partInquiryResponse" 
name="partInquiryResponse" />
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
        <wsdlsoap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http" />
        <wsdl:operation name="partInquiry">
            <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartInquiry" />
            <wsdl:input name="partInquiryRequest">
                <wsdlsoap:body namespace="urn:types:WEJOEI:genpt.com" 
use="literal" />
            </wsdl:input>
            <wsdl:output name="partInquiryResponse">
                <wsdlsoap:body namespace="urn:types:WEJOEI:genpt.com" 
use="literal" />
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="WEJOEI">
        <wsdl:port binding="impl:WEJOEISoapBinding" name="WEJOEI">
            <wsdlsoap:address 
location="http://localhost:8080/axis/services/WEJOEI" />
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>





"Anne Thomas Manes" <an...@manes.net> 
04/20/2004 07:19 PM
Please respond to
axis-user@ws.apache.org


To
<ax...@ws.apache.org>
cc
<su...@microsoft.com>
Subject
RE: SimpleDeserializer encountered a child element






It is fine to use name="parameters" for the message part definition. (I
think this is a required convention for the .NET "wrapped" style; the name
of the element is not significant in Axis.)

At this point you're defining a number of elements twice, which might be
what's causing your problem. Also you still have a namespace attribute
specified in the <binding>. That has to go. Try this. Notice that I've
removed extraneous namespace declarations and gotten rid of the second
schema:

<?xml version="1.0" encoding="UTF-8" ?>
<wsdl:definitions 
  targetNamespace="urn:WEJOEI:genpt.com" 
  xmlns:impl="urn:WEJOEI:genpt.com" 
  xmlns:intf="urn:WEJOEI:genpt.com"
  xmlns:tns1="urn:types:WEJOEI:genpt.com"
  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
  xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <wsdl:types>
    <schema 
      targetNamespace="urn:types:WEJOEI:genpt.com" 
      xmlns="http://www.w3.org/2001/XMLSchema"
      elementFormDefault="qualified">
      <complexType name="messageData_t">
         <sequence>
            <element minOccurs="0" maxOccurs="1" 
               name="dcAbbreviation" 
               nillable="true" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="messageNumber" 
               nillable="true" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="messageText" 
               nillable="true" type="xsd:string" />
         </sequence>
      </complexType>
      <complexType name="returnData_t">
         <sequence>
            <element name="statusCode" type="xsd:int" />
            <element maxOccurs="unbounded" 
               name="messageDataCollection" nillable="true" 
               type="tns1:messageData_t" />
         </sequence>
      </complexType>
      <element name="partInquiry" type="tns1:partInquiry_t" />
      <complexType name="partInquiry_t">
         <sequence>
            <element minOccurs="0" maxOccurs="1" 
               name="divNumber" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="dcNumber" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="custNumber" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="quantity" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="partId" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="lineId" type="xsd:string" />
         </sequence>
      </complexType>
      <xsd:element name="partInquiryResponse" 
         type="tns1:partInquiryResponse_t" />
      <xsd:complexType name="partInquiryResponse_t">
         <xsd:sequence>
            <xsd:element minOccurs="0" maxOccurs="1" 
              name="partInquiryResult" type="tns1:returnData_t" />
         </xsd:sequence>
      </xsd:complexType>
    </schema>
  </wsdl:types>
  <wsdl:message name="partInquiryRequest">
    <wsdl:part element="tns1:partInquiry" name="parameters" />
  </wsdl:message>
  <wsdl:message name="partInquiryResponse">
    <wsdl:part element="tns1:partInquiryResponse" name="parameters" />
  </wsdl:message>
  <wsdl:portType name="WEJOEI">
    <wsdl:operation name="partInquiry">
      <wsdl:input message="impl:partInquiryRequest" 
          name="partInquiryRequest" />
      <wsdl:output message="impl:partInquiryResponse" 
          name="partInquiryResponse" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
    <wsdlsoap:binding style="document" 
       transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="partInquiry">
       <wsdlsoap:operation 
          soapAction="urn:WEJOEI:genpt.com/PartInquiry" />
       <wsdl:input name="partInquiryRequest">
          <wsdlsoap:body use="literal" />
       </wsdl:input>
       <wsdl:output name="partInquiryResponse">
          <wsdlsoap:body use="literal" />
       </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="WEJOEI">
    <wsdl:port binding="impl:WEJOEISoapBinding" name="WEJOEI">
       <wsdlsoap:address 
          location="http://localhost:8080/axis/services/WEJOEI" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>

-----Original Message-----
From: Joe_Rattz@genpt.com [mailto:Joe_Rattz@genpt.com] 
Sent: Tuesday, April 20, 2004 1:29 PM
To: axis-user@ws.apache.org
Cc: sulabhs@microsoft.com
Subject: RE: SimpleDeserializer encountered a child element

Ok, this is complicated.  It is more complicated than it looks because the 

MS support guy is telling me similar but different things.

I am including him on this message.  Perhaps with you and him able to swap 

info, this will be easier?

Here is the WSDL he and I are working with:

<?xml version="1.0" encoding="UTF-8" ?>
<wsdl:definitions targetNamespace="urn:WEJOEI:genpt.com" 
xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:apachesoap="http://xml.apache.org/xml-soap" 
xmlns:impl="urn:WEJOEI:genpt.com" xmlns:intf="urn:WEJOEI:genpt.com"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:tns1="urn:types:WEJOEI:genpt.com"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <wsdl:types>
        <schema targetNamespace="urn:types:WEJOEI:genpt.com" 
xmlns="http://www.w3.org/2001/XMLSchema"
            elementFormDefault="qualified">
            <complexType name="messageData_t">
                <sequence>
                    <element minOccurs="0" maxOccurs="1" 
name="dcAbbreviation" nillable="true" type="xsd:string" />
                    <element minOccurs="0" maxOccurs="1" 
name="messageNumber" nillable="true" type="xsd:string" />
                    <element minOccurs="0" maxOccurs="1" 
name="messageText" nillable="true" type="xsd:string" />
                </sequence>
            </complexType>
            <complexType name="returnData_t">
                <sequence>
                    <element name="statusCode" type="xsd:int" />
                    <element maxOccurs="unbounded" 
name="messageDataCollection" nillable="true" type="tns1:messageData_t" />
                </sequence>
            </complexType>
            <element name="partInquiry">
                <complexType>
                    <sequence>
                        <element minOccurs="0" maxOccurs="1" 
name="divNumber" type="xsd:string" />
                        <element minOccurs="0" maxOccurs="1" 
name="dcNumber" type="xsd:string" />
                        <element minOccurs="0" maxOccurs="1" 
name="custNumber" type="xsd:string" />
                        <element minOccurs="0" maxOccurs="1" 
name="quantity" type="xsd:string" />
                        <element minOccurs="0" maxOccurs="1" name="partId" 

type="xsd:string" />
                        <element minOccurs="0" maxOccurs="1" name="lineId" 

type="xsd:string" />
                    </sequence>
                </complexType>
            </element>
            <xsd:element name="partInquiryResponse">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element minOccurs="0" maxOccurs="1" 
name="partInquiryResult" type="tns1:returnData_t" />
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
        </schema>
        <schema targetNamespace="urn:WEJOEI:genpt.com" 
xmlns="http://www.w3.org/2001/XMLSchema"
            elementFormDefault="qualified">
            <element name="divNumber" type="xsd:string" />
            <element name="dcNumber" type="xsd:string" />
            <element name="custNumber" type="xsd:string" />
            <element name="quantity" type="xsd:int" />
            <element name="partId" type="xsd:string" />
            <element name="lineId" type="xsd:string" />
            <element name="returnData" type="tns1:returnData_t" />
            <element name="orderDCAbbreviation" type="xsd:string" />
            <element name="shippingCode" type="xsd:string" />
            <element name="callbackFlag" type="xsd:string" />
            <element name="purchaseOrder" type="xsd:string" />
            <element name="remarks" type="xsd:string" />
            <element name="typeCode" type="xsd:string" />
            <element name="password" type="xsd:string" />
            <element name="tams" type="xsd:string" />
            <element name="tamsRevision" type="xsd:string" />
            <element name="inqOrdCode" type="xsd:string" />
            <element name="optionCode" type="xsd:string" />
            <element name="orderRemarks" type="xsd:string" />
        </schema>
    </wsdl:types>
    <wsdl:message name="partInquiryRequest">
        <wsdl:part element="tns1:partInquiry" name="parameters" />
    </wsdl:message>
    <wsdl:message name="partInquiryResponse">
        <wsdl:part element="tns1:partInquiryResponse" name="parameters" />
    </wsdl:message>
    <wsdl:portType name="WEJOEI">
        <wsdl:operation name="partInquiry">
            <wsdl:input message="impl:partInquiryRequest" 
name="partInquiryRequest" />
            <wsdl:output message="impl:partInquiryResponse" 
name="partInquiryResponse" />
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
        <wsdlsoap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http" />
        <wsdl:operation name="partInquiry">
            <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartInquiry" />
            <wsdl:input name="partInquiryRequest">
                <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal" />
            </wsdl:input>
            <wsdl:output name="partInquiryResponse">
                <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal" />
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="WEJOEI">
        <wsdl:port binding="impl:WEJOEISoapBinding" name="WEJOEI">
            <wsdlsoap:address 
location="http://localhost:8080/axis/services/WEJOEI" />
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>


Anne, this is similar to what you are telling me to do.  But, notice that 
you told me to set the name attribute of the part of the message to 
"input", whereas he wants it to be "parameters".  What is the difference? 
Will "parameters" work?

Also, when I generate the Axis web service from this, and go to the WSDL 
URL (?wsdl), I get bad output WSDL that looks like:

<element name="&gt;partInquiry&gt;divNumber" type="xsd:string"/>

instead of:

<element name="divNumber" type="xsd:string"/>


I am using Axis1.2beta.


Thanks.




"Anne Thomas Manes" <an...@manes.net> 
04/20/2004 03:48 PM
Please respond to
axis-user@ws.apache.org


To
<ax...@ws.apache.org>
cc

Subject
RE: SimpleDeserializer encountered a child element






Sorry -- I didn't have time to complete my earlier email.
Here's an example of what your WSDL should look like.

Focusing on your first operation, partInquiry:

You need to define an element named "partInquiry". I suggest modifying 
your
first schema definition as follows:

<wsdl:types>
  <schema elementFormDefault="qualified" 
    targetNamespace="urn:WEJOEI:genpt.com" 
    xmlns="http://www.w3.org/2001/XMLSchema">
<element name="partInquiry>
 <complexType name="partInquiry_t"
  <sequence>
   <element name="divNumber" type="xsd:string"/>
   <element name="dcNumber" type="xsd:string"/>
   <element name="custNumber" type="xsd:string"/>
   <element name="quantity" type="xsd:int"/>
   <element name="partId" type="xsd:string"/>
   <element name="lineId" type="xsd:string"/>
  </sequence>
 </complexType>
</element>
...
  </schema>
...
</wsdl:types>

You must modify the "PartInquiryRequest" message definition:

   <wsdl:message name="PartInquiryRequest">
      <wsdl:part element="impl:partInquiry" name="input"/>
   </wsdl:message>

You should remove the parameterOrder attributes from your <portType>
definitions:

   <wsdl:portType name="WEJOEI">
      <wsdl:operation name="partInquiry">
         <wsdl:input message="impl:PartInquiryRequest" 
           name="partInquiryRequest"/>
         <wsdl:output message="impl:PartInquiryResponse" 
           name="partInquiryResponse"/>
      </wsdl:operation>
...
   </wsdl:portType>

You must also remove the namespace attribute from your <binding>
definitions:

   <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
      <wsdlsoap:binding style="document" 
        transport="http://schemas.xmlsoap.org/soap/http"/>
      <wsdl:operation name="partInquiry">
         <wsdlsoap:operation 
            soapAction="urn:WEJOEI:genpt.com/PartInquiry"/>
         <wsdl:input name="partInquiryRequest">
            <wsdlsoap:body use="literal"/>
         </wsdl:input>
         <wsdl:output name="partInquiryResponse">
            <wsdlsoap:body use="literal"/>
         </wsdl:output>
      </wsdl:operation>
...
   </wsdl:binding>

Regards,
Anne

-----Original Message-----
From: Joe_Rattz@genpt.com [mailto:Joe_Rattz@genpt.com] 
Sent: Tuesday, April 20, 2004 7:46 AM
To: axis-user@ws.apache.org
Cc: Joe_Rattz@genpt.com
Subject: SimpleDeserializer encountered a child element

I am having incredible problems trying to call an Axis web service from 
.NET.  I am working with MS support, but it is not going well.  I am now 
using Axis 1.2b.  There seems to be a lot of miscommunication between Axis 



and .NET in terms of interpretting WSDL.  The standard must leave a LOT to 



interpretation.

One of the problems initially is that his proxy generator interprets that 
the ParameterStyle should be bare, but when the web service is called, I 
get an exception.  It looks as though Axis is not getting the operation 
name in the soap envelope and is expecting it.  So, I have now forced 
(hand modified) the .NET proxy to use wrapped parameter style.  But I 
still get the problem below.

Here is what the SOAP trace looks like.

Request:

POST /axis/services/WEJOEI HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client 
Protocol 1.1.4322.573)
Content-Type: text/xml; charset=utf-8
SOAPAction: "urn:WEJOEI:genpt.com/PartInquiry"
Content-Length: 441
Expect: 100-continue
Connection: Keep-Alive
Host: localhost:8082

<?xml version="1.0" encoding="utf-8"?><soap:Envelope 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><partInquiry 
xmlns="urn:WEJOEI:genpt.com"><divNumber>70</divNumber><dcNumber>01</dcNumber
><custNumber>994</custNumber><quantity>1</quantity><partId>1515</partId><lin
eId>FIL</lineId></partInquiry></soap:Body></soap:Envelope>


Response:

HTTP/1.1 100 Continue

HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=utf-8
Transfer-Encoding: chunked
Date: Tue, 20 Apr 2004 14:24:35 GMT
Server: Apache Coyote/1.0
Connection: close

21e
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode>soapenv:Server.userException</faultcode>
   <faultstring>org.xml.sax.SAXException: SimpleDeserializer encountered a 


child element, which is NOT expected, in something it was trying to 
deserialize.</faultstring>
   <detail/>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>
0

And here is the WSDL from axis:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:WEJOEI:genpt.com" 
xmlns:apachesoap="http://xml.apache.org/xml-soap" 
xmlns:impl="urn:WEJOEI:genpt.com" xmlns:intf="urn:WEJOEI:genpt.com" 
xmlns:tns1="urn:types:WEJOEI:genpt.com" 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.2beta
Built on Mar 31, 2004 (12:47:03 EST)-->
 <wsdl:types>
  <schema elementFormDefault="qualified" 
targetNamespace="urn:WEJOEI:genpt.com" xmlns="
http://www.w3.org/2001/XMLSchema">
   <element name="divNumber" type="xsd:string"/>
   <element name="dcNumber" type="xsd:string"/>
   <element name="custNumber" type="xsd:string"/>
   <element name="quantity" type="xsd:int"/>
   <element name="partId" type="xsd:string"/>
   <element name="lineId" type="xsd:string"/>
   <element name="returnData" type="tns1:returnData_t"/>
   <element name="orderDCAbbreviation" type="xsd:string"/>
   <element name="shippingCode" type="xsd:string"/>
   <element name="callbackFlag" type="xsd:string"/>
   <element name="purchaseOrder" type="xsd:string"/>
   <element name="remarks" type="xsd:string"/>
   <element name="typeCode" type="xsd:string"/>
   <element name="password" type="xsd:string"/>
   <element name="tams" type="xsd:string"/>
   <element name="tamsRevision" type="xsd:string"/>
   <element name="inqOrdCode" type="xsd:string"/>
   <element name="optionCode" type="xsd:string"/>
   <element name="orderRemarks" type="xsd:string"/>
  </schema>
  <schema elementFormDefault="qualified" 
targetNamespace="urn:types:WEJOEI:genpt.com" xmlns="
http://www.w3.org/2001/XMLSchema">
   <complexType name="messageData_t">
    <sequence>
     <element name="dcAbbreviation" nillable="true" type="xsd:string"/>
     <element name="messageNumber" nillable="true" type="xsd:string"/>
     <element name="messageText" nillable="true" type="xsd:string"/>
    </sequence>
   </complexType>
   <complexType name="returnData_t">
    <sequence>
     <element name="statusCode" type="xsd:int"/>
     <element maxOccurs="unbounded" name="messageDataCollection" 
nillable="true" type="tns1:messageData_t"/>
    </sequence>
   </complexType>
  </schema>
 </wsdl:types>
 <wsdl:message name="PartOrderMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
<wsdl:message name="PartOrderMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartOrderResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiRequest">
      <wsdl:part element="impl:typeCode" name="typeCode"/>
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:password" name="password"/>
      <wsdl:part element="impl:tams" name="tams"/>
      <wsdl:part element="impl:tamsRevision" name="tamsRevision"/>
      <wsdl:part element="impl:inqOrdCode" name="inqOrdCode"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:optionCode" name="optionCode"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:orderRemarks" name="orderRemarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartOrderMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartOrderRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartOrderResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiRequest">
      <wsdl:part element="impl:typeCode" name="typeCode"/>
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:password" name="password"/>
      <wsdl:part element="impl:tams" name="tams"/>
      <wsdl:part element="impl:tamsRevision" name="tamsRevision"/>
      <wsdl:part element="impl:inqOrdCode" name="inqOrdCode"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:optionCode" name="optionCode"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:orderRemarks" name="orderRemarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartOrderMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartOrderRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:portType name="WEJOEI">
      <wsdl:operation name="partInquiry" parameterOrder="divNumber 
dcNumber custNumber quantity partId lineId">
         <wsdl:input message="impl:PartInquiryRequest" 
name="PartInquiryRequest"/>
         <wsdl:output message="impl:PartInquiryResponse" 
name="PartInquiryResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partInquiryMfg" parameterOrder="divNumber 
dcNumber custNumber partId lineId">
         <wsdl:input message="impl:PartInquiryMfgRequest" 
name="PartInquiryMfgRequest"/>
         <wsdl:output message="impl:PartInquiryMfgResponse" 
name="PartInquiryMfgResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partOrder" parameterOrder="divNumber dcNumber 
custNumber quantity partId lineId orderDCAbbreviation shippingCode 
callbackFlag purchaseOrder remarks">
         <wsdl:input message="impl:PartOrderRequest" 
name="PartOrderRequest"/>
         <wsdl:output message="impl:PartOrderResponse" 
name="PartOrderResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partOrderMfg" parameterOrder="divNumber 
dcNumber custNumber quantity partId lineId orderDCAbbreviation 
shippingCode callbackFlag purchaseOrder remarks">
         <wsdl:input message="impl:PartOrderMfgRequest" 
name="PartOrderMfgRequest"/>
         <wsdl:output message="impl:PartOrderMfgResponse" 
name="PartOrderMfgResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partDownload" parameterOrder="divNumber 
dcNumber custNumber partId lineId">
         <wsdl:input message="impl:PartDownloadRequest" 
name="PartDownloadRequest"/>
         <wsdl:output message="impl:PartDownloadResponse" 
name="PartDownloadResponse"/>
      </wsdl:operation>
      <wsdl:operation name="inqjoei" parameterOrder="typeCode divNumber 
dcNumber custNumber password tams tamsRevision inqOrdCode quantity partId 
lineId optionCode orderDCAbbreviation shippingCode callbackFlag 
purchaseOrder orderRemarks">
         <wsdl:input message="impl:InqjoeiRequest" name="InqjoeiRequest"/>
         <wsdl:output message="impl:InqjoeiResponse" 
name="InqjoeiResponse"/>
      </wsdl:operation>
   </wsdl:portType>
   <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
      <wsdlsoap:binding style="document" transport="
http://schemas.xmlsoap.org/soap/http"/>
      <wsdl:operation name="partInquiry">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartInquiry"/>
         <wsdl:input name="PartInquiryRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartInquiryResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partInquiryMfg">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartInquiryMfg"/>
         <wsdl:input name="PartInquiryMfgRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartInquiryMfgResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partOrder">
         <wsdlsoap:operation soapAction="urn:WEJOEI:genpt.com/PartOrder"/>
         <wsdl:input name="PartOrderRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartOrderResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partOrderMfg">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartOrderMfg"/>
         <wsdl:input name="PartOrderMfgRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartOrderMfgResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partDownload">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartDownload"/>
         <wsdl:input name="PartDownloadRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartDownloadResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="inqjoei">
         <wsdlsoap:operation soapAction="urn:WEJOEI:genpt.com/Inqjoei"/>
         <wsdl:input name="InqjoeiRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="InqjoeiResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
   </wsdl:binding>
   <wsdl:service name="WEJOEI">
      <wsdl:port binding="impl:WEJOEISoapBinding" name="WEJOEI">
         <wsdlsoap:address location="
http://localhost:8080/axis/services/WEJOEI"/>
      </wsdl:port>
   </wsdl:service>
</wsdl:definitions>






Thank You Anne Thomas Manes!!!

Posted by Jo...@genpt.com.
Thanks Anne, I couldn't have gotten this working without your help!!!  I 
also couldn't have gotten it working without Microsoft support.

One interesting point I'll make for the benefit of others.  The WSDL below 
did work for creating the Axis server.  I was able to implement the server 
and get a java/Axis test client to properly call the web service.  Oddly 
though, .NET had trouble with generating a proxy when provided the Axis 
GENERATED WSDL.  It actually produced a client proxy that successfully 
called and returned data to the client.  However, the data coming back 
would not end up in the return variable from the method call!  My return 
variable would still be null after the call.  So, apparently something 
still wasn't correct with the proxy code.  I know the data made it back to 
the client from the SOAP trace though.  But, when I provided .NET the 
original WSDL below, it was able to generate proxy code that did indeed 
work properly with Axis!!!  Yehaw!!!

Thank you Anne!!!  Apparently you are better at providing WSDL than 
WSDL2Java. ;-)






"Anne Thomas Manes" <an...@manes.net> 
04/20/2004 07:19 PM
Please respond to
axis-user@ws.apache.org


To
<ax...@ws.apache.org>
cc
<su...@microsoft.com>
Subject
RE: SimpleDeserializer encountered a child element






It is fine to use name="parameters" for the message part definition. (I
think this is a required convention for the .NET "wrapped" style; the name
of the element is not significant in Axis.)

At this point you're defining a number of elements twice, which might be
what's causing your problem. Also you still have a namespace attribute
specified in the <binding>. That has to go. Try this. Notice that I've
removed extraneous namespace declarations and gotten rid of the second
schema:

<?xml version="1.0" encoding="UTF-8" ?>
<wsdl:definitions 
  targetNamespace="urn:WEJOEI:genpt.com" 
  xmlns:impl="urn:WEJOEI:genpt.com" 
  xmlns:intf="urn:WEJOEI:genpt.com"
  xmlns:tns1="urn:types:WEJOEI:genpt.com"
  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
  xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <wsdl:types>
    <schema 
      targetNamespace="urn:types:WEJOEI:genpt.com" 
      xmlns="http://www.w3.org/2001/XMLSchema"
      elementFormDefault="qualified">
      <complexType name="messageData_t">
         <sequence>
            <element minOccurs="0" maxOccurs="1" 
               name="dcAbbreviation" 
               nillable="true" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="messageNumber" 
               nillable="true" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="messageText" 
               nillable="true" type="xsd:string" />
         </sequence>
      </complexType>
      <complexType name="returnData_t">
         <sequence>
            <element name="statusCode" type="xsd:int" />
            <element maxOccurs="unbounded" 
               name="messageDataCollection" nillable="true" 
               type="tns1:messageData_t" />
         </sequence>
      </complexType>
      <element name="partInquiry" type="tns1:partInquiry_t" />
      <complexType name="partInquiry_t">
         <sequence>
            <element minOccurs="0" maxOccurs="1" 
               name="divNumber" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="dcNumber" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="custNumber" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="quantity" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="partId" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="lineId" type="xsd:string" />
         </sequence>
      </complexType>
      <xsd:element name="partInquiryResponse" 
         type="tns1:partInquiryResponse_t" />
      <xsd:complexType name="partInquiryResponse_t">
         <xsd:sequence>
            <xsd:element minOccurs="0" maxOccurs="1" 
              name="partInquiryResult" type="tns1:returnData_t" />
         </xsd:sequence>
      </xsd:complexType>
    </schema>
  </wsdl:types>
  <wsdl:message name="partInquiryRequest">
    <wsdl:part element="tns1:partInquiry" name="parameters" />
  </wsdl:message>
  <wsdl:message name="partInquiryResponse">
    <wsdl:part element="tns1:partInquiryResponse" name="parameters" />
  </wsdl:message>
  <wsdl:portType name="WEJOEI">
    <wsdl:operation name="partInquiry">
      <wsdl:input message="impl:partInquiryRequest" 
          name="partInquiryRequest" />
      <wsdl:output message="impl:partInquiryResponse" 
          name="partInquiryResponse" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
    <wsdlsoap:binding style="document" 
       transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="partInquiry">
       <wsdlsoap:operation 
          soapAction="urn:WEJOEI:genpt.com/PartInquiry" />
       <wsdl:input name="partInquiryRequest">
          <wsdlsoap:body use="literal" />
       </wsdl:input>
       <wsdl:output name="partInquiryResponse">
          <wsdlsoap:body use="literal" />
       </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="WEJOEI">
    <wsdl:port binding="impl:WEJOEISoapBinding" name="WEJOEI">
       <wsdlsoap:address 
          location="http://localhost:8080/axis/services/WEJOEI" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>

-----Original Message-----
From: Joe_Rattz@genpt.com [mailto:Joe_Rattz@genpt.com] 
Sent: Tuesday, April 20, 2004 1:29 PM
To: axis-user@ws.apache.org
Cc: sulabhs@microsoft.com
Subject: RE: SimpleDeserializer encountered a child element

Ok, this is complicated.  It is more complicated than it looks because the 

MS support guy is telling me similar but different things.

I am including him on this message.  Perhaps with you and him able to swap 

info, this will be easier?

Here is the WSDL he and I are working with:

<?xml version="1.0" encoding="UTF-8" ?>
<wsdl:definitions targetNamespace="urn:WEJOEI:genpt.com" 
xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:apachesoap="http://xml.apache.org/xml-soap" 
xmlns:impl="urn:WEJOEI:genpt.com" xmlns:intf="urn:WEJOEI:genpt.com"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:tns1="urn:types:WEJOEI:genpt.com"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <wsdl:types>
        <schema targetNamespace="urn:types:WEJOEI:genpt.com" 
xmlns="http://www.w3.org/2001/XMLSchema"
            elementFormDefault="qualified">
            <complexType name="messageData_t">
                <sequence>
                    <element minOccurs="0" maxOccurs="1" 
name="dcAbbreviation" nillable="true" type="xsd:string" />
                    <element minOccurs="0" maxOccurs="1" 
name="messageNumber" nillable="true" type="xsd:string" />
                    <element minOccurs="0" maxOccurs="1" 
name="messageText" nillable="true" type="xsd:string" />
                </sequence>
            </complexType>
            <complexType name="returnData_t">
                <sequence>
                    <element name="statusCode" type="xsd:int" />
                    <element maxOccurs="unbounded" 
name="messageDataCollection" nillable="true" type="tns1:messageData_t" />
                </sequence>
            </complexType>
            <element name="partInquiry">
                <complexType>
                    <sequence>
                        <element minOccurs="0" maxOccurs="1" 
name="divNumber" type="xsd:string" />
                        <element minOccurs="0" maxOccurs="1" 
name="dcNumber" type="xsd:string" />
                        <element minOccurs="0" maxOccurs="1" 
name="custNumber" type="xsd:string" />
                        <element minOccurs="0" maxOccurs="1" 
name="quantity" type="xsd:string" />
                        <element minOccurs="0" maxOccurs="1" name="partId" 

type="xsd:string" />
                        <element minOccurs="0" maxOccurs="1" name="lineId" 

type="xsd:string" />
                    </sequence>
                </complexType>
            </element>
            <xsd:element name="partInquiryResponse">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element minOccurs="0" maxOccurs="1" 
name="partInquiryResult" type="tns1:returnData_t" />
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
        </schema>
        <schema targetNamespace="urn:WEJOEI:genpt.com" 
xmlns="http://www.w3.org/2001/XMLSchema"
            elementFormDefault="qualified">
            <element name="divNumber" type="xsd:string" />
            <element name="dcNumber" type="xsd:string" />
            <element name="custNumber" type="xsd:string" />
            <element name="quantity" type="xsd:int" />
            <element name="partId" type="xsd:string" />
            <element name="lineId" type="xsd:string" />
            <element name="returnData" type="tns1:returnData_t" />
            <element name="orderDCAbbreviation" type="xsd:string" />
            <element name="shippingCode" type="xsd:string" />
            <element name="callbackFlag" type="xsd:string" />
            <element name="purchaseOrder" type="xsd:string" />
            <element name="remarks" type="xsd:string" />
            <element name="typeCode" type="xsd:string" />
            <element name="password" type="xsd:string" />
            <element name="tams" type="xsd:string" />
            <element name="tamsRevision" type="xsd:string" />
            <element name="inqOrdCode" type="xsd:string" />
            <element name="optionCode" type="xsd:string" />
            <element name="orderRemarks" type="xsd:string" />
        </schema>
    </wsdl:types>
    <wsdl:message name="partInquiryRequest">
        <wsdl:part element="tns1:partInquiry" name="parameters" />
    </wsdl:message>
    <wsdl:message name="partInquiryResponse">
        <wsdl:part element="tns1:partInquiryResponse" name="parameters" />
    </wsdl:message>
    <wsdl:portType name="WEJOEI">
        <wsdl:operation name="partInquiry">
            <wsdl:input message="impl:partInquiryRequest" 
name="partInquiryRequest" />
            <wsdl:output message="impl:partInquiryResponse" 
name="partInquiryResponse" />
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
        <wsdlsoap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http" />
        <wsdl:operation name="partInquiry">
            <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartInquiry" />
            <wsdl:input name="partInquiryRequest">
                <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal" />
            </wsdl:input>
            <wsdl:output name="partInquiryResponse">
                <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal" />
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="WEJOEI">
        <wsdl:port binding="impl:WEJOEISoapBinding" name="WEJOEI">
            <wsdlsoap:address 
location="http://localhost:8080/axis/services/WEJOEI" />
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>


Anne, this is similar to what you are telling me to do.  But, notice that 
you told me to set the name attribute of the part of the message to 
"input", whereas he wants it to be "parameters".  What is the difference? 
Will "parameters" work?

Also, when I generate the Axis web service from this, and go to the WSDL 
URL (?wsdl), I get bad output WSDL that looks like:

<element name="&gt;partInquiry&gt;divNumber" type="xsd:string"/>

instead of:

<element name="divNumber" type="xsd:string"/>


I am using Axis1.2beta.


Thanks.




"Anne Thomas Manes" <an...@manes.net> 
04/20/2004 03:48 PM
Please respond to
axis-user@ws.apache.org


To
<ax...@ws.apache.org>
cc

Subject
RE: SimpleDeserializer encountered a child element






Sorry -- I didn't have time to complete my earlier email.
Here's an example of what your WSDL should look like.

Focusing on your first operation, partInquiry:

You need to define an element named "partInquiry". I suggest modifying 
your
first schema definition as follows:

<wsdl:types>
  <schema elementFormDefault="qualified" 
    targetNamespace="urn:WEJOEI:genpt.com" 
    xmlns="http://www.w3.org/2001/XMLSchema">
<element name="partInquiry>
 <complexType name="partInquiry_t"
  <sequence>
   <element name="divNumber" type="xsd:string"/>
   <element name="dcNumber" type="xsd:string"/>
   <element name="custNumber" type="xsd:string"/>
   <element name="quantity" type="xsd:int"/>
   <element name="partId" type="xsd:string"/>
   <element name="lineId" type="xsd:string"/>
  </sequence>
 </complexType>
</element>
...
  </schema>
...
</wsdl:types>

You must modify the "PartInquiryRequest" message definition:

   <wsdl:message name="PartInquiryRequest">
      <wsdl:part element="impl:partInquiry" name="input"/>
   </wsdl:message>

You should remove the parameterOrder attributes from your <portType>
definitions:

   <wsdl:portType name="WEJOEI">
      <wsdl:operation name="partInquiry">
         <wsdl:input message="impl:PartInquiryRequest" 
           name="partInquiryRequest"/>
         <wsdl:output message="impl:PartInquiryResponse" 
           name="partInquiryResponse"/>
      </wsdl:operation>
...
   </wsdl:portType>

You must also remove the namespace attribute from your <binding>
definitions:

   <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
      <wsdlsoap:binding style="document" 
        transport="http://schemas.xmlsoap.org/soap/http"/>
      <wsdl:operation name="partInquiry">
         <wsdlsoap:operation 
            soapAction="urn:WEJOEI:genpt.com/PartInquiry"/>
         <wsdl:input name="partInquiryRequest">
            <wsdlsoap:body use="literal"/>
         </wsdl:input>
         <wsdl:output name="partInquiryResponse">
            <wsdlsoap:body use="literal"/>
         </wsdl:output>
      </wsdl:operation>
...
   </wsdl:binding>

Regards,
Anne

-----Original Message-----
From: Joe_Rattz@genpt.com [mailto:Joe_Rattz@genpt.com] 
Sent: Tuesday, April 20, 2004 7:46 AM
To: axis-user@ws.apache.org
Cc: Joe_Rattz@genpt.com
Subject: SimpleDeserializer encountered a child element

I am having incredible problems trying to call an Axis web service from 
.NET.  I am working with MS support, but it is not going well.  I am now 
using Axis 1.2b.  There seems to be a lot of miscommunication between Axis 



and .NET in terms of interpretting WSDL.  The standard must leave a LOT to 



interpretation.

One of the problems initially is that his proxy generator interprets that 
the ParameterStyle should be bare, but when the web service is called, I 
get an exception.  It looks as though Axis is not getting the operation 
name in the soap envelope and is expecting it.  So, I have now forced 
(hand modified) the .NET proxy to use wrapped parameter style.  But I 
still get the problem below.

Here is what the SOAP trace looks like.

Request:

POST /axis/services/WEJOEI HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client 
Protocol 1.1.4322.573)
Content-Type: text/xml; charset=utf-8
SOAPAction: "urn:WEJOEI:genpt.com/PartInquiry"
Content-Length: 441
Expect: 100-continue
Connection: Keep-Alive
Host: localhost:8082

<?xml version="1.0" encoding="utf-8"?><soap:Envelope 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><partInquiry 
xmlns="urn:WEJOEI:genpt.com"><divNumber>70</divNumber><dcNumber>01</dcNumber
><custNumber>994</custNumber><quantity>1</quantity><partId>1515</partId><lin
eId>FIL</lineId></partInquiry></soap:Body></soap:Envelope>


Response:

HTTP/1.1 100 Continue

HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=utf-8
Transfer-Encoding: chunked
Date: Tue, 20 Apr 2004 14:24:35 GMT
Server: Apache Coyote/1.0
Connection: close

21e
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode>soapenv:Server.userException</faultcode>
   <faultstring>org.xml.sax.SAXException: SimpleDeserializer encountered a 


child element, which is NOT expected, in something it was trying to 
deserialize.</faultstring>
   <detail/>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>
0

And here is the WSDL from axis:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:WEJOEI:genpt.com" 
xmlns:apachesoap="http://xml.apache.org/xml-soap" 
xmlns:impl="urn:WEJOEI:genpt.com" xmlns:intf="urn:WEJOEI:genpt.com" 
xmlns:tns1="urn:types:WEJOEI:genpt.com" 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.2beta
Built on Mar 31, 2004 (12:47:03 EST)-->
 <wsdl:types>
  <schema elementFormDefault="qualified" 
targetNamespace="urn:WEJOEI:genpt.com" xmlns="
http://www.w3.org/2001/XMLSchema">
   <element name="divNumber" type="xsd:string"/>
   <element name="dcNumber" type="xsd:string"/>
   <element name="custNumber" type="xsd:string"/>
   <element name="quantity" type="xsd:int"/>
   <element name="partId" type="xsd:string"/>
   <element name="lineId" type="xsd:string"/>
   <element name="returnData" type="tns1:returnData_t"/>
   <element name="orderDCAbbreviation" type="xsd:string"/>
   <element name="shippingCode" type="xsd:string"/>
   <element name="callbackFlag" type="xsd:string"/>
   <element name="purchaseOrder" type="xsd:string"/>
   <element name="remarks" type="xsd:string"/>
   <element name="typeCode" type="xsd:string"/>
   <element name="password" type="xsd:string"/>
   <element name="tams" type="xsd:string"/>
   <element name="tamsRevision" type="xsd:string"/>
   <element name="inqOrdCode" type="xsd:string"/>
   <element name="optionCode" type="xsd:string"/>
   <element name="orderRemarks" type="xsd:string"/>
  </schema>
  <schema elementFormDefault="qualified" 
targetNamespace="urn:types:WEJOEI:genpt.com" xmlns="
http://www.w3.org/2001/XMLSchema">
   <complexType name="messageData_t">
    <sequence>
     <element name="dcAbbreviation" nillable="true" type="xsd:string"/>
     <element name="messageNumber" nillable="true" type="xsd:string"/>
     <element name="messageText" nillable="true" type="xsd:string"/>
    </sequence>
   </complexType>
   <complexType name="returnData_t">
    <sequence>
     <element name="statusCode" type="xsd:int"/>
     <element maxOccurs="unbounded" name="messageDataCollection" 
nillable="true" type="tns1:messageData_t"/>
    </sequence>
   </complexType>
  </schema>
 </wsdl:types>
 <wsdl:message name="PartOrderMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
<wsdl:message name="PartOrderMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartOrderResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiRequest">
      <wsdl:part element="impl:typeCode" name="typeCode"/>
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:password" name="password"/>
      <wsdl:part element="impl:tams" name="tams"/>
      <wsdl:part element="impl:tamsRevision" name="tamsRevision"/>
      <wsdl:part element="impl:inqOrdCode" name="inqOrdCode"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:optionCode" name="optionCode"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:orderRemarks" name="orderRemarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartOrderMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartOrderRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartOrderResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiRequest">
      <wsdl:part element="impl:typeCode" name="typeCode"/>
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:password" name="password"/>
      <wsdl:part element="impl:tams" name="tams"/>
      <wsdl:part element="impl:tamsRevision" name="tamsRevision"/>
      <wsdl:part element="impl:inqOrdCode" name="inqOrdCode"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:optionCode" name="optionCode"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:orderRemarks" name="orderRemarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartOrderMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartOrderRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:portType name="WEJOEI">
      <wsdl:operation name="partInquiry" parameterOrder="divNumber 
dcNumber custNumber quantity partId lineId">
         <wsdl:input message="impl:PartInquiryRequest" 
name="PartInquiryRequest"/>
         <wsdl:output message="impl:PartInquiryResponse" 
name="PartInquiryResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partInquiryMfg" parameterOrder="divNumber 
dcNumber custNumber partId lineId">
         <wsdl:input message="impl:PartInquiryMfgRequest" 
name="PartInquiryMfgRequest"/>
         <wsdl:output message="impl:PartInquiryMfgResponse" 
name="PartInquiryMfgResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partOrder" parameterOrder="divNumber dcNumber 
custNumber quantity partId lineId orderDCAbbreviation shippingCode 
callbackFlag purchaseOrder remarks">
         <wsdl:input message="impl:PartOrderRequest" 
name="PartOrderRequest"/>
         <wsdl:output message="impl:PartOrderResponse" 
name="PartOrderResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partOrderMfg" parameterOrder="divNumber 
dcNumber custNumber quantity partId lineId orderDCAbbreviation 
shippingCode callbackFlag purchaseOrder remarks">
         <wsdl:input message="impl:PartOrderMfgRequest" 
name="PartOrderMfgRequest"/>
         <wsdl:output message="impl:PartOrderMfgResponse" 
name="PartOrderMfgResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partDownload" parameterOrder="divNumber 
dcNumber custNumber partId lineId">
         <wsdl:input message="impl:PartDownloadRequest" 
name="PartDownloadRequest"/>
         <wsdl:output message="impl:PartDownloadResponse" 
name="PartDownloadResponse"/>
      </wsdl:operation>
      <wsdl:operation name="inqjoei" parameterOrder="typeCode divNumber 
dcNumber custNumber password tams tamsRevision inqOrdCode quantity partId 
lineId optionCode orderDCAbbreviation shippingCode callbackFlag 
purchaseOrder orderRemarks">
         <wsdl:input message="impl:InqjoeiRequest" name="InqjoeiRequest"/>
         <wsdl:output message="impl:InqjoeiResponse" 
name="InqjoeiResponse"/>
      </wsdl:operation>
   </wsdl:portType>
   <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
      <wsdlsoap:binding style="document" transport="
http://schemas.xmlsoap.org/soap/http"/>
      <wsdl:operation name="partInquiry">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartInquiry"/>
         <wsdl:input name="PartInquiryRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartInquiryResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partInquiryMfg">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartInquiryMfg"/>
         <wsdl:input name="PartInquiryMfgRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartInquiryMfgResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partOrder">
         <wsdlsoap:operation soapAction="urn:WEJOEI:genpt.com/PartOrder"/>
         <wsdl:input name="PartOrderRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartOrderResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partOrderMfg">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartOrderMfg"/>
         <wsdl:input name="PartOrderMfgRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartOrderMfgResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partDownload">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartDownload"/>
         <wsdl:input name="PartDownloadRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartDownloadResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="inqjoei">
         <wsdlsoap:operation soapAction="urn:WEJOEI:genpt.com/Inqjoei"/>
         <wsdl:input name="InqjoeiRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="InqjoeiResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
   </wsdl:binding>
   <wsdl:service name="WEJOEI">
      <wsdl:port binding="impl:WEJOEISoapBinding" name="WEJOEI">
         <wsdlsoap:address location="
http://localhost:8080/axis/services/WEJOEI"/>
      </wsdl:port>
   </wsdl:service>
</wsdl:definitions>






RE: SimpleDeserializer encountered a child element

Posted by Anne Thomas Manes <an...@manes.net>.
It is fine to use name="parameters" for the message part definition. (I
think this is a required convention for the .NET "wrapped" style; the name
of the element is not significant in Axis.)

At this point you're defining a number of elements twice, which might be
what's causing your problem. Also you still have a namespace attribute
specified in the <binding>. That has to go. Try this. Notice that I've
removed extraneous namespace declarations and gotten rid of the second
schema:

<?xml version="1.0" encoding="UTF-8" ?>
<wsdl:definitions 
  targetNamespace="urn:WEJOEI:genpt.com" 
  xmlns:impl="urn:WEJOEI:genpt.com" 
  xmlns:intf="urn:WEJOEI:genpt.com"
  xmlns:tns1="urn:types:WEJOEI:genpt.com"
  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
  xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <wsdl:types>
    <schema 
      targetNamespace="urn:types:WEJOEI:genpt.com" 
      xmlns="http://www.w3.org/2001/XMLSchema"
      elementFormDefault="qualified">
      <complexType name="messageData_t">
         <sequence>
            <element minOccurs="0" maxOccurs="1" 
               name="dcAbbreviation" 
               nillable="true" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="messageNumber" 
               nillable="true" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="messageText" 
               nillable="true" type="xsd:string" />
         </sequence>
      </complexType>
      <complexType name="returnData_t">
         <sequence>
            <element name="statusCode" type="xsd:int" />
            <element maxOccurs="unbounded" 
               name="messageDataCollection" nillable="true" 
               type="tns1:messageData_t" />
         </sequence>
      </complexType>
      <element name="partInquiry" type="tns1:partInquiry_t" />
      <complexType name="partInquiry_t">
         <sequence>
            <element minOccurs="0" maxOccurs="1" 
               name="divNumber" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="dcNumber" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="custNumber" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="quantity" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="partId" type="xsd:string" />
            <element minOccurs="0" maxOccurs="1" 
               name="lineId" type="xsd:string" />
         </sequence>
      </complexType>
      <xsd:element name="partInquiryResponse" 
         type="tns1:partInquiryResponse_t" />
      <xsd:complexType name="partInquiryResponse_t">
         <xsd:sequence>
            <xsd:element minOccurs="0" maxOccurs="1" 
              name="partInquiryResult" type="tns1:returnData_t" />
         </xsd:sequence>
      </xsd:complexType>
    </schema>
  </wsdl:types>
  <wsdl:message name="partInquiryRequest">
    <wsdl:part element="tns1:partInquiry" name="parameters" />
  </wsdl:message>
  <wsdl:message name="partInquiryResponse">
    <wsdl:part element="tns1:partInquiryResponse" name="parameters" />
  </wsdl:message>
  <wsdl:portType name="WEJOEI">
    <wsdl:operation name="partInquiry">
      <wsdl:input message="impl:partInquiryRequest" 
          name="partInquiryRequest" />
      <wsdl:output message="impl:partInquiryResponse" 
          name="partInquiryResponse" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
    <wsdlsoap:binding style="document" 
       transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="partInquiry">
       <wsdlsoap:operation 
          soapAction="urn:WEJOEI:genpt.com/PartInquiry" />
       <wsdl:input name="partInquiryRequest">
          <wsdlsoap:body use="literal" />
       </wsdl:input>
       <wsdl:output name="partInquiryResponse">
          <wsdlsoap:body use="literal" />
       </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="WEJOEI">
    <wsdl:port binding="impl:WEJOEISoapBinding" name="WEJOEI">
       <wsdlsoap:address 
          location="http://localhost:8080/axis/services/WEJOEI" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>

-----Original Message-----
From: Joe_Rattz@genpt.com [mailto:Joe_Rattz@genpt.com] 
Sent: Tuesday, April 20, 2004 1:29 PM
To: axis-user@ws.apache.org
Cc: sulabhs@microsoft.com
Subject: RE: SimpleDeserializer encountered a child element

Ok, this is complicated.  It is more complicated than it looks because the 
MS support guy is telling me similar but different things.

I am including him on this message.  Perhaps with you and him able to swap 
info, this will be easier?

Here is the WSDL he and I are working with:

<?xml version="1.0" encoding="UTF-8" ?>
<wsdl:definitions targetNamespace="urn:WEJOEI:genpt.com" 
xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:apachesoap="http://xml.apache.org/xml-soap" 
xmlns:impl="urn:WEJOEI:genpt.com" xmlns:intf="urn:WEJOEI:genpt.com"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:tns1="urn:types:WEJOEI:genpt.com"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <wsdl:types>
        <schema targetNamespace="urn:types:WEJOEI:genpt.com" 
xmlns="http://www.w3.org/2001/XMLSchema"
            elementFormDefault="qualified">
            <complexType name="messageData_t">
                <sequence>
                    <element minOccurs="0" maxOccurs="1" 
name="dcAbbreviation" nillable="true" type="xsd:string" />
                    <element minOccurs="0" maxOccurs="1" 
name="messageNumber" nillable="true" type="xsd:string" />
                    <element minOccurs="0" maxOccurs="1" 
name="messageText" nillable="true" type="xsd:string" />
                </sequence>
            </complexType>
            <complexType name="returnData_t">
                <sequence>
                    <element name="statusCode" type="xsd:int" />
                    <element maxOccurs="unbounded" 
name="messageDataCollection" nillable="true" type="tns1:messageData_t" />
                </sequence>
            </complexType>
            <element name="partInquiry">
                <complexType>
                    <sequence>
                        <element minOccurs="0" maxOccurs="1" 
name="divNumber" type="xsd:string" />
                        <element minOccurs="0" maxOccurs="1" 
name="dcNumber" type="xsd:string" />
                        <element minOccurs="0" maxOccurs="1" 
name="custNumber" type="xsd:string" />
                        <element minOccurs="0" maxOccurs="1" 
name="quantity" type="xsd:string" />
                        <element minOccurs="0" maxOccurs="1" name="partId" 
type="xsd:string" />
                        <element minOccurs="0" maxOccurs="1" name="lineId" 
type="xsd:string" />
                    </sequence>
                </complexType>
            </element>
            <xsd:element name="partInquiryResponse">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element minOccurs="0" maxOccurs="1" 
name="partInquiryResult" type="tns1:returnData_t" />
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
        </schema>
        <schema targetNamespace="urn:WEJOEI:genpt.com" 
xmlns="http://www.w3.org/2001/XMLSchema"
            elementFormDefault="qualified">
            <element name="divNumber" type="xsd:string" />
            <element name="dcNumber" type="xsd:string" />
            <element name="custNumber" type="xsd:string" />
            <element name="quantity" type="xsd:int" />
            <element name="partId" type="xsd:string" />
            <element name="lineId" type="xsd:string" />
            <element name="returnData" type="tns1:returnData_t" />
            <element name="orderDCAbbreviation" type="xsd:string" />
            <element name="shippingCode" type="xsd:string" />
            <element name="callbackFlag" type="xsd:string" />
            <element name="purchaseOrder" type="xsd:string" />
            <element name="remarks" type="xsd:string" />
            <element name="typeCode" type="xsd:string" />
            <element name="password" type="xsd:string" />
            <element name="tams" type="xsd:string" />
            <element name="tamsRevision" type="xsd:string" />
            <element name="inqOrdCode" type="xsd:string" />
            <element name="optionCode" type="xsd:string" />
            <element name="orderRemarks" type="xsd:string" />
        </schema>
    </wsdl:types>
    <wsdl:message name="partInquiryRequest">
        <wsdl:part element="tns1:partInquiry" name="parameters" />
    </wsdl:message>
    <wsdl:message name="partInquiryResponse">
        <wsdl:part element="tns1:partInquiryResponse" name="parameters" />
    </wsdl:message>
    <wsdl:portType name="WEJOEI">
        <wsdl:operation name="partInquiry">
            <wsdl:input message="impl:partInquiryRequest" 
name="partInquiryRequest" />
            <wsdl:output message="impl:partInquiryResponse" 
name="partInquiryResponse" />
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
        <wsdlsoap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http" />
        <wsdl:operation name="partInquiry">
            <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartInquiry" />
            <wsdl:input name="partInquiryRequest">
                <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal" />
            </wsdl:input>
            <wsdl:output name="partInquiryResponse">
                <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal" />
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="WEJOEI">
        <wsdl:port binding="impl:WEJOEISoapBinding" name="WEJOEI">
            <wsdlsoap:address 
location="http://localhost:8080/axis/services/WEJOEI" />
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>


Anne, this is similar to what you are telling me to do.  But, notice that 
you told me to set the name attribute of the part of the message to 
"input", whereas he wants it to be "parameters".  What is the difference? 
Will "parameters" work?

Also, when I generate the Axis web service from this, and go to the WSDL 
URL (?wsdl), I get bad output WSDL that looks like:

<element name="&gt;partInquiry&gt;divNumber" type="xsd:string"/>

instead of:

<element name="divNumber" type="xsd:string"/>


I am using Axis1.2beta.


Thanks.




"Anne Thomas Manes" <an...@manes.net> 
04/20/2004 03:48 PM
Please respond to
axis-user@ws.apache.org


To
<ax...@ws.apache.org>
cc

Subject
RE: SimpleDeserializer encountered a child element






Sorry -- I didn't have time to complete my earlier email.
Here's an example of what your WSDL should look like.

Focusing on your first operation, partInquiry:

You need to define an element named "partInquiry". I suggest modifying 
your
first schema definition as follows:

<wsdl:types>
  <schema elementFormDefault="qualified" 
    targetNamespace="urn:WEJOEI:genpt.com" 
    xmlns="http://www.w3.org/2001/XMLSchema">
<element name="partInquiry>
 <complexType name="partInquiry_t"
  <sequence>
   <element name="divNumber" type="xsd:string"/>
   <element name="dcNumber" type="xsd:string"/>
   <element name="custNumber" type="xsd:string"/>
   <element name="quantity" type="xsd:int"/>
   <element name="partId" type="xsd:string"/>
   <element name="lineId" type="xsd:string"/>
  </sequence>
 </complexType>
</element>
...
  </schema>
...
</wsdl:types>

You must modify the "PartInquiryRequest" message definition:

   <wsdl:message name="PartInquiryRequest">
      <wsdl:part element="impl:partInquiry" name="input"/>
   </wsdl:message>

You should remove the parameterOrder attributes from your <portType>
definitions:

   <wsdl:portType name="WEJOEI">
      <wsdl:operation name="partInquiry">
         <wsdl:input message="impl:PartInquiryRequest" 
           name="partInquiryRequest"/>
         <wsdl:output message="impl:PartInquiryResponse" 
           name="partInquiryResponse"/>
      </wsdl:operation>
...
   </wsdl:portType>

You must also remove the namespace attribute from your <binding>
definitions:

   <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
      <wsdlsoap:binding style="document" 
        transport="http://schemas.xmlsoap.org/soap/http"/>
      <wsdl:operation name="partInquiry">
         <wsdlsoap:operation 
            soapAction="urn:WEJOEI:genpt.com/PartInquiry"/>
         <wsdl:input name="partInquiryRequest">
            <wsdlsoap:body use="literal"/>
         </wsdl:input>
         <wsdl:output name="partInquiryResponse">
            <wsdlsoap:body use="literal"/>
         </wsdl:output>
      </wsdl:operation>
...
   </wsdl:binding>

Regards,
Anne

-----Original Message-----
From: Joe_Rattz@genpt.com [mailto:Joe_Rattz@genpt.com] 
Sent: Tuesday, April 20, 2004 7:46 AM
To: axis-user@ws.apache.org
Cc: Joe_Rattz@genpt.com
Subject: SimpleDeserializer encountered a child element

I am having incredible problems trying to call an Axis web service from 
.NET.  I am working with MS support, but it is not going well.  I am now 
using Axis 1.2b.  There seems to be a lot of miscommunication between Axis 


and .NET in terms of interpretting WSDL.  The standard must leave a LOT to 


interpretation.

One of the problems initially is that his proxy generator interprets that 
the ParameterStyle should be bare, but when the web service is called, I 
get an exception.  It looks as though Axis is not getting the operation 
name in the soap envelope and is expecting it.  So, I have now forced 
(hand modified) the .NET proxy to use wrapped parameter style.  But I 
still get the problem below.

Here is what the SOAP trace looks like.

Request:

POST /axis/services/WEJOEI HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client 
Protocol 1.1.4322.573)
Content-Type: text/xml; charset=utf-8
SOAPAction: "urn:WEJOEI:genpt.com/PartInquiry"
Content-Length: 441
Expect: 100-continue
Connection: Keep-Alive
Host: localhost:8082

<?xml version="1.0" encoding="utf-8"?><soap:Envelope 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><partInquiry 
xmlns="urn:WEJOEI:genpt.com"><divNumber>70</divNumber><dcNumber>01</dcNumber
><custNumber>994</custNumber><quantity>1</quantity><partId>1515</partId><lin
eId>FIL</lineId></partInquiry></soap:Body></soap:Envelope>


Response:

HTTP/1.1 100 Continue

HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=utf-8
Transfer-Encoding: chunked
Date: Tue, 20 Apr 2004 14:24:35 GMT
Server: Apache Coyote/1.0
Connection: close

21e
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode>soapenv:Server.userException</faultcode>
   <faultstring>org.xml.sax.SAXException: SimpleDeserializer encountered a 

child element, which is NOT expected, in something it was trying to 
deserialize.</faultstring>
   <detail/>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>
0

And here is the WSDL from axis:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:WEJOEI:genpt.com" 
xmlns:apachesoap="http://xml.apache.org/xml-soap" 
xmlns:impl="urn:WEJOEI:genpt.com" xmlns:intf="urn:WEJOEI:genpt.com" 
xmlns:tns1="urn:types:WEJOEI:genpt.com" 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.2beta
Built on Mar 31, 2004 (12:47:03 EST)-->
 <wsdl:types>
  <schema elementFormDefault="qualified" 
targetNamespace="urn:WEJOEI:genpt.com" xmlns="
http://www.w3.org/2001/XMLSchema">
   <element name="divNumber" type="xsd:string"/>
   <element name="dcNumber" type="xsd:string"/>
   <element name="custNumber" type="xsd:string"/>
   <element name="quantity" type="xsd:int"/>
   <element name="partId" type="xsd:string"/>
   <element name="lineId" type="xsd:string"/>
   <element name="returnData" type="tns1:returnData_t"/>
   <element name="orderDCAbbreviation" type="xsd:string"/>
   <element name="shippingCode" type="xsd:string"/>
   <element name="callbackFlag" type="xsd:string"/>
   <element name="purchaseOrder" type="xsd:string"/>
   <element name="remarks" type="xsd:string"/>
   <element name="typeCode" type="xsd:string"/>
   <element name="password" type="xsd:string"/>
   <element name="tams" type="xsd:string"/>
   <element name="tamsRevision" type="xsd:string"/>
   <element name="inqOrdCode" type="xsd:string"/>
   <element name="optionCode" type="xsd:string"/>
   <element name="orderRemarks" type="xsd:string"/>
  </schema>
  <schema elementFormDefault="qualified" 
targetNamespace="urn:types:WEJOEI:genpt.com" xmlns="
http://www.w3.org/2001/XMLSchema">
   <complexType name="messageData_t">
    <sequence>
     <element name="dcAbbreviation" nillable="true" type="xsd:string"/>
     <element name="messageNumber" nillable="true" type="xsd:string"/>
     <element name="messageText" nillable="true" type="xsd:string"/>
    </sequence>
   </complexType>
   <complexType name="returnData_t">
    <sequence>
     <element name="statusCode" type="xsd:int"/>
     <element maxOccurs="unbounded" name="messageDataCollection" 
nillable="true" type="tns1:messageData_t"/>
    </sequence>
   </complexType>
  </schema>
 </wsdl:types>
 <wsdl:message name="PartOrderMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
<wsdl:message name="PartOrderMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartOrderResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiRequest">
      <wsdl:part element="impl:typeCode" name="typeCode"/>
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:password" name="password"/>
      <wsdl:part element="impl:tams" name="tams"/>
      <wsdl:part element="impl:tamsRevision" name="tamsRevision"/>
      <wsdl:part element="impl:inqOrdCode" name="inqOrdCode"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:optionCode" name="optionCode"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:orderRemarks" name="orderRemarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartOrderMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartOrderRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartOrderResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiRequest">
      <wsdl:part element="impl:typeCode" name="typeCode"/>
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:password" name="password"/>
      <wsdl:part element="impl:tams" name="tams"/>
      <wsdl:part element="impl:tamsRevision" name="tamsRevision"/>
      <wsdl:part element="impl:inqOrdCode" name="inqOrdCode"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:optionCode" name="optionCode"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:orderRemarks" name="orderRemarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartOrderMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartOrderRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:portType name="WEJOEI">
      <wsdl:operation name="partInquiry" parameterOrder="divNumber 
dcNumber custNumber quantity partId lineId">
         <wsdl:input message="impl:PartInquiryRequest" 
name="PartInquiryRequest"/>
         <wsdl:output message="impl:PartInquiryResponse" 
name="PartInquiryResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partInquiryMfg" parameterOrder="divNumber 
dcNumber custNumber partId lineId">
         <wsdl:input message="impl:PartInquiryMfgRequest" 
name="PartInquiryMfgRequest"/>
         <wsdl:output message="impl:PartInquiryMfgResponse" 
name="PartInquiryMfgResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partOrder" parameterOrder="divNumber dcNumber 
custNumber quantity partId lineId orderDCAbbreviation shippingCode 
callbackFlag purchaseOrder remarks">
         <wsdl:input message="impl:PartOrderRequest" 
name="PartOrderRequest"/>
         <wsdl:output message="impl:PartOrderResponse" 
name="PartOrderResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partOrderMfg" parameterOrder="divNumber 
dcNumber custNumber quantity partId lineId orderDCAbbreviation 
shippingCode callbackFlag purchaseOrder remarks">
         <wsdl:input message="impl:PartOrderMfgRequest" 
name="PartOrderMfgRequest"/>
         <wsdl:output message="impl:PartOrderMfgResponse" 
name="PartOrderMfgResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partDownload" parameterOrder="divNumber 
dcNumber custNumber partId lineId">
         <wsdl:input message="impl:PartDownloadRequest" 
name="PartDownloadRequest"/>
         <wsdl:output message="impl:PartDownloadResponse" 
name="PartDownloadResponse"/>
      </wsdl:operation>
      <wsdl:operation name="inqjoei" parameterOrder="typeCode divNumber 
dcNumber custNumber password tams tamsRevision inqOrdCode quantity partId 
lineId optionCode orderDCAbbreviation shippingCode callbackFlag 
purchaseOrder orderRemarks">
         <wsdl:input message="impl:InqjoeiRequest" name="InqjoeiRequest"/>
         <wsdl:output message="impl:InqjoeiResponse" 
name="InqjoeiResponse"/>
      </wsdl:operation>
   </wsdl:portType>
   <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
      <wsdlsoap:binding style="document" transport="
http://schemas.xmlsoap.org/soap/http"/>
      <wsdl:operation name="partInquiry">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartInquiry"/>
         <wsdl:input name="PartInquiryRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartInquiryResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partInquiryMfg">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartInquiryMfg"/>
         <wsdl:input name="PartInquiryMfgRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartInquiryMfgResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partOrder">
         <wsdlsoap:operation soapAction="urn:WEJOEI:genpt.com/PartOrder"/>
         <wsdl:input name="PartOrderRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartOrderResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partOrderMfg">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartOrderMfg"/>
         <wsdl:input name="PartOrderMfgRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartOrderMfgResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partDownload">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartDownload"/>
         <wsdl:input name="PartDownloadRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartDownloadResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="inqjoei">
         <wsdlsoap:operation soapAction="urn:WEJOEI:genpt.com/Inqjoei"/>
         <wsdl:input name="InqjoeiRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="InqjoeiResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
   </wsdl:binding>
   <wsdl:service name="WEJOEI">
      <wsdl:port binding="impl:WEJOEISoapBinding" name="WEJOEI">
         <wsdlsoap:address location="
http://localhost:8080/axis/services/WEJOEI"/>
      </wsdl:port>
   </wsdl:service>
</wsdl:definitions>




RE: SimpleDeserializer encountered a child element

Posted by Jo...@genpt.com.
Ok, this is complicated.  It is more complicated than it looks because the 
MS support guy is telling me similar but different things.

I am including him on this message.  Perhaps with you and him able to swap 
info, this will be easier?

Here is the WSDL he and I are working with:

<?xml version="1.0" encoding="UTF-8" ?>
<wsdl:definitions targetNamespace="urn:WEJOEI:genpt.com" 
xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:apachesoap="http://xml.apache.org/xml-soap" 
xmlns:impl="urn:WEJOEI:genpt.com" xmlns:intf="urn:WEJOEI:genpt.com"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:tns1="urn:types:WEJOEI:genpt.com"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <wsdl:types>
        <schema targetNamespace="urn:types:WEJOEI:genpt.com" 
xmlns="http://www.w3.org/2001/XMLSchema"
            elementFormDefault="qualified">
            <complexType name="messageData_t">
                <sequence>
                    <element minOccurs="0" maxOccurs="1" 
name="dcAbbreviation" nillable="true" type="xsd:string" />
                    <element minOccurs="0" maxOccurs="1" 
name="messageNumber" nillable="true" type="xsd:string" />
                    <element minOccurs="0" maxOccurs="1" 
name="messageText" nillable="true" type="xsd:string" />
                </sequence>
            </complexType>
            <complexType name="returnData_t">
                <sequence>
                    <element name="statusCode" type="xsd:int" />
                    <element maxOccurs="unbounded" 
name="messageDataCollection" nillable="true" type="tns1:messageData_t" />
                </sequence>
            </complexType>
            <element name="partInquiry">
                <complexType>
                    <sequence>
                        <element minOccurs="0" maxOccurs="1" 
name="divNumber" type="xsd:string" />
                        <element minOccurs="0" maxOccurs="1" 
name="dcNumber" type="xsd:string" />
                        <element minOccurs="0" maxOccurs="1" 
name="custNumber" type="xsd:string" />
                        <element minOccurs="0" maxOccurs="1" 
name="quantity" type="xsd:string" />
                        <element minOccurs="0" maxOccurs="1" name="partId" 
type="xsd:string" />
                        <element minOccurs="0" maxOccurs="1" name="lineId" 
type="xsd:string" />
                    </sequence>
                </complexType>
            </element>
            <xsd:element name="partInquiryResponse">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element minOccurs="0" maxOccurs="1" 
name="partInquiryResult" type="tns1:returnData_t" />
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
        </schema>
        <schema targetNamespace="urn:WEJOEI:genpt.com" 
xmlns="http://www.w3.org/2001/XMLSchema"
            elementFormDefault="qualified">
            <element name="divNumber" type="xsd:string" />
            <element name="dcNumber" type="xsd:string" />
            <element name="custNumber" type="xsd:string" />
            <element name="quantity" type="xsd:int" />
            <element name="partId" type="xsd:string" />
            <element name="lineId" type="xsd:string" />
            <element name="returnData" type="tns1:returnData_t" />
            <element name="orderDCAbbreviation" type="xsd:string" />
            <element name="shippingCode" type="xsd:string" />
            <element name="callbackFlag" type="xsd:string" />
            <element name="purchaseOrder" type="xsd:string" />
            <element name="remarks" type="xsd:string" />
            <element name="typeCode" type="xsd:string" />
            <element name="password" type="xsd:string" />
            <element name="tams" type="xsd:string" />
            <element name="tamsRevision" type="xsd:string" />
            <element name="inqOrdCode" type="xsd:string" />
            <element name="optionCode" type="xsd:string" />
            <element name="orderRemarks" type="xsd:string" />
        </schema>
    </wsdl:types>
    <wsdl:message name="partInquiryRequest">
        <wsdl:part element="tns1:partInquiry" name="parameters" />
    </wsdl:message>
    <wsdl:message name="partInquiryResponse">
        <wsdl:part element="tns1:partInquiryResponse" name="parameters" />
    </wsdl:message>
    <wsdl:portType name="WEJOEI">
        <wsdl:operation name="partInquiry">
            <wsdl:input message="impl:partInquiryRequest" 
name="partInquiryRequest" />
            <wsdl:output message="impl:partInquiryResponse" 
name="partInquiryResponse" />
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
        <wsdlsoap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http" />
        <wsdl:operation name="partInquiry">
            <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartInquiry" />
            <wsdl:input name="partInquiryRequest">
                <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal" />
            </wsdl:input>
            <wsdl:output name="partInquiryResponse">
                <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal" />
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="WEJOEI">
        <wsdl:port binding="impl:WEJOEISoapBinding" name="WEJOEI">
            <wsdlsoap:address 
location="http://localhost:8080/axis/services/WEJOEI" />
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>


Anne, this is similar to what you are telling me to do.  But, notice that 
you told me to set the name attribute of the part of the message to 
"input", whereas he wants it to be "parameters".  What is the difference? 
Will "parameters" work?

Also, when I generate the Axis web service from this, and go to the WSDL 
URL (?wsdl), I get bad output WSDL that looks like:

<element name="&gt;partInquiry&gt;divNumber" type="xsd:string"/>

instead of:

<element name="divNumber" type="xsd:string"/>


I am using Axis1.2beta.


Thanks.




"Anne Thomas Manes" <an...@manes.net> 
04/20/2004 03:48 PM
Please respond to
axis-user@ws.apache.org


To
<ax...@ws.apache.org>
cc

Subject
RE: SimpleDeserializer encountered a child element






Sorry -- I didn't have time to complete my earlier email.
Here's an example of what your WSDL should look like.

Focusing on your first operation, partInquiry:

You need to define an element named "partInquiry". I suggest modifying 
your
first schema definition as follows:

<wsdl:types>
  <schema elementFormDefault="qualified" 
    targetNamespace="urn:WEJOEI:genpt.com" 
    xmlns="http://www.w3.org/2001/XMLSchema">
<element name="partInquiry>
 <complexType name="partInquiry_t"
  <sequence>
   <element name="divNumber" type="xsd:string"/>
   <element name="dcNumber" type="xsd:string"/>
   <element name="custNumber" type="xsd:string"/>
   <element name="quantity" type="xsd:int"/>
   <element name="partId" type="xsd:string"/>
   <element name="lineId" type="xsd:string"/>
  </sequence>
 </complexType>
</element>
...
  </schema>
...
</wsdl:types>

You must modify the "PartInquiryRequest" message definition:

   <wsdl:message name="PartInquiryRequest">
      <wsdl:part element="impl:partInquiry" name="input"/>
   </wsdl:message>

You should remove the parameterOrder attributes from your <portType>
definitions:

   <wsdl:portType name="WEJOEI">
      <wsdl:operation name="partInquiry">
         <wsdl:input message="impl:PartInquiryRequest" 
           name="partInquiryRequest"/>
         <wsdl:output message="impl:PartInquiryResponse" 
           name="partInquiryResponse"/>
      </wsdl:operation>
...
   </wsdl:portType>

You must also remove the namespace attribute from your <binding>
definitions:

   <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
      <wsdlsoap:binding style="document" 
        transport="http://schemas.xmlsoap.org/soap/http"/>
      <wsdl:operation name="partInquiry">
         <wsdlsoap:operation 
            soapAction="urn:WEJOEI:genpt.com/PartInquiry"/>
         <wsdl:input name="partInquiryRequest">
            <wsdlsoap:body use="literal"/>
         </wsdl:input>
         <wsdl:output name="partInquiryResponse">
            <wsdlsoap:body use="literal"/>
         </wsdl:output>
      </wsdl:operation>
...
   </wsdl:binding>

Regards,
Anne

-----Original Message-----
From: Joe_Rattz@genpt.com [mailto:Joe_Rattz@genpt.com] 
Sent: Tuesday, April 20, 2004 7:46 AM
To: axis-user@ws.apache.org
Cc: Joe_Rattz@genpt.com
Subject: SimpleDeserializer encountered a child element

I am having incredible problems trying to call an Axis web service from 
.NET.  I am working with MS support, but it is not going well.  I am now 
using Axis 1.2b.  There seems to be a lot of miscommunication between Axis 


and .NET in terms of interpretting WSDL.  The standard must leave a LOT to 


interpretation.

One of the problems initially is that his proxy generator interprets that 
the ParameterStyle should be bare, but when the web service is called, I 
get an exception.  It looks as though Axis is not getting the operation 
name in the soap envelope and is expecting it.  So, I have now forced 
(hand modified) the .NET proxy to use wrapped parameter style.  But I 
still get the problem below.

Here is what the SOAP trace looks like.

Request:

POST /axis/services/WEJOEI HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client 
Protocol 1.1.4322.573)
Content-Type: text/xml; charset=utf-8
SOAPAction: "urn:WEJOEI:genpt.com/PartInquiry"
Content-Length: 441
Expect: 100-continue
Connection: Keep-Alive
Host: localhost:8082

<?xml version="1.0" encoding="utf-8"?><soap:Envelope 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><partInquiry 
xmlns="urn:WEJOEI:genpt.com"><divNumber>70</divNumber><dcNumber>01</dcNumber
><custNumber>994</custNumber><quantity>1</quantity><partId>1515</partId><lin
eId>FIL</lineId></partInquiry></soap:Body></soap:Envelope>


Response:

HTTP/1.1 100 Continue

HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=utf-8
Transfer-Encoding: chunked
Date: Tue, 20 Apr 2004 14:24:35 GMT
Server: Apache Coyote/1.0
Connection: close

21e
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode>soapenv:Server.userException</faultcode>
   <faultstring>org.xml.sax.SAXException: SimpleDeserializer encountered a 

child element, which is NOT expected, in something it was trying to 
deserialize.</faultstring>
   <detail/>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>
0

And here is the WSDL from axis:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:WEJOEI:genpt.com" 
xmlns:apachesoap="http://xml.apache.org/xml-soap" 
xmlns:impl="urn:WEJOEI:genpt.com" xmlns:intf="urn:WEJOEI:genpt.com" 
xmlns:tns1="urn:types:WEJOEI:genpt.com" 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.2beta
Built on Mar 31, 2004 (12:47:03 EST)-->
 <wsdl:types>
  <schema elementFormDefault="qualified" 
targetNamespace="urn:WEJOEI:genpt.com" xmlns="
http://www.w3.org/2001/XMLSchema">
   <element name="divNumber" type="xsd:string"/>
   <element name="dcNumber" type="xsd:string"/>
   <element name="custNumber" type="xsd:string"/>
   <element name="quantity" type="xsd:int"/>
   <element name="partId" type="xsd:string"/>
   <element name="lineId" type="xsd:string"/>
   <element name="returnData" type="tns1:returnData_t"/>
   <element name="orderDCAbbreviation" type="xsd:string"/>
   <element name="shippingCode" type="xsd:string"/>
   <element name="callbackFlag" type="xsd:string"/>
   <element name="purchaseOrder" type="xsd:string"/>
   <element name="remarks" type="xsd:string"/>
   <element name="typeCode" type="xsd:string"/>
   <element name="password" type="xsd:string"/>
   <element name="tams" type="xsd:string"/>
   <element name="tamsRevision" type="xsd:string"/>
   <element name="inqOrdCode" type="xsd:string"/>
   <element name="optionCode" type="xsd:string"/>
   <element name="orderRemarks" type="xsd:string"/>
  </schema>
  <schema elementFormDefault="qualified" 
targetNamespace="urn:types:WEJOEI:genpt.com" xmlns="
http://www.w3.org/2001/XMLSchema">
   <complexType name="messageData_t">
    <sequence>
     <element name="dcAbbreviation" nillable="true" type="xsd:string"/>
     <element name="messageNumber" nillable="true" type="xsd:string"/>
     <element name="messageText" nillable="true" type="xsd:string"/>
    </sequence>
   </complexType>
   <complexType name="returnData_t">
    <sequence>
     <element name="statusCode" type="xsd:int"/>
     <element maxOccurs="unbounded" name="messageDataCollection" 
nillable="true" type="tns1:messageData_t"/>
    </sequence>
   </complexType>
  </schema>
 </wsdl:types>
 <wsdl:message name="PartOrderMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
<wsdl:message name="PartOrderMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartOrderResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiRequest">
      <wsdl:part element="impl:typeCode" name="typeCode"/>
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:password" name="password"/>
      <wsdl:part element="impl:tams" name="tams"/>
      <wsdl:part element="impl:tamsRevision" name="tamsRevision"/>
      <wsdl:part element="impl:inqOrdCode" name="inqOrdCode"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:optionCode" name="optionCode"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:orderRemarks" name="orderRemarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartOrderMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartOrderRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartOrderResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiRequest">
      <wsdl:part element="impl:typeCode" name="typeCode"/>
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:password" name="password"/>
      <wsdl:part element="impl:tams" name="tams"/>
      <wsdl:part element="impl:tamsRevision" name="tamsRevision"/>
      <wsdl:part element="impl:inqOrdCode" name="inqOrdCode"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:optionCode" name="optionCode"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:orderRemarks" name="orderRemarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartOrderMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartOrderRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:portType name="WEJOEI">
      <wsdl:operation name="partInquiry" parameterOrder="divNumber 
dcNumber custNumber quantity partId lineId">
         <wsdl:input message="impl:PartInquiryRequest" 
name="PartInquiryRequest"/>
         <wsdl:output message="impl:PartInquiryResponse" 
name="PartInquiryResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partInquiryMfg" parameterOrder="divNumber 
dcNumber custNumber partId lineId">
         <wsdl:input message="impl:PartInquiryMfgRequest" 
name="PartInquiryMfgRequest"/>
         <wsdl:output message="impl:PartInquiryMfgResponse" 
name="PartInquiryMfgResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partOrder" parameterOrder="divNumber dcNumber 
custNumber quantity partId lineId orderDCAbbreviation shippingCode 
callbackFlag purchaseOrder remarks">
         <wsdl:input message="impl:PartOrderRequest" 
name="PartOrderRequest"/>
         <wsdl:output message="impl:PartOrderResponse" 
name="PartOrderResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partOrderMfg" parameterOrder="divNumber 
dcNumber custNumber quantity partId lineId orderDCAbbreviation 
shippingCode callbackFlag purchaseOrder remarks">
         <wsdl:input message="impl:PartOrderMfgRequest" 
name="PartOrderMfgRequest"/>
         <wsdl:output message="impl:PartOrderMfgResponse" 
name="PartOrderMfgResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partDownload" parameterOrder="divNumber 
dcNumber custNumber partId lineId">
         <wsdl:input message="impl:PartDownloadRequest" 
name="PartDownloadRequest"/>
         <wsdl:output message="impl:PartDownloadResponse" 
name="PartDownloadResponse"/>
      </wsdl:operation>
      <wsdl:operation name="inqjoei" parameterOrder="typeCode divNumber 
dcNumber custNumber password tams tamsRevision inqOrdCode quantity partId 
lineId optionCode orderDCAbbreviation shippingCode callbackFlag 
purchaseOrder orderRemarks">
         <wsdl:input message="impl:InqjoeiRequest" name="InqjoeiRequest"/>
         <wsdl:output message="impl:InqjoeiResponse" 
name="InqjoeiResponse"/>
      </wsdl:operation>
   </wsdl:portType>
   <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
      <wsdlsoap:binding style="document" transport="
http://schemas.xmlsoap.org/soap/http"/>
      <wsdl:operation name="partInquiry">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartInquiry"/>
         <wsdl:input name="PartInquiryRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartInquiryResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partInquiryMfg">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartInquiryMfg"/>
         <wsdl:input name="PartInquiryMfgRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartInquiryMfgResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partOrder">
         <wsdlsoap:operation soapAction="urn:WEJOEI:genpt.com/PartOrder"/>
         <wsdl:input name="PartOrderRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartOrderResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partOrderMfg">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartOrderMfg"/>
         <wsdl:input name="PartOrderMfgRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartOrderMfgResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partDownload">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartDownload"/>
         <wsdl:input name="PartDownloadRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartDownloadResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="inqjoei">
         <wsdlsoap:operation soapAction="urn:WEJOEI:genpt.com/Inqjoei"/>
         <wsdl:input name="InqjoeiRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="InqjoeiResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
   </wsdl:binding>
   <wsdl:service name="WEJOEI">
      <wsdl:port binding="impl:WEJOEISoapBinding" name="WEJOEI">
         <wsdlsoap:address location="
http://localhost:8080/axis/services/WEJOEI"/>
      </wsdl:port>
   </wsdl:service>
</wsdl:definitions>




RE: SimpleDeserializer encountered a child element

Posted by Anne Thomas Manes <an...@manes.net>.
Sorry -- I didn't have time to complete my earlier email.
Here's an example of what your WSDL should look like.

Focusing on your first operation, partInquiry:

You need to define an element named "partInquiry". I suggest modifying your
first schema definition as follows:

<wsdl:types>
  <schema elementFormDefault="qualified" 
    targetNamespace="urn:WEJOEI:genpt.com" 
    xmlns="http://www.w3.org/2001/XMLSchema">
<element name="partInquiry>
 <complexType name="partInquiry_t"
  <sequence>
   <element name="divNumber" type="xsd:string"/>
   <element name="dcNumber" type="xsd:string"/>
   <element name="custNumber" type="xsd:string"/>
   <element name="quantity" type="xsd:int"/>
   <element name="partId" type="xsd:string"/>
   <element name="lineId" type="xsd:string"/>
  </sequence>
 </complexType>
</element>
...
  </schema>
...
</wsdl:types>

You must modify the "PartInquiryRequest" message definition:

   <wsdl:message name="PartInquiryRequest">
      <wsdl:part element="impl:partInquiry" name="input"/>
   </wsdl:message>

You should remove the parameterOrder attributes from your <portType>
definitions:

   <wsdl:portType name="WEJOEI">
      <wsdl:operation name="partInquiry">
         <wsdl:input message="impl:PartInquiryRequest" 
           name="partInquiryRequest"/>
         <wsdl:output message="impl:PartInquiryResponse" 
           name="partInquiryResponse"/>
      </wsdl:operation>
...
   </wsdl:portType>

You must also remove the namespace attribute from your <binding>
definitions:

   <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
      <wsdlsoap:binding style="document" 
        transport="http://schemas.xmlsoap.org/soap/http"/>
      <wsdl:operation name="partInquiry">
         <wsdlsoap:operation 
            soapAction="urn:WEJOEI:genpt.com/PartInquiry"/>
         <wsdl:input name="partInquiryRequest">
            <wsdlsoap:body use="literal"/>
         </wsdl:input>
         <wsdl:output name="partInquiryResponse">
            <wsdlsoap:body use="literal"/>
         </wsdl:output>
      </wsdl:operation>
...
   </wsdl:binding>

Regards,
Anne

-----Original Message-----
From: Joe_Rattz@genpt.com [mailto:Joe_Rattz@genpt.com] 
Sent: Tuesday, April 20, 2004 7:46 AM
To: axis-user@ws.apache.org
Cc: Joe_Rattz@genpt.com
Subject: SimpleDeserializer encountered a child element

I am having incredible problems trying to call an Axis web service from 
.NET.  I am working with MS support, but it is not going well.  I am now 
using Axis 1.2b.  There seems to be a lot of miscommunication between Axis 

and .NET in terms of interpretting WSDL.  The standard must leave a LOT to 

interpretation.

One of the problems initially is that his proxy generator interprets that 
the ParameterStyle should be bare, but when the web service is called, I 
get an exception.  It looks as though Axis is not getting the operation 
name in the soap envelope and is expecting it.  So, I have now forced 
(hand modified) the .NET proxy to use wrapped parameter style.  But I 
still get the problem below.

Here is what the SOAP trace looks like.

Request:

POST /axis/services/WEJOEI HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client 
Protocol 1.1.4322.573)
Content-Type: text/xml; charset=utf-8
SOAPAction: "urn:WEJOEI:genpt.com/PartInquiry"
Content-Length: 441
Expect: 100-continue
Connection: Keep-Alive
Host: localhost:8082

<?xml version="1.0" encoding="utf-8"?><soap:Envelope 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><partInquiry 
xmlns="urn:WEJOEI:genpt.com"><divNumber>70</divNumber><dcNumber>01</dcNumber
><custNumber>994</custNumber><quantity>1</quantity><partId>1515</partId><lin
eId>FIL</lineId></partInquiry></soap:Body></soap:Envelope>


Response:

HTTP/1.1 100 Continue

HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=utf-8
Transfer-Encoding: chunked
Date: Tue, 20 Apr 2004 14:24:35 GMT
Server: Apache Coyote/1.0
Connection: close

21e
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode>soapenv:Server.userException</faultcode>
   <faultstring>org.xml.sax.SAXException: SimpleDeserializer encountered a 
child element, which is NOT expected, in something it was trying to 
deserialize.</faultstring>
   <detail/>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>
0

And here is the WSDL from axis:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:WEJOEI:genpt.com" 
xmlns:apachesoap="http://xml.apache.org/xml-soap" 
xmlns:impl="urn:WEJOEI:genpt.com" xmlns:intf="urn:WEJOEI:genpt.com" 
xmlns:tns1="urn:types:WEJOEI:genpt.com" 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.2beta
Built on Mar 31, 2004 (12:47:03 EST)-->
 <wsdl:types>
  <schema elementFormDefault="qualified" 
targetNamespace="urn:WEJOEI:genpt.com" xmlns="
http://www.w3.org/2001/XMLSchema">
   <element name="divNumber" type="xsd:string"/>
   <element name="dcNumber" type="xsd:string"/>
   <element name="custNumber" type="xsd:string"/>
   <element name="quantity" type="xsd:int"/>
   <element name="partId" type="xsd:string"/>
   <element name="lineId" type="xsd:string"/>
   <element name="returnData" type="tns1:returnData_t"/>
   <element name="orderDCAbbreviation" type="xsd:string"/>
   <element name="shippingCode" type="xsd:string"/>
   <element name="callbackFlag" type="xsd:string"/>
   <element name="purchaseOrder" type="xsd:string"/>
   <element name="remarks" type="xsd:string"/>
   <element name="typeCode" type="xsd:string"/>
   <element name="password" type="xsd:string"/>
   <element name="tams" type="xsd:string"/>
   <element name="tamsRevision" type="xsd:string"/>
   <element name="inqOrdCode" type="xsd:string"/>
   <element name="optionCode" type="xsd:string"/>
   <element name="orderRemarks" type="xsd:string"/>
  </schema>
  <schema elementFormDefault="qualified" 
targetNamespace="urn:types:WEJOEI:genpt.com" xmlns="
http://www.w3.org/2001/XMLSchema">
   <complexType name="messageData_t">
    <sequence>
     <element name="dcAbbreviation" nillable="true" type="xsd:string"/>
     <element name="messageNumber" nillable="true" type="xsd:string"/>
     <element name="messageText" nillable="true" type="xsd:string"/>
    </sequence>
   </complexType>
   <complexType name="returnData_t">
    <sequence>
     <element name="statusCode" type="xsd:int"/>
     <element maxOccurs="unbounded" name="messageDataCollection" 
nillable="true" type="tns1:messageData_t"/>
    </sequence>
   </complexType>
  </schema>
 </wsdl:types>
 <wsdl:message name="PartOrderMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
<wsdl:message name="PartOrderMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartOrderResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiRequest">
      <wsdl:part element="impl:typeCode" name="typeCode"/>
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:password" name="password"/>
      <wsdl:part element="impl:tams" name="tams"/>
      <wsdl:part element="impl:tamsRevision" name="tamsRevision"/>
      <wsdl:part element="impl:inqOrdCode" name="inqOrdCode"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:optionCode" name="optionCode"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:orderRemarks" name="orderRemarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartOrderMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartOrderRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartOrderResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="InqjoeiRequest">
      <wsdl:part element="impl:typeCode" name="typeCode"/>
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:password" name="password"/>
      <wsdl:part element="impl:tams" name="tams"/>
      <wsdl:part element="impl:tamsRevision" name="tamsRevision"/>
      <wsdl:part element="impl:inqOrdCode" name="inqOrdCode"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:optionCode" name="optionCode"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:orderRemarks" name="orderRemarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartOrderMfgResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryResponse">
      <wsdl:part element="impl:returnData" name="returnData"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartOrderRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:quantity" name="quantity"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
      <wsdl:part element="impl:orderDCAbbreviation" 
name="orderDCAbbreviation"/>
      <wsdl:part element="impl:shippingCode" name="shippingCode"/>
      <wsdl:part element="impl:callbackFlag" name="callbackFlag"/>
      <wsdl:part element="impl:purchaseOrder" name="purchaseOrder"/>
      <wsdl:part element="impl:remarks" name="remarks"/>
   </wsdl:message>
   <wsdl:message name="PartDownloadRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:message name="PartInquiryMfgRequest">
      <wsdl:part element="impl:divNumber" name="divNumber"/>
      <wsdl:part element="impl:dcNumber" name="dcNumber"/>
      <wsdl:part element="impl:custNumber" name="custNumber"/>
      <wsdl:part element="impl:partId" name="partId"/>
      <wsdl:part element="impl:lineId" name="lineId"/>
   </wsdl:message>
   <wsdl:portType name="WEJOEI">
      <wsdl:operation name="partInquiry" parameterOrder="divNumber 
dcNumber custNumber quantity partId lineId">
         <wsdl:input message="impl:PartInquiryRequest" 
name="PartInquiryRequest"/>
         <wsdl:output message="impl:PartInquiryResponse" 
name="PartInquiryResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partInquiryMfg" parameterOrder="divNumber 
dcNumber custNumber partId lineId">
         <wsdl:input message="impl:PartInquiryMfgRequest" 
name="PartInquiryMfgRequest"/>
         <wsdl:output message="impl:PartInquiryMfgResponse" 
name="PartInquiryMfgResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partOrder" parameterOrder="divNumber dcNumber 
custNumber quantity partId lineId orderDCAbbreviation shippingCode 
callbackFlag purchaseOrder remarks">
         <wsdl:input message="impl:PartOrderRequest" 
name="PartOrderRequest"/>
         <wsdl:output message="impl:PartOrderResponse" 
name="PartOrderResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partOrderMfg" parameterOrder="divNumber 
dcNumber custNumber quantity partId lineId orderDCAbbreviation 
shippingCode callbackFlag purchaseOrder remarks">
         <wsdl:input message="impl:PartOrderMfgRequest" 
name="PartOrderMfgRequest"/>
         <wsdl:output message="impl:PartOrderMfgResponse" 
name="PartOrderMfgResponse"/>
      </wsdl:operation>
      <wsdl:operation name="partDownload" parameterOrder="divNumber 
dcNumber custNumber partId lineId">
         <wsdl:input message="impl:PartDownloadRequest" 
name="PartDownloadRequest"/>
         <wsdl:output message="impl:PartDownloadResponse" 
name="PartDownloadResponse"/>
      </wsdl:operation>
      <wsdl:operation name="inqjoei" parameterOrder="typeCode divNumber 
dcNumber custNumber password tams tamsRevision inqOrdCode quantity partId 
lineId optionCode orderDCAbbreviation shippingCode callbackFlag 
purchaseOrder orderRemarks">
         <wsdl:input message="impl:InqjoeiRequest" name="InqjoeiRequest"/>
         <wsdl:output message="impl:InqjoeiResponse" 
name="InqjoeiResponse"/>
      </wsdl:operation>
   </wsdl:portType>
   <wsdl:binding name="WEJOEISoapBinding" type="impl:WEJOEI">
      <wsdlsoap:binding style="document" transport="
http://schemas.xmlsoap.org/soap/http"/>
      <wsdl:operation name="partInquiry">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartInquiry"/>
         <wsdl:input name="PartInquiryRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartInquiryResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partInquiryMfg">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartInquiryMfg"/>
         <wsdl:input name="PartInquiryMfgRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartInquiryMfgResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partOrder">
         <wsdlsoap:operation soapAction="urn:WEJOEI:genpt.com/PartOrder"/>
         <wsdl:input name="PartOrderRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartOrderResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partOrderMfg">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartOrderMfg"/>
         <wsdl:input name="PartOrderMfgRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartOrderMfgResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="partDownload">
         <wsdlsoap:operation 
soapAction="urn:WEJOEI:genpt.com/PartDownload"/>
         <wsdl:input name="PartDownloadRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="PartDownloadResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="inqjoei">
         <wsdlsoap:operation soapAction="urn:WEJOEI:genpt.com/Inqjoei"/>
         <wsdl:input name="InqjoeiRequest">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:input>
         <wsdl:output name="InqjoeiResponse">
            <wsdlsoap:body namespace="urn:WEJOEI:genpt.com" 
use="literal"/>
         </wsdl:output>
      </wsdl:operation>
   </wsdl:binding>
   <wsdl:service name="WEJOEI">
      <wsdl:port binding="impl:WEJOEISoapBinding" name="WEJOEI">
         <wsdlsoap:address location="
http://localhost:8080/axis/services/WEJOEI"/>
      </wsdl:port>
   </wsdl:service>
</wsdl:definitions>