cancel
Showing results for 
Search instead for 
Did you mean: 

XmlUnmarshalException: XML Deserialization Error Please Help!!!

Former Member
0 Kudos

Hi All,

I am consuming the standard webservice

Name: /SAPAPO/SDM_PARCRTRC

I am getting the following error on execution of the web service:

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.

Please help me with this problem.

Thanks in Advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Setu,

With the description of the error message, it denotes that, "ScheduleLine" is a required parameter for the Web Service.

In the model node that gets created for the Web Service model, find the node / attribute with the name specified, and set the appropriate value for it.

Also, you can try to execute the web service, by specifying its WSDL location, from the Web Service Navigator, to get to know about its interface.

Hope it helps.

Regards,

Alka.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi All,

Thanks for your replies.

They were helpful but this what I did that solved the problem

I used the following code to set the required parameters

item.getOriginalBean().setScheduleLine(new ScheduleLineInner[] {scheduleLine.getOriginalBean()});

instead of

item.addScheduleLine(scheduleLine);

Similarly all the parameters were set using the orginalBean

Now it is working perfectly fine....

Thanks a lot..

Setu

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi Setu,

First Check the web service whether its working in web service navigator.

Make sure that you are passing required parameter still problem persist means, try to re generated the model again with latest web service.

Hope this will solve your problem.

Regards, Suresh KB

Former Member
0 Kudos

Hi Setu,

Just check whether u r passing all the required input parameters for the webservice or not?? it seems some required parameters are not getting passed.

regards

Sumit