Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error Consuming a webservice from ABAP

Former Member
0 Likes
757

Hi all,

I am consuming an external webservice from abap. I created teh proxy using WSDl file. While testing teh service its giving an exception like this-

"JAXB unmarshalling exception: Unable to create an instance of de.*******v2.MeldungType; nested exception is javax.xml.bind.UnmarshalExcept

ion: Unable to create an instance of de.****.MeldungType# - with linked exception:#[java.lang.InstantiationException]"

With a soapfaultcode: 1..

can any one help out in arriving at teh reason for this..

Regards

Sandeep

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
564

I've seen lots of unmarshalling errors whilst trying to consume web services via Web Dynpro Java... Usually, it was due to an inconsistency between the WSDL file being used and the underlying web service definition. It might be worth checking the WSDL you are using is correct and up to date, in case the underlying service interface has changed.

Also worth checking if you have any simple boolean type parameters defined as part of the service interface - they have to have a value assigned when you call the service and cannot be null.

HTH.

2 REPLIES 2
Read only

Former Member
0 Likes
565

I've seen lots of unmarshalling errors whilst trying to consume web services via Web Dynpro Java... Usually, it was due to an inconsistency between the WSDL file being used and the underlying web service definition. It might be worth checking the WSDL you are using is correct and up to date, in case the underlying service interface has changed.

Also worth checking if you have any simple boolean type parameters defined as part of the service interface - they have to have a value assigned when you call the service and cannot be null.

HTH.

Read only

0 Likes
564

HI HTH,

Thanks for the reply. But it didnt work out

There was a recursive type reference in the XSD file. that is one element referring to the structure one level up.I removed the element and then created the client proxy. is ther anyway we can have recursive types in xsd and still the proxy could be created in SAP. Could that be a cause for this problem.

Regards

Sandeep

Edited by: Sandeep S on Jul 14, 2009 6:40 PM