我正在尝试创建所需WS-Security SOAP标头的XSD架构,以便可以将其导入Cast Iron并用于正确格式化传出SOAP标头。到目前为止,我已经提出了以下内容,但显然它的格式不正确。
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<xs:Security mustUnderstand="1">
<wsu:Timestamp wsu:Id="">
<wsu:Created/>
<wsu:Expires/>
</wsu:Timestamp>
<wsse:UsernameToken wsu:Id="">
<wsse:Username/>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"/>
<wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"/>
<wsu:Created/>
</wsse:UsernameToken>
</xs:Security>
</xs:schema>
有人可以帮我解决XSD的正确格式吗?提前谢谢!