cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1734
Views
0
Helpful
1
Comments
cdnadmin
Level 11
Level 11

Subject: RE: Fail to forward requestlease call XMLAPI via SSL(HTTPS)
Replied by: Nathan Morrow on 30-05-2013 01:15:03 PM
Hello,
 
     A recent security enhancement was made where all API requests must use HTTPS. Unfortunately, the code samples have not yet been updated to reflect this change. You can update the sample code by replacing any reference to HTTP to HTTPS and any reference to port 80 to port 443.
This document was generated from CDN thread

Created by: Matt Gwilliam on 30-05-2013 01:03:11 PM
I am able to successfully use the XML API List Meeting Eample in php code for the apidemoeu test site, but when I use it for my site, I get the following response.

FAILURE Fail to forward requestlease call XMLAPI via SSL(HTTPS) PRIMARY 000000

Subject: RE: Fail to forward requestlease call XMLAPI via SSL(HTTPS)
Replied by: Erez guv on 11-11-2013 12:29:28 PM
Hey Nathan,

I have same problem, when requesting with port 80 I get 000000 error and when requesting with 443 port I get blank response.

Thankyou.

Subject: RE: Fail to forward requestlease call XMLAPI via SSL(HTTPS)
Replied by: Nathan Morrow on 11-11-2013 01:23:29 PM
Hello,

     Are you getting any HTTP status response? response header? There could possibly be an issue with your code or your server configuration. There was a "bug" a while ago that caused blank response on an incorrect content-type in the HTTP header (you should be using text/xml rather than form/x-www-form-urlencoded unless you are actually submitting XML using an HTML form) but that was supposed to have been addressed already.

Subject: RE: Fail to forward requestlease call XMLAPI via SSL(HTTPS)
Replied by: Erez guv on 11-11-2013 01:57:03 PM
Thnakyou for your fast reply.

when using port 80 this is the response:
HTTP/1.1 200 OK
Date: Mon, 11 Nov 2013 19:52:41 GMT
Server: ApacheSet-Cookie: xlntc=R3647309410; path=/Pragma: no-cacheCache-Control: no-cacheExpires: Thu, 01 Jan 1970 00:00:00 GMT
Connection: closeContent-Type: text/html
<?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>Fail to forward requestlease call XMLAPI via SSL(HTTPS)</serv:reason><serv:gsbStatus>PRIMARY</serv:gsbStatus>
<serv:exceptionID>000000</serv:exceptionID>
</serv:response></serv:header>
<serv:body></serv:body>
</serv:message>

using port 443 response blank.

The code is from th "List WebEx meetings via XML API" code example from the site.

Thanks.


Subject: RE: Fail to forward requestlease call XMLAPI via SSL(HTTPS)
Replied by: Nathan Morrow on 11-11-2013 02:29:41 PM
Hello,

     I believe you can resolve this by changing the following line in the downloaded sample code.

$fp = fsockopen($URL,80,$errno,$errstr);

to 

$fp = fsockopen("ssl://".$URL,$Port,$errno,$errstr);

Subject: RE: Fail to forward requestlease call XMLAPI via SSL(HTTPS)
Replied by: Erez guv on 11-11-2013 04:14:35 PM
Sorry..

after changing the line you suggested, still same issue.

Thanks again.

Subject: RE: Fail to forward requestlease call XMLAPI via SSL(HTTPS)
Replied by: Nathan Morrow on 11-11-2013 07:27:53 PM
Can you provide your current source as-is, but with password, site id, and partner id values masked out?

Subject: RE: Fail to forward requestlease call XMLAPI via SSL(HTTPS)
Replied by: Erez guv on 11-11-2013 07:38:00 PM
here it is - 


<?xml version="1.0" encoding="UTF-8"?><serv_message xmlns_xsi="https://www.w3.org/2001/XMLSchema-instance" xmlns_serv="https://www.webex.com/schemas/2002/06/service" >
<header>
<securityContext>
<webExID>***</webExID>
<password>*****</password>
<siteID>*****</siteID>
<partnerID>*****</partnerID>
</securityContext>
</header><body>
<bodyContent xsi_type="java:com.webex.service.binding.meeting.CreateMeeting" xmlns_meet="https://www.webex.com/schemas/2002/06/service/meeting" >
<accessControl>
<meetingPassword>pass123</meetingPassword>
</accessControl>
<metaData>
<confName>Sample Meeting</confName>
<meetingType>1</meetingType>
<agenda>Test</agenda>
</metaData><participants>
<maxUserNumber>4</maxUserNumber>
<attendees><attendee>
<person>
<name>James Kirk</name>
<email>Jkirk@sz.webex.com</email>
</person>
</attendee></attendees>
</participants>
<enableOptions>
<chat>true</chat>
<poll>true</poll>
<audioVideo>true</audioVideo>
</enableOptions>
<schedule>
<startDate>11/12/2013 10_10:10</startDate>
<openTime>900</openTime>
<joinTeleconfBeforeHost>true</joinTeleconfBeforeHost>
<duration>20</duration>
<timeZoneID>4</timeZoneID>
</schedule><telephony>
<telephonySupport>CALLIN</telephonySupport>
<extTelephonyDescription>Call 1-800-555-1234, Passcode 98765</extTelephonyDescription>
</telephony>
</bodyContent></body></serv_message>

Subject: RE: Fail to forward requestlease call XMLAPI via SSL(HTTPS)
Replied by: Nathan Morrow on 12-11-2013 03:41:13 PM
Hello,

    I was hoping to review your current PHP code to see if there were any other obvious issues I could identify. The XML itself is not the cause of the blank response.

Subject: RE: Fail to forward requestlease call XMLAPI via SSL(HTTPS)
Replied by: Erez guv on 12-11-2013 04:49:51 PM
Hi Nathan,

After a long night, and reading the forum over and over, I have a SUCCESS
The last problem was, probably,  the Content-Type decleration - its working with "application/xml".

I hope things will be ok from now,
Thankyou very much for your help.

Erez

Subject: RE: Fail to forward requestlease call XMLAPI via SSL(HTTPS)
Replied by: Nathan Morrow on 12-11-2013 05:08:44 PM
Thanks for the update. Can you provide the incorrect content-type that was being used? blank page when using application/x-www-form-urlencoded was supposed to have been addressed but there could be other content-types that would still give blank response.
Comments
shrikant.gurav67
Community Member

I'm getting error FAILURE Fail to forward request:null PRIMARY 000000...while trying to create demo meeting from developer account..what could be the reason. Please help.

Thanx in advance.

Getting Started

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:

Quick Links