on 07-21-2009 8:44 AM
Hi,
I am consuming a webservice from SAP. The test is giving an exception
"SoapFaultCode:1 JAXB unmarshalling exception: Unable to create an instance of de.********.blw.v2.MeldungType; neste
d exception is javax.xml.bind.UnmarshalException: Unable to create an instance of de.******.blw.v2.MeldungType -
with linked exception: http://java.lang.InstantiationException";
Can any one please help..
Edited by: Gunjan Tyagi on Jul 21, 2009 9:56 AM
Hi,
This seems to be temporary error, please try this to be sure that this is not a problem with webservice.
Use url of wsdl and try it with WSNavigator or SOAPUI and post result here, if it is working fine then this is temporary error.
If this is custom developed service and deployed then make sure that libraries(other than SAP standard) required to run this service are part of deployment package (.ear file).
Post more information to help you better.
Regards,
Gourav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Gourav,
This service is working fine when used from some other tool. I dont have acces to that tool and only thing i have is the the test data as used from that tool in .xml form. I used the same test data in sap also but getting the exception.
One change i did in the xsd file is that there was a recursive reference for an element referring to the same node. It was having property minOccurs="0". So i removed the field from, the xsd since SAP do not support recursive usage of types and created the client proxy. Does this differece could be a cause for this excpetion.
Another doubt is the node MeldungType is of type abstract in the .xsd as shown below.
<xsd:complexType name="MeldungType" abstract="true" >
<xsd:annotation>
</xsd:sequence>
</xsd:complexType>
Hence I used a derived type from this meldungtype. Could this be a potential problem for instantiation.
comments welcome..
Hi,
You can test service by webservice navigator (you can find it http://yoursaphost:yourj2eeport) and I recommend that you test it again.
The error you mentioned is closely related to MeldungType, please try to concentrate on it, in this type of situation my suggestion is to keep everything intact including recurring reference and then test again.
Regards,
Gourav
Hi Gunjan,
I think there is a mismatch in the WSDL supplied to you and SOAP message that you are trying to consume in the program.
Try co-relate the SOAP output tags specified in WSDL file and SOAP message that you are getting. If there is a difference in the structure like tags missing or different name for the tags..that will be the root cause for the error.
Thanks & Regards,
Aditya Metukul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.