Good Day.
I'm trying to call webservice using jax-ws from J2EE application deployed in WebSphere AS 6.1.0.19 and when i do it, NullPointerException is thrown.
I have WAS 6.1 on my machine:
Base 6.1.0.19
EJB 3.0 6.1.0.19
WS FEP 6.1.0.19
I generate proxy class using jax-ws ri wsimport from service wsdl.
When I try to call remote webservice using generated classes from J2EE application deployed on WAS I get NPE:
javax.xml.ws.WebServiceException: org.apache.axis2.jaxws.wrapper.impl.JAXBWrapperException: java.lang.NullPointerException
at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:180)
at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:79)
at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:134)
at org.apache.axis2.jaxws.marshaller.impl.alt.DocLitWrappedMethodMarshaller.marshalRequest(DocLitWrappedMethodMarshaller.java:490)
at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.createRequest(JAXWSProxyHandler.java:330)
at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invokeSEIMethod(JAXWSProxyHandler.java:165)
at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invoke(JAXWSProxyHandler.java:147)
at $Proxy283.request(Unknown Source)
I don't understand reason of this exception.
Though if I call this service from desktop application (not from WAS) it invokes successfully.
Also I try to call another service from WAS -
http://www.webservicex.net/CurrencyConvertor.asmx?WSDL
In this case I successfully can call this service from WebSphere AS.
I don't understand why I can call one service and can't call another.
Can anybody give me advice what may be a reason of NPE wich I get when calling webservie ? And can anybody tell me what axis2 version is used in WAS 6.1.0.19 WS FEP 6.1.0.19 ?
Thanks.