Hi,
I have generated the code using WSCONSUME and after modifying existing code, when I try to
run the old client I got Null Pointer Exception. I generated the new client using the
newly generated wsdl file and the new client works fine.
I debuged more and here is the request send by old client.
| POST /wipe/service HTTP/1.1
|
| Content-Type: text/xml; charset=utf-8
|
| Accept: text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
|
| Content-Length: 655
|
| SOAPAction: ""
|
| User-Agent: Java/1.5.0_13
|
| Host: 127.0.0.1:8080
|
| Connection: keep-alive
|
|
|
| <?xml version="1.0" encoding="UTF-8"?>
| <env:Envelope
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns0="http://ips.iplabs.de/types">
| <env:Body>
| <ns0:startSession>
| <TSession_1>
| <clientLogInfo></clientLogInfo>
| <clientName>testJavaClient</clientName>
| <clientVersion>0.5</clientVersion>
| <errorCode>0</errorCode>
| <errorMessage></errorMessage>
| <localeID>de_DE</localeID>
| <opID>20000100</opID>
| <sessionID></sessionID>
| <wipeVersion>1.1</wipeVersion>
| </TSession_1>
| </ns0:startSession>
| </env:Body>
| </env:Envelope>
|
The request generated by the new client is as
| POST /wipe/service?datatype=JBossWSMessage HTTP/1.1
|
| SOAPAction: ""
|
| Content-Type: text/xml; charset=UTF-8
|
| User-Agent: Java/1.5.0_13
|
| Host: 127.0.0.1:8080
|
| Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
|
| Connection: keep-alive
|
| Content-Length: 475
|
|
|
| <env:Envelope
xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
| <env:Header></env:Header>
| <env:Body>
| <ns1:startSession xmlns:ns1="http://ips.iplabs.de/types">
| <arg0>
| <clientLogInfo></clientLogInfo>
| <clientName>testJavaClient</clientName>
| <clientVersion>0.5</clientVersion>
| <errorCode>0</errorCode>
| <errorMessage></errorMessage>
| <localeID>de_DE</localeID>
| <opID>10000011</opID>
| <sessionID></sessionID>
| <wipeVersion>1.0</wipeVersion>
| </arg0>
| </ns1:startSession>
| </env:Body></env:Envelope
|
|
Any information , what is going wrong here.
The interface file code related to startSession is :
|
| /**
| * This class was generated by the JAX-WS RI.
| * JAX-WS RI 2.1.1-b03-
| * Generated source version: 2.0
| *
| */
| @WebService(name = "Wipe", targetNamespace =
"http://ips.iplabs.de/")
| public interface Wipe {
|
|
| /**
| *
| * @param tSession1
| * @return
| * returns de.iplabs.ips.types.TSession
| */
| @WebMethod
| @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);
| }
|
|
and the respective implementation is as :
| @WebService(name = "Wipe", targetNamespace =
"http://ips.iplabs.de/types")
| public class WipeImpl implements Wipe
| {
|
|
| /**
| *
| * @param tSession1
| * @return
| * returns de.iplabs.ips.types.TSession
| */
| @WebMethod
| public TSession startSession(TSession session)
| {
| if(session != null)
| {
| log.debug("Start session with version: " +
| return getVersion(session).startSession(session);
| }
| else
| {
| log.error("Session is null");
| return null;
| }
| }
|
| }
|
|
Plz guide me, what is going wrong. I have to update server while mainting the
compatibility between old client and server.
Regards,
Zeeshan
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117455#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...