3

我能够成功创建身份验证会话,但在尝试添加用户时收到以下 [WSFW000]null 错误。

这是我要发送的包裹:

<cfsavecontent variable="soappackage">
<?xml version='1.0' encoding='UTF-8'?>
<SOAPENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAPENV="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <SOAPENV:Header>
    <wsse:Security SOAPENV:mustunderstand="true" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
      <wsse:Timestamp xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
        <wsse:Created xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2015-03-16T13:18:56Z</wsse:Created>
      </wsse:Timestamp>
      <wsse:UsernameToken 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">
        <wsse:Username xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">session</wsse:Username>
        <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">c5bc911f5632441d96776470653f6ccd</wsse:Password>
      </wsse:UsernameToken>
    </wsse:Security>
  </SOAPENV:Header>
  <SOAPENV:Body>
    <ns1:saveUser xmlns:ns1="http://user.ws.blackboard">
      <ns1:user>
        <ns1:extendedInfo>
          <ns1:givenName>Mary</ns1:givenName>
          <ns1:familyName>Mary</ns1:familyName>
        </ns1:extendedInfo>
        <ns1:name>t1245op2sss24zx</ns1:name>
        <ns1:password>test</ns1:password>
        <ns1:insRoles>STAFF</ns1:insRoles>
        <ns1:systemRoles>USER</ns1:systemRoles>
      </ns1:user>
    </ns1:saveUser>
  </SOAPENV:Body>
</SOAPENV:Envelope>
</cfsavecontent>

这是电话:

<cfhttp url="https://nu-test.blackboard.com/webapps/ws/services/User.WS" method="POST" timeout="20" >
    <cfhttpparam type="HEADER" name="Content-Type" value="application/soap+xml;charset=utf-8">
    <cfhttpparam type="HEADER" name="Accept" value="application/soap+xml, multipart/related">
    <cfhttpparam type="HEADER" name="User-Agent" value="xWeb:ColdFusion">
    <cfhttpparam type="HEADER" name="Connection" value="keep-alive">
    <cfhttpparam type="HEADER" name="SOAPAction" value="saveUser">
    <cfhttpparam type="HEADER" name="Content-Length" value="#len(trim(soappackage))#">
    <cfhttpparam type="BODY" value="#trim(soappackage)#">
</cfhttp>

这是回应:

<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
  <soapenv:Body>
    <soapenv:Fault>
      <soapenv:Code>
        <soapenv:Value>soapenv:Receiver</soapenv:Value>
      </soapenv:Code>
      <soapenv:Reason>
        <soapenv:Text xml:lang="en-US">[WSFW000]null</soapenv:Text>
      </soapenv:Reason>
      <soapenv:Detail />
    </soapenv:Fault>
  </soapenv:Body>
</soapenv:Envelope>
4

0 回答 0