You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Heiake2 <sk...@init-ka.de> on 2012/08/03 10:54:44 UTC
Connect to url not in WSDL
Hi,
I have a problem connecting my webservice client to the server.
My problem is, that the URL that is stored in the WSDL file is not valid, so
I want to use my own configurable (by some XML file) URL.
But ... I do not know how to change the URL in my source code.
My current code looks like this:
XYZservice service = new XYZservice();
Foo foo = service.getXYZPort();
But then the program is using the URL of the webservice from the WSDL file.
I want to have something like this:
XYZservice service = new XYZService(http://....:8080/service);
Foo foo = service.getXYZPort();
How is this possible? Any clues?
--
View this message in context: http://cxf.547215.n5.nabble.com/Connect-to-url-not-in-WSDL-tp5711974.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: Connect to url not in WSDL
Posted by Heiake2 <sk...@init-ka.de>.
Thank you so much.
Setting the url with
BindingProvider.ENDPOINT_ADDRESS_PROPERTY
worked perfectly for me.
Guess changing the URL is one of the basic things ... but I am new to CXF
:-)
Thank you!
--
View this message in context: http://cxf.547215.n5.nabble.com/Connect-to-url-not-in-WSDL-tp5711974p5712059.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: Connect to url not in WSDL
Posted by Glen Mazza <gm...@talend.com>.
Set the BindingProvider.ENDPOINT_ADDRESS_PROPERTYproperty as shown here:
http://www.jroller.com/gmazza/entry/soap_client_tutorial. I don't know
if there's a cxf.xml XML element for it
(http://cxf.547215.n5.nabble.com/Setting-ENDPOINT-ADDRESS-PROPERTY-via-cxf-xml-file-td2637676.html),
but if not, standard Spring dependency injection can be used to read
that value in from an XML file.
HTH,
Glen
On 08/03/2012 04:54 AM, Heiake2 wrote:
> Hi,
>
> I have a problem connecting my webservice client to the server.
> My problem is, that the URL that is stored in the WSDL file is not valid, so
> I want to use my own configurable (by some XML file) URL.
> But ... I do not know how to change the URL in my source code.
>
> My current code looks like this:
>
> XYZservice service = new XYZservice();
> Foo foo = service.getXYZPort();
>
> But then the program is using the URL of the webservice from the WSDL file.
>
> I want to have something like this:
>
> XYZservice service = new XYZService(http://....:8080/service);
> Foo foo = service.getXYZPort();
>
> How is this possible? Any clues?
>
>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/Connect-to-url-not-in-WSDL-tp5711974.html
> Sent from the cxf-user mailing list archive at Nabble.com.
--
Glen Mazza
Talend Community Coders
coders.talend.com
blog: www.jroller.com/gmazza