Deepal Jayasinghe wrote:
> Hi Sricharan;
> 
> In this case you have to use separate To for wsa:to and actual To , by
> using applying following procedure you can archive the goal :) , but you
> dont have this feature in Axis2 0.95 and you only have that in current
> SVN code base.

We had this feature in Axis2 even in 0.95. But the problem we had was
that, we always inferred the transport out protocol from wsa:To.

Something like following should still work in the latest release.

Option options = new Options();
options.setProperty(MessageContextConstants.TRANSPORT_URL,"https://myservices.test.com/testharness/myapplicationapi.asmx";);
options.setTo(new EndpointReference("http://myURI";));

But if you wanna set urn:MyApplicationAPI as wsa:TO then you need to
work against the current svn head.

-- Chinthaka

> 
>  Option options = new Options();
>  
> *options.setProperty(MessageContextConstants.TRANSPORT_URL,"**https://myservices.test.com/testharness/myapplicationapi.asmx";);*
>  options.setTo(new EndpointReference("urn:MyApplicationAPI"));
> 
> Just add the above property into option :)
> 
> 
> 

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to