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 Ian Baxter <io...@mac.com> on 2004/01/30 18:17:33 UTC
Element Deserializer Exception
Hi,
I'm getting the following exception when I try to invoke my
"PlaceOrder" web service, which is running in a .NET environment. I'm
fairly new to this, so I may be missing something simple ;-). Below is
the exception and WSDL for the service. I know it may be difficult
without seeing my code, but any pointers would be much appreciated.
Thanks,
Ian
-------
org.xml.sax.SAXException: Deserializing parameter 'PlaceOrderResult':
could not find deserializer for type {java}org.w3c.dom.Element
at org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:276)
at
org.apache.axis.encoding.DeserializationContextImpl.startElement(Deseria
lizationContextImpl.java:893)
at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:
200)
at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.j
ava:684)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:241)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:265)
at org.apache.axis.client.Call.invoke(Call.java:1871)
at org.apache.axis.client.Call.invoke(Call.java:1777)
at org.apache.axis.client.Call.invoke(Call.java:1315)
-------
<?xml version="1.0" encoding="utf-8"?>
<definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:s0="http://webservice.mycompany.com"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
targetNamespace="http://webservice.mycompany.com"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<types>
<s:schema elementFormDefault="qualified"
targetNamespace="http://webservice.mycompany.com">
<s:element name="PlaceOrder">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="NewOrder"
type="s0:WsSalesOrder" />
<s:element minOccurs="0" maxOccurs="1" name="OrderSource"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="SecurityToken"
type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="WsSalesOrder">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="OrderNumber"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="WebOrderNum"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="OrderSource"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="CatalogID"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="OrderStatus"
type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="OrderDate"
type="s:dateTime" />
<s:element minOccurs="1" maxOccurs="1" name="InHandsDate"
type="s:dateTime" />
<s:element minOccurs="1" maxOccurs="1" name="TotalFreight"
type="s:double" />
<s:element minOccurs="1" maxOccurs="1" name="TotalWeight"
type="s:double" />
<s:element minOccurs="1" maxOccurs="1" name="TotalAmount"
type="s:double" />
<s:element minOccurs="1" maxOccurs="1" name="TotalTax"
type="s:double" />
<s:element minOccurs="1" maxOccurs="1" name="TotalHandling"
type="s:double" />
<s:element minOccurs="0" maxOccurs="1" name="ShipMethod"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="PONumber"
type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="CurrencyType"
type="s:int" />
<s:element minOccurs="0" maxOccurs="1" name="UDFieldName1"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="UDFieldValue1"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="UDFieldName2"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="UDFieldValue2"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="UDFieldName3"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="UDFieldValue3"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="OrderNotes"
type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="CustomerId"
type="s:int" />
<s:element minOccurs="0" maxOccurs="1" name="BillFirstName"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="BillLastName"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="BillAddress1"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="BillAddress2"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="BillAddress3"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="BillCity"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="BillState"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="BillZip"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="BillCountry"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="BillPhone"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="BillFax"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="BillEmail"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="SoldFirstName"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="SoldLastName"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="SoldAddress1"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="SoldAddress2"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="SoldAddress3"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="SoldCity"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="SoldState"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="SoldZip"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="SoldCountry"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="SoldPhone"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="SoldFax"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="SoldEmail"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ShipFirstName"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ShipLastName"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ShipAddress1"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ShipAddress2"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ShipAddress3"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ShipCity"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ShipState"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ShipZip"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ShipCountry"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ShipPhone"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ShipFax"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ShipEmail"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="OrderLines"
type="s0:ArrayOfWsOrderLine" />
<s:element minOccurs="0" maxOccurs="1" name="PaymentItems"
type="s0:ArrayOfWsPaymentInfo" />
<s:element minOccurs="0" maxOccurs="1" name="ImprintInfo"
type="s0:ArrayOfWsImprintInfo" />
</s:sequence>
</s:complexType>
<s:complexType name="ArrayOfWsOrderLine">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded"
name="WsOrderLine" nillable="true" type="s0:WsOrderLine" />
</s:sequence>
</s:complexType>
<s:complexType name="WsOrderLine">
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="LineType"
type="s:int" />
<s:element minOccurs="0" maxOccurs="1" name="BaseSKU"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Description"
type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="QtyOrdered"
type="s:double" />
<s:element minOccurs="1" maxOccurs="1" name="UnitPrice"
type="s:double" />
<s:element minOccurs="1" maxOccurs="1" name="ItemDiscount"
type="s:double" />
<s:element minOccurs="1" maxOccurs="1" name="ExtPrice"
type="s:double" />
<s:element minOccurs="1" maxOccurs="1" name="CombinedTaxRate"
type="s:double" />
<s:element minOccurs="1" maxOccurs="1" name="InternationalID"
type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="CountryID"
type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="StateID"
type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="CountyID"
type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="CityID"
type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="OtherID"
type="s:int" />
<s:element minOccurs="1" maxOccurs="1"
name="InternationalTax" type="s:double" />
<s:element minOccurs="1" maxOccurs="1" name="CountryTax"
type="s:double" />
<s:element minOccurs="1" maxOccurs="1" name="StateTax"
type="s:double" />
<s:element minOccurs="1" maxOccurs="1" name="CountyTax"
type="s:double" />
<s:element minOccurs="1" maxOccurs="1" name="CityTax"
type="s:double" />
<s:element minOccurs="1" maxOccurs="1" name="OtherTax"
type="s:double" />
<s:element minOccurs="1" maxOccurs="1" name="UnitWeight"
type="s:double" />
<s:element minOccurs="0" maxOccurs="1" name="Size"
type="s0:WsSizeInfo" />
<s:element minOccurs="0" maxOccurs="1" name="Color"
type="s0:WsColorInfo" />
<s:element minOccurs="0" maxOccurs="1" name="length"
type="s0:wsLengthInfo" />
</s:sequence>
</s:complexType>
<s:complexType name="WsSizeInfo">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="SizeCode"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="SiseDescription"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="SizeSKU"
type="s:string" />
</s:sequence>
</s:complexType>
<s:complexType name="WsColorInfo">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="ColorCode"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1"
name="ColorDescription" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ColorSKU"
type="s:string" />
</s:sequence>
</s:complexType>
<s:complexType name="wsLengthInfo">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="LengthCode"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1"
name="LengthDescription" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="LengthSKU"
type="s:string" />
</s:sequence>
</s:complexType>
<s:complexType name="ArrayOfWsPaymentInfo">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded"
name="WsPaymentInfo" nillable="true" type="s0:WsPaymentInfo" />
</s:sequence>
</s:complexType>
<s:complexType name="WsPaymentInfo">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="PaymentMethodName" />
<s:element minOccurs="0" maxOccurs="1" name="CardName"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="CardAddress"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="CardCity"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="CardState"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="CardZip"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="CardNumber"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="CardExpMonth"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="CardExpYear"
type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="CardAmount"
type="s:double" />
<s:element minOccurs="0" maxOccurs="1"
name="CardSecurityCode" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="CardNotes"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="PaymentAuthCode"
type="s:string" />
<s:element minOccurs="1" maxOccurs="1"
name="PaymentTrxNumber" type="s:long" />
</s:sequence>
</s:complexType>
<s:complexType name="ArrayOfWsImprintInfo">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded"
name="WsImprintInfo" nillable="true" type="s0:WsImprintInfo" />
</s:sequence>
</s:complexType>
<s:complexType name="WsImprintInfo">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="ImprintName"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ImprintLocation"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ImprintText"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ImprintArtURL"
type="s:string" />
</s:sequence>
</s:complexType>
<s:element name="PlaceOrderResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="PlaceOrderResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
</types>
<message name="PlaceOrderSoapIn">
<part name="parameters" element="s0:PlaceOrder" />
</message>
<message name="PlaceOrderSoapOut">
<part name="parameters" element="s0:PlaceOrderResponse" />
</message>
<portType name="SalesOrderSoap">
<operation name="PlaceOrder">
<input message="s0:PlaceOrderSoapIn" />
<output message="s0:PlaceOrderSoapOut" />
</operation>
</portType>
<binding name="SalesOrderSoap" type="s0:SalesOrderSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document" />
<operation name="PlaceOrder">
<soap:operation
soapAction="http://webservice.mycompany.com/PlaceOrder"
style="document" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
</binding>
<service name="SalesOrder">
<documentation>SalesOrder Web Service Utilities.</documentation>
<port name="SalesOrderSoap" binding="s0:SalesOrderSoap">
<soap:address
location="https://webservice.mycompany.com/app/salesorder.asmx" />
</port>
</service>
</definitions>