Welcome, Guest. Please login or register.
Did you miss your activation email?
05/22/12, 17:13
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Server side Scripting and Database Support
| |-+  Web Services: XML, Soap, WSDL, UDDI, and Flash Integration (Moderators: Flash-db, Musicman, vesa kortelainen, Ronald Wernecke, Jorge Solis)
| | |-+  Problem with Company Stock Information Web Service
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Problem with Company Stock Information Web Service  (Read 1258 times)
jiehan
Server what's that
*
Posts: 1


View Profile
« on: 03/16/10, 17:23 »

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.

Logged
nothingGrinder
Mods
Systems Administrator
*****
Posts: 823


Automatic websites with social media distribution


View Profile WWW
« 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.
Logged

Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything