2017-04-13 64 views
0

我正在尝试创建所需的WS-Security SOAP头的XSD模式,以便将其导入到Cast Iron中并用于正确格式化传出的SOAP头。到目前为止我已经提出了以下内容,但显然它的格式不正确。SOAP WSS头xsd格式

<?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格式吗?提前致谢!

回答

0

找到XSD here的有效版本。