You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Glen Mazza <gl...@gmail.com> on 2009/09/26 17:12:18 UTC

Creating asynchronous method calls with WSDL2Java

Hello, according to the CXF User's Guide[1] it is necessary to create a WSDL
binding file in order to direct WSDL2Java to create asynchronous versions of
the WSDL operations ([2] for example).

Question:  Instead of needing to create such a binding file, couldn't CXF
just provide a WSDL2Java -async or similar setting in order to generate the
async methods?  Axis2 has similar -a/-s settings[3].

Thanks,
Glen

[1]
http://cxf.apache.org/docs/wsdl-to-java.html#WSDLtoJava-JAXWSCustomization
[2] 
http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/jaxws_async/src/demo/hw/client/Client.java?annotate=651669
(lines 62 and 73)
[3] http://ws.apache.org/axis2/tools/1_3/CodegenToolReference.html

-- 
View this message in context: http://www.nabble.com/Creating-asynchronous-method-calls-with-WSDL2Java-tp25626086p25626086.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Creating asynchronous method calls with WSDL2Java

Posted by Daniel Kulp <dk...@apache.org>.
+1 as well.    A -bare flag to disable the unwrapping would be cool as well.


On Sat September 26 2009 11:57:03 am Christian Schneider wrote:
> +1 for this
> 
> Does anyone know what needs to be tweaked to achieve this?

I'd have to dig though a bit to get specifics which I'll do later today while 
the kids are napping or after they go to bed, but the basics are that you :

1) Add a constant to ToolsConstants

2) Edit 
tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/jaxws-
toolspec.xml
to add the flag to the command line parser

3) Probably update something in the jaxws processors, probably 
OperationProcessor.   That's where I would need to dig a bit more.   
Basically, where we check the binding file for the flag, we would need to also 
check the ToolContext for the flag.

4) Then update the Options object in the codegen plugin to expose it there.

Dan

> 
> Greetings
> 
> Christian
> 
> Glen Mazza schrieb:
> > Hello, according to the CXF User's Guide[1] it is necessary to create a
> > WSDL binding file in order to direct WSDL2Java to create asynchronous
> > versions of the WSDL operations ([2] for example).
> >
> > Question:  Instead of needing to create such a binding file, couldn't CXF
> > just provide a WSDL2Java -async or similar setting in order to generate
> > the async methods?  Axis2 has similar -a/-s settings[3].
> >
> > Thanks,
> > Glen
> >
> > [1]
> > http://cxf.apache.org/docs/wsdl-to-java.html#WSDLtoJava-JAXWSCustomizatio
> >n [2]
> > http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samp
> >les/jaxws_async/src/demo/hw/client/Client.java?annotate=651669 (lines 62
> > and 73)
> > [3] http://ws.apache.org/axis2/tools/1_3/CodegenToolReference.html
> 

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog

Re: Creating asynchronous method calls with WSDL2Java

Posted by Christian Schneider <ch...@die-schneider.net>.
+1 for this

Does anyone know what needs to be tweaked to achieve this?

Greetings

Christian

Glen Mazza schrieb:
> Hello, according to the CXF User's Guide[1] it is necessary to create a WSDL
> binding file in order to direct WSDL2Java to create asynchronous versions of
> the WSDL operations ([2] for example).
>
> Question:  Instead of needing to create such a binding file, couldn't CXF
> just provide a WSDL2Java -async or similar setting in order to generate the
> async methods?  Axis2 has similar -a/-s settings[3].
>
> Thanks,
> Glen
>
> [1]
> http://cxf.apache.org/docs/wsdl-to-java.html#WSDLtoJava-JAXWSCustomization
> [2] 
> http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/jaxws_async/src/demo/hw/client/Client.java?annotate=651669
> (lines 62 and 73)
> [3] http://ws.apache.org/axis2/tools/1_3/CodegenToolReference.html
>
>   


-- 

Christian Schneider
---
http://www.liquid-reality.de