Hello,

I try to recreate a totaly new projet but same result

<?xml version="1.0" encoding="utf-8"?>
<beans xmlns:http="http://servicemix.apache.org/http/1.0";
        xmlns:c="http://service.country.tranchida.ch";>
        <http:endpoint service="c:CountryService"
                endpoint="CountryServiceJBIPort" role="consumer" soap="true"
                locationURI="http://localhost:8192/CountryService/";
                defaultMep="http://www.w3.org/2004/08/wsdl/in-out";>
                <http:policies 
xmlns:soap="http://servicemix.apache.org/soap/1.0";>
                        <soap:ws-security receiveAction="UsernameToken">
                        </soap:ws-security>
                </http:policies>
        </http:endpoint>
</beans>

SOAP request

<soap:Envelope xmlns:ser="http://service.country.tranchida.ch";
xmlns:soap="http://www.w3.org/2003/05/soap-envelope";>
   <soap:Header>
      <wsse:Security soap:mustUnderstand="true"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";>
         <wsse:UsernameToken wsu:Id="UsernameToken-1809155"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";>
            <wsse:Username>smx</wsse:Username>
            <wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText";>smx</wsse:Password>
         </wsse:UsernameToken>
      </wsse:Security>
   </soap:Header>
   <soap:Body>
      <ser:getCountryByCode>
         <ser:in0>41</ser:in0>
      </ser:getCountryByCode>
   </soap:Body>
</soap:Envelope>

By the way, servicemix-http do not process soap:mustUnderstand="true" ?


mattrpav wrote:
> 
> Can you post the SOAP message you are sending to the service?
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/WS-Security-UsernameToken-tp14528308s12049p14533576.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to