Thursday, 15 July 2010

xml - Adding user to blackboard using ColdFusion -


I am able to successfully create the authentication session, but I am receiving the following [WSFW000] tap error when attempting to add A user while doing

This is the package I am sending:

  & lt; Cfsavecontent variable = "soappackage" & gt; & Lt ;? XML version = '1.0' encoding = 'UTF-8'? & Gt; & Lt; 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" & gt; & Lt; SOAPENV: Header & gt; & Lt; Wsse: security SOAPENV: mustunderstand = "true" xmlns: wsse = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" & gt; & Lt; Wsse: timestamp xmlns: wsse = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" & gt; & Lt; Wsse: created xmlns: wsse = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" & gt; 2015-03-16T13: 18: 56Z & lt; / Wsse: Created & gt; & Lt; / Wsse: timestamp & gt; & Lt; Wsse: usernamename 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 "& gt; & Lt; Wsse: Username xmlns: wsse = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" & gt; Session & lt; / Wsse: Username & gt; & Lt; 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-wssecurity-secext-1.0.xsd "& gt; c5bc911f5632441d96776470653f6ccd & lt; / wsse: Password & gt; & Lt; / Wsse: UsernameToken & gt; & Lt; / Wsse: Security & gt; & Lt; / SOAPENV: Header & gt; & Lt; SOAPENV: Body & gt; & Lt; Ns1: saveUser xmlns: ns1 = "http: //user.ws.blackboard" & gt; & Lt; Ns1 also: User & gt; & Lt; Ns1 also: extendedInfo & gt; & Lt; Ns1 also: givenName & gt; Mary & lt; / Ns1 also: givenName & gt; & Lt; Ns1 also: familyName & gt; Mary & lt; / Ns1 also: familyName & gt; & Lt; / Ns1 also: extendedInfo & gt; & Lt; Ns1 also: Name & gt; T1245op2sss24zx & lt; / Ns1 also: Name & gt; & Lt; Ns1 also: Password & gt; Trial & lt; / Ns1 also: Password & gt; & Lt; Ns1 also: insRoles & gt; Employees & lt; / Ns1 also: insRoles & gt; & Lt; Ns1 also: systemRoles & gt; Users & lt; / Ns1 also: systemRoles & gt; & Lt; / Ns1 also: User & gt; & Lt; / Ns1 also: saveUser & gt; & Lt; / SOAPENV: Body & gt; & Lt; / SOAPENV: envelope & gt; & Lt; / Cfsavecontent & gt;  

This call is:

  & lt; Cfhttp url = "https://nu-test.blackboard.com/webapps/ws/services/ User.WS" method = "post" timeout = "20" & gt; & Lt; Cfhttpparam type = "HEADER" name = "content-type" value = "application / soap + xml; charset = UTF-8" & gt; & Lt; Cfhttpparam type = "HEADER" name = "accept" value = "application / soap + xml, multipart / related" & gt; & Lt; Cfhttpparam type = "HEADER" name = "user-agent" value = "xWeb: ColdFusion" & gt; & Lt; Cfhttpparam type = "HEADER" name = "connection" value = "keep-alive" & gt; & Lt; Cfhttpparam type = "HEADER" name = "SOAPAction" value = "saveUser" & gt; & Lt; Cfhttpparam type = "HEADER" name = "content-length" value = "# lane (trim (simplepackage)) #" & gt; & Lt; Cfhttpparam type = "BODY" value = "#trim (simplepackage) #" & gt; & Lt; / Cfhttp & gt;  

This is the response:

   


No comments:

Post a Comment