T
T W Hu
Recently I got involved with a project that uses Apache Axis.
An external vendor told me to do
$ java org.apache.axis.wsdl.WSDL2Java
http://external.site.com/application?wsdl -o $HOME -v
to create Java stub programs.
However, I have to go through a proxy server to access external site.
I have found the Axis developer document said that I can use httpclient.
Also the build axis document has:
{
Httpclient is a better library for making http connections than the Java
runtime.
1.. Download the required Class libraries( commons-httpclient.jar) to
$(axis.home)/java/lib.
You can download this from http://jakarta.apache.org/commons/httpclient/
Recommended version : 2.0-alpha2
}
I have install the httpclient.jar file and tried the following
$ java -Dproxy.httpHost=my.proxy.com -Dproxy.httpPort=9000
org.apache.axis.wsdl.WSDL2Java http://external.site.com/application?wsdl -o
$HOME -v
Both commands are working fine if I access an internal site with axis, but I
got timeout when I access an external site.
Do I have to rebuild axis from the source? (I downloaded the binary
version).
What options shall I use if I need to rebuild?
Will it create proxy stub programs for me?
How can I get httpclient work with WSDL2Java?
Thanks for your help
Tulan
An external vendor told me to do
$ java org.apache.axis.wsdl.WSDL2Java
http://external.site.com/application?wsdl -o $HOME -v
to create Java stub programs.
However, I have to go through a proxy server to access external site.
I have found the Axis developer document said that I can use httpclient.
Also the build axis document has:
{
Httpclient is a better library for making http connections than the Java
runtime.
1.. Download the required Class libraries( commons-httpclient.jar) to
$(axis.home)/java/lib.
You can download this from http://jakarta.apache.org/commons/httpclient/
Recommended version : 2.0-alpha2
}
I have install the httpclient.jar file and tried the following
$ java -Dproxy.httpHost=my.proxy.com -Dproxy.httpPort=9000
org.apache.axis.wsdl.WSDL2Java http://external.site.com/application?wsdl -o
$HOME -v
Both commands are working fine if I access an internal site with axis, but I
got timeout when I access an external site.
Do I have to rebuild axis from the source? (I downloaded the binary
version).
What options shall I use if I need to rebuild?
Will it create proxy stub programs for me?
How can I get httpclient work with WSDL2Java?
Thanks for your help
Tulan