This content has been marked as final. 
    
Show                 3 replies
    
- 
        1. Re: How to configure servicemix-http to use WS-Security UsernameToken authemielket May 8, 2008 11:35 AM (in response to mielket)Can someone please also teach me how to get proper formatting of the xml config? Edited by: tmielke on May 8, 2008 11:13 AM 
- 
        2. Re: How to configure servicemix-http to use WS-Security UsernameToken authemielket May 12, 2008 3:12 PM (in response to mielket)Got it sorted. Need to set soap="true" in my http-bc consumer. So a valid configuration looks as follows: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns:http="http://servicemix.apache.org/http/1.0" xmlns:greeter="http://apache.org/hello_world_soap_http" xmlns:soap="http://servicemix.apache.org/soap/1.0"> <http:endpoint service="greeter:SOAPServiceWSSecurity" endpoint="TimestampSignEncrypt" role="consumer" targetService="greeter:SOAPServiceWSSecurity" targetEndpoint="TimestampSignEncrypt" targetInterfaceName="greeter:Greeter" defaultOperation ="greeter:greetMe" locationURI="http://localhost:9000/" defaultMep="http://www.w3.org/2004/08/wsdl/in-out" soap="true"> <http:policies> <soap:ws-addressing /> <soap:ws-security receiveAction="UsernameToken" keystore="default" /> </http:policies> </http:endpoint> </beans> Notice, it is necessary to set a keystore in the ws-security conf, due to SM-1344. Edited by: tmielke on May 9, 2008 11:56 AM 
- 
        3. Re: How to configure servicemix-http to use WS-Security UsernameToken authebsnyder May 12, 2008 3:15 PM (in response to mielket)Can someone please also teach me how to get proper formatting of the xml config? Just wrap the code in the macro similar to Confluence. Bruce 
 
    