Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8663253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:56:25+00:00 2026-06-12T16:56:25+00:00

I want to integrate Sitelink with my website using php. For demo they have

  • 0

I want to integrate Sitelink with my website using php. For demo they have just provided this code

    echo '<p>Testing SiteLink...</p>';
    define( 'SITELINK_URL', "https://www.smdservers.net/CCWs_3.5/CallCenterWs.asmx?WSDL");
    define( 'SITELINK_CORP_CODE', "CCTST" );
    define( 'SITELINK_LOC_CODE', "Demo" );
    define( 'SITELINK_CORP_LOGIN', "Administrator" );
    define( 'SITELINK_CORP_PASS', "Demo" );
    $client = new SoapClient( SITELINK_URL );
    $params->sCorpCode = SITELINK_CORP_CODE;
    $params->sLocationCode = SITELINK_LOC_CODE;
    $params->sCorpUserName = SITELINK_CORP_LOGIN;
    $params->sCorpPassword = SITELINK_CORP_PASS;
    try
    {
    $units = $client->SiteInformation( $params );
    $result = $units->SiteInformationResult;
    }
    catch (Exception $e )
    {
    die( 'Error: '.$e->getMessage().'<br>'.$e );
    }
    echo htmlentities( $result->any );

But I am not able to understand how to fecth the data and process it using php. I have to Fetch unit sizes and their respective prices. Any help is greatly appreciated. Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T16:56:26+00:00Added an answer on June 12, 2026 at 4:56 pm

    You are not trying to get Units you are getting SiteInformation

    add type for $params first:

    $params = new stdClass; // as stdClass
    $params->sCorpCode = SITELINK_CORP_CODE;
    $params->sLocationCode = SITELINK_LOC_CODE;
    $params->sCorpUserName = SITELINK_CORP_LOGIN;
    $params->sCorpPassword = SITELINK_CORP_PASS;
    

    then:

    $units = $client->UnitTypePriceList($params);
    $result = $units->UnitTypePriceListResult->any;
    

    and you have to parse the data with DOMDocument, check the tag name you want to display and print it out:

    $dom = new DOMDocument;
    $dom->loadXML($result);
    
    $xpath = new DOMXPath($dom);
    $el = $xpath->query('//Table');
    
    foreach($el as $units){
        $UnitID = $xpath->query('UnitID_FirstAvailable', $units)->item(0)->nodeValue;
        echo $UnitID;
    }
    

    I don’t know what are your desired values, but I took UnitID_FirstAvailable as example.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a PHP website that I want to integrate with silverlight to provided
I want to integrate billdesk payment gateway in my php website. So that i
I want to integrate the PaySimple API on my website, but I don't have
I want to integrate my flash file with php code. I got the below
i want to integrate facebook like button into my website . My website has
I want to integrate MarkerCluster with my database driven Google map and have been
I want to integrate facebook login into my web application developed using Spring MVC.
I want to integrate the zxing barcode scanner into my app. I have followed
I want to integrate the MySQL fulltext search function in my PHP site. I
i want to integrate maps using map kit in iphone, and i am successful

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.