0
votes

When I upload my webservice files to a live server it does not work. It was working on localhost. How can I fix this problem?

Error message

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://openinvite.biz/iphoneservice/server2.php' : Premature end of data in tag html line 2 in D:\Hosting\7340680\html\iphoneservice\test.php:102 Stack trace: #0 D:\Hosting\7340680\html\iphoneservice\test.php(102): SoapClient->SoapClient('http://fomlatong.com/server.php') #1 {main} thrown in D:\Hosting\7340680\html\iphoneservice\test.php on line 102

2

2 Answers

3
votes

You should probably use the WSDL version as opposed to the HTML one.

Change your URL to http://openinvite.biz/iphoneservice/server2.php?wsdl

The list of methods for that service appears to be

  • syncvents
  • getEvents
  • getAllEvents
  • searchPlaces
  • rsvpEvent
  • searchByCity
  • EditEvent

I'm not sure why you expect there to be a call() method.

1
votes

Instead of using "soapclient" use "nusoap_client"