cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesus Castillo <jesus.a.casti...@gmail.com>
Subject Re: NPE on MessageModeInInterceptor when sending empty SOAPBody
Date Tue, 05 Feb 2013 18:29:41 GMT
Hi Aki,

I opened a JIRA ticket. https://issues.apache.org/jira/browse/CXF-4812

Re the provider, this is how the annotations look like:

@WebServiceProvider(portName="myPort", serviceName="myService")
@ServiceMode(value=Service.Mode.MESSAGE)
public class MyProvider implements Provider<SOAPMessage> {
...

}

All I need is that the message reach this Provider.

Rgds,

Jesus.


2013/2/5 Aki Yoshida-3 [via CXF] <ml-node+s547215n5722752h48@n5.nabble.com>

> Hi Jesus, all,
> I initially thought that an empty body might not be allowed, but BP
> 1.1 seems to allow an empty body.
>
> http://www.ws-i.org/profiles/basicprofile-1.1-2004-08-24.html#Bindings_and_Parts
>
> "Use of wsdl:message elements with zero parts is permitted in Document
> styles to permit operations that can send or receive envelopes with
> empty soap:Bodys."
>
> So, it looks like it definitely needs to be handled (not just avoiding
> NPE but also invoking the correct operation). Could you open a jira
> ticket for this?
>
> And in your particular case, do you have an annotated provider impl
> with multiple operations and you want the matching operation to be
> chosen based on the action header in the message? (this use case seems
> to correspond to what Dan mentioned).
>
> thanks.
> regards, aki
>
> 2013/2/4 Jesus Castillo <[hidden email]<http://user/SendEmail.jtp?type=node&node=5722752&i=0>>:
>
>
> > Just to clarify, this is a pure SOAP1.2 messaging system. So no WSDL is
> > needed or used. That section is for WSDL mainly.
> >
> > Jesus.
> >
> >
> >
> >
> > --
> > View this message in context:
> http://cxf.547215.n5.nabble.com/NPE-on-MessageModeInInterceptor-when-sending-empty-SOAPBody-tp5722638p5722727.html
>
> > Sent from the cxf-user mailing list archive at Nabble.com.
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://cxf.547215.n5.nabble.com/NPE-on-MessageModeInInterceptor-when-sending-empty-SOAPBody-tp5722638p5722752.html
>  To unsubscribe from NPE on MessageModeInInterceptor when sending empty
> SOAPBody, click here<http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5722638&code=amVzdXMuYS5jYXN0aWxsb0BnbWFpbC5jb218NTcyMjYzOHwtNzE3NTA2NzE5>
> .
> NAML<http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://cxf.547215.n5.nabble.com/NPE-on-MessageModeInInterceptor-when-sending-empty-SOAPBody-tp5722638p5722769.html
Sent from the cxf-user mailing list archive at Nabble.com.

Mime
View raw message