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 8375961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:18:33+00:00 2026-06-09T15:18:33+00:00

Good morning, I am setting up a PHP application to communicate with a SOAP

  • 0

Good morning,

I am setting up a PHP application to communicate with a SOAP web service but have run into an issue. When calling the “GetIntradaySnapshotForCommodity” function on the service, PHP is returning NULL. However, when I inspect the “__getLastResponse()” content, a valid XML response is being returned.

The following is my code for the SOAP interaction.

$client = new SoapClient('liffecommoditiesservice.wsdl', array('trace' => TRUE));

$result = $client->GetIntradaySnapshotForCommodity(array(
    'securityToken' => 'XXX',
    'commoditiySymbol' => 'XT'
));

var_dump($result); //This returns NULL

var_dump($client->__getLastRequest()); //This response is included below
var_dump($client->__getLastResponse()); //This response is included below

$client->__getLastRequest()

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://liffecommoditieswebservice.if5.com/"><SOAP-ENV:Body><ns1:GetIntradaySnapshotForCommodity><ns1:securityToken>XXX</ns1:securityToken><ns1:commoditiySymbol>XT</ns1:commoditiySymbol></ns1:GetIntradaySnapshotForCommodity></SOAP-ENV:Body></SOAP-ENV:Envelope>

$client->__getLastResponse()

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ArrayOfIntradaySnapshot xmlns="http://liffecommoditieswebservice.if5.com/"><IntradaySnapshot><CommoditySymbol>XT</CommoditySymbol><DeliveryMonth>Jan-13</DeliveryMonth><TimeStamp>01-Aug-2012 10:48:01</TimeStamp><LastTradePrice>-</LastTradePrice><LastTradeVolume>-</LastTradeVolume><LastTradeTime>-</LastTradeTime><Bid>191 </Bid><Ask>-</Ask><High>-</High><Low>-</Low> <SettlementPrice>192.95 </SettlementPrice><OpenInterest>-</OpenInterest><CurrentCumulativeVolume>-</CurrentCumulativeVolume><PriceChange>0</PriceChange> <PercentagePriceChange>0%</PercentagePriceChange></IntradaySnapshot><IntradaySnapshot><CommoditySymbol>XT</CommoditySymbol><DeliveryMonth>Jan-14</DeliveryMonth><TimeStamp>01-Aug-2012 10:48:01</TimeStamp><LastTradePrice>-</LastTradePrice><LastTradeVolume>-</LastTradeVolume><LastTradeTime>-</LastTradeTime><Bid>161.5 </Bid><Ask>-</Ask><High>-</High><Low>-</Low> <SettlementPrice>165.75 </SettlementPrice><OpenInterest>-</OpenInterest><CurrentCumulativeVolume>-</CurrentCumulativeVolume><PriceChange>0</PriceChange> <PercentagePriceChange>0%</PercentagePriceChange></IntradaySnapshot><IntradaySnapshot><CommoditySymbol>XT</CommoditySymbol><DeliveryMonth>Jul-13</DeliveryMonth><TimeStamp>01-Aug-2012 10:48:01</TimeStamp><LastTradePrice>-</LastTradePrice><LastTradeVolume>-</LastTradeVolume><LastTradeTime>-</LastTradeTime><Bid>-</Bid><Ask>-</Ask><High>-</High><Low>-</Low> <SettlementPrice>201.3 </SettlementPrice><OpenInterest>-</OpenInterest><CurrentCumulativeVolume>-</CurrentCumulativeVolume><PriceChange>0</PriceChange> <PercentagePriceChange>0%</PercentagePriceChange></IntradaySnapshot><IntradaySnapshot><CommoditySymbol>XT</CommoditySymbol><DeliveryMonth>Mar-13</DeliveryMonth><TimeStamp>01-Aug-2012 10:48:01</TimeStamp><LastTradePrice>-</LastTradePrice><LastTradeVolume>-</LastTradeVolume><LastTradeTime>-</LastTradeTime><Bid>-</Bid><Ask>-</Ask><High>-</High><Low>-</Low> <SettlementPrice>195.2 </SettlementPrice><OpenInterest>-</OpenInterest><CurrentCumulativeVolume>-</CurrentCumulativeVolume><PriceChange>0</PriceChange> <PercentagePriceChange>0%</PercentagePriceChange></IntradaySnapshot><IntradaySnapshot><CommoditySymbol>XT</CommoditySymbol><DeliveryMonth>Mar-14</DeliveryMonth><TimeStamp>01-Aug-2012 10:48:01</TimeStamp><LastTradePrice>-</LastTradePrice><LastTradeVolume>-</LastTradeVolume><LastTradeTime>-</LastTradeTime><Bid>-</Bid><Ask>-</Ask><High>-</High><Low>-</Low> <SettlementPrice>168.1 </SettlementPrice><OpenInterest>-</OpenInterest><CurrentCumulativeVolume>-</CurrentCumulativeVolume><PriceChange>0</PriceChange> <PercentagePriceChange>0%</PercentagePriceChange></IntradaySnapshot><IntradaySnapshot><CommoditySymbol>XT</CommoditySymbol><DeliveryMonth>May-13</DeliveryMonth><TimeStamp>01-Aug-2012 10:48:01</TimeStamp><LastTradePrice>195 </LastTradePrice><LastTradeVolume>30 </LastTradeVolume><LastTradeTime>08:57:17 </LastTradeTime><Bid>194.25 </Bid><Ask>199 </Ask><High>195 </High><Low>195 </Low> <SettlementPrice>198 </SettlementPrice><OpenInterest>-</OpenInterest><CurrentCumulativeVolume>30 </CurrentCumulativeVolume><PriceChange>-3</PriceChange> <PercentagePriceChange>-1.52%</PercentagePriceChange></IntradaySnapshot><IntradaySnapshot><CommoditySymbol>XT</CommoditySymbol><DeliveryMonth>May-14</DeliveryMonth><TimeStamp>01-Aug-2012 10:48:01</TimeStamp><LastTradePrice>-</LastTradePrice><LastTradeVolume>-</LastTradeVolume><LastTradeTime>-</LastTradeTime><Bid>-</Bid><Ask>-</Ask><High>-</High><Low>-</Low> <SettlementPrice>172.25 </SettlementPrice><OpenInterest>-</OpenInterest><CurrentCumulativeVolume>-</CurrentCumulativeVolume><PriceChange>0</PriceChange> <PercentagePriceChange>0%</PercentagePriceChange></IntradaySnapshot><IntradaySnapshot><CommoditySymbol>XT</CommoditySymbol><DeliveryMonth>Nov-12</DeliveryMonth><TimeStamp>01-Aug-2012 10:48:01</TimeStamp><LastTradePrice>190 </LastTradePrice><LastTradeVolume>20 </LastTradeVolume><LastTradeTime>09:20:13 </LastTradeTime><Bid>190 </Bid><Ask>190.5 </Ask><High>191 </High><Low>189 </Low> <SettlementPrice>191.95 </SettlementPrice><OpenInterest>-</OpenInterest><CurrentCumulativeVolume>129 </CurrentCumulativeVolume><PriceChange>-1.94999999999999</PriceChange> <PercentagePriceChange>-1.02%</PercentagePriceChange></IntradaySnapshot><IntradaySnapshot><CommoditySymbol>XT</CommoditySymbol><DeliveryMonth>Nov-13</DeliveryMonth><TimeStamp>01-Aug-2012 10:48:01</TimeStamp><LastTradePrice>-</LastTradePrice><LastTradeVolume>-</LastTradeVolume><LastTradeTime>-</LastTradeTime><Bid>161 </Bid><Ask>167 </Ask><High>-</High><Low>-</Low> <SettlementPrice>165.25 </SettlementPrice><OpenInterest>-</OpenInterest><CurrentCumulativeVolume>0 </CurrentCumulativeVolume><PriceChange>0</PriceChange> <PercentagePriceChange>0%</PercentagePriceChange></IntradaySnapshot><IntradaySnapshot><CommoditySymbol>XT</CommoditySymbol><DeliveryMonth>Nov-14</DeliveryMonth><TimeStamp>01-Aug-2012 10:48:01</TimeStamp><LastTradePrice>-</LastTradePrice><LastTradeVolume>-</LastTradeVolume><LastTradeTime>-</LastTradeTime><Bid>-</Bid><Ask>164 </Ask><High>-</High><Low>-</Low> <SettlementPrice>164 </SettlementPrice><OpenInterest>-</OpenInterest><CurrentCumulativeVolume>0 </CurrentCumulativeVolume><PriceChange>0</PriceChange> <PercentagePriceChange>0%</PercentagePriceChange></IntradaySnapshot></ArrayOfIntradaySnapshot></soap:Body></soap:Envelope>

$client->__getFunctions()

array(4) {
    [0]=>
        string(101) "GetEODSnapshotForCommodityResponse GetEODSnapshotForCommodity(GetEODSnapshotForCommodity $parameters)"
    [1]=>
        string(116) "GetIntradaySnapshotForCommodityResponse GetIntradaySnapshotForCommodity(GetIntradaySnapshotForCommodity $parameters)"
    [2]=>
        string(101) "GetEODSnapshotForCommodityResponse GetEODSnapshotForCommodity(GetEODSnapshotForCommodity $parameters)"
    [3]=>
        string(116) "GetIntradaySnapshotForCommodityResponse GetIntradaySnapshotForCommodity(GetIntradaySnapshotForCommodity $parameters)"
}
  • 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-09T15:18:35+00:00Added an answer on June 9, 2026 at 3:18 pm

    For anybody that is interested, this issue appears to have been caused by a bug in the PHP PEAR library whereby a perfectly valid SOAP response was not being converted to an object properly.

    I ended up using the SOAP PEAR library instead which worked like a dream.

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

Sidebar

Related Questions

Good morning, I am currently developing a java web application that exposes a web
Good morning. I've been having this issue for some days and have been lokking
Good Morning All, I have loaded over 1,300 blurbs into my client's database with
Good Morning, Has anyone attempted to convert/migrate an ASP.net MVC web application project to
Good Morning All, I am developing a new ASP.net MVC web application. Part of
Good morning, I am trying to local test my web application, which makes use
Good morning, I have to use the properties from DeviceNetworkInformation in my application. (http://msdn.microsoft.com/en-us/library/microsoft.phone.net.networkinformation.devicenetworkinformation(v=vs.92).aspx)
Good morning everyone, I'm running into an issue using a SharePoint workflow project (C#,
Good Morning, I have an application which allows users to slide values for different
Good morning! I Have an issue with a wysiwyg editor that saves html to

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.