AnsweredAssumed Answered

User Creation web service

Question asked by anadi.bajpai on Sep 26, 2018
Latest reply on Sep 28, 2018 by md0049252

Hi everyone ,

I want to create a user in blackboard using web service User.WS. I am using the saveuser method .But did not getting success from soap UI. I am using the following request xml

 

 

<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 soapenv:mustUnderstand="1" 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">

         <wsu:Timestamp wsu:Id="TS-133ACE1B497CAB0844153795530414561">

            <wsu:Created>2018-09-26T09:48:24.145Z</wsu:Created>

         </wsu:Timestamp>

         <wsse:UsernameToken wsu:Id="UsernameToken-133ACE1B497CAB0844153794414423934">

            <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">***************</wsse:Password>

         </wsse:UsernameToken>

      </wsse:Security>

   </soapenv:Header>

   <soapenv:Body>

      <user:saveUser>

         <!--Zero or more repetitions:-->

         <user:user>

            <!--Optional:-->

            <xsd:birthDate>1537951902</xsd:birthDate>

            <!--Optional:-->

            <xsd:dataSourceId>_2_1</xsd:dataSourceId>

            <!--Optional:-->

            <xsd:educationLevel/>

            <!--Zero or more repetitions:-->

            <xsd:expansionData/>

            <!--Optional:-->

            <xsd:extendedInfo>

               <!--Optional:-->

               <xsd:businessFax/>

               <!--Optional:-->

               <xsd:businessPhone1/>

               <!--Optional:-->

               <xsd:businessPhone2/>

               <!--Optional:-->

               <xsd:city/>

               <!--Optional:-->

               <xsd:company/>

               <!--Optional:-->

               <xsd:country/>

               <!--Optional:-->

               <xsd:department/>

               <!--Optional:-->

               <xsd:emailAddress>abc@gmail.com</xsd:emailAddress>

               <!--Zero or more repetitions:-->

               <xsd:expansionData/>

               <!--Optional:-->

               <xsd:familyName/>

               <!--Optional:-->

               <xsd:givenName/>

               <!--Optional:-->

               <xsd:homeFax/>

               <!--Optional:-->

               <xsd:homePhone1/>

               <!--Optional:-->

               <xsd:homePhone2/>

               <!--Optional:-->

               <xsd:jobTitle/>

               <!--Optional:-->

               <xsd:middleName>hello</xsd:middleName>

               <!--Optional:-->

               <xsd:mobilePhone/>

               <!--Optional:-->

               <xsd:state/>

               <!--Optional:-->

               <xsd:street1/>

               <!--Optional:-->

               <xsd:street2/>

               <!--Optional:-->

               <xsd:webPage/>

               <!--Optional:-->

               <xsd:zipCode/>

            </xsd:extendedInfo>

            <!--Optional:-->

            <xsd:genderType>M</xsd:genderType>

            <!--Optional:-->

            <xsd:id/>

            <!--Zero or more repetitions:-->

            <xsd:insRoles/>

            <!--Optional:-->

            <xsd:isAvailable>true</xsd:isAvailable>

            <!--Optional:-->

            <xsd:name>user last</xsd:name>

            <!--Optional:-->

            <xsd:password>san@123</xsd:password>

            <!--Optional:-->

            <xsd:studentId>userlast@123</xsd:studentId>

            <!--Zero or more repetitions:-->

            <xsd:systemRoles>N</xsd:systemRoles>

            <!--Optional:-->

            <xsd:title>MR</xsd:title>

            <!--Optional:-->

            <xsd:userBatchUid></xsd:userBatchUid>

         </user:user>

      </user:saveUser>

   </soapenv:Body>

</soapenv:Envelope>

 

 

And get following response .

 

 

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

   <soapenv:Body>

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

         <ns:return xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>

      </ns:saveUserResponse>

   </soapenv:Body>

</soapenv:Envelope>

Outcomes