Monday, 15 February 2010

php - I'm getting "Fatal error: Uncaught SoapFault exception: [Client] SoapClient::SoapClient() Stack trace: #0 SoapClient->SoapClient(NULL, Array) #1 " -



php - I'm getting "Fatal error: Uncaught SoapFault exception: [Client] SoapClient::SoapClient() Stack trace: #0 SoapClient->SoapClient(NULL, Array) #1 " -

i'm getting hotel provider:

fatal error: uncaught soapfault exception: [client] soapclient::soapclient() stack trace: #0 soapclient->soapclient(null, array) #1

i managed 1 time create booking start getting message.

fatal error: uncaught soapfault exception: [client] soapclient::soapclient() [soapclient.soapclient]: 'uri' alternative required in nonwsdl mode in /home/fanzy44/public_html/fluxuryworld.com/hotelcollection/wp-content/themes/agility-child/single-bookhotel.php:1983 stack trace: #0 /home/fanzy44/public_html/fluxuryworld.com/hotelcollection/wp-content/themes/agility-child/single-bookhotel.php(1983): soapclient->soapclient(null, array) #1 /home/fanzy44/public_html/fluxuryworld.com/hotelcollection/wp-includes/template-loader.php(47): include('/home/fanzy44/p...') #2 /home/fanzy44/public_html/fluxuryworld.com/hotelcollection/wp-blog-header.php(16): require_once('/home/fanzy44/p...') #3 /home/fanzy44/public_html/fluxuryworld.com/hotelcollection/index.php(17): require('/home/fanzy44/p...') #4 {main} thrown in /home/fanzy44/public_html/fluxuryworld.com/hotelcollection/wp-content/themes/agility-child/single-bookhotel.php on line 1983

according exception,

uncaught soapfault exception: ... 'uri' alternative required in nonwsdl mode

so, referring soapclient documentation:

options

an array of options. if working in wsdl mode, parameter optional. if working in non-wsdl mode, location , uri options must set, location url of soap server send request to, , uri target namespace of soap service.

looking @ code:

$client = new soapclient($hotelprobookingurl, array('trace' => 1));

what's value of $hotelprobookingurl? if it's null, you're missing necessary options, causing error.

php soap

No comments:

Post a Comment