on 01-25-2014 10:39 AM
Nathan Morrow:Hello,
The sample code uses example values for required fields and they must be replaced with actual data. In this case, the error indicates that the webExId (username) being used does not match any account on the site.
Nathan Morrow:Hello,
antonio@oxfordconnect.es is not a valid username for any account on apidemoeu.webex.com. I was able to find an account that had that email address, but it is using a different username. You will want to make sure you are using the username for webExId or you can change the webExId node to email instead as it is also an acceptable value for authentication.
<securityContext><email>antonio@oxfordconnect.es</email><password>**HERE_IS_MY_PASSWORD**</password><siteID>243585</siteID><partnerID>g0webx!</partnerID></securityContext>
Hi All,
I am trying to create user from XML API using the below code:
string strXMLServer = "https://zohno.webex.com/WBXService/XMLService";
WebRequest request = WebRequest.Create(strXMLServer);
request.Method = "POST";
request.ContentType = "application/x-www-form-urlencoded";
string strXML = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?><id>ddo</id>";
strXML += "<serv:message xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:serv=\"http://www.webex.com/schemas/2002/06/service\">";
strXML += "<header>";
strXML += "<securityContext>";
strXML += "<siteName>zohno</siteName>";
strXML += "<webExID>webExID</webExID>";
strXML += "<password>password</password>";
strXML += "<partnerID>webexpartner</partnerID>";
strXML += "<email>rahulverma116@gmail.com</email>";
strXML += "</securityContext>";
strXML += "</header>";
strXML += "<body>";
strXML += "<bodyContent";
strXML += "xsi:type=\"java:com.webex.service.binding.user.CreateUser\">";
strXML += "<firstName>Rahul</firstName>";
strXML += "<lastName>Verma</lastName>";
strXML += "<webExId>Vddo1</webExId>";
strXML += "<email>rahulverma116@gmail.com</email>";
strXML += "<password>Test#</password>";
strXML += "<privilege>";
strXML += "<host>true</host>";
strXML += "</privilege>";
strXML += "<active>ACTIVATED</active>";
strXML += "<personalMeetingRoom>";
strXML += "<welcomeMessage>This is welcome message</welcomeMessage>";
strXML += "<headerImageBranding>false</headerImageBranding>";
strXML += "</personalMeetingRoom>";
strXML += "<sessionOptions>";
strXML += "<defaultSessionType>100</defaultSessionType>";
strXML += "<defaultServiceType>EventCenter</defaultServiceType>";
strXML += "<autoDeleteAfterMeetingEnd>false</autoDeleteAfterMeetingEnd>";
strXML += "<displayQuickStartHost>true</displayQuickStartHost>";
strXML += "<displayQuickStartAttendees>false</displayQuickStartAttendees>";
strXML += "</sessionOptions>";
strXML += "<supportCenter>";
strXML += "<orderTabs>";
strXML += "<tab>Tools</tab>";
strXML += "<tab>Desktop</tab>";
strXML += "<tab>Application</tab>";
strXML += "<tab>Session</tab>";
strXML += "</orderTabs>";
strXML += "</supportCenter>";
strXML += "</bodyContent>";
strXML += "</body>";
strXML += "</serv:message>";
After that I got the below response from server:
<serv:message xmlns:serv="http://www.webex.com/schemas/2002/06/service" xmlns:com="http://www.webex.com/schemas/2002/06/common">
<serv:header>
<serv:response>
<serv:result>FAILURE</serv:result>
<serv:reason>validation: Illegal Text data found as child of: id
value: "ddo"</serv:reason>
<serv:gsbStatus>PRIMARY</serv:gsbStatus>
<serv:exceptionID>999999</serv:exceptionID>
</serv:response>
</serv:header>
<serv:body>
<serv:bodyContent />
</serv:body>
</serv:message>
Please help me to create the user. It is very urgent. Thanks
Hello,
Please remove from your XML request, this is not a valid part of an XML API command. You will also want to use EITHER webExID OR email in your security context, if using both, they will both need to be valid for the same account. You should also remove partnerID and make sure you use a valid password.
Nathan Morrow
ENGINEER.CUSTOMER SUPPORT
nmorrow@cisco.com<mailto:nmorrow@cisco.com>
Phone: +1 916 636 0373
Mobile: +1 916 296 7748
Cisco Systems, Inc.
2868 Prospect Park Drive
Suite 500
Rancho Cordova
California
95670
United States
Cisco.com<http://www.cisco.com>
Think before you print.
This email may contain confidential and privileged material for the sole use of the intended recipient. Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.
Please click here<http://www.cisco.com/web/about/doing_business/legal/cri/index.html> for Company Registration Information.
Hello Nathan,
If this is not the valid XML API command then please tell me the right command which I can use to create the user.
Hello,
CreateUser is correct for creating a user. The error is due to the ";
Sent from my iPhone
Hello,
Actually that code (";) used to concatenation the XML string in the multiple lines.
I have also downloaded the XML API Debug Screen from Cisco website and tried the code in that without (";). It also gives the same error.
Hello,
“; was not the error, you should remove . The presence of this element in the documentation is an error.
Nathan Morrow
ENGINEER.CUSTOMER SUPPORT
nmorrow@cisco.com<mailto:nmorrow@cisco.com>
Phone: +1 916 636 0373
Mobile: +1 916 296 7748
Cisco Systems, Inc.
2868 Prospect Park Drive
Suite 500
Rancho Cordova
California
95670
United States
Cisco.com<http://www.cisco.com>
Think before you print.
This email may contain confidential and privileged material for the sole use of the intended recipient. Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.
Please click here<http://www.cisco.com/web/about/doing_business/legal/cri/index.html> for Company Registration Information.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: