cancel
Showing results for 
Search instead for 
Did you mean: 

SAP WebService Error

Former Member
0 Kudos

I am getting the following error while executing a custom developed web service using BAPI_GETUSERNAME.

I tested this web service independntly using url,its working.But when I use this in web dynpro application its givving me this error.

Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.XmlMarshalException: XML Serialization Error.

Please help me on the same.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI akshta,

The error you are getting is due to this reason:

This error only occurs when some ellement of an XML document is extracted and serialized under the following conditions:

- the element is namespace qualified,

- there is a namespace declaration in the scope that declares the namespace prefix of this element,

- there is another namespace declaration in the scope that declares another namespace prefix with the same namespace URI,

- this namespace declaration preceeds the namespace declaration of the element in the internal representation of the parser (since the namespace dedclarations are not ordered, this last condition is the parser dependent).

Note that this problem results in a non-wellformed XML containing duplicate namespace declaration attributes.

I have a solution for this when it is in XI, but for web dynpro whats your service pack version?

Thanks,

Raj.

Answers (0)