Hi

Thanks for the reply.

It is however possible to annotate the service interface
with the @Oneway annotation when using the JAX-WS frontend.
This has the effect of removing the doWorkResponse message
and the output element from the soap binding i.e the @Oneway
annotation causes the JAX-WS frontend to generate a fire and
forget interface.

I was enquiring whether there is an equivalent configuration when
using the simple frontend to achieve the same as the
@Oneway annotation when using the JAX-WS frontend.

Sorry, my first post might not have made this very clear.

Hannes


On Mon, Jul 26, 2010 at 6:25 PM, Glen Mazza <[email protected]> wrote:
>
> The addition of doWorkResponse is probably dictated by the JAX-WS
> specification that CXF has to implement.  Also, removal of the
> doWorkResponse would probably harm interoperability (and portability of)
> SOAP clients, because they rely on the WSDL to generate needed artifacts.
> WSDL 2.0 doesn't use wsdl:messages at all, so your concern may go away with
> the new standard (assuming WSDL 2.0 will ever become the standard.)
>
> Glen
>
>
> Hannes Holtzhausen wrote:
>>
>> Hi
>>
>> I have a service interface that looks like follows:
>>
>> public interface MyService
>> {
>>   public void doWork(MyWork work);
>> }
>>
>> By default the doWork interface operation would have 2 messages
>> associated with it
>> in the generated WSDL when using the simple frontend e.g:
>>
>> <wsdl:message name="doWork">
>>     <wsdl:part element="tns:doWork" name="parameters">
>>     </wsdl:part>
>>   </wsdl:message>
>>   <wsdl:message name="doWorkResponse">
>>     <wsdl:part element="tns:doWorkResponse" name="parameters">
>>     </wsdl:part>
>>   </wsdl:message>
>>
>> Are there any configuration options available that will
>> force the simple frontend to exclude the <method name>Response
>> messages from the generated WSDL for all interface operations with
>> a void return type?
>>
>> Thanks
>> Hannes
>>
>
> --
> View this message in context: 
> http://cxf.547215.n5.nabble.com/Oneway-service-operations-using-simple-frontend-tp1960887p2228242.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>

Reply via email to