04-12-2009 06:40 PM
Hi Johan,
Will you be able to post the code you got working for calling a web service?
Thanks,
Sundar
08-11-2009 10:52 AM
Hi, I was writing the code to consume my simple dotnet HelloWorld webservice using JSR172, and this was the error I got:
"java.rmi.MarshalException: SAXParseException in the return SOAP message from the server."
My simple code was the following :
_errorMessage = new BasicEditField("", "");
JSRSample.SAPServiceSoap_Stub WS1 = new JSRSample.SAPServiceSoap_Stub();
try
{
String str1 = WS1.helloWorld("WELCOME");
_errorMessage.setText(str1);
add(_errorMessage);
}
Any idea what I could be doing wrong ?
Cheers!
10-08-2009 06:01 PM
Hello,
I think, your webservice function returns error (Exception) which is kind of SAXParseException. And you can catch this exception using try catch block. I didn't see catch block in your code.
Try again after adding catch block.
Like this,
_errorMessage = new BasicEditField("", "");
JSRSample.SAPServiceSoap_Stub WS1 = new JSRSample.SAPServiceSoap_Stub();
try
{
String str1 = WS1.helloWorld("WELCOME");
_errorMessage.setText(str1);
add(_errorMessage);
} catch (SAXParseException e) {
e.PrintStackTrace(); // -->try to catch error message on this line. I didn't remember what is the correct code.
}
Regards,
Ferhat