EricR

Calling PBXScript.CreateObject("MSXML2.XMLHTTP") failed

Recommended Posts

Hello,

We have recently upgraded our Swyxserver to version 11.10.2959. I don't know from which version we were coming, but we had a script that performed the following action:
 

    url = "hidden-url"

    xml = PBXScript.CreateObject("MSXML2.XMLHTTP")
    body = "{""id"":1,""jsonrpc"":""2.0"",""method"":""getSupportStatus"",""params"":{""serial"":"""&sSerial&""",""phonenumber"":"""&IpPbx.CallingNumber&"""}}"
 
    xml.open "POST", url, False
    xml.setRequestHeader "Content-Type", "application/json; charset=utf-8"
    xml.setRequestHeader "Content-Length", Len(body)
    xml.send body

 

    response = xml.responseText

 

etc.

It looks like, but I am not 100% sure it is related, since the upgrade creating the object with

    xml = PBXScript.CreateObject("MSXML2.XMLHTTP")

fails.

 

Do we miss something?

Is there another way of performing an HTTP post within VB of GSE?

 

Thanks for your time.

 

-

Eric

 

Share this post


Link to post
Share on other sites

Hi Eric,

 

what kind of error message do you find in the server trace after calling PBXScript.CreateObject?

 

Share this post


Link to post
Share on other sites

Hi Tom,

 

Thanks for your reply
We have tried to catch it and, it is error 438, in text:

Object doesn't support this property or method

-

Eric

Share this post


Link to post
Share on other sites

Hi Tom,

 

Thanks for your reply
That was a stupid BASIC mistake. 😉

Thanks again.

-

Eric

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now