Yes, I dived a little more into it. From what I can tell from the sources, an
InOptionalOut exchange would deal correctly with void methods since it
checks whether the resonse length is 0.

Now, in the example I was talking about, the method was called by a pipeline
EIP component. Unfortunately, the EIP component always creates an InOut
message. There is no way of making it create an InOptionalOut exchange.

Maybe it would be preferrable to add a configuration option to the EIP to
specify a MEP. Otherwise, there is no action required so far.

Thanks
Martin



gnodet wrote:
> 
> Are you sure that the exchange send to the http provider endpoint is
> an InOnly ?  If you send an InOut, i think you would have the
> described behavior.
> 
> On 12/12/06, Martin Landua <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I have tried to invoke an axis2 web service (using soap11, I must admit).
>> I
>> simply picked the AddressBook example from the axis2 installation. Now,
>> the
>> web service returns just nothing when invoking the addEntry method (which
>> is
>> correct since the function is void).
>>
>> However, ServiceMix, i.e. xfire, obviously cannot deal with the empty
>> response and throws an "Unexpected EOF in prolog" exception.
>>
>> What should we do?
>>
>> Best regards
>> Martin
>> --
>> View this message in context:
>> http://www.nabble.com/Problem--WebService-returning-void-tf2805862s12049.html#a7828279
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> Cheers,
> Guillaume Nodet
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem--WebService-returning-void-tf2805862s12049.html#a7857322
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to