Craig Brass Systems Forum: wsdl error: HTTP ERROR: Couldn't open socket connection - Craig Brass Systems Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

wsdl error: HTTP ERROR: Couldn't open socket connection

#1
User is offline   sean89 

  • Member
  • Pip
  • Group: Members
  • Posts: 13
  • Joined: 05-March 09
Hey, I am trying to use the integration API with my Kayako Support Suite. When I execute the example script I get the following:

SOAP Error

wsdl error: HTTP ERROR: Couldn't open socket connection to server *domain and path to my file*, Error (110): Connection timed out

I have ensured that the url to the index.php file is correct and it is correct in config.php as well as on the $url in the example script.

Please help as I am completely stumped on how to fix this.

Thanks a lot!
0

#2
User is offline   Andrew Gillard 

  • Staff - Lead Developer
  • Pip
  • Group: Developers
  • Posts: 97
  • Joined: 04-March 07
  • Gender:Male
  • Location:Basingstoke, United Kingdom
Are you using your SOAP client and the SOAP server (i.e. Kayako) on the same server? Some networks aren't set up properly for loopback (ones which use NAT, I think, which is pretty rare in commercial servers, but would be an issue if you're using a server behind a home Internet connection), which prevents servers connecting to themselves using their public IP address. If that is the case, you should probably be using the native PHP class, unless your client isn't written in PHP. Alternatively you could try using "localhost" instead of the URL in the client.

If the above doesn't apply, I would start troubleshooting this by ensuring that the client gets the correct IP address for the server from DNS. Checking that will be easier if you have SSH/RDC access to the client machine rather than just FTP and some Web control panel. If the DNS lookup works fine, try pinging the server or accessing some other page on the server from the client. There could theoretically be some kind of firewall or routing issue going on. It's also possible that your client machine isn't allowed to initiate HTTP connections for whatever reason (an attempt at security, perhaps?).
Andrew Gillard
Lead Developer - Craig Brass Systems
0

#3
User is offline   sean89 

  • Member
  • Pip
  • Group: Members
  • Posts: 13
  • Joined: 05-March 09
The client and the SOAP server are indeed on the same server. Kayako is coded in PHP and my application is coded in Python. Do you know how I can set it up properly to do the loopback or even something I can type into Google to find out more?
0

#4
User is offline   Andrew Gillard 

  • Staff - Lead Developer
  • Pip
  • Group: Developers
  • Posts: 97
  • Joined: 04-March 07
  • Gender:Male
  • Location:Basingstoke, United Kingdom
I would suggest trying the URL as "localhost" instead of your server's hostname. Whether that works or not would depend upon your webserver configuration, though.

Alternatively you could modify your server's hosts file (C:\Windows\System32\drivers\etc\hosts on Windows, /etc/hosts on Unix/Linux [and possibly Mac] systems) to have your server's hostname point at 127.0.0.1:
CODE
127.0.0.1     www.my-hostname.com

Andrew Gillard
Lead Developer - Craig Brass Systems
0

#5
User is offline   sean89 

  • Member
  • Pip
  • Group: Members
  • Posts: 13
  • Joined: 05-March 09
Will try, thanks!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users