David Nicholls

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

Recent posts by David Nicholls

Use XPath.

http://www.w3schools.com/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.

http://axis.apache.org/axis2/java/core/

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.

-Dhttps.proxyHost=
-Dhttps.proxyPort=
-Dhttp.proxyHost=
-Dhttp.proxyPort=
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

http://www.ibm.com/developerworks/webservices/tutorials/ws-understand-web-services4/
9 years ago