on 08-25-2009 3:07 PM
In am using NWDS of NWCE EHP1.
Through the wizard in NWDS I would like to generate the async SEI.
To this purpose, I created a binding declaration file where I inserted the <jaxws:enableAsyncMapping> binding to enable asynchronous mapping. I tried to attach that element either to <wsdl:definitions> or to <wsdl:portType>, but I
couldn't get the async SEI anyway.
Before going any further, I have a basic question:
Is the client async programming not-supported or am I missing something?
Thanks in advance.
Livio
Hi Livio
I'm not getting what you mean by 'client async programming'. If you need to invoke WS asynchronously you can use the following code.
Standard JAX-WS interface:
public interface Dispatch<T> {
...
Response<T> invokeAsync(T msg);
...
}
Example:
Dispatch<Source> sourceDispatch = service.createDispatch(portQName, Source.class, Service.Mode.PAYLOAD);
Response<StreamSource> response = sourceDispatch.invokeAsync(new StreamSource(new StringReader(request)));
BR, Sergei
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sergei,
I have been out for a long time and I have seen your post only today. Thanks for your suggestion.
Let me explain more precisely what I am trying to do.
The asynchronous API can be used either dynamically, through a Dispatch object, or statically, through a proxy.
I want to use it statically, through a proxy.
The wizard that generates the proxy, by default, generates only the synchronous interface.
I would like it to generate also the asynch interface.
This should result in 3 methods for each operation:
1. synchronous
2. asynchronous polling
3. asynchronous callback
I get only the first method; the last two are missing.
BR, Livio.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.