Solved

Invoking a web service problem

Posted on 2009-05-10
2
187 Views
Last Modified: 2012-05-06
Hi, I'm trying to invoke a web service from Java.

I was provided the following files created via wsdl2java:   xlist.java, xservice.java, xservicelocator.java, xsoapbindingstub.java, x_porttype.java

In the past I've only been given the stub file of which I invoked the service by using only this file.
Like
xstub ws;
ws = new xstub();
Response response = ws.getoperation();

I'm a little unsure how to invoke the service with the files provided.  I tried only using the stub file but that didn't seem to get it.

Can anyone give me an example?  

Thanks

0
Comment
Question by:vyork0869
2 Comments
 
LVL 1

Accepted Solution

by:
sundar62 earned 125 total points
ID: 24349915
Not sure if this will help. But the attached link has a simple example.
http://www.onjava.com/pub/a/onjava/2002/06/05/axis.html?page=2
you will have to make a service and then get the stub to the service.
0
 

Author Comment

by:vyork0869
ID: 24371004
That pointed me in the right direction.
Thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When coding a Webservice to provide data, the normal way is to create a method that returns a Dataset object.   But a Dataset cannot be used easily from another platform, such as PHP,  FLAS (FLEX) , etc. Solution : Return a XML Document instea…
To properly understand GitHub, let’s divide it into two words ‘Git’ and ‘Hub’. Git is basically a ‘Distribution Version Control’ (DVC) and ‘Source Code Management’ (SCM) system widely used by software programmers while Hub means the efficient centre…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now