ws-security without ws-addressing?

killerkent's picture

Hi,

Am I correct in thinking that I cannot implement ws-security with wsf php on a request if the request does not use ws addressing?

 ie I want to handle an incoming request like this:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

        <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soap:mustUnderstand="1">

                <wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-12468716">

                        <wsu:Created>2008-06-23T13:17:13.841Z</wsu:Created>

                        <wsu:Expires>2008-06-23T13:22:13.841Z</wsu:Expires>

                </wsu:Timestamp>

                <wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="UsernameToken-31571602">

                        <wsse:Username>username</wsse:Username>

                        <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>

                </wsse:UsernameToken>

        </wsse:Security>

 

        <soap:Body>

                <GetStatus xmlns=http://HOST/webservice.php>

                        <JobNumber>string</JobNumber>

                </GetStatus>

        </soap:Body>

</soap:Envelope>

Is this going to be possible or do I need to another solution?

thanks,

Dave

 

 

nandika's picture

Re: ws-security without ws-addressing

It is possible to get your senario working with wsf/php. However you will have to make a few ajustments to the configuaration files, axis2.xml and wsf_c/modules/rampart/module.xml as follows. In module.xml change 'inflow' element to following. <inflow> <handler name="RampartInHandler" class="mod_rampart"> <order phase="Security"/> </handler> </inflow&g Then in axis2.xml 'inflow' element add following element between PostDispatch and Rahas phases. <phase name="Security"/> We will fix this configuration issue for next release. -- Nandika
killerkent's picture

great, thanks for your

great, thanks for your assistance
sandysong's picture

thanks, you`ve solved my

thanks, you`ve solved my problem too.
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)