USI Webservice SOAP格式

时间:2017-06-21 10:16:39

标签: php web-services security soap

我正在开发与唯一学生标识符(USI)Web服务进行通信的过程。我有一个Vanguard令牌,由Sergey Vidusov提供的一些不错的(SoapClient避免)代码(感谢!),我正在尝试在我的(也是SoapClient避免)SOAP请求中使用该令牌的内容到USI服务。我使用V2.0技术服务合同(P79)中的“示例安全标头”作为模板并尝试填充令牌中的空白,尽管有几十个略有不同的迭代,我总是得到:

An error occurred when verifying security for the message.

在响应的SOAP fault部分。我不会惊讶地发现我正在以错误的方式解决这个问题,但我现在是出于想法。

从令牌中,我正在使用二进制密码并将其用作签名值,并在我的请求中将SecurityTokenReference->KeyIdentifier用作KeyIdentifier。我还将令牌中的整个EncryptedAssertion部分复制到了请求中。

我的(假设有效)XML就像

<s:Envelope
xmlns:s="http://www.w3.org/2003/05/soap-envelope"
xmlns:a="http://www.w3.org/2005/08/addressing"
xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<s:Header>
    <a:Action s:mustUnderstand="1">http://usi.gov.au/ws/2015/VerifyUSI</a:Action>
    <a:MessageID>urn:uuid-594a3e4f2c463</a:MessageID>
    <a:ReplyTo>
        <a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
    </a:ReplyTo>
    <a:To s:mustUnderstand="1"> http://usi.gov.au/ws/2015/VerifyUSI </a:To>
    <o:Security s:mustUnderstand="1"
        xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
        <u:Timestamp u:Id="_0">
            <u:Created>2017-06-21T09:37:19.000Z</u:Created>
            <u:Expires>2017-06-21T10:37:19.000Z</u:Expires>
        </u:Timestamp>
        <EncryptedAssertion
            xmlns="urn:oasinametc:SAML:2.0:assertion">
            <EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Element" xmlnxenc="http://www.w3.org/2001/04/xmlenc#">
                <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc"/>
                <KeyInfo
                    xmlns="http://www.w3.org/2000/09/xmldsig#">
                    <EncryptedKey xmlne="http://www.w3.org/2001/04/xmlenc#">
                        <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p">
                            <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
                        </EncryptionMethod>
                        <KeyInfo>
                            <SecurityTokenReference xmlno="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
                                <X509Data>
                                    <X509IssuerSerial>
                                        <X509IssuerName>CN=Australian Government Notary Services OCA, OU=For Development purposes ONLY, OU=Australian Authentication and Notary Services, O=Australian Government, C=AU</X509IssuerName>
                                        <X509SerialNumber>137894267415199651126496945754681728351</X509SerialNumber>
                                    </X509IssuerSerial>
                                </X509Data>
                            </SecurityTokenReference>
                        </KeyInfo>
                        <CipherData>
                            <CipherValue>Bc30iHzG4b9ypeC0q8+wvCRox6jTplCg4hKMUpNAXhmhzQyCfFgb3ROihGMB6wLb1moTT/+WpxsMljpeBTKu3oYo8anxwQQf6921Sz7lJCGUrWWMg9IZxq9qEfE85DBqo7tuhs7qkpHlgsUEC/D3IMRycze7x2wJphs6AFBtNDZwVogrQNyp76AUVCGqMSy7EA5woNOuPZqYYHWUDU7/Lv9Jzp6ccOwYXpmnwsW7dMecN6sJbZeopCNf9FuVHS0OJi/l7uadi3VDwRJuiPEB09tETvYNZpUDf/BFQPnHyuWfrjj4nRUKEQx9KcE092+z23n2M8PQmuuEAyRAOnWGNg==</CipherValue>
                        </CipherData>
                    </EncryptedKey>
                </KeyInfo>
                <CipherData>
                    <CipherValue>7tlxrWKyVSkOPHjiuFWcCsF7Ekzz+bBS47vjQlztc5pi9QTqrU2x/NQQcc19jglPkf+Hf++bGMZ0Q01vtPriSdK9nYWO/sUZSLscHa+1cnPDG4G80Aq5M27eJES4199VCWnoUtEwiXAeNSBHToEM3cxd+IW4BPNWF2DfiE65EsbtVMrdMWt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fd166JhKbkJo+70G0JIO5Ieb5kca1GGubULG/RjnB7TN8XM8xoIBA4KkiqPbVC7KyIjJw8hSks8SdYGhfm3iEidqYXx51LyB1ukItSOe/H+8agpkpNG9s7b+CJrZOwqQoqFW7Pxz4YJEcTBQH1/rGEZDjeUcyHC8BoiSnfoBGFKggBh1MWpz63td4TnGc8bQ9sMpFMBMUD0gWOhhV4QWlhTsJr4PR7Rh4to1zR+Wq1ydobj4u36Vu+Vo96Tm15JzW9TWzLaotVx/Lc6VkfIx8DqCPToq4m3GDdMNO9QN2rI</CipherValue>
                </CipherData>
            </EncryptedData>
        </EncryptedAssertion>
        <Signature
            xmlns="http://www.w3.org/2000/09/xmldsig#">
            <SignedInfo>
                <CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></CanonicalizationMethod>
                <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#hmac-sha1"></SignatureMethod>
                <Reference URI="#_0">
                    <Transforms>
                        <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></Transform>
                    </Transforms>
                    <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>
                    <DigestValue>3d5GbpTJJ2uX3t4fJz3oT3TuaUA=</DigestValue>
                </Reference>
            </SignedInfo>
            <SignatureValue>3zexIO6yp7PTD1M7H7BD3rURd2Yj35ELKRSSuLqVHso=</SignatureValue>
            <KeyInfo>
                <o:SecurityTokenReference k:TokenType="http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1"
                    xmlns:k="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd">
                    <o:KeyIdentifier ValueType="http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.0#SAMLAssertionID">_ef36244c-da95-47ed-9abf-ddce3c85edd1</o:KeyIdentifier>
                </o:SecurityTokenReference>
            </KeyInfo>
        </Signature>
    </o:Security>
</s:Header>
<s:Body>
    <soap:Body
        xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
        <u:VerifyUSI
            xmlns:u="http://usi.gov.au/2015/ws">
            <u:OrgCode>970003</u:OrgCode>
            <u:USI>ABCDEFGHJK</u:USI>
            <u:FirstName>John</u:FirstName>
            <u:FamilyName>Smith</u:FamilyName>
            <u:DateOfBirth>1971-12-01</u:DateOfBirth>
        </u:VerifyUSI>
    </soap:Body>
</s:Body>

我觉得我很亲密......但只需要另一条线索来推动我前进

1 个答案:

答案 0 :(得分:0)

我刚刚通过http://www.xmlvalidation.com上的在线XML验证程序运行了您的XML,它显示XML document structures must start and end within the same entity.。查看您的XML(这可能只是一个搞砸的复制粘贴到SO),看起来您没有</s:Envelope>的结束标记。

如果不存在,请先添加。如果是,您需要查看PHP error_log并获取真实的错误消息和堆栈跟踪,以便您可以进一步调试。