Help with SOAP Security and WS-Policy
Hi,
I know little about SOAP security and am trying to apply a WS-Policy to a simple HL7 web service, but when I do I get object script errors.
The most latest one being:
ObjectScript error: <UNDEFINED>zValidateTransport+4^%SOAP.Security.Policy.1 *%request
The web service, shown below, simply extends
{ Parameter LOCATION = "https://ryr-hc-test.sussex.nhs.uk:50800/UHSX_EPR/Twinkle_QRY_HL7_Web_Se…"; Parameter SERVICENAME = "TwinkleHL7SOAP"; Method Send(Input As %Stream.GlobalCharacter) As %Stream.GlobalCharacter [ WebMethod ]
{
Set tSC=..ProcessInput(Input,.tStreamOut) Do:$$$ISERR(tSC) ..ReturnMethodStatusFault(tSC)
Quit tStreamOut
}
However when I apply the WS-Policy, shown below, I get the error shown earlier:
/// Configuration class for UHSx.Common.Services.Twinkle.SOAP
Class UHSx.Common.Services.Twinkle.SOAPConfig Extends %SOAP.Configuration [ ProcedureBlock ]
{ XData service
{
<cfg:configuration xmlns:cfg="http://www.intersystems.com/configuration" xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" xmlns:wsp="http://www.w3.org/ns/ws-policy" name="service">
<cfg:service classname="UHSx.Common.Services.Twinkle.SOAP">
<wsp:Policy>
<sp:TransportBinding>
<wsp:Policy>
<sp:TransportToken>
<wsp:Policy>
<sp:HttpsToken>
<wsp:Policy>
<sp:RequireClientCertificate/>
</wsp:Policy>
</sp:HttpsToken>
</wsp:Policy>
</sp:TransportToken>
<sp:AlgorithmSuite>
<wsp:Policy>
<sp:Basic128/>
</wsp:Policy>
</sp:AlgorithmSuite>
<sp:Layout>
<wsp:Policy>
<sp:Strict/>
</wsp:Policy>
</sp:Layout>
<sp:IncludeTimestamp/>
</wsp:Policy>
</sp:TransportBinding>
</wsp:Policy>
</cfg:service>
</cfg:configuration>
} }
Any help and advice much appreciated.
Neil