| Author |
AXIS1.4- webservice cleint Issue
|
ashirvad jain
Ranch Hand
Joined: Nov 09, 2006
Posts: 50
|
|
hello Friends
I am using AXIS1.4 fow webservice cleint.
I have generated stubs using WSDL2Java of axis.
It has generated classes and other additional class like:-
ServiceLocator
Port
PortStub
Service
But when i am using ,
Service service=new ServiceLocator();
PortStub stub=PortStub(endPoint,service);
endpoint-wsdl URl;
its giving me java.lang.NullPointerException .
PLease guide me to resolve my issue.
I can't move to axis upgarde versions.
I tried lot googling but still stuck. PLEASE PROVIDE any code snippet if possible.
thank in advance.
|
 |
Peer Reynders
Bartender
Joined: Aug 19, 2005
Posts: 2906
|
|
Axis 1.x client code tends to follow the same pattern:
service := serviceLocator
port := service.getBindingStub( differentUrl )
response := port.webMethod(request)
See also Creating Web Services with Apache Axis (1.x)
The above code comes from an example discussed in Empty Namespace in SOAP (Axis 1.4).
|
"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
|
 |
ashirvad jain
Ranch Hand
Joined: Nov 09, 2006
Posts: 50
|
|
Thanks for your kind reply.
I some how able to solve that issue.
Actually i was troubling to get web cleint . I referred lot of document and rest info.
Actually i was facing some configuration issue with eclipse.so was not able to solve that.
But now its solved somehow
But i really appriciate your reply.
Do best and keep posting..
Thank you.
|
 |
 |
|
|
subject: AXIS1.4- webservice cleint Issue
|
|
|