[ 
https://issues.apache.org/jira/browse/AXIS2-3666?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582962#action_12582962
 ] 

Brian DePradine commented on AXIS2-3666:
----------------------------------------

Well, to get the effect you want you will have to do two extra things in your 
client code. The first is to force the client to send the request 
asynchronously over the wire, and start a listener for the response. The second 
is to send WS-Addressing headers with the request.

To achieve the first you can use code similar to the following:

Map<String, Object> context = dispatch.getRequestContext();
context.put("org.apache.axis2.jaxws.use.async.mep", Boolean.TRUE);

Now that we have support for JAX-WS 2.1 APIs, the second can be achieved using 
code similar to the following:

Dispatch<String> dispatch = 
svc.createDispatch(DispatchTestConstants.QNAME_PORT, String.class,
                                                                                
         Service.Mode.MESSAGE, new AddressingFeature());

Do remember to make the addressing.mar available to the client somewhere. You 
should then be able to call one of the invokeAsync() methods as normal.

> Unable to switch addressing mar on in jaxws-integration tests
> -------------------------------------------------------------
>
>                 Key: AXIS2-3666
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3666
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: Addressing
>            Reporter: Davanum Srinivas
>            Assignee: Brian DePradine
>            Priority: Blocker
>         Attachments: addressing.diff
>
>
> Brian,
> I tried switching on addressing mar in the jaxws-integration test suite and i 
> see lot of failures when i try to enable addressing in 
> modules/jaxws-integration/test-resources/axis2.xml. Here's the patch i have 
> so far.
> thanks,
> dims

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to