Axis with proxy server

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
 
I

Itmlstmu

Hello all,
we are implementing very large project on jwsdp that is run using tomcat.
We are having web service with one endpoint and recently we run to a
"method body too large problem" when generating server stubs

So, solution was to split service to multiple endpoints, but there is
another problem.

After generating new stubs for multiple endpoints, it seems that one
endpoint can't see object definitions in another, so all endpoints
automatically generate all objects used in created exposed methods, i.e:

I have object named Dog in endpoint Animals
I have object named Pet in endpoints Pets that extends Dog

Now, when i generate server stubs using jax-rpc, i end up whit two
endpoints, where endpoint animals contains definition of Dog,
and endpoint pets contains definitions for both dog and pet.

Is it possible to somehow use objects from another endpoint and prevent
their exposure in all endpoints but one?


(For example, we will probably have, say 10-15 endpoints, and i don't
want all of them to have to define all used objects definitions)

Thanks in advance,
S.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top