cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

If your Cloud Collaboration question is not answered quickly, please email devsupport@webex.com for additional help

770
Views
1
Helpful
4
Replies

Getting failure in response "Fail to forward request:null". Can somebody please help me on this.

I am using XML API to make XML request to create the user by using python. but i am getting response Fail to forward request:null. what is the workaround for this issue?

XML request

<?xml version="1.0" encoding="UTF-8"?>

<serv:message xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance"

    xmlns:serv="http://www.webex.com/schemas/2002/06/service"

    xsi:schemaLocation="http://www.webex.com/schemas/2002/06/service

    http://www.webex.com/schemas/2002/06/service/service.xsd>

    <header>

        <securityContext>

            <webExID>****</webExID>

            <password>*****</password>

            <siteID>*****</siteID>

            <partnerID>*******</partnerID>

        </securityContext>

    </header>

    <body>

        <bodyContent

            xsi:type="java:com.webex.service.binding.user.CreateUser"

            xmlns:att="http://www.webex.com/schemas/2002/06/service/user"

            xsi:schemaLocation="http://www.webex.com/schemas/2002/06/service/user

            http://www.webex.com/schemas/2002/06/service/meeting/user.xsd">

            <firstName>Shibbu</firstName>

            <lastName>Tiwari</lastName>

            <webExId>nseth</webExId>

            <email>*******</email>

            <password>*****</password>

            <privilege>

                <host>true</host>

            </privilege>

            <active>ACTIVATED</active>

        </bodyContent>

    </body>

</serv:message>

Response XML:

<?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 request:null</serv:reason>

<serv:gsbStatus>PRIMARY</serv:gsbStatus>

<serv:exceptionID>000000</serv:exceptionID></serv:response>

</serv:header>

<serv:body>

</serv:body>

</serv:message>

What am i missing?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Contributor

Re: Getting failure in response "Fail to forward request:null". Can somebody please help me on this.

From your security Context, remove: <siteID> & <partnerID>, replace this with <siteName> that contains the subdomain for your site, ie, sitename.webex.com...

Also ensure your calling the correct XML API Service URL with the same siteName: https://sitename.webex.com/WBXService/XMLService

View solution in original post

4 REPLIES 4
Highlighted
Contributor

Re: Getting failure in response "Fail to forward request:null". Can somebody please help me on this.

From your security Context, remove: <siteID> & <partnerID>, replace this with <siteName> that contains the subdomain for your site, ie, sitename.webex.com...

Also ensure your calling the correct XML API Service URL with the same siteName: https://sitename.webex.com/WBXService/XMLService

View solution in original post

Highlighted

Re: Getting failure in response "Fail to forward request:null". Can somebody please help me on this.

Hello Ryan,

Thanks for picking up.. i modified as you suggested but getting same error. this time getting like this.

<serv:result>FAILURE</serv:result>

  <serv:reason>Fail to forward request:null</serv:reason>

<serv:gsbStatus>BACKUP</serv:gsbStatus>

<serv:exceptionID>000000</serv:exceptionID>

Initially i was getting Primary but now is Backup...

please advise what should i try now?

Highlighted

Re: Getting failure in response "Fail to forward request:null". Can somebody please help me on this.

Script i am using....

import urllib

import httplib

import re

from xml.dom.minidom import parse, parseString

target_url = "https://cebmeetingstest.webex.com/WBXService/XMLService"

xml_request = """

<?xml version="1.0" encoding="UTF-8"?>

<serv:message xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance"

    xmlns:serv="http://www.webex.com/schemas/2002/06/service"

    xsi:schemaLocation="http://www.webex.com/schemas/2002/06/service

    http://www.webex.com/schemas/2002/06/service/service.xsd>

    <header>

        <securityContext>

            <siteName>cebmeetingstest.webex.com</siteName>

            <webExID>****</webExID>

            <password>*****</password>    

        </securityContext>

    </header>

    <body>

        <bodyContent

            xsi:type="java:com.webex.service.binding.user.CreateUser"

            xmlns:att="http://www.webex.com/schemas/2002/06/service/user"

            xsi:schemaLocation="http://www.webex.com/schemas/2002/06/service/user

            http://www.webex.com/schemas/2002/06/service/user/user.xsd">

            <firstName>*****</firstName>

            <lastName>****</lastName>

            <webExId>***</webExId>

            <email>****</email>

            <password>*****</password>

            <privilege>

                <host>true</host>

            </privilege>

            <active>ACTIVATED</active>

        </bodyContent>

    </body>

</serv:message>   

""" 

print(xml_request)

result = urllib.urlopen( target_url, urllib.urlencode( {'request':xml_request} ) )

print parse( result ).toprettyxml()

result.close()

Highlighted
Contributor

Re: Getting failure in response "Fail to forward request:null". Can somebody please help me on this.

sitename shold just be: cebmeetingstest, remove the .webex.com

CreatePlease to create content