on 08-11-2005 11:25 AM
Hi,
I want to create Web Service from Java class, I made java project, generated web service from it, create web service archive project and deployed it to WAS 6.40.
My class have 2 methods,
public int add(int a, int b);
public MyResponse doSomthing(MyRequest req);
I can succesfully call add method from Web Service Navigator, it works fine but when I call doSomthing methods I get the following error:
<b>
Deserializing fails. Nested message: XML Deserialization Error. Result class [com.mycomp.sap_tech.ws.MyRequest] does not have property [Amount] of type [java.lang.String]. It is required to load XML..
</b>
Any ideas how to resolve it?
P.S. MyRequest class is exposed throw VI, has default constractor and public getters and setters for all properties. It implements Serializable as well. Any guesses?
Thanks in advance,
Victor.
Hi Victor,
It looks for me like inconsistency between the Web-Service and Java classes.
Try to undeploy the Web-Service (Remove), rebuild everything again and deploy.
Close all browsers and test again.
Tell if it helps.
Avi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Victor,
Your MyResponse class should be Serializable implemented.
Make your Myresponse class as Serializable implemented.
Regards,
Bhavik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Victor,
Sorry it didn't help but it still looks for me as an inconsistency since from the error you posted it seems that in the WSDL file, the MyRequest class is containing Amount attribute but the Java class implementation doesn't contain attribute with this name.
Just to be sure, compare the WSDL with the Java class.
Avi
Hi, thanks for reply.
I checked all the things you mentioned. I even made new, clean project and did again all the staff there. It didn't help.
Can somebody point out to WS documention about SAP implementation and runtime of it? I saw the Sap Help context but found only the overview and basic things there.
Thanks in advance.
Victor.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.