Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Axis/JWSDP1.4 interoperability (using HTTP Proxy)

Posted on 2004-09-01
5
Medium Priority
?
285 Views
Last Modified: 2013-12-10
We are currently working on a Web Services client program which sits within WebSphere as a number of EJB's and makes WebService calls to the outside world.

In order to create and make the WebService call we are trying to use a combination of JWSDP 1.4 and Axis 1.2.  The reason for this is that we need some of the more advanced facilities of both of the solutions.  So basically we use JWSDP 1.4 for everything, except for the Web Service transport itself, which we use Axis for.

The solution works perfectly well under normal circumstances, however if we configure an http proxy (using the JVM params http.proxyHost and proxyPort) the whole thing starts failing.  The reason for this seems to be that Axis is making an invalid request to the HTTP Proxy, as it returns "Invalid Http Header".

I've tried various different HTTP proxies so I'm pretty sure that they aren't at fault.  I think the problem is that Axis is omitting part of the URL when it makes the Web Service request.  If I use Axis's TCP Monitor as my proxy, the invalid call looks something like:

POST /axis/Blah.jsp

Where as a normal request just using URL Connection looks like:

GET http://mymachine/axis/Blah.jsp

My guess is that the omitting the machine section of the URL for some reason, but why I don't know!  I've looked through the Log4j output that Axis throws out, and all looks well until the actual call is made - I can see further up the log that it has identified the machine correctly, so at some point it did know!

My question is, has anyone else encountered this problem.  Alternatively, has anyone tried to mix JWSDP 1.4 and Axis - if so what combination of libraries did you use, as that seems to be the key to the problem.

Thanks in advance for any help
0
Comment
Question by:krytenxpert
[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
  • 2
5 Comments
 

Author Comment

by:krytenxpert
ID: 12241059
Still no idea on this - we've not managed to get any further, so I guess just close the question.
0
 

Author Comment

by:krytenxpert
ID: 12380939
We've now upgraded to Axis 1.2RC1 and the proxy has now started working - just in case anyone else comes across this in the future.
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12624079
PAQed with points refunded (500)

modulo
Community Support Moderator
0

Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

-Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

705 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