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

Reply via email to