I am learning about webServices in 7.1 and came across a small glitch…well, i got a sample wsdl document from net and m trying to created a Provider and Consumer from dat.
The WSDL i have used is basically one to get the day given any date (i.e, it returns Friday if the date i give is ‘2009-01-16’ ).
But when I am trying to run the connector, it is giving a NullPointerException.
I know I’ll figure it out somehow, but definitely will appreciate some inputs!!
2009-01-19 09:38:41 IST WMERROR db191f20e5de11dd9e869d2909d824f9NULL db191f20e5de11dd9e869d2909d824f91232338121359 D-1587vvvv:5555 com.wm.app.b2b.server.ServiceException: java.lang.NullPointerException com.wm.app.b2b.server.ServiceException: java.lang.NullPointerException
at pub.clientimpl.soapClient(clientimpl.java:1759)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:403)
at com.wm.app.b2b.server.invoke.InvokeManager.process(InvokeManager.java:630)
at com.wm.app.b2b.server.util.tspace.ReservationProcessor.process(ReservationProcessor.java:46)
at com.wm.app.b2b.server.invoke.StatisticsProcessor.process(StatisticsProcessor.java:44)
at com.wm.app.b2b.server.invoke.ServiceCompletionImpl.process(ServiceCompletionImpl.java:241)
at com.wm.app.b2b.server.invoke.ValidateProcessor.process(ValidateProcessor.java:51)
at com.wm.app.b2b.server.ACLManager.process(ACLManager.java:228)
at com.wm.app.b2b.server.invoke.DispatchProcessor.process(DispatchProcessor.java:30)
at com.wm.app.b2b.server.AuditLogManager.process(AuditLogManager.java:621)
at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:535)
at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:381)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:237)
at com.wm.app.b2b.server.BaseService.invoke(BaseService.java:189)
at com.wm.lang.flow.FlowInvoke.invoke(FlowInvoke.java:324)
at com.wm.lang.flow.FlowState.invokeNode(FlowState.java:581)
at com.wm.lang.flow.FlowState.step(FlowState.java:441)
at com.wm.lang.flow.FlowState.invoke(FlowState.java:406)
at com.wm.app.b2b.server.FlowSvcImpl.baseInvoke(FlowSvcImpl.java:1040)
at com.wm.app.b2b.server.invoke.InvokeManager.process(InvokeManager.java:630)
at com.wm.app.b2b.server.util.tspace.ReservationProcessor.process(ReservationProcessor.java:46)
at com.wm.app.b2b.server.invoke.maya.WebServices.FromWSDL.WSDLConsumer_.connectors:DayOfWeekPortType_GetDayOfWeek
I think that the error is due to the fact that the site given in the namespace is inaccessible…
Any inputs?
Finally I got the solution for this one…Told u i will, dint I?
Turns out that the problem was with the wsdl file I used…instead of giving <soap:binding style=“rpc”> I’d given it as <soap:binding style=“document”>
This is just a sample wsdl document that I came across in the net.
Don’t forget to provide the logic for the provider service in providerName_:services folder, else it won’t work!!
you said that after changing <soap:binding style=“rpc” to <soap:binding style=“document” it worked isn’t?..but the sample you pasted above still shows rpc…never mind its just a side note.