Solved

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

Posted on 2011-03-07
3
766 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

739 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