i trying a sample code in https://developer.cisco.com/media/webex-xml-api/31AuthenticateUser.html
my sample code
=============
$d["XML"]="<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
$d["XML"].="<serv:message xmlns:xsi=\"https://www.w3.org/2001/XMLSchema-instance\" ";
$d["XML"].="xmlns:serv=\"https://www.webex.com/schemas/2002/06/service\">";
$d["XML"].="<header>";
$d["XML"].="<securityContext>";
$d["XML"].="<webExID>{$d["UID"]}</webExID>";
$d["XML"].="<password>{$d["PWD"]}</password>";
$d["XML"].="<siteID>{$d["SID"]}</siteID>";
$d["XML"].="<partnerID>{$d["PID"]}</partnerID>";
$d["XML"].="</securityContext>";
$d["XML"].="</header>";
$d["XML"].="<body>";
$d["XML"].="<bodyContent xsi:type=\"java:com.webex.service.binding.user.AuthenticateUser\">";
$d["XML"].="<samlResponse>live samlResponse message will go here</samlResponse>";
$d["XML"].="</bodyContent>";
$d["XML"].="</body>";
$d["XML"].="</serv:message>";
============
and I got a result
=======================
HTTP/1.1 200 OK
Date: Tue, 07 Mar 2017 04:56:11 GMT
Server:
Pragma: no-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
TrackingID: 1700a1c4-603b-4336-afc1-29f18224532a
Content-Type: text/xml;charset=UTF-8
Strict-Transport-Security: max-age=31536000; includeSubDomains;preload
Connection: close
<?xml version="1.0" encoding="UTF-8"?>
<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: unable to find FieldDescriptor for 'samlResponse' in ClassDescriptor of bodyContentType</serv:reason><serv:gsbStatus>PRIMARY</serv:gsbStatus><serv:exceptionID>999999</serv:exceptionID></serv:response></serv:header><serv:body><serv:bodyContent/></serv:body></serv:message>
=========================================
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comments
0 comments
Please sign in to leave a comment.