?
Solved

Call Java JAX-WS Web Service from another Java JAX-WS Web Service

Posted on 2011-03-07
3
Medium Priority
?
780 Views
Last Modified: 2012-05-11
I have written my Java JAX-WS Web Services in NetBeans but I can't figure out how to invoke another web service's operation from within one web service. How do I call another web service's operation from within a web service? Any useful resources on the internet I can look at?
0
Comment
Question by:shekhar_shashi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 17

Accepted Solution

by:
Dejan Pažin earned 1200 total points
ID: 35058809

It doesnt matter where you are calling the other webservice from, you always have to create a webservice client and call the methods on it.

Here is an example on creating clients:

http://download.oracle.com/javaee/5/tutorial/doc/bnayn.html

Of course, if this is located on the same server and is part of the same application, and does not have any special context, etc., you could also call the method as plain java method.
0
 
LVL 20

Assisted Solution

by:Sathish David Kumar N
Sathish David  Kumar N earned 800 total points
ID: 35068393

create Instancts of your web services // as already u did

 wsgen.xClient client = new wsgen.xClient();

u can call

client.insert();
client.delete();
0
 
LVL 3

Author Closing Comment

by:shekhar_shashi
ID: 35144276
Thanks
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

650 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