The Source for Java Technology Collaboration

Home » java.net Forums » Java Web Services and XML » Java WS & XML Community News

Thread: How to define HTTP proxy in a call to a Metro WS?

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 1 - Last Post: Jan 24, 2009 6:55 PM by: lbon Threads: [ Previous | Next ]
lbon

Posts: 4
How to define HTTP proxy in a call to a Metro WS?
Posted: Jan 6, 2009 12:08 AM
  Click to reply to this thread Reply

Hello,

I designed a Web service that works very fine when the client is on a local area network and through the internet (without a web proxy server). His URL is so ready for the web (so no LAN or localhost URL).

However, when I try to call this WS from a company LAN protected by proxy client, I've got the following error: "Failed to access the WSDL at: http://xxx.xxx.org/OrchestrationServiceSun/OrchestrationTheService?wsdl. It failed with: Server returned HTTP response code: 407 for URL: http://xxx.xxx.org/OrchestrationServiceSun/OrchestrationTheService?wsdl."

HTTP Error 407 means Proxy authentication required.

I have however put the correct JVM environments variables when calling the client:
java -Dhttp.proxySet=true -Dhttp.proxyHost=xx.xx.xx.xx -Dhttp.proxyPort=xxxx -Dhttp.proxyUser=xxxxx -Dhttp.proxyPassword=xxxx -jar OrchestrationServiceSunGUIClientMy.jar

When I do not set these variables, the error message is a timeout, which proves that the variables are indeed necessary and used by the client.

Do I need to amend the wsdl2java generated stub (ObjectFactory.java ...)?
Would it be possible to have the same client for a mode with and without a web proxy?

Thanks for your support.

lbon

Posts: 4
Re: How to define HTTP proxy in a call to a Metro WS?
Posted: Jan 24, 2009 6:55 PM   in response to: lbon
  Click to reply to this thread Reply

No answer???

Can someone tell if you have successfully called a Metro web service using a web proxy?

My config is:
* Server: Apache Tomcat/6.0.16; JVM: 1.6.0_07-b06
* Client: JVM: 1.6.0_07-b06; web service client developped with Swing and the metro stack in the JVM.


Thanks!




 XML java.net RSS