Skip to main content

Connection refused with Tomcat 6.0 / JAX-WS

3 replies [Last post]
Joined: 2008-01-24

So I created a web service using netbeans 6.0 from the wsdl template. I tested the webservice running on tomcat 6.0, and it was successful. I then created a java application client to test the web service, using the "new web service client" in netbeans. It adds in the code for me...

try { // Call Web Service Operation
bplaptop.BPWSDLService service = new bplaptop.BPWSDLService();
bplaptop.BPWSDLPortType port = service.getBPWSDLPort();
String officer = "test";
String resp = port.bPWSDLOperation(officer);
jTextArea1.append(resp + "\n");
} catch (Exception ex) {
jTextArea1.append(ex.toString() + "\n");

except the port.bPWSDLOperation(officer); reports: HTTP transport error: Connection refused: connect

Is there something i need to configure on tomcat? No windows firewall running, but i do have a zone labs corporate firewall i can't easily uninstall running. Maybe that's it? Any ideas welcome.


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2008-01-24

I removed the firewall. It did not help.

Joined: 2008-01-24

I figured it out. When Netbeans writes the WSDL file for you, it does not ask where your local server is. As a result, I had the soap:address pointing to a slightly incorrect location. Once i changed this and propagated it, it worked.

Joined: 2008-05-29

But how is the [b]soap:address[/b] in the WebServer and how is the [b]soap:address[/b] in the [b]Web Service Client[/b]? What NetBeans writes incorrectly?