Discussion:
Change target endpoint of generated stub
Clemens Wyss DEV
2016-11-24 07:32:49 UTC
Permalink
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: java-user-***@axis.apache.org
For additional commands, e
Clemens Wyss DEV
2016-11-24 09:01:05 UTC
Permalink
Was (of course) my fault ;)
All ok, setTargetEPR does work as expected.

Sorry for the noise ...

-----Ursprüngliche Nachricht-----
Von: Clemens Wyss DEV [mailto:***@mysign.ch]
Gesendet: Donnerstag, 24. November 2016 08:33
An: 'java-***@axis.apache.org'
Betreff: Change target endpoint of generated stub

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: java-user-***@axis.apache.org
For additional commands, e-mail: java-user-***@axis.apache.org
B�KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCB��[��X��ܚX�KK[XZ[��]�K]\�\�][��X��ܚX�P^\˘\X�K�ܙ�B��܈Y][ۘ[��[X[��
Loading...