wood burning stoves 2.0*
The moose likes Web Services and the fly likes Completely lost. Swing app consuming webservice got Timeout error (504) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Completely lost. Swing app consuming webservice got Timeout error (504)" Watch "Completely lost. Swing app consuming webservice got Timeout error (504)" New topic
Author

Completely lost. Swing app consuming webservice got Timeout error (504)

Valmir Cinquini
Greenhorn

Joined: Nov 11, 2009
Posts: 26
Hi all. anybody could help me? I've googled a lot, found some samples, but no one successfullJ.

I have a webservice running on JBOss 4.2 on a machine connected to a internal company's network (network type 10.xx). The proxy server is an ISA Server from MS.

I have an swing application that needs to access that webservice. I follow a tutorial to create a reference to this webservice on Netbeans. That's ok, easy, works fine. But I can pass through the proxy authentication. I got the Timeout error (504), so I don't know if I got authenticated, but I think I got. Otherwise I would receive another type of error, like connection refused or similar.

Below, follows my code:



This is the error message:

com.sun.xml.ws.client.ClientTransportException: The server sent HTTP status code 504: Proxy Timeout ( The connection timed out. For more information about this event, see ISA Server Help. )


The webservice works fine, I can test it using SoapUI. I can see the method calling on JBoss console on the server machine.

Could anybode help me? I'm very very newbee with Java.

Thanks in advance.

Valmir Cinquini
Greenhorn

Joined: Nov 11, 2009
Posts: 26
Got it

System.setProperty("http.nonProxyHosts", "my ws IP host here");




Valmir Cinquini wrote:Hi all. anybody could help me? I've googled a lot, found some samples, but no one successfullJ.

I have a webservice running on JBOss 4.2 on a machine connected to a internal company's network (network type 10.xx). The proxy server is an ISA Server from MS.

I have an swing application that needs to access that webservice. I follow a tutorial to create a reference to this webservice on Netbeans. That's ok, easy, works fine. But I can pass through the proxy authentication. I got the Timeout error (504), so I don't know if I got authenticated, but I think I got. Otherwise I would receive another type of error, like connection refused or similar.

Below, follows my code:



This is the error message:

com.sun.xml.ws.client.ClientTransportException: The server sent HTTP status code 504: Proxy Timeout ( The connection timed out. For more information about this event, see ISA Server Help. )


The webservice works fine, I can test it using SoapUI. I can see the method calling on JBoss console on the server machine.

Could anybode help me? I'm very very newbee with Java.

Thanks in advance.

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Completely lost. Swing app consuming webservice got Timeout error (504)