AnsweredAssumed Answered

SOAP UserWS.getUser

Question asked by sn0046420 on Feb 24, 2016
Latest reply on Mar 9, 2016 by aa0045190

Hi

 

I am currently testing the Blackboard SOAP based WebServices using the testing tool SoapUI as part of a "Proof of concept". I need to be able to call blackboard from an environment where  neither C# nor Java is available - so I actually need to create SOAP envelopes directly.

 

But when I call UserWS.getUser the webservice do not return any user data. I have tried using both name and id in the userfilter in the getUser call and I have tried with a lot of different users. I have no problems with using other blackboard webservice call (ex CourceWS.getCourse, ContextWS.getMemberships, UserWS.getSystemRoles returns what I expected). So has anybody any idea why I don't get any data returned by the getUser call.

 

The SOAP call sequence I used are the following:

 

1) initialize:

Request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

   <soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

      <wsse:Security soap:mustUnderstand="TRUE" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">

         <wsu:Timestamp wsu:Id="XWSSGID-1302272915397-1670294436" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">

            <wsu:Created>2016-02-24T12:54:00.137+01:00</wsu:Created>

            <wsu:Expires>2016-02-24T13:54:00.137+01:00</wsu:Expires>

         </wsu:Timestamp>

      <wsse:UsernameToken wsu:Id="XWSSGID-13022729153991465388429" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">

         <wsse:Username>session</wsse:Username>

         <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">NOSESSION</wsse:Password>

      </wsse:UsernameToken>

    </wsse:Security>

</soap:Header>

<soapenv:Body/>

</soapenv:Envelope>

 

Response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

   <soapenv:Body>

      <ns:initializeResponse xmlns:ns="http://context.ws.blackboard">

         <ns:return>896bcb2ad0954046abf5c2e70de72db5</ns:return>

      </ns:initializeResponse>

   </soapenv:Body>

</soapenv:Envelope>

 

login:

Request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:con="http://context.ws.blackboard">
   <soapenv:Header>
      <wsse:Security soap:mustUnderstand="TRUE" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
         <wsu:Timestamp wsu:Id="XWSSGID-1302272915397-1670294436" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
            <wsu:Created>2016-02-24T12:54:00.137+01:00</wsu:Created>
            <wsu:Expires>2016-02-24T13:54:00.137+01:00</wsu:Expires>
         </wsu:Timestamp>
      <wsse:UsernameToken wsu:Id="XWSSGID-13022729153991465388429" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
         <wsse:Username>session</wsse:Username>
         <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">896bcb2ad0954046abf5c2e70de72db5</wsse:Password>
      </wsse:UsernameToken>

   </wsse:Security>
</soapenv:Header>

<soapenv:Body>
   <con:login>
      <con:userid>WS-Uploader</con:userid>
      <con:password>JHghkvuviUUj4711YYYTest</con:password>
      <con:clientVendorId>ClientVendor</con:clientVendorId>
      <con:clientProgramId>ClientApp</con:clientProgramId>
      <con:loginExtraInfo xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
      <con:expectedLifeSeconds>3600</con:expectedLifeSeconds>
   </con:login>
</soapenv:Body>

</soapenv:Envelope>

 

Response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

   <soapenv:Body>

      <ns:loginResponse xmlns:ns="http://context.ws.blackboard">

         <ns:return>true</ns:return>

      </ns:loginResponse>

   </soapenv:Body>

</soapenv:Envelope>

 

getUser:

Request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:user="http://user.ws.blackboard" xmlns:xsd="http://user.ws.blackboard/xsd">

  <soapenv:Header>

    <wsse:Security soap:mustUnderstand="TRUE" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:soap="http://www.w3.org/2003/05/soap-envelope">

      <wsu:Timestamp wsu:Id="XWSSGID-1302272915397-1670294436" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">

        <wsu:Created>2016-02-24T12:54:00.137+01:00</wsu:Created>

        <wsu:Expires>2016-02-24T13:54:00.137+01:00</wsu:Expires>

      </wsu:Timestamp>

      <wsse:UsernameToken wsu:Id="XWSSGID-13022729153991465388429" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">

        <wsse:Username>session</wsse:Username>

        <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">896bcb2ad0954046abf5c2e70de72db5</wsse:Password>

      </wsse:UsernameToken>

    </wsse:Security>

  </soapenv:Header>

   <soapenv:Body>

      <user:getUser>

         <user:filter>

            <xsd:available>true</xsd:available>

            <xsd:filtertype>6</xsd:filtertype>

            <xsd:name>au281890</xsd:name>

         </user:filter>

      </user:getUser>

   </soapenv:Body>

</soapenv:Envelope>

 

Response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

   <soapenv:Body>

      <ns:getUserResponse xmlns:ns="http://user.ws.blackboard" xmlns:ax217="http://ws.platform.blackboard/xsd" xmlns:ax218="http://user.ws.blackboard/xsd"/>

   </soapenv:Body>

</soapenv:Envelope>

Outcomes