cancel
Showing results for 
Search instead for 
Did you mean: 

com.sap.engine.services.webservices.jaxrpc.exceptions.XmlUnmarshalException

Former Member
0 Kudos

Hi All,

I am getting this exception when i call an external webservice using the wsdl provided.

"com.sap.engine.services.webservices.jaxrpc.exceptions.XmlUnmarshalException: XML Deserialization Error. XML is not valid. Node <PhoneNumber> child of <AddlInvoiceCopy> not described in Schema."

But i do have the node <PhoneNumber> under the node <AddlInvoiceCopy> in the wsdl provided.Any Hints why this error is happening. Any help greatly appreciated.I tried reloading the wsdl,also creating a new model.

This is the part of wsdl corresponding to the error...

<xsd:complexType name="AddlInvoiceCopy">

<xsd:sequence>

<xsd:element name="Id" maxOccurs="1" minOccurs="0" type="xsdLocal1:string30"/>

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

<xsd:element name="City2" maxOccurs="1" minOccurs="0" type="xsdLocal1:string100"/>

<xsd:element name="PhoneNumber" maxOccurs="1" minOccurs="0" type="xsdLocal1:string50"/>

<xsd:element name="FaxNumber" maxOccurs="1" minOccurs="0" type="xsdLocal1:string50"/>

<xsd:element name="CompanyName" maxOccurs="1" minOccurs="0" type="xsdLocal1:string100"/>

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

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

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

<xsd:element name="Country2" maxOccurs="1" minOccurs="0" type="xsdLocal1:string100"/>

<xsd:element name="County2" maxOccurs="1" minOccurs="0" type="xsdLocal1:string100"/>

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

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

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

<xsd:element name="Name" maxOccurs="1" minOccurs="1" type="xsdLocal1:string100"/>

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

<xsd:element name="PostalCode2" maxOccurs="1" minOccurs="0" type="xsdLocal1:string100"/>

<xsd:element name="State2" maxOccurs="1" minOccurs="0" type="xsdLocal1:string100"/>

<xsd:element name="StreetAddress2" maxOccurs="1" minOccurs="0" type="xsdLocal1:string100"/>

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

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

</xsd:sequence>

</xsd:complexType>

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

The problem was solved ,due to incorrect length for some elements on the xml and the external system db.

Former Member
0 Kudos

Adding the header part of the wsdl in case needed

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

<?Siebel-Property-Set EscapeNames="false"?>

<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsdLocal1="http://www.siebel.com/xml/Chep%20Account" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://siebel.com/asi/" targetNamespace="http://siebel.com/asi/">

<types>

<xsd:schema elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:xsdLocal1="http://www.siebel.com/xml/Chep%20Account" targetNamespace="http://www.siebel.com/xml/Chep%20Account" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<xsd:annotation>

<xsd:documentation>Copyright (C) 2001-2004 Siebel Systems, Inc. All rights reserved. Siebel XSD Generation</xsd:documentation>

</xsd:annotation>