axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Balazs Borbely" <balazsborb...@gmail.com>
Subject Re: How to determine endpoint uri from WSDL
Date Wed, 09 Apr 2008 12:18:20 GMT
Thanks for your answer Dimuthu.

If I don't have the wsdl (only the url) is there a way to retrieve it trough
axis2c? I am asking this because the axis2c is already configured
for https and network proxies and it would be convenient to use.

Thanks in advance,
Balazs

On Wed, Apr 9, 2008 at 5:55 AM, Dimuthu Gamage <dimuthuc@gmail.com> wrote:

> Hi Balazs,
> There is no standard way to determine API endpoint from the WSDL uri.
> But most of web service platforms follow the convention that if your
> API uri is
> "http://xxx.myhost.com/myservice
>
> then mostly wsdl can be retrieved from
> "http://xxx.myhost.com/myservice?wsdl". Note the postfix "?wsdl".
>
> Anyway if you have the WSDL best way to retrieve the endpoint is
> process the xml document in the WSDL and extract the
> service/port/address element at the end of the WSDL ( this is for wsdl
> v 1.1)
>
> <wsdl:definitions>
>    ....
>    <wsdl:service name="Adder">
>        <wsdl:port name="AdderSOAP11port_http"
> binding="ns0:AdderSOAP11Binding">
>            <soap:address
> location="http://localhost:8080/axis2/services/Adder"/>
>        </wsdl:port>
>    </wsdl:service>
> </wsdl:definitions>
>
> Thanks
> Dimuthu
>
> On Wed, Apr 9, 2008 at 2:15 AM, Balazs Borbely <balazsborbely@gmail.com>
> wrote:
> > Hi,
> >
> > My web service is published trough a WSDL and the endpoint uri can be
> > different on different deployments, Is there an API to determine the
> > endpoint uri
> > given the WSDL url?
> >
> > Thanks,
> > Balazs
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>

Mime
View raw message