axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suresh Guda (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-4359) org.apache.axis2.AxisFault: Connection refused: connect
Date Fri, 29 May 2009 08:48:46 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-4359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12714367#action_12714367
] 

Suresh Guda commented on AXIS2-4359:
------------------------------------

10.10.10.10 is not my IP address, that only signifies the "localhost" I believe. 
The port "18080" is correct (to which my JBoss(4.2.3.GA) server listens).

I tried the URL: http://10.10.10.10:18080/ConverterWS/services/Converter.ConverterHttpSoap12Endpoint/
in IE, it didn't display anything. Also tried with "locahost" and even with my original IP,
but same result.

Later I tried the URL:
http://localhost:18080/ConverterWS/services/Converter.ConverterHttpSoap12Endpoint/celsiusToFarenheit?celsius=100

it gave the following result in IE window:

<ns:celsiusToFarenheitResponse xmlns:ns="http://wtp">
  <ns:return>212.0</ns:return> 
  </ns:celsiusToFarenheitResponse>

Also tried the URL:
http://10.10.10.10:18080/ConverterWS/services/Converter.ConverterHttpSoap12Endpoint/celsiusToFarenheit?celsius=100
But, No result.


Here is the WSDL file which I could see in my browser(IE6) when accesed through URL:
http://localhost:18080/ConverterWS/services/Converter?wsdl

<?xml version="1.0" encoding="UTF-8" ?> 
- <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd"
xmlns:ns="http://wtp" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
targetNamespace="http://wtp">
  <wsdl:documentation>Please Type your service description here</wsdl:documentation>

- <wsdl:types>
- <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://wtp">
- <xs:element name="celsiusToFarenheit">
- <xs:complexType>
- <xs:sequence>
  <xs:element minOccurs="0" name="celsius" type="xs:float" /> 
  </xs:sequence>
  </xs:complexType>
  </xs:element>
- <xs:element name="celsiusToFarenheitResponse">
- <xs:complexType>
- <xs:sequence>
  <xs:element minOccurs="0" name="return" type="xs:float" /> 
  </xs:sequence>
  </xs:complexType>
  </xs:element>
- <xs:element name="farenheitToCelsius">
- <xs:complexType>
- <xs:sequence>
  <xs:element minOccurs="0" name="farenheit" type="xs:float" /> 
  </xs:sequence>
  </xs:complexType>
  </xs:element>
- <xs:element name="farenheitToCelsiusResponse">
- <xs:complexType>
- <xs:sequence>
  <xs:element minOccurs="0" name="return" type="xs:float" /> 
  </xs:sequence>
  </xs:complexType>
  </xs:element>
  </xs:schema>
  </wsdl:types>
- <wsdl:message name="celsiusToFarenheitRequest">
  <wsdl:part name="parameters" element="ns:celsiusToFarenheit" /> 
  </wsdl:message>
- <wsdl:message name="celsiusToFarenheitResponse">
  <wsdl:part name="parameters" element="ns:celsiusToFarenheitResponse" /> 
  </wsdl:message>
- <wsdl:message name="farenheitToCelsiusRequest">
  <wsdl:part name="parameters" element="ns:farenheitToCelsius" /> 
  </wsdl:message>
- <wsdl:message name="farenheitToCelsiusResponse">
  <wsdl:part name="parameters" element="ns:farenheitToCelsiusResponse" /> 
  </wsdl:message>
- <wsdl:portType name="ConverterPortType">
- <wsdl:operation name="celsiusToFarenheit">
  <wsdl:input message="ns:celsiusToFarenheitRequest" wsaw:Action="urn:celsiusToFarenheit"
/> 
  <wsdl:output message="ns:celsiusToFarenheitResponse" wsaw:Action="urn:celsiusToFarenheitResponse"
/> 
  </wsdl:operation>
- <wsdl:operation name="farenheitToCelsius">
  <wsdl:input message="ns:farenheitToCelsiusRequest" wsaw:Action="urn:farenheitToCelsius"
/> 
  <wsdl:output message="ns:farenheitToCelsiusResponse" wsaw:Action="urn:farenheitToCelsiusResponse"
/> 
  </wsdl:operation>
  </wsdl:portType>
- <wsdl:binding name="ConverterSoap11Binding" type="ns:ConverterPortType">
  <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />

- <wsdl:operation name="celsiusToFarenheit">
  <soap:operation soapAction="urn:celsiusToFarenheit" style="document" /> 
- <wsdl:input>
  <soap:body use="literal" /> 
  </wsdl:input>
- <wsdl:output>
  <soap:body use="literal" /> 
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="farenheitToCelsius">
  <soap:operation soapAction="urn:farenheitToCelsius" style="document" /> 
- <wsdl:input>
  <soap:body use="literal" /> 
  </wsdl:input>
- <wsdl:output>
  <soap:body use="literal" /> 
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:binding name="ConverterSoap12Binding" type="ns:ConverterPortType">
  <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />

- <wsdl:operation name="celsiusToFarenheit">
  <soap12:operation soapAction="urn:celsiusToFarenheit" style="document" /> 
- <wsdl:input>
  <soap12:body use="literal" /> 
  </wsdl:input>
- <wsdl:output>
  <soap12:body use="literal" /> 
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="farenheitToCelsius">
  <soap12:operation soapAction="urn:farenheitToCelsius" style="document" /> 
- <wsdl:input>
  <soap12:body use="literal" /> 
  </wsdl:input>
- <wsdl:output>
  <soap12:body use="literal" /> 
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:binding name="ConverterHttpBinding" type="ns:ConverterPortType">
  <http:binding verb="POST" /> 
- <wsdl:operation name="celsiusToFarenheit">
  <http:operation location="Converter/celsiusToFarenheit" /> 
- <wsdl:input>
  <mime:content type="text/xml" part="celsiusToFarenheit" /> 
  </wsdl:input>
- <wsdl:output>
  <mime:content type="text/xml" part="celsiusToFarenheit" /> 
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="farenheitToCelsius">
  <http:operation location="Converter/farenheitToCelsius" /> 
- <wsdl:input>
  <mime:content type="text/xml" part="farenheitToCelsius" /> 
  </wsdl:input>
- <wsdl:output>
  <mime:content type="text/xml" part="farenheitToCelsius" /> 
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:service name="Converter">
+ <wsdl:port name="ConverterHttpSoap11Endpoint" binding="ns:ConverterSoap11Binding">
  <soap:address location="http://10.10.10.10:18080/ConverterWS/services/Converter.ConverterHttpSoap11Endpoint/"
/> 
  </wsdl:port>
- <wsdl:port name="ConverterHttpSoap12Endpoint" binding="ns:ConverterSoap12Binding">
  <soap12:address location="http://10.10.10.10:18080/ConverterWS/services/Converter.ConverterHttpSoap12Endpoint/"
/> 
  </wsdl:port>
- <wsdl:port name="ConverterHttpEndpoint" binding="ns:ConverterHttpBinding">
  <http:address location="http://10.10.10.10:18080/ConverterWS/services/Converter.ConverterHttpEndpoint/"
/> 
  </wsdl:port>
  </wsdl:service>
  </wsdl:definitions>

> org.apache.axis2.AxisFault: Connection refused: connect
> -------------------------------------------------------
>
>                 Key: AXIS2-4359
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4359
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: jaxws
>    Affects Versions: 1.4.1
>         Environment: Windows 2003 Standard Edition SP2, Eclipse Europa, Axis-2(1.4.1)
>            Reporter: Suresh Guda
>            Priority: Blocker
>   Original Estimate: 0.25h
>  Remaining Estimate: 0.25h
>
> Hi,
> I am new to JAX-WS and Axis-2(1.4.1).
> Trying to do a sample application on JAX-WS as descibed in the link:
> http://www.eclipse.org/webtools/community/tutorials/BottomUpAxis2WebService/bu_tutorial.html
> Completed the creation of Webservice and Client as mentioned in the tutorial. But when
I tried to execute the client and I get the following exception in the console:
> org.apache.axis2.AxisFault: Connection refused: connect
> 	at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
> 	at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)
> 	at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
> 	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:371)
> 	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:209)
> 	at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)[INFO] Unable to sendViaPost
to url[http://10.10.10.10:18080/ConverterWS/services/Converter.ConverterHttpSoap12Endpoint/]
> java.net.ConnectException: Connection refused: connect
> 	at java.net.PlainSocketImpl.socketConnect(Native Method)
> 	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> 	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
> 	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> 	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
> 	at java.net.Socket.connect(Socket.java:519)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140)
> 	at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:125)
> 	at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
> 	at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
> 	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
> 	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
> 	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
> 	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
> 	at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:542)
> 	at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:189)
> 	at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
> 	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:371)
> 	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:209)
> 	at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
> 	at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
> 	at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
> 	at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
> 	at wtp.ConverterStub.celsiusToFarenheit(ConverterStub.java:463)
> 	at wtp.ConverterClient.main(ConverterClient.java:21)
> 	at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
> 	at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
> 	at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
> 	at wtp.ConverterStub.celsiusToFarenheit(ConverterStub.java:463)
> 	at wtp.ConverterClient.main(ConverterClient.java:21)
> Caused by: java.net.ConnectException: Connection refused: connect
> 	at java.net.PlainSocketImpl.socketConnect(Native Method)
> 	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> 	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
> 	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> 	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
> 	at java.net.Socket.connect(Socket.java:519)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140)
> 	at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:125)
> 	at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
> 	at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
> 	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
> 	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
> 	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
> 	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
> 	at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:542)
> 	at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:189)
> 	... 9 more
> -----------------------------------------------------
> Here is the Webservice client code:
> ------------------------------------------------------------
> package wtp;
> import java.rmi.RemoteException;
> import org.apache.axis2.AxisFault;
> //import wtp.ConverterConverterSOAP11Port_httpStub.CelsiusToFarenheit;
> //import wtp.ConverterConverterSOAP11Port_httpStub.CelsiusToFarenheitResponse;
> import wtp.ConverterStub.CelsiusToFarenheit;
> import wtp.ConverterStub.CelsiusToFarenheitResponse;
> public class ConverterClient {
>         public static void main(String[] args) {
>                 try {
>                         float celsiusValue = 100;
>                         ConverterStub stub = new ConverterStub();
>                         CelsiusToFarenheit c2f = new CelsiusToFarenheit();
>                         c2f.setCelsius(celsiusValue);
>                         CelsiusToFarenheitResponse res = stub.celsiusToFarenheit(c2f);
>                         System.out.println("Celsius : "+celsiusValue+" = "+"Farenheit
: "+res.get_return());
>                 } catch (AxisFault e) {
>                         e.printStackTrace();
>                 } catch (RemoteException e) {
>                         e.printStackTrace();
>                 }
>         }
> }
> This issue is blocking me to move forward on testing the web service and client.
> I greatly appreciate if you can provide a solution as early as possible.
> Many Thanks,
> Suresh Guda 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message