[ 
https://issues.apache.org/jira/browse/AXIS2-4678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sriram Srinivasan updated AXIS2-4678:
-------------------------------------

    Description: 
log4j:WARN No appenders could be found for logger 
(org.apache.axis2.description.AxisService).
log4j:WARN Please initialize the log4j system properly.
org.apache.axis2.AxisFault: The service cannot be found for the endpoint 
reference (EPR) http://localhost:8080/axis2/services/TemperatureConverter
        at 
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512)
        at 
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
        at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
        at 
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
        at 
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
        at 
ws.example.TemperatureConverterStub.c2FConvertion(TemperatureConverterStub.java:463)
        at 
ws.example.TemperatureConverterServiceClient.main(TemperatureConverterServiceClient
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Please post if you have any solution. I may not be available to reply. So 
please post your solution then I will try to take the appropriate action.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The TemperatureConverter.wsdl file:
  <?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://example.ws"; 
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://example.ws";>
  <wsdl:documentation>TemperatueConverter</wsdl:documentation> 
- <wsdl:types>
- <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" 
targetNamespace="http://example.ws";>
- <xs:element name="c2fConvertion">
- <xs:complexType>
- <xs:sequence>
  <xs:element minOccurs="0" name="cValue" type="xs:double" /> 
  </xs:sequence>
  </xs:complexType>
  </xs:element>
- <xs:element name="c2fConvertionResponse">
- <xs:complexType>
- <xs:sequence>
  <xs:element minOccurs="0" name="return" type="xs:double" /> 
  </xs:sequence>
  </xs:complexType>
  </xs:element>
- <xs:element name="f2cConvertion">
- <xs:complexType>
- <xs:sequence>
  <xs:element minOccurs="0" name="fValue" type="xs:double" /> 
  </xs:sequence>
  </xs:complexType>
  </xs:element>
- <xs:element name="f2cConvertionResponse">
- <xs:complexType>
- <xs:sequence>
  <xs:element minOccurs="0" name="return" type="xs:double" /> 
  </xs:sequence>
  </xs:complexType>
  </xs:element>
  </xs:schema>
  </wsdl:types>
- <wsdl:message name="c2fConvertionRequest">
  <wsdl:part name="parameters" element="ns:c2fConvertion" /> 
  </wsdl:message>
- <wsdl:message name="c2fConvertionResponse">
  <wsdl:part name="parameters" element="ns:c2fConvertionResponse" /> 
  </wsdl:message>
- <wsdl:message name="f2cConvertionRequest">
  <wsdl:part name="parameters" element="ns:f2cConvertion" /> 
  </wsdl:message>
- <wsdl:message name="f2cConvertionResponse">
  <wsdl:part name="parameters" element="ns:f2cConvertionResponse" /> 
  </wsdl:message>
- <wsdl:portType name="TemperatueConverterPortType">
- <wsdl:operation name="c2fConvertion">
  <wsdl:input message="ns:c2fConvertionRequest" wsaw:Action="urn:c2fConvertion" 
/> 
  <wsdl:output message="ns:c2fConvertionResponse" 
wsaw:Action="urn:c2fConvertionResponse" /> 
  </wsdl:operation>
- <wsdl:operation name="f2cConvertion">
  <wsdl:input message="ns:f2cConvertionRequest" wsaw:Action="urn:f2cConvertion" 
/> 
  <wsdl:output message="ns:f2cConvertionResponse" 
wsaw:Action="urn:f2cConvertionResponse" /> 
  </wsdl:operation>
  </wsdl:portType>
- <wsdl:binding name="TemperatueConverterSoap11Binding" 
type="ns:TemperatueConverterPortType">
  <soap:binding transport="http://schemas.xmlsoap.org/soap/http"; 
style="document" /> 
- <wsdl:operation name="c2fConvertion">
  <soap:operation soapAction="urn:c2fConvertion" style="document" /> 
- <wsdl:input>
  <soap:body use="literal" /> 
  </wsdl:input>
- <wsdl:output>
  <soap:body use="literal" /> 
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="f2cConvertion">
  <soap:operation soapAction="urn:f2cConvertion" 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="TemperatueConverterSoap12Binding" 
type="ns:TemperatueConverterPortType">
  <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"; 
style="document" /> 
- <wsdl:operation name="c2fConvertion">
  <soap12:operation soapAction="urn:c2fConvertion" style="document" /> 
- <wsdl:input>
  <soap12:body use="literal" /> 
  </wsdl:input>
- <wsdl:output>
  <soap12:body use="literal" /> 
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="f2cConvertion">
  <soap12:operation soapAction="urn:f2cConvertion" 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="TemperatueConverterHttpBinding" 
type="ns:TemperatueConverterPortType">
  <http:binding verb="POST" /> 
- <wsdl:operation name="c2fConvertion">
  <http:operation location="TemperatueConverter/c2fConvertion" /> 
- <wsdl:input>
  <mime:content type="text/xml" part="c2fConvertion" /> 
  </wsdl:input>
- <wsdl:output>
  <mime:content type="text/xml" part="c2fConvertion" /> 
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="f2cConvertion">
  <http:operation location="TemperatueConverter/f2cConvertion" /> 
- <wsdl:input>
  <mime:content type="text/xml" part="f2cConvertion" /> 
  </wsdl:input>
- <wsdl:output>
  <mime:content type="text/xml" part="f2cConvertion" /> 
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:service name="TemperatueConverter">
- <wsdl:port name="TemperatueConverterHttpSoap11Endpoint" 
binding="ns:TemperatueConverterSoap11Binding">
  <soap:address 
location="http://192.168.1.2:8080/axis2/services/TemperatueConverter.TemperatueConverterHttpSoap11Endpoint/";
 /> 
  </wsdl:port>
- <wsdl:port name="TemperatueConverterHttpSoap12Endpoint" 
binding="ns:TemperatueConverterSoap12Binding">
  <soap12:address 
location="http://192.168.1.2:8080/axis2/services/TemperatueConverter.TemperatueConverterHttpSoap12Endpoint/";
 /> 
  </wsdl:port>
- <wsdl:port name="TemperatueConverterHttpEndpoint" 
binding="ns:TemperatueConverterHttpBinding">
  <http:address 
location="http://192.168.1.2:8080/axis2/services/TemperatueConverter.TemperatueConverterHttpEndpoint/";
 /> 
  </wsdl:port>
  </wsdl:service>
  </wsdl:definitions>
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The java client code:

package ws.example;

public class TemperatureConverterServiceClient {
    public static void main(String[] args) {
        TemperatureConverterStub stub;
        try {
                 //System.setProperty("proxyHost", "59.92.30.4");
             //System.setProperty("proxyPort", "8080");  
            double c_value = 32;
            stub = new 
TemperatureConverterStub("http://localhost:8080/axis2/services/TemperatureConverter";);
            TemperatureConverterStub.C2FConvertion c2f = new 
TemperatureConverterStub.C2FConvertion();
            c2f.setCValue(c_value); 
            TemperatureConverterStub.C2FConvertionResponse res = 
stub.c2FConvertion(c2f);  
            System.out.println("C Value : "+c_value+ "\tResult : " 
+res.get_return());
            TemperatureConverterStub.F2CConvertion f2c = new 
TemperatureConverterStub.F2CConvertion(); 
            f2c.setFValue(res.get_return());

            TemperatureConverterStub.F2CConvertionResponse res1 = 
stub.f2CConvertion(f2c);
            System.out.println("F Value : "+res.get_return()+ "\tResult : " 
+res1.get_return());
       } catch (Exception e) {
           e.printStackTrace();
       }
    }
}
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

  was:
log4j:WARN No appenders could be found for logger 
(org.apache.axis2.description.AxisService).
log4j:WARN Please initialize the log4j system properly.
org.apache.axis2.AxisFault: The service cannot be found for the endpoint 
reference (EPR) http://localhost:8080/axis2/services/TemperatureConverter
        at 
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512)
        at 
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
        at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
        at 
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
        at 
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
        at 
ws.example.TemperatureConverterStub.c2FConvertion(TemperatureConverterStub.java:463)
        at 
ws.example.TemperatureConverterServiceClient.main(TemperatureConverterServiceClient
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Please post if you have any solution.


> AxisFault: The service could not be found for the end point refrence.
> ---------------------------------------------------------------------
>
>                 Key: AXIS2-4678
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4678
>             Project: Axis2
>          Issue Type: Bug
>    Affects Versions: 1.3
>         Environment: Windows Vista
>            Reporter: Sriram Srinivasan
>
> log4j:WARN No appenders could be found for logger 
> (org.apache.axis2.description.AxisService).
> log4j:WARN Please initialize the log4j system properly.
> org.apache.axis2.AxisFault: The service cannot be found for the endpoint 
> reference (EPR) http://localhost:8080/axis2/services/TemperatureConverter
>       at 
> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512)
>       at 
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
>       at 
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
>       at 
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
>       at 
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
>       at 
> ws.example.TemperatureConverterStub.c2FConvertion(TemperatureConverterStub.java:463)
>       at 
> ws.example.TemperatureConverterServiceClient.main(TemperatureConverterServiceClient
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> Please post if you have any solution. I may not be available to reply. So 
> please post your solution then I will try to take the appropriate action.
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> The TemperatureConverter.wsdl file:
>   <?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://example.ws"; 
> 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://example.ws";>
>   <wsdl:documentation>TemperatueConverter</wsdl:documentation> 
> - <wsdl:types>
> - <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" 
> targetNamespace="http://example.ws";>
> - <xs:element name="c2fConvertion">
> - <xs:complexType>
> - <xs:sequence>
>   <xs:element minOccurs="0" name="cValue" type="xs:double" /> 
>   </xs:sequence>
>   </xs:complexType>
>   </xs:element>
> - <xs:element name="c2fConvertionResponse">
> - <xs:complexType>
> - <xs:sequence>
>   <xs:element minOccurs="0" name="return" type="xs:double" /> 
>   </xs:sequence>
>   </xs:complexType>
>   </xs:element>
> - <xs:element name="f2cConvertion">
> - <xs:complexType>
> - <xs:sequence>
>   <xs:element minOccurs="0" name="fValue" type="xs:double" /> 
>   </xs:sequence>
>   </xs:complexType>
>   </xs:element>
> - <xs:element name="f2cConvertionResponse">
> - <xs:complexType>
> - <xs:sequence>
>   <xs:element minOccurs="0" name="return" type="xs:double" /> 
>   </xs:sequence>
>   </xs:complexType>
>   </xs:element>
>   </xs:schema>
>   </wsdl:types>
> - <wsdl:message name="c2fConvertionRequest">
>   <wsdl:part name="parameters" element="ns:c2fConvertion" /> 
>   </wsdl:message>
> - <wsdl:message name="c2fConvertionResponse">
>   <wsdl:part name="parameters" element="ns:c2fConvertionResponse" /> 
>   </wsdl:message>
> - <wsdl:message name="f2cConvertionRequest">
>   <wsdl:part name="parameters" element="ns:f2cConvertion" /> 
>   </wsdl:message>
> - <wsdl:message name="f2cConvertionResponse">
>   <wsdl:part name="parameters" element="ns:f2cConvertionResponse" /> 
>   </wsdl:message>
> - <wsdl:portType name="TemperatueConverterPortType">
> - <wsdl:operation name="c2fConvertion">
>   <wsdl:input message="ns:c2fConvertionRequest" 
> wsaw:Action="urn:c2fConvertion" /> 
>   <wsdl:output message="ns:c2fConvertionResponse" 
> wsaw:Action="urn:c2fConvertionResponse" /> 
>   </wsdl:operation>
> - <wsdl:operation name="f2cConvertion">
>   <wsdl:input message="ns:f2cConvertionRequest" 
> wsaw:Action="urn:f2cConvertion" /> 
>   <wsdl:output message="ns:f2cConvertionResponse" 
> wsaw:Action="urn:f2cConvertionResponse" /> 
>   </wsdl:operation>
>   </wsdl:portType>
> - <wsdl:binding name="TemperatueConverterSoap11Binding" 
> type="ns:TemperatueConverterPortType">
>   <soap:binding transport="http://schemas.xmlsoap.org/soap/http"; 
> style="document" /> 
> - <wsdl:operation name="c2fConvertion">
>   <soap:operation soapAction="urn:c2fConvertion" style="document" /> 
> - <wsdl:input>
>   <soap:body use="literal" /> 
>   </wsdl:input>
> - <wsdl:output>
>   <soap:body use="literal" /> 
>   </wsdl:output>
>   </wsdl:operation>
> - <wsdl:operation name="f2cConvertion">
>   <soap:operation soapAction="urn:f2cConvertion" 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="TemperatueConverterSoap12Binding" 
> type="ns:TemperatueConverterPortType">
>   <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"; 
> style="document" /> 
> - <wsdl:operation name="c2fConvertion">
>   <soap12:operation soapAction="urn:c2fConvertion" style="document" /> 
> - <wsdl:input>
>   <soap12:body use="literal" /> 
>   </wsdl:input>
> - <wsdl:output>
>   <soap12:body use="literal" /> 
>   </wsdl:output>
>   </wsdl:operation>
> - <wsdl:operation name="f2cConvertion">
>   <soap12:operation soapAction="urn:f2cConvertion" 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="TemperatueConverterHttpBinding" 
> type="ns:TemperatueConverterPortType">
>   <http:binding verb="POST" /> 
> - <wsdl:operation name="c2fConvertion">
>   <http:operation location="TemperatueConverter/c2fConvertion" /> 
> - <wsdl:input>
>   <mime:content type="text/xml" part="c2fConvertion" /> 
>   </wsdl:input>
> - <wsdl:output>
>   <mime:content type="text/xml" part="c2fConvertion" /> 
>   </wsdl:output>
>   </wsdl:operation>
> - <wsdl:operation name="f2cConvertion">
>   <http:operation location="TemperatueConverter/f2cConvertion" /> 
> - <wsdl:input>
>   <mime:content type="text/xml" part="f2cConvertion" /> 
>   </wsdl:input>
> - <wsdl:output>
>   <mime:content type="text/xml" part="f2cConvertion" /> 
>   </wsdl:output>
>   </wsdl:operation>
>   </wsdl:binding>
> - <wsdl:service name="TemperatueConverter">
> - <wsdl:port name="TemperatueConverterHttpSoap11Endpoint" 
> binding="ns:TemperatueConverterSoap11Binding">
>   <soap:address 
> location="http://192.168.1.2:8080/axis2/services/TemperatueConverter.TemperatueConverterHttpSoap11Endpoint/";
>  /> 
>   </wsdl:port>
> - <wsdl:port name="TemperatueConverterHttpSoap12Endpoint" 
> binding="ns:TemperatueConverterSoap12Binding">
>   <soap12:address 
> location="http://192.168.1.2:8080/axis2/services/TemperatueConverter.TemperatueConverterHttpSoap12Endpoint/";
>  /> 
>   </wsdl:port>
> - <wsdl:port name="TemperatueConverterHttpEndpoint" 
> binding="ns:TemperatueConverterHttpBinding">
>   <http:address 
> location="http://192.168.1.2:8080/axis2/services/TemperatueConverter.TemperatueConverterHttpEndpoint/";
>  /> 
>   </wsdl:port>
>   </wsdl:service>
>   </wsdl:definitions>
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> The java client code:
> package ws.example;
> public class TemperatureConverterServiceClient {
>     public static void main(String[] args) {
>         TemperatureConverterStub stub;
>         try {
>                //System.setProperty("proxyHost", "59.92.30.4");
>              //System.setProperty("proxyPort", "8080");  
>             double c_value = 32;
>             stub = new 
> TemperatureConverterStub("http://localhost:8080/axis2/services/TemperatureConverter";);
>             TemperatureConverterStub.C2FConvertion c2f = new 
> TemperatureConverterStub.C2FConvertion();
>             c2f.setCValue(c_value); 
>             TemperatureConverterStub.C2FConvertionResponse res = 
> stub.c2FConvertion(c2f);  
>             System.out.println("C Value : "+c_value+ "\tResult : " 
> +res.get_return());
>             TemperatureConverterStub.F2CConvertion f2c = new 
> TemperatureConverterStub.F2CConvertion(); 
>             f2c.setFValue(res.get_return());
>             TemperatureConverterStub.F2CConvertionResponse res1 = 
> stub.f2CConvertion(f2c);
>             System.out.println("F Value : "+res.get_return()+ "\tResult : " 
> +res1.get_return());
>        } catch (Exception e) {
>            e.printStackTrace();
>        }
>     }
> }
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to