I tried the ADB server and client discussed in the user manual (I believe it
is identical to the code you pasted). The server deployed fine and the
client gave good output.

I used the Axis2 plugin for Netbeans to generate the client code you saw.

1) Are you sure the bug was in the client, not the server code? What looks
wrong in the client code?
2) If the client is buggy, any idea what I could have done wrong to generate
this code?

Thanks,
Gili


Charitha Kankanamge wrote:
> 
> Hi,
> You client seems wrong to me. Can you try with the following client as 
> explained in 
> http://ws.apache.org/axis2/1_4_1/quickstartguide.html#introduction?
> 
> import samples.quickstart.service.adb.StockQuoteServiceStub;
> 
> public class ADBClient{
>     public static void main(java.lang.String args[]){
>         try{
>             StockQuoteServiceStub stub =
>                 new StockQuoteServiceStub
>                
> ("http://localhost:8080/axis2/services/StockQuoteService";);
> 
>             getPrice(stub);
>             update(stub);
>             getPrice(stub);
> 
>         } catch(Exception e){
>             e.printStackTrace();
>             System.err.println("\n\n\n");
>         }
>     }
> 
>     /* fire and forget */
>     public static void update(StockQuoteServiceStub stub){
>         try{
>             StockQuoteServiceStub.Update req = new
> StockQuoteServiceStub.Update();
>             req.setSymbol ("ABC");
>             req.setPrice (42.35);
> 
>             stub.update(req);
>             System.err.println("price updated");
>         } catch(Exception e){
>             e.printStackTrace();
>             System.err.println("\n\n\n");
>         }
>     }
> 
>     /* two way call/receive */
>     public static void getPrice(StockQuoteServiceStub stub){
>         try{
>             StockQuoteServiceStub.GetPrice req = new
> StockQuoteServiceStub.GetPrice();
> 
>             req.setSymbol("ABC");
> 
>             StockQuoteServiceStub.GetPriceResponse res =
>                 stub.getPrice(req);
> 
>             System.err.println(res.get_return());
>         } catch(Exception e){
>             e.printStackTrace();
>             System.err.println("\n\n\n");
>         }
>     }
> 
> }
> 
> 
> 
> cowwoc wrote:
> 
>>Hi Charitha,
>>
>>My client code is:
>>-----------------------
>>package webservices;
>>
>>public class Main {
>>
>>      public static void main(String[] args) {
>>              try {
>>                      pojo.service.quickstart.samples.StockQuoteService 
>> service = new
>>pojo.service.quickstart.samples.StockQuoteService();
>>                      
>> pojo.service.quickstart.samples.StockQuoteServicePortType port =
>>service.getStockQuoteServiceHttpport();
>>                      java.lang.String symbol = "";
>>                      java.lang.Double result = port.getPrice(symbol);
>>                      System.out.println("Result = " + result);
>>              } catch (Exception ex) {
>>                      ex.printStackTrace();
>>              }
>>      }
>>}
>>---------------------
>>
>>As you can see, it is invoking the web service described here:
>>http://ws.apache.org/axis2/1_4_1/quickstartguide.html#introduction
>>
>>I get the following exception:
>>-----------------------
>>javax.xml.ws.WebServiceException: Unsupported endpoint address: 
>>        at
>>com.sun.xml.internal.ws.api.pipe.TransportTubeFactory.create(TransportTubeFactory.java:130)
>>        at
>>com.sun.xml.internal.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:98)
>>        at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Fiber.java:581)
>>        at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Fiber.java:540)
>>        at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Fiber.java:525)
>>        at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Fiber.java:422)
>>        at com.sun.xml.internal.ws.client.Stub.process(Stub.java:235)
>>        at
>>com.sun.xml.internal.ws.client.sei.SEIStub.doProcess(SEIStub.java:120)
>>        at
>>com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:230)
>>        at
>>com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210)
>>        at
>>com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
>>        at $Proxy31.getPrice(Unknown Source)
>>        at webservices.Main.main(Main.java:24)
>>-----------------------
>>
>>My WSDL file reads:
>>------------------------
>><?xml version="1.0" encoding="UTF-8"?>
>><wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
>>xmlns:axis2="http://pojo/service/quickstart/samples/";
>>xmlns:ns1="http://org.apache.axis2/xsd";
>>xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl";
>>xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
>>xmlns:ns0="http://pojo/service/quickstart/samples/xsd";
>>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://pojo/service/quickstart/samples/";>
>>    <wsdl:types>
>>        <xs:schema xmlns:ns="http://pojo/service/quickstart/samples/xsd";
>>attributeFormDefault="qualified" elementFormDefault="qualified"
>>targetNamespace="http://pojo/service/quickstart/samples/xsd";>
>>            <xs:element name="getPrice">
>>                <xs:complexType>
>>                    <xs:sequence>
>>                        <xs:element minOccurs="0" name="symbol"
>>nillable="true" type="xs:string"/>
>>                    </xs:sequence>
>>                </xs:complexType>
>>            </xs:element>
>>            <xs:element name="getPriceResponse">
>>                <xs:complexType>
>>                    <xs:sequence>
>>                        <xs:element minOccurs="0" name="return"
>>type="xs:double"/>
>>                    </xs:sequence>
>>                </xs:complexType>
>>            </xs:element>
>>            <xs:element name="update">
>>                <xs:complexType>
>>                    <xs:sequence>
>>                        <xs:element minOccurs="0" name="symbol"
>>nillable="true" type="xs:string"/>
>>                        <xs:element minOccurs="0" name="price"
>>type="xs:double"/>
>>                    </xs:sequence>
>>                </xs:complexType>
>>            </xs:element>
>>        </xs:schema>
>>    </wsdl:types>
>>    <wsdl:message name="updateRequest">
>>        <wsdl:part name="parameters" element="ns0:update"/>
>>    </wsdl:message>
>>    <wsdl:message name="getPriceRequest">
>>        <wsdl:part name="parameters" element="ns0:getPrice"/>
>>    </wsdl:message>
>>    <wsdl:message name="getPriceResponse">
>>        <wsdl:part name="parameters" element="ns0:getPriceResponse"/>
>>    </wsdl:message>
>>    <wsdl:portType name="StockQuoteServicePortType">
>>        <wsdl:operation name="update">
>>            <wsdl:input message="axis2:updateRequest"
>>wsaw:Action="urn:update"/>
>>        </wsdl:operation>
>>        <wsdl:operation name="getPrice">
>>            <wsdl:input message="axis2:getPriceRequest"
>>wsaw:Action="urn:getPrice"/>
>>            <wsdl:output message="axis2:getPriceResponse"
>>wsaw:Action="urn:getPriceResponse"/>
>>        </wsdl:operation>
>>    </wsdl:portType>
>>    <wsdl:binding name="StockQuoteServiceSOAP11Binding"
>>type="axis2:StockQuoteServicePortType">
>>        <soap:binding transport="http://schemas.xmlsoap.org/soap/http";
>>style="document"/>
>>        <wsdl:operation name="update">
>>            <soap:operation soapAction="urn:update" style="document"/>
>>            <wsdl:input>
>>                <soap:body use="literal"/>
>>            </wsdl:input>
>>        </wsdl:operation>
>>        <wsdl:operation name="getPrice">
>>            <soap:operation soapAction="urn:getPrice" 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="StockQuoteServiceSOAP12Binding"
>>type="axis2:StockQuoteServicePortType">
>>        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http";
>>style="document"/>
>>        <wsdl:operation name="update">
>>            <soap12:operation soapAction="urn:update" style="document"/>
>>            <wsdl:input>
>>                <soap12:body use="literal"/>
>>            </wsdl:input>
>>        </wsdl:operation>
>>        <wsdl:operation name="getPrice">
>>            <soap12:operation soapAction="urn:getPrice" 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="StockQuoteServiceHttpBinding"
>>type="axis2:StockQuoteServicePortType">
>>        <http:binding verb="POST"/>
>>        <wsdl:operation name="update">
>>            <http:operation location="StockQuoteService/update"/>
>>            <wsdl:input>
>>                <mime:content type="text/xml" part="update"/>
>>            </wsdl:input>
>>        </wsdl:operation>
>>        <wsdl:operation name="getPrice">
>>            <http:operation location="StockQuoteService/getPrice"/>
>>            <wsdl:input>
>>                <mime:content type="text/xml" part="getPrice"/>
>>            </wsdl:input>
>>            <wsdl:output>
>>                <mime:content type="text/xml" part="getPrice"/>
>>            </wsdl:output>
>>        </wsdl:operation>
>>    </wsdl:binding>
>>    <wsdl:service name="StockQuoteService">
>>        <wsdl:port name="StockQuoteServiceSOAP11port_http"
>>binding="axis2:StockQuoteServiceSOAP11Binding">
>>            <soap:address
>>location="http://localhost:8080/axis2/services/StockQuoteService"/>
>>        </wsdl:port>
>>        <wsdl:port name="StockQuoteServiceSOAP12port_http"
>>binding="axis2:StockQuoteServiceSOAP12Binding">
>>            <soap12:address
>>location="http://localhost:8080/axis2/services/StockQuoteService"/>
>>        </wsdl:port>
>>        <wsdl:port name="StockQuoteServiceHttpport"
>>binding="axis2:StockQuoteServiceHttpBinding">
>>            <http:address
>>location="http://localhost:8080/axis2/services/StockQuoteService"/>
>>        </wsdl:port>
>>    </wsdl:service>
>></wsdl:definitions>
>>---------------------
>>
>>Let me know if you need the source-code automatically generated by JAX-WS
>>RI.
>>
>>Thanks,
>>Gili
>>
>>
>>Charitha Kankanamge wrote:
>>  
>>
>>>Hi Gili,
>>>Can you please post your sample client?
>>>
>>>Regards
>>>Charitha
>>>
>>>http://charithaka.blogspot.com
>>>
>>>owwoc wrote:
>>>
>>>    
>>>
>>>>Doesn't anyone know how to fix this?  Do you need any more information
>>>>      
>>>>
>>from
>>  
>>
>>>>my end? Should I be asking this question somewhere else?
>>>>
>>>>Thanks,
>>>>Gili
>>>>
>>>>
>>>>cowwoc wrote:
>>>> 
>>>>
>>>>      
>>>>
>>>>>Hi,
>>>>>
>>>>>I pasted a sample web service and client into my IDE and tried running
>>>>>        
>>>>>
>>it.
>>  
>>
>>>>>Unfortunately the client dies with:
>>>>>
>>>>>javax.xml.ws.WebServiceException: Unsupported endpoint address: 
>>>>>       at $Proxy31.getPrice(Unknown Source)
>>>>>       at client.MyClient.main(MyClient.java:20)
>>>>>
>>>>>How do I even begin debugging this? What files do I look in?
>>>>>
>>>>>Thank you,
>>>>>Gili
>>>>>
>>>>>   
>>>>>
>>>>>        
>>>>>
>>>> 
>>>>
>>>>      
>>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>>    
>>>
>>
>>  
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/%22Unsupported-endpoint-address%22-error-without-an-address-tp19657754p19717914.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to