cancel
Showing results for 
Search instead for 
Did you mean: 

XmlUnmarshalException: XML Deserialization Error

Former Member
0 Kudos

Hi,

I know this topic has been posted before, but I still could not find a useful answer to my problem. Therefore, I am posting it again, and hope that someone will be able to give me a clue on what've gone wrong. Here is my problem:-

Runtime error message while running Web Dynpro:

com.sap.engine.services.webservices.jaxrpc.exceptions.XMLUnmarshalException: XML Deserialization Error. XML Node [xmlDoc] is not allowed to be null. This is restricted by schema description.

XML Schema that describes the node, xmlDoc:

...

<s:element minOccurs="0" maxOccurs="1" name="xmlDoc">

<s:complexType mixed="true">

<s:sequence>

<s:any />

</s:sequence>

</s:complexType>

</s:element>

...

What could be the problem? Your help will be appreciated.

Teecheu

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Teecheu,

XmlUnmarshalException: XML Deserialization Error occurs when u use xml based persistance.

Are u using XML file to store the data OR retrieving data from from XML file.

If Yes, make sure u have included all XML parser jars.

Have u assigned some initial value to To xmlNode.

Describe your scenario, u want to store or read data from a XML file

Rgds,

Vilish

Former Member
0 Kudos

Hi Vilish,

I have a Web Dynpro application that uses a Web Service model. The Web Service is located on a remote non-SAP server, and i generated proxies based on its WSDL.

The error occurs at this procedure,

someElementObj.modelObject.execute();

This procedure is to send a request with parameters to a Web method, and then retrieving data from the response XML before storing the data in the model context. So, I suspect this happens during retrieving process.

Thanks,

Teecheu

Former Member
0 Kudos

Hi Teecheu,

did you find a solution?

Regards,

Gerhard