how to get operationName for Soap Message dataFormat=MESSAGE

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

how to get operationName for Soap Message dataFormat=MESSAGE

nono
when i use
from(SOAP_ENDPOINT_IN_URI +
"&dataFormat=CXF_MESSAGE").removeHeaders("CamelHttp*")

I can  get operationName  by  ${in.headers.operationName}
but I could not get   operationName  when useing
dataFormat=MESSAGE

from(SOAP_ENDPOINT_IN_URI + "&dataFormat=MESSAGE").

any idea or suggestion ?
Reply | Threaded
Open this post in threaded view
|

Re: how to get operationName for Soap Message dataFormat=MESSAGE

Willem.Jiang
Administrator
Hi,

When you use MESSAGE dataformat, camel-cxf component doesn't read the
message, so it makes sense that you cannot operationName header.

Willem Jiang

Twitter: willemjiang
Weibo: 姜宁willem

On Fri, Oct 26, 2018 at 4:07 PM Wang Yan <[hidden email]> wrote:

>
> when i use
> from(SOAP_ENDPOINT_IN_URI +
> "&dataFormat=CXF_MESSAGE").removeHeaders("CamelHttp*")
>
> I can  get operationName  by  ${in.headers.operationName}
> but I could not get   operationName  when useing
> dataFormat=MESSAGE
>
> from(SOAP_ENDPOINT_IN_URI + "&dataFormat=MESSAGE").
>
> any idea or suggestion ?
Reply | Threaded
Open this post in threaded view
|

Fwd: how to get operationName for Soap Message dataFormat=MESSAGE

nono
Hey,

I did change as document described add defaultOperationName=getUserName as
below , it should work but
i still could not get operationName, why?
    String OPERATIONNAME="&defaultOperationName=getUserName";
        from(SOAP_ENDPOINT_IN_URI + "&dataFormat=MESSAGE"+OPERATIONNAME)
                .log(LoggingLevel.INFO,   "###### headers
in.headers.headers.operationName -> ${in.headers.operationName} ")



On Sat, Oct 27, 2018 at 2:05 AM Willem.Jiang [via Camel] <
[hidden email]> wrote:

> Hi,
>
> When you use MESSAGE dataformat, camel-cxf component doesn't read the
> message, so it makes sense that you cannot operationName header.
>
> Willem Jiang
>
> Twitter: willemjiang
> Weibo: 姜宁willem
>
> On Fri, Oct 26, 2018 at 4:07 PM Wang Yan <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=5825133&i=0>> wrote:
>
> >
> > when i use
> > from(SOAP_ENDPOINT_IN_URI +
> > "&dataFormat=CXF_MESSAGE").removeHeaders("CamelHttp*")
> >
> > I can  get operationName  by  ${in.headers.operationName}
> > but I could not get   operationName  when useing
> > dataFormat=MESSAGE
> >
> > from(SOAP_ENDPOINT_IN_URI + "&dataFormat=MESSAGE").
> >
> > any idea or suggestion ?
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://camel.465427.n5.nabble.com/how-to-get-operationName-for-Soap-Message-dataFormat-MESSAGE-tp5825110p5825133.html
> To unsubscribe from how to get operationName for Soap Message
> dataFormat=MESSAGE, click here
> <
> .
> NAML
> <
http://camel.465427.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>
>
Reply | Threaded
Open this post in threaded view
|

Re: how to get operationName for Soap Message dataFormat=MESSAGE

Willem.Jiang
Administrator
The header is set once you set the defaultOperationName parameter, but
it doesn't effect the cxf consumer or producer when the dataformate is
MESSAGE.

Willem Jiang

Twitter: willemjiang
Weibo: 姜宁willem

On Sat, Oct 27, 2018 at 2:03 PM Wang Yan <[hidden email]> wrote:

>
> Hey,
>
> I did change as document described add defaultOperationName=getUserName as
> below , it should work but
> i still could not get operationName, why?
>     String OPERATIONNAME="&defaultOperationName=getUserName";
>         from(SOAP_ENDPOINT_IN_URI + "&dataFormat=MESSAGE"+OPERATIONNAME)
>                 .log(LoggingLevel.INFO,   "###### headers
> in.headers.headers.operationName -> ${in.headers.operationName} ")
>
>
>
> On Sat, Oct 27, 2018 at 2:05 AM Willem.Jiang [via Camel] <
> [hidden email]> wrote:
>
> > Hi,
> >
> > When you use MESSAGE dataformat, camel-cxf component doesn't read the
> > message, so it makes sense that you cannot operationName header.
> >
> > Willem Jiang
> >
> > Twitter: willemjiang
> > Weibo: 姜宁willem
> >
> > On Fri, Oct 26, 2018 at 4:07 PM Wang Yan <[hidden email]
> > <http:///user/SendEmail.jtp?type=node&node=5825133&i=0>> wrote:
> >
> > >
> > > when i use
> > > from(SOAP_ENDPOINT_IN_URI +
> > > "&dataFormat=CXF_MESSAGE").removeHeaders("CamelHttp*")
> > >
> > > I can  get operationName  by  ${in.headers.operationName}
> > > but I could not get   operationName  when useing
> > > dataFormat=MESSAGE
> > >
> > > from(SOAP_ENDPOINT_IN_URI + "&dataFormat=MESSAGE").
> > >
> > > any idea or suggestion ?
> >
> >
> > ------------------------------
> > If you reply to this email, your message will be added to the discussion
> > below:
> >
> > http://camel.465427.n5.nabble.com/how-to-get-operationName-for-Soap-Message-dataFormat-MESSAGE-tp5825110p5825133.html
> > To unsubscribe from how to get operationName for Soap Message
> > dataFormat=MESSAGE, click here
> > <
> > .
> > NAML
> > <
http://camel.465427.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>
> >