1.) Absolutely--just make sure your client is using the right WSDL on the
local machine (the *Service.java JAX-WS artifact will give you the default
hardcoded filename used, or you can use specify the WSDL as shown in the
testcases in Step #1, substep #2 here: 
http://www.jroller.com/gmazza/entry/writing_junit_test_cases_for)

2.)  That'll work also.  Set the ENDPOINT_ADDRESS_PROPERTY as shown in Step
#7 here: http://www.jroller.com/gmazza/entry/using_the_ebay_shopping_api1

The error message "Parameter XXX doesn't exist", BTW, may indicate you're
using an rpc/encoded WSDL, which not supported by CXF or Metro--but I'm
unsure here.

Glen


jackdawson wrote:
> 
> Hi all,
> 
> I have a WSDL which has the soap address pointed to a service in the
> production environment. I would like to create a client from this WSDL but
> I would like to use the service in the development environment and not in
> the production.
> ANd now, my questions are:
>               1. Can I change the soap address in the WSDL to point to the 
> service
> in the development environment?
>               2. Or, should I change the serive URL in the client code after
> generating it from the WSDL?
> 
>               If I follow step 1 then I keep getting the exception whenever I 
> try
> to vall the service: Parameter xxxxx doesn't exist.
>               If I follow step 2 then:
>                       a.) firstly, I get the UnknownHostException
>                       b.) I couldn't find a way to change the URL in the 
> client.
>               I know in XFire I can use this:
> org.codehaus.xfire.client.Client.getInstance(service).setUrl(service_url);
> 

-- 
View this message in context: 
http://www.nabble.com/Web-Service-URL-to-be-changed-in-the-client-tp19656864p19658195.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to