[jboss-user] [JBossWS] - SOAP Request and Response- Compatibility with old clients.
do-not-reply at jboss.com
Fri Jan 11 08:47:34 EST 2008
I would like to confirm about 'arg0' in soap request.
The soap request part looks like :
and the request coming from one the old client is like
the handling code in implementation file is :
| public TSession startSession(TSession session)
| if(session != null)
| log.debug("Start session");
| log.error("Session is null");
| return null;
In the frist request , I got Start Session while in the later request it says Session is null.
I replaced "TSession_1" wiht "arg0" in SOAP Handler and then the old request also worked fine.
Any Idea why we are getting arg0 there and why Server is depending on variables name there other then the object pased.
the defenition of the method in interface class is :
| @WebResult(name = "result", targetNamespace = "")
| @RequestWrapper(localName = "startSession", targetNamespace = "http://ips.iplabs.de/types", className = "de.iplabs.ips.types.StartSession")
| @ResponseWrapper(localName = "startSessionResponse", targetNamespace = "http://ips.iplabs.de/types", className = "de.iplabs.ips.types.StartSessionResponse")
| public TSession startSession(
| @WebParam(name = "TSession_1", targetNamespace = "")
| TSession tSession1);
This problem is also valid for return type. It is sending return object with name of "return" and client is expecting "result".
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119060#4119060
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119060
More information about the jboss-user