Web Service Problem

I am currently trying to set up a connection with a webservice to send information from my website form.

Unfortunately I have run into a few problems, as I have never worked with soap/xml before.

So far I have downloaded nusoap, and have the following code:-
[php]<?php
// Pull in the NuSOAP code
require_once(‘nusoap.php’);
$params = array(
‘CustTitle’ => ‘Mr’,
‘CustFirstNames’ => ‘Test’,
‘CustSurname’ => ‘Tester’,
‘CustEmail’ => ‘[email protected]’,
‘CustTel’ => ‘0123456789’,
‘CustTimeTel’ => ‘’,
‘CustContactPref’ => ‘’,
‘HouseAddr1’ => ‘12 Test Street’,
‘HouseAddr2’ => ‘’,
‘HouseAddr3’ => ‘’,
‘HouseAddr4’ => ‘’,
‘HousePostCode’ => ‘NE12 3RR’,
‘HouseType’ => ‘’,
‘HouseBedrooms’ => ‘’,
‘HouseCondition’ => ‘’,
‘HouseValue’ => ‘100000’,
‘HouseAgent’ => ‘’,
‘HouseWhySell’ => ‘’,
‘HouseTimeSell’ => ‘’,
‘CustRentBack’ => ‘’,
‘HouseMortgage’ => ‘’,
‘HouseLoans’ => ‘’,
‘CustMessage’ => ‘’,
‘FinderID’ => ‘111’,
‘FinderPassword’ => ‘xxxxxxx’,
‘FinderReference’ => ‘’,
‘CustIP’ => ‘’
);
// Create the client instance
$client = new soapclient(‘http://b2b.buy-house.co.uk/srb.asmx’);
// Call the SOAP method
$result = $client->call(‘AddIntroducerLead’, $params);
// Display the result
print_r($result);
?>[/php]

It appears like something is happening, but then I am getting the following error:-

Fatal error: Uncaught SoapFault exception: [WSDL] Maximum execution time of 30 seconds exceeded in /home/thechain/public_html/bhtest/nusoap/lib/nsoap.php:34 Stack trace: #0 /home/thechain/public_html/bhtest/nusoap/lib/nsoap.php(34): SoapClient->SoapClient(‘http://b2b.buy-…’) #1 {main} thrown in /home/thechain/public_html/bhtest/nusoap/lib/nsoap.php on line 34

Can anyone help??

Cheers

Sponsor our Newsletter | Privacy Policy | Terms of Service