Returning SOAP array type

This is a discussion on Returning SOAP array type within the PHP General forums, part of the PHP Programming Forums category; Hi, I have a web service with an array type I am trying to return. I can't seem to ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-18-2008
Dan Joseph
 
Posts: n/a
Default Returning SOAP array type

Hi,

I have a web service with an array type I am trying to return. I can't seem
to find the right answers anywhere...

First, the WSDL piece:

<xsd:complexType name="getQuoteHistory">
<xsd:complexContent>
<xsd:restriction base="SOAP-ENC:Array">
<xsd:sequence>
<xsd:element name="id" type="xsd:string"/>
<xsd:element name="key" type="xsd:string"/>
<xsd:element name="username" type="xsd:string"/>
<xsd:element name="password" type="xsd:string"/>
<xsd:element name="startdate" type="xsd:string"/>
<xsd:element name="enddate" type="xsd:string"/>
<xsd:element name="status" type="xsd:string"/>
</xsd:sequence>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>

I am trying to returning a list of quotes. Basically I pull a query from
the database, select * from quotes, and then return the set.

2 Questions:

1. Do I need to have that as getQuoteHistory[] in the wsdl?

2. What do I put in my php code to return the set of results? I've tried a
couple things:

while ( $blah = fetchrow )
{
$array[] = $blah;
}

return $array

that doesn't work. I tried some other variations. What am I missing?
--
-Dan Joseph

www.canishosting.com - Plans start @ $1.99/month.

"Build a man a fire, and he will be warm for the rest of the day.
Light a man on fire, and will be warm for the rest of his life."

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:50 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0