Solved

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

Posted on 2011-03-07
3
763 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 300 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 200 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
even odd program using while loop 3 73
eclipse buid path vs tomcat lib path 10 38
dao vs facade design patterns 2 33
Html split(text) 2 28
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…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…

756 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