cancel
Showing results for 
Search instead for 
Did you mean: 

XML Deserialization Error

Former Member
0 Kudos

Hi, I have generated a Deployable WebService Proxy of a external WebService from the Provider ESRI (http://arcweb.esri.com/arcwebonline/index.htm) with SAP Dev Studio SP9 and deployed to the WAS 6.40 SP9.

Within a Servlet i called first the WebService Authentication to get a Token which works fine and then the WebService AddressFinder.findAddress() to get the Datas but this Call throw a Exception

==> "Service call exception; nested exception is:

com.sap.engine.services.webservices.jaxrpc.exceptions.XmlUnmarshalException: XML Deserialization Error. XML is not valid. Element []<errorCode> is required in <soap:Body> but can not be found."

The required element <errorCode> descriped in the WDSL Definition is nillable="true" so not required!

- <xsd:complexType name="LocationInfo">

- <xsd:sequence>

<xsd:element name="matchType" nillable="true" type="xsd:string" />

<xsd:element name="candidates" nillable="true" type="ns12:ArrayOfLocation" />

<xsd:element name="hasMore" type="xsd:boolean" />

<b><xsd:element name="errorCode" nillable="true" type="xsd:string" /></b>

</xsd:sequence>

</xsd:complexType>

I checked also the SOAP response on the J2EE which was ok:

Message : HTTP/1.1 200 OK

Server: Sun-ONE-Application-Server/7.0

Date: Wed, 12 Jan 2005 10:11:31 GMT

Content-length: 1534

Content-type: text/xml; charset=UTF-8

Optimizable: true

Connection: close

<?xml version='1.0' encoding='UTF-8'?>

<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/' xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/' soap:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' xmlns:ns5='http://www.themindelectric.com/package/com.esri.is.services.common.v2/' xmlns:ns6='http://www.themindelectric.com/package/com.esri.is.services.common.v2.geom/'><soap:Body><n:findAddressResponse xmlns:n='http://arcweb.esri.com/v2'><Result href='#id0'></Result></n:findAddressResponse><id0 id='id0' soapenc:root='0' xsi:type='ns5:LocationInfo'><matchType xsi:type='xsd:string'>EXACT</matchType><candidates href='#id1'></candidates><hasMore xsi:type='xsd:boolean'>false</hasMore></id0><id1 id='id1' soapenc:root='0' xsi:type='soapenc:Array' soapenc:arrayType='ns5:Location[1]'><i href='#id2'></i></id1><id2 id='id2' soapenc:root='0' xsi:type='ns5:Location'><point href='#id3'></point><description1 xsi:type='xsd:string'>Ammann Strasse 2, 3074, Muri Bei Bern</description1><score xsi:type='xsd:double'>0.0</score><matchType xsi:type='xsd:string'>100</matchType></id2><id3 id='id3' soapenc:root='0' xsi:type='ns6:Point'><x xsi:type='xsd:double'>7.496564</x><y xsi:type='xsd:double'>46.926945</y><coordinateSystem href='#id4'></coordinateSystem></id3><id4 id='id4' soapenc:root='0' xsi:type='ns6:CoordinateSystem'><projection xsi:type='xsd:string'>4326</projection></id4></soap:Body></soap:Envelope>

Is there anything wrong, has anybody a solution?

Thanks Vince

Accepted Solutions (0)

Answers (2)

Answers (2)

toolika_pandey
Explorer
0 Kudos

Hi

I am facing the same problem. could youplease let me kn ow the possible problem and solution?

Former Member
0 Kudos

I am having the exact same issue as all the above. I would like to know if there was a solution to the problem.

Former Member
0 Kudos

Hello Vincent,

I am facing a similar problem with the Webservice can u please help me solve the problem.

I am getting the following error:

Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.XmlUnmarshalException: XML Deserialization Error. XML is not valid. Element []<ScheduleLine> is required in <NameSpecification> but can not be found.

But there is no element called ScheduleLine in NameSpecification.