SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Sep 2008
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help!!!- Accessing XML Web Service with NuSoap PHP

    I have been asked to extract some information using an XMLWeb Service and after much head scratching I need some assistance. Ive installed NuSOAP and have tried out avrious bits of code but am getting nowhere. If I could return one result it would be a breakthrough!

    Had to drop the SLASH in to replace as the link and w's were unfortunately blocked

    The webservice is located at SLASH propertyfunctions SLASH propertysearch.asmx
    and I have been given a demo set of parameters which are in the example below

    Below is a far as ive got...

    <?php
    require_once('.. SLASH includes SLASH lib SLASH nusoap.php');


    $param = array(
    'SitePrefix' => 'DEMO',
    'PropertyID' => 0,
    'PropertyDevelopmentID' => 0,
    'Bedrooms' => 0,
    'MinPrice' => 0,
    'MaxPrice' => 250000,
    'Tenure' => 0,
    'Commercial' => 0,
    'Property Age' => 0,
    'Featured Count' => 0,
    'Areas' => 0,
    'Bedrooms' => '0',
    'SortOrder' => '0');


    $wsdl = "acquaintcrm.co.uk SLASH propertyfunctions SLASH propertysearch.asmx"; // DONT THINK THIS IS RIGHT - wsdl?!

    $client = new soapclient($wsdl, true);

    /* call readLS */
    // Let NuSoap extract the correct target namespace from the WSDL!
    $response = $client->call('GetData', $param);
    ?>
    html code...
    <?php
    echo $response;
    ?>
    html code...

    Many thanks in advance for anyone who can point me the right directon
    Last edited by nicknd; Sep 25, 2008 at 17:03.

  2. #2
    SitePoint Member
    Join Date
    Sep 2008
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have been able to make a request and get a response from the server which is shown below.

    I know there are results as I have another way of querying the DB using standard web forms - but thats no use to me.

    I cant get the number of results or what they are.

    Any ideas?

    Array ( [GetDataV6Result] => Array ( [schema] => Array ( [element] => Array ( [complexType] => Array ( [choice] => Array ( [element] => Array ( [complexType] => Array ( [sequence] => Array ( [element] => Array ( [0] => Array ( [!name] => SitePrefix [!minOccurs] => 0 ) [1] => Array ( [!name] => ID [!minOccurs] => 0 ) [2] => Array ( [!name] => UploadStatus [!minOccurs] => 0 ) [3] => Array ( [!name] => ManualEntry [!minOccurs] => 0 ) [4] => Array ( [!name] => SiteID [!minOccurs] => 0 ) [5] => Array ( [!name] => Addeddate [!minOccurs] => 0 ) [6] => Array ( [!name] => ShortDescription [!minOccurs] => 0 ) [7] => Array ( [!name] => Description [!minOccurs] => 0 ) [8] => Array ( [!name] => FullDescription [!minOccurs] => 0 ) [9] => Array ( [!name] => BulletPoints [!minOccurs] => 0 ) [10] => Array ( [!name] => Rooms [!minOccurs] => 0 ) [11] => Array ( [!name] => PropertyName [!minOccurs] => 0 ) [12] => Array ( [!name] => Street [!minOccurs] => 0 ) [13] => Array ( [!name] => Locality [!minOccurs] => 0 ) [14] => Array ( [!name] => Town [!minOccurs] => 0 ) [15] => Array ( [!name] => Region [!minOccurs] => 0 ) [16] => Array ( [!name] => Country [!minOccurs] => 0 ) [17] => Array ( [!name] => PostCode [!minOccurs] => 0 ) [18] => Array ( [!name] => PostCodeLng [!minOccurs] => 0 ) [19] => Array ( [!name] => PostCodeLat [!minOccurs] => 0 ) [20] => Array ( [!name] => Status [!minOccurs] => 0 ) [21] => Array ( [!name] => Type [!minOccurs] => 0 ) [22] => Array ( [!name] => Location [!minOccurs] => 0 ) [23] => Array ( [!name] => Tenure [!minOccurs] => 0 ) [24] => Array ( [!name] => Pictures [!minOccurs] => 0 ) [25] => Array ( [!name] => Picture1 [!minOccurs] => 0 ) [26] => Array ( [!name] => Picture2 [!minOccurs] => 0 ) [27] => Array ( [!name] => Picture3 [!minOccurs] => 0 ) [28] => Array ( [!name] => Picture4 [!minOccurs] => 0 ) [29] => Array ( [!name] => Picture5 [!minOccurs] => 0 ) [30] => Array ( [!name] => Picture6 [!minOccurs] => 0 ) [31] => Array ( [!name] => Picture7 [!minOccurs] => 0 ) [32] => Array ( [!name] => Picture8 [!minOccurs] => 0 ) [33] => Array ( [!name] => Picture9 [!minOccurs] => 0 ) [34] => Array ( [!name] => Picture10 [!minOccurs] => 0 ) [35] => Array ( [!name] => Picture11 [!minOccurs] => 0 ) [36] => Array ( [!name] => Picture12 [!minOccurs] => 0 ) [37] => Array ( [!name] => Picture13 [!minOccurs] => 0 ) [38] => Array ( [!name] => Picture14 [!minOccurs] => 0 ) [39] => Array ( [!name] => Picture15 [!minOccurs] => 0 ) [40] => Array ( [!name] => Picture16 [!minOccurs] => 0 ) [41] => Array ( [!name] => Floorplan [!minOccurs] => 0 ) [42] => Array ( [!name] => VirtualTourURL [!minOccurs] => 0 ) [43] => Array ( [!name] => CurrencyID [!minOccurs] => 0 ) [44] => Array ( [!name] => PricePrefix [!minOccurs] => 0 ) [45] => Array ( [!name] => Price [!minOccurs] => 0 ) [46] => Array ( [!name] => PriceFrequency [!minOccurs] => 0 ) [47] => Array ( [!name] => DisplayPrice [!minOccurs] => 0 ) [48] => Array ( [!name] => Bedrooms [!minOccurs] => 0 ) [49] => Array ( [!name] => Receptions [!minOccurs] => 0 ) [50] => Array ( [!name] => Bathrooms [!minOccurs] => 0 ) [51] => Array ( [!name] => Built [!minOccurs] => 0 ) [52] => Array ( [!name] => Garage [!minOccurs] => 0 ) [53] => Array ( [!name] => ParkingOffStreet [!minOccurs] => 0 ) [54] => Array ( [!name] => CentralHeating [!minOccurs] => 0 ) [55] => Array ( [!name] => DoubleGlazing [!minOccurs] => 0 ) [56] => Array ( [!name] => Gardens [!minOccurs] => 0 ) [57] => Array ( [!name] => StatusID [!minOccurs] => 0 ) [58] => Array ( [!name] => TypeID [!minOccurs] => 0 ) [59] => Array ( [!name] => LocationID [!minOccurs] => 0 ) [60] => Array ( [!name] => TenureID [!minOccurs] => 0 ) [61] => Array ( [!name] => NewHome [!minOccurs] => 0 ) [62] => Array ( [!name] => Exclusive [!minOccurs] => 0 ) [63] => Array ( [!name] => Age [!minOccurs] => 0 ) [64] => Array ( [!name] => Commercial [!minOccurs] => 0 ) [65] => Array ( [!name] => AreaID [!minOccurs] => 0 ) [66] => Array ( [!name] => DevelopmentID [!minOccurs] => 0 ) [67] => Array ( [!name] => WebFeatured [!minOccurs] => 0 ) [68] => Array ( [!name] => RentalAvailableDate [!minOccurs] => 0 ) [69] => Array ( [!name] => RentalTerms [!minOccurs] => 0 ) [70] => Array ( [!name] => RentalTermsID [!minOccurs] => 0 ) [71] => Array ( [!name] => RentalBenefit [!minOccurs] => 0 ) [72] => Array ( [!name] => RentalPets [!minOccurs] => 0 ) [73] => Array ( [!name] => RentalIncludesBills [!minOccurs] => 0 ) [74] => Array ( [!name] => RentalFurnished [!minOccurs] => 0 ) [75] => Array ( [!name] => RentalStudents [!minOccurs] => 0 ) [76] => Array ( [!name] => HIPURL [!minOccurs] => 0 ) [77] => Array ( [!name] => HIPEERCurrent [!minOccurs] => 0 ) [78] => Array ( [!name] => HIPEERPotential [!minOccurs] => 0 ) [79] => Array ( [!name] => HIPEIRCurrent [!minOccurs] => 0 ) [80] => Array ( [!name] => HIPEIRPotential [!minOccurs] => 0 ) [81] => Array ( [!name] => HIPEERChart [!minOccurs] => 0 ) [82] => Array ( [!name] => HIPEIRChart [!minOccurs] => 0 ) [83] => Array ( [!name] => Retirement [!minOccurs] => 0 ) [84] => Array ( [!name] => Riverside [!minOccurs] => 0 ) [85] => Array ( [!name] => VendorNotes [!minOccurs] => 0 ) ) ) ) [!name] => Properties ) [!minOccurs] => 0 [!maxOccurs] => unbounded ) ) [!name] => PropertiesDataSet [!msdata:IsDataSet] => true [!msdata:UseCurrentLocale] => true ) [!id] => PropertiesDataSet ) [diffgram] => ) )


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •