David Nicholls

+ Follow
since Oct 10, 2011
David likes ...
IBM DB2 Eclipse IDE VI Editor
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by David Nicholls

Use XPath.


XPath is very easy to learn and part of the JRE since Version 5.

9 years ago
I browsed the stack trace that you have posted earlier. Because of that I thought that you were already using apache axis2 to call the web service.


Axis2 implements many of the WS-* specs. Find out for yourself if axis2 is right for you.
Axis2 uses the StAX API for XML processing. OMElement is the StAX equivalent for a DOM Element.
The payload is the XML portion that you put into the SOAP body of the SOAP message. It contains the method to call as well as the parameters.
9 years ago
Hi again,

in this case start your servlet container using these flags.

What is your environment? Are you using eclipse? Using tomcat?

Anyway. You may just as well alter your code:
Just put the following static initializer block in your thread class (or any class that is loaded before calling the service).

static {
System.setProperty("https.proxyHost", "IPgoesHere");
System.setProperty("https.proxyPort", "PortGoesHere");
System.setProperty("http.proxyHost", "IPgoesHere");
System.setProperty("http.proxyPort", "PortGoesHere");

I recommend starting the JVM using the -D options. Then you don't have to change your code.
9 years ago
Hi Yogesh,

the easiest way may be to start your java client using the -D options for the proxy server.

9 years ago
Hi Rajesh,

I assume that you want to call a SOAP webservice using apache axis2. Here is a code snippet that should do the work.

Good luck!
9 years ago
Hi Sujoy,

if you are using Axis2 you may find this tutorial helpful

9 years ago