Welcome, Guest
  • Author Topic: Problem with Company Stock Information Web Service  (Read 1553 times)

    jiehan

    • Server what's that
    • *
    • Posts: 1
      • View Profile
    Hi all,

    I've been trying to get this web service to work all evening, but I'm having no success. As I'm running out of ideas fast, I'm hoping that someone will be able to help shed some light on it.

    I'm using the WSDL from:

    http://www.flash-db.com/services/ws/companyInfo.wsdl

    Whenever I connect to the service to retrieve a company's stock information, this exception is thrown:

    System.InvalidOperationException: Client found response content type of 'text/html', but expected 'text/xml'

    with this error message:

    <br />
    <b>Warning</b>:  fopen() [<a href='function.fopen'>function.fopen</a>]: URL file-access is disabled in the server configuration in <b>/home/flash-d/public_html/services/ws/companyInfo.php</b> on line <b>16</b><br />
    <br />
    <b>Warning</b>:  fopen(http://quote.yahoo.com/d?f=snl1d1t1c1p2va2bapomwerr1dyj1&s=MSFT) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: no suitable wrapper could be found in <b>/home/flash-d/public_html/services/ws/companyInfo.php</b> on line <b>16</b><br />
    <br />
    <b>Warning</b>:  fgetcsv() expects parameter 1 to be resource, boolean given in <b>/home/flash-d/public_html/services/ws/companyInfo.php</b> on line <b>18</b><br /> . . .

    I'm pretty certain that I've coded everything correctly (I'm following an example from a book) so could it be because there's something going wrong on the web service side?

    Thanks.


    nothingGrinder

    • Mods
    • Systems Administrator
    • *****
    • Posts: 823
    • Automatic websites with social media distribution
      • View Profile
      • nothingGrinder
    Re: Problem with Company Stock Information Web Service
    « Reply #1 on: 05/25/10, 05:34 »
    It looks like the fopen() functionality is not enabled on your installation of PHP. Can you post the code you used to call fopen?
    thanks.