Note that there are some explanatory texts on larger screens.

plurals
  1. POGetting data elements from SOAP request
    primarykey
    data
    text
    <p>My Request comes as below</p> <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:hel="http://example.org/HelloService"&gt; &lt;soapenv:Header&gt; &lt;sampler&gt;Test&lt;/sampler&gt; &lt;/soapenv:Header&gt; &lt;soapenv:Body&gt; &lt;hel:LastName&gt; &lt;lastName&gt;Test&lt;/lastName&gt; &lt;/hel:LastName&gt; &lt;/soapenv:Body&gt; &lt;/soapenv:Envelope&gt; </code></pre> <p>My flow which exposes my CXF:proxy-service is as below</p> <pre><code>&lt;flow name="WS_In"&gt; &lt;http:inbound-endpoint address="http://localhost:8080/HelloService" exchange-pattern="request-response"&gt; &lt;cxf:proxy-service wsdlLocation="classpath:helloservice.wsdl" namespace="http://example.org/HelloService" service="ProxyService" &gt; &lt;cxf:inInterceptors&gt; &lt;spring:bean id="inLogger" class="org.apache.cxf.interceptor.LoggingInInterceptor" /&gt; &lt;spring:bean id="msgInt" class="com.example.components.MessageInterceptor"/&gt; &lt;/cxf:inInterceptors&gt; &lt;/cxf:proxy-service&gt; &lt;/http:inbound-endpoint&gt; &lt;component&gt; &lt;spring-object bean="proxyService"&gt;&lt;/spring-object&gt; &lt;/component&gt; &lt;echo-component&gt;&lt;/echo-component&gt; &lt;/flow&gt; </code></pre> <p>But I am not able to get the elements in the soap header. I tried using interceprots with method like below</p> <pre><code>@Override public void handleMessage(SoapMessage message) throws Fault { System.out.println("The headers is " + message.getHeaders() ); } </code></pre> <p>But this is printing an emply Collection.</p> <p>Please suggest how I can get this.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload