You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Deepal Jayasinghe (JIRA)" <ji...@apache.org> on 2006/06/02 16:29:31 UTC

[jira] Assigned: (AXIS2-788) Outbound MAP EPRs overwritten with values from the response message

     [ http://issues.apache.org/jira/browse/AXIS2-788?page=all ]

Deepal Jayasinghe reassigned AXIS2-788:
---------------------------------------

    Assign To: Deepal Jayasinghe

> Outbound MAP EPRs overwritten with values from the response message
> -------------------------------------------------------------------
>
>          Key: AXIS2-788
>          URL: http://issues.apache.org/jira/browse/AXIS2-788
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: core
>  Environment: Axis2 SVN (30 May 2006)
>     Reporter: David Illsley
>     Assignee: Deepal Jayasinghe

>
> EndpointReference objects set on an outbound Options object are modified when a response is received to contain the values from the inbound message.
> Thus the following code:
> 	EndpointReference to = new EndpointReference("http://localhost:6080/axis2/services/wsaTestService");
>         EndpointReference relpyTo = new EndpointReference("http://www.w3.org/2005/08/addressing/anonymous");
>         EndpointReference faultTo = new EndpointReference("http://localhost:80/splat/services/fault");
> 	Options o = stub._getServiceClient().getOptions();
> 	o.setMessageId("urn:uuid:222");
> 	o.setTo(to);
> 	o.setAction("echo");
>         o.setReplyTo(relpyTo);
>         o.setFaultTo(faultTo);
> 	EchoIn ei = new EchoIn();
> 	ei.setEchoIn("test");
>         try{
>                     EchoOut eo = stub.echo(ei);
> 		    System.out.println(eo.getEchoOut());
> 		    System.out.println(to.getAddress());
> 		    System.out.println(relpyTo.getAddress());
> 		    System.out.println(faultTo.getAddress());
>         }catch(Exception e){
>             e.printStackTrace();
>         }
> Results in the following output:
> test
> http://localhost:6080/axis2/services/wsaTestService
> http://www.w3.org/2005/08/addressing/anonymous
> http://localhost:6080/axis2/services/wsaTestService
> whereas I'd expect
> test
> http://localhost:6080/axis2/services/wsaTestService
> http://www.w3.org/2005/08/addressing/anonymous
> http://localhost:80/splat/services/fault
> which are the original values of the EPRs. This demonstrates the issue with the FaultTo EPR and I have seen the issue with the ReplyTo also. 
> This is important for a number of reasons which I'm happy to outline if it's not clear to you.
> A bit of digging suggests (I'm not 100% sure) to me that this problem is being caused by the line:
>         // This is a hack - Needs to change
>         responseMessageContext.setOptions(options);
> in OutInAxisOperation.java coupled with the fact the the WS-Addressing handlers write into an EPR if it exists on the MessageContext rather than adding a new one.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org