Change target endpoint of generated stub

Clemens Wyss DEV <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <[email protected]>
Hoi all,
I need to change the target endpoint URL of my generated axis2 stub depending on the environment (test, production) we are running our app.
I tried :

EndpointReference targetEpr = new EndpointReference( <fq url of endpoint, e.g.: http://webservicehost:8080/path/of/webservice> );
stub._getServiceClient().setTargetEPR( targetEpr );

I have the feeling that only the webservicehost (and port) is taken into account, but not the /path/of/webservice. I am seeing POSTs tot he original path in the wsdl ...

Am I missing something?

Thx
Clemens

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.