|
Re: Re: Nusoap-general digest, Vol 1 #514 - 2 msgs: msg#00070php.nusoap.general
Two things: 1. A NuSOAP server cannot return a proper document/literal response, which the WSDL claims it will. 2. NuSOAP cannot yet properly de-serialize a doc/lit array, as you have noticed. Scott Nichol Do not send e-mail directly to this e-mail address, because it is filtered to accept only mail from specific mail lists. ----- Original Message ----- From: "Stefan Sammut" <ssammut@xxxxxxxxxx> To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> Sent: Wednesday, April 21, 2004 6:07 AM Subject: [Nusoap-general] Re: Nusoap-general digest, Vol 1 #514 - 2 msgs Good morning Mr.Scott Nichol, Thanks again for your reply. Apologies for being a bit too short. Mainly I need the server, and yes I was a WSDL file (find attached). The PHP client I mainly use for testing, before importing the WSDL using .NET and using its object. A short description of the service ; The request in the Date along with a list of Locations pairs is supplied. Then in the client I have the main invoded service method called webStop($Array) which invoked takes the $JTStopRealTimeRequest (same structure as shown) array. My main problem is that when I declare more than one LocatiionsPairs inner array in the request, I am not able access it. i.e. Using $something = $JTStopRealTimeRequest["LocationsPairs"]; then I would need to send a count = $cnt = count($something); and finally building up the array using a loop . for ($i = 0; $i<$cnt;$ii++) { $fs = $locs[$i]["FromStop"]; $ts = $locs[$i]["FromStop"]; $np = $fs["NaptanStopNumber"]; //This is the final element I could need to access from the array sturcture. .. ...compiling the average journey times. return new soapval().... } When supplying one array works fine.I have downloaded the latest version of nuosap as advised. Thanks again and I'll wait for your reply. Best Regards Stefan Sammut ----- Original Message ----- From: <nusoap-general-request@xxxxxxxxxxxxxxxxxxxxx> To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> Sent: Tuesday, April 20, 2004 2:39 PM Subject: Nusoap-general digest, Vol 1 #514 - 2 msgs > Send Nusoap-general mailing list submissions to > nusoap-general@xxxxxxxxxxxxxxxxxxxxx > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/nusoap-general > or, via email, send a message with subject or body 'help' to > nusoap-general-request@xxxxxxxxxxxxxxxxxxxxx > > You can reach the person managing the list at > nusoap-general-admin@xxxxxxxxxxxxxxxxxxxxx > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Nusoap-general digest..." > > > Today's Topics: > > 1. Re: Re: Nusoap-general digest, Vol 1 #512 - 2 msgs (Scott Nichol) > 2. Re: Re: Nusoap-general digest, Vol 1 #512 - 2 msgs (Scott Nichol) > > --__--__-- > > Message: 1 > From: "Scott Nichol" <snicholnews@xxxxxxxxxxxxxxx> > To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> > Subject: Re: [Nusoap-general] Re: Nusoap-general digest, Vol 1 #512 - 2 msgs > Date: Tue, 20 Apr 2004 08:33:20 -0400 > > I am not sure exactly what you are trying to do. Do you need to create = > a NuSOAP server, a client, or both? Do you need to use WSDL? Should = > the WSDL come from an existing file? > > Scott Nichol > > Do not send e-mail directly to this e-mail address, > because it is filtered to accept only mail from > specific mail lists. > ----- Original Message -----=20 > From: "Stefan Sammut" <ssammut@xxxxxxxxxx> > To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> > Sent: Tuesday, April 20, 2004 2:36 AM > Subject: [Nusoap-general] Re: Nusoap-general digest, Vol 1 #512 - 2 msgs > > > Dear Scott, > > Thank you for your message. > So, if I download that the latest version of nusoap, is the = > LocationsPairs > MaxOccurs must be still unbounded? and its type of type array? Ultimetly = > the > client will be a .NET C# client. (I was able to declare the = > LocationsType > array[] then doing an instance for array i.e. LocationsPairsObject[1] = > =3D new > LocationsPairs() ; ...) > And the last question is after doing the above will be able to access = > the > array from PHP using $locs =3D$JTRealTimeRequest["LocationsPairs"] = > (giving me > the solution)? > > Thanks very much indeed! > > Stefan Sammut > > ----- Original Message -----=20 > From: <nusoap-general-request@xxxxxxxxxxxxxxxxxxxxx> > To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> > Sent: Tuesday, April 20, 2004 5:11 AM > Subject: Nusoap-general digest, Vol 1 #512 - 2 msgs > > > > Send Nusoap-general mailing list submissions to > > nusoap-general@xxxxxxxxxxxxxxxxxxxxx > > > > To subscribe or unsubscribe via the World Wide Web, visit > > https://lists.sourceforge.net/lists/listinfo/nusoap-general > > or, via email, send a message with subject or body 'help' to > > nusoap-general-request@xxxxxxxxxxxxxxxxxxxxx > > > > You can reach the person managing the list at > > nusoap-general-admin@xxxxxxxxxxxxxxxxxxxxx > > > > When replying, please edit your Subject line so it is more specific > > than "Re: Contents of Nusoap-general digest..." > > > > > > Today's Topics: > > > > 1. php nested array extract problem (Stefan Sammut) > > 2. Re: php nested array extract problem (Scott Nichol) > > > > -- __--__-- > > > > Message: 1 > > Reply-To: "Stefan Sammut" <ssammut@xxxxxxxxxx> > > From: "Stefan Sammut" <ssammut@xxxxxxxxxx> > > To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> > > Date: Mon, 19 Apr 2004 12:43:07 +0200 > > Organization: PTL > > Subject: [Nusoap-general] php nested array extract problem > > > > This is a multi-part message in MIME format. > > > > ------=3D_NextPart_000_0094_01C4260B.DD5075B0 > > Content-Type: text/plain; > > charset=3D"iso-8859-1" > > Content-Transfer-Encoding: quoted-printable > > > > Dear Mr. Scott /People, > > > > I had posted this sometime before, can you please give me some little = > =3D > > feed back regarding this message that I had posted. > > This is not a mulitdimentional array. Can use a nusoap function to be = > =3D > > able to extract it? > > > > Any help will be highly appreciated. > > > > Thanks a lot. > > > > > > Stefan Sammut > > > > Prev. Message > > > > > > > > Hello People, > > =3D20 > > I having a problem accessing an unbounded innrer array in PHP v.4. > > Here is the WSDL schema request type elements. > > =3D20 > > <s:element name=3D3D"webStop" type=3D3D"s0:JTRealTimeRequestType" /> > > =3D20 > > <s:complexType name=3D3D"JTRealTimeRequestType"> > > <s:sequence> > > <s:element minOccurs=3D3D"0" maxOccurs=3D3D"1" =3D > > form=3D3D"unqualified" name=3D3D"StopS > > tatusRealTimeRequest" type=3D3D"s0:StopStatusRealTimeRequestType"/> > > </s:sequence> > > </s:complexType> > > =3D20 > > <s:complexType name=3D3D"StopStatusRealTimeRequestType"> > > <s:sequence> > > <s:element minOccurs=3D3D"0" maxOccurs=3D3D"1" =3D > > form=3D3D"unqualified" name=3D3D" > > Date" type=3D3D"s:string"/> > > <s:element form=3D3D"unqualified" = > maxOccurs=3D3D"unbounded" =3D > > minOccurs=3D3D"0" n > > ame=3D3D"LocationsPairs" type=3D3D"s0:LocationsPairsType"/> > > </s:sequence> > > </s:complexType> > > <s:complexType name=3D3D"LocationsPairsType"> > > <s:all> > > <s:element form=3D3D"unqualified" maxOccurs=3D3D"1" =3D > > minOccurs=3D3D"0" name=3D3D"FromSto > > p" type=3D3D"s0:StopType"/> > > <s:element form=3D3D"unqualified" maxOccurs=3D3D"1" =3D > > minOccurs=3D3D"0" name=3D3D"ToSt > > op" type=3D3D"s0:StopType"/> > > </s:all> > > </s:complexType> > > =3D20 > > =3D20 > > =3D20 > > PHP Sample Client > > =3D20 > > $LocationsPairs[]=3D3Darray > > ( > > 'rt:FromStop' =3D3D> array > > ( > > 'rtig:NaptanStopNumber' =3D3D> 'LOC1', > > 'label' =3D3D> 'The High Street' > > ), > > 'rt:ToStop' =3D3D> array > > ( > > 'rtig:NaptanStopNumber' =3D3D> 'LOC2', > > 'label' =3D3D> 'The High Street' > > ) > > ); > > $LocationsPairs[]=3D3Darray > > ( > > 'rt:FromStop' =3D3D> array > > ( > > 'rtig:NaptanStopNumber' =3D3D> 'LONE040', > > 'label' =3D3D> 'The High Street' > > ), > > 'rt:ToStop' =3D3D> array > > ( > > 'rtig:NaptanStopNumber' =3D3D> 'LONE150', > > 'label' =3D3D> 'The High Street' > > ) > > ); > > =3D20 > > foreach ($LocationsPairs as $web) > > { > > $webstop_soap[] =3D3D new soapval('LocationsPairs', > > 'LocationsPairsType', > > $web); > > } > > / > > $JTRealTimeRequest =3D3D array ( > > 'rt:Date' =3D3D> '19/05/2004', > > $webstop_soap > > ); > > =3D20 > > $inputSoapVal=3D3Dnew soapval ("JTRealTimeRequest", =3D > > "JTRealTimeRequestType", > > $JTRealTimeRequest, '', 'http://webStop.org'); > > =3D20 > > =3D20 > > $client =3D3D new = > soapclient('http://10.1.1.2:80/infowebjt.php'); > > =3D20 > > =3D20 > > PHP Server > > =3D20 > > $locs=3D3D array($JTRealTimeRequest['LocationsPairs']); > > =3D20 > > $ct =3D3D count($locs); > > $dt =3D3D $JTRealTimeRequest["Date"]; > > create_temp_table($conn_id); > > =3D20 > > for ($i =3D3D 0 ; $i<$ct; $i++) > > { > > $floc1 =3D3D $locs[$i]["FromStop"]; > > $floc2 =3D3D $locs[$i]["ToStop"]; > > =3D20 > > The $JTRealTimeRequest is passed to the server service as a =3D > > parameter. WSDL parses OK, > > however I can't access when a have more then one element of =3D > > 'LocationsPairs']); type. i.e. > > Only When I pass one array it works..... > > =3D20 > > Any ideas please...It this a PHP issue.. > > =3D20 > > =3D20 > > =3D20 > > Thanks in advance... > > =3D20 > > =3D20 > > Stefan Sammut > > > > ------=3D_NextPart_000_0094_01C4260B.DD5075B0 > > Content-Type: text/html; > > charset=3D"iso-8859-1" > > Content-Transfer-Encoding: quoted-printable > > > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > > <HTML><HEAD> > > <META http-equiv=3D3DContent-Type content=3D3D"text/html; =3D > > charset=3D3Diso-8859-1"> > > <META content=3D3D"MSHTML 6.00.2800.1276" name=3D3DGENERATOR> > > <STYLE></STYLE> > > </HEAD> > > <BODY bgColor=3D3D#ffffff> > > <DIV><FONT face=3D3DArial size=3D3D2>Dear Mr. Scott =3D > > /People,</FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>I had posted this sometime = > before, can =3D > > you please=3D20 > > give me some little feed back regarding this message that I had=3D20 > > posted.</FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>This is not a mulitdimentional = > array. =3D > > Can use a=3D20 > > nusoap function to be able to extract it?</FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>Any help will be highly =3D > > appreciated.</FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>Thanks a lot.</FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>Stefan Sammut</FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2><STRONG><U>Prev. =3D > > Message</U></STRONG></FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>Hello People,<BR> <BR> I having a = > =3D > > problem accessing=3D20 > > an unbounded innrer array in PHP v.4.<BR> Here is the WSDL schema =3D > > request type=3D20 > > elements.<BR> <BR> <s:element name=3D3D"webStop" =3D > > type=3D3D"s0:JTRealTimeRequestType"=3D20 > > /><BR> <BR> <s:complexType=3D20 > > = > name=3D3D"JTRealTimeRequestType"><BR> &nb= > sp=3D > > ; =3D20 > > = > <s:sequence><BR> &nb= > =3D > > sp; =3D20 > > <s:element minOccurs=3D3D"0" maxOccurs=3D3D"1" = > form=3D3D"unqualified" =3D > > name=3D3D"StopS<BR>=3D20 > > tatusRealTimeRequest"=3D20 > > = > type=3D3D"s0:StopStatusRealTimeRequestType"/><BR> &nb= > sp=3D > > ; =3D20 > > </s:sequence><BR> </s:complexType><BR> <BR> =3D > > <s:complexType=3D20 > > = > name=3D3D"StopStatusRealTimeRequestType"><BR> &= > nb=3D > > sp; =3D20 > > = > <s:sequence><BR> &nb= > =3D > > sp; =3D20 > > <s:element minOccurs=3D3D"0" maxOccurs=3D3D"1" = > form=3D3D"unqualified" =3D > > name=3D3D"<BR> Date"=3D20 > > = > type=3D3D"s:string"/><BR> &nb= > sp=3D > > ; =3D20 > > <s:element form=3D3D"unqualified" maxOccurs=3D3D"unbounded" =3D > > minOccurs=3D3D"0" n<BR>=3D20 > > ame=3D3D"LocationsPairs"=3D20 > > = > type=3D3D"s0:LocationsPairsType"/><BR> =3D= > 20 > > </s:sequence><BR> </s:complexType><BR> = > <s:complexType=3D20 > > = > name=3D3D"LocationsPairsType"><BR> = > &n=3D > > bsp; =3D20 > > = > <s:all><BR> =3D= > 20 > > <s:element form=3D3D"unqualified" maxOccurs=3D3D"1" = > minOccurs=3D3D"0" =3D > > name=3D3D"FromSto<BR>=3D20 > > p"=3D20 > > = > type=3D3D"s0:StopType"/><BR> = > &n=3D > > bsp; =3D20 > > <s:element form=3D3D"unqualified" maxOccurs=3D3D"1" = > minOccurs=3D3D"0" =3D > > name=3D3D"ToSt<BR> op"=3D20 > > type=3D3D"s0:StopType"/><BR> =3D > > </s:all><BR>=3D20 > > </s:complexType><BR> <BR> <BR> <BR> PHP Sample Client<BR> = > <BR>=3D20 > > $LocationsPairs[]=3D3Darray<BR>=3D20 > > = > (<BR> =3D= > 20 > > 'rt:FromStop' =3D3D>=3D20 > > = > array<BR> &nbs= > =3D > > p; =3D20 > > = > (<BR> &n= > =3D > > = > bsp; &nb= > =3D > > sp;=3D20 > > 'rtig:NaptanStopNumber' =3D3D>=3D20 > > = > 'LOC1',<BR> &n= > =3D > > = > bsp; &nb= > =3D > > sp; =3D20 > > 'label' =3D3D> 'The High=3D20 > > = > Street'<BR> &n= > =3D > > bsp; =3D20 > > = > ),<BR> &= > =3D > > nbsp; =3D20 > > 'rt:ToStop' =3D3D>=3D20 > > = > array<BR> &nbs= > =3D > > p; =3D20 > > = > (<BR> &n= > =3D > > = > bsp; &nb= > =3D > > sp;=3D20 > > 'rtig:NaptanStopNumber' =3D3D>=3D20 > > = > 'LOC2',<BR> &n= > =3D > > = > bsp; &nb= > =3D > > sp; =3D20 > > 'label' =3D3D> 'The High=3D20 > > = > Street'<BR> &n= > =3D > > bsp; =3D20 > > )<BR> );<BR> $LocationsPairs[]=3D3Darray<BR>=3D20 > > = > (<BR> &n= > =3D > > bsp; =3D20 > > 'rt:FromStop' =3D3D>=3D20 > > = > array<BR> &nbs= > =3D > > p; =3D20 > > = > (<BR> &n= > =3D > > = > bsp; &nb= > =3D > > sp;=3D20 > > 'rtig:NaptanStopNumber' =3D3D>=3D20 > > = > 'LONE040',<BR>  = > =3D > > = > ; = > =3D > > =3D20 > > 'label' =3D3D> 'The High=3D20 > > = > Street'<BR> &n= > =3D > > bsp; =3D20 > > = > ),<BR> &= > =3D > > nbsp; =3D20 > > 'rt:ToStop' =3D3D>=3D20 > > = > array<BR> &nbs= > =3D > > p; =3D20 > > = > (<BR> &n= > =3D > > = > bsp; &nb= > =3D > > sp;=3D20 > > 'rtig:NaptanStopNumber' =3D3D>=3D20 > > = > 'LONE150',<BR>  = > =3D > > = > ; = > =3D > > =3D20 > > 'label' =3D3D> 'The High=3D20 > > = > Street'<BR> &n= > =3D > > bsp; =3D20 > > )<BR> );<BR> <BR> foreach ($LocationsPairs as =3D > > $web)<BR> =3D20 > > {<BR> $webstop_soap[] =3D3D new=3D20 > > = > soapval('LocationsPairs',<BR> &n= > =3D > > bsp; =3D20 > > = > 'LocationsPairsType',<BR> = > =3D > > =3D20 > > $web);<BR> }<BR> =3D > > /<BR> =3D20 > > $JTRealTimeRequest =3D3D array=3D20 > > = > (<BR> &n= > =3D > > bsp;=3D20 > > 'rt:Date' =3D3D>=3D20 > > = > '19/05/2004',<BR> &n= > =3D > > bsp; =3D20 > > = > $webstop_soap<BR> = > =3D > > );<BR>=3D20 > > <BR> $inputSoapVal=3D3Dnew soapval ("JTRealTimeRequest",=3D20 > > "JTRealTimeRequestType",<BR> $JTRealTimeRequest, '', '<A=3D20 > > href=3D3D"http://webstop.org'/" =3D > > target=3D3D_NEW>http://webStop.org'</A>);<BR> <BR>=3D20 > > <BR> $client =3D3D new =3D > > soapclient('<A=3D20 > > href=3D3D"http://10.1.1.2/infowebjt.php'"=3D20 > > target=3D3D_NEW>http://10.1.1.2:80/infowebjt.php'</A>);<BR> <BR> <BR> = > PHP =3D > > Server<BR>=3D20 > > <BR> $locs=3D3D array($JTRealTimeRequest['LocationsPairs']);<BR>=3D20 > > <BR> $ct =3D3D count($locs);<BR> = > $dt =3D > > =3D3D=3D20 > > $JTRealTimeRequest["Date"];<BR> =3D > > create_temp_table($conn_id);<BR>=3D20 > > <BR> for ($i =3D3D 0 ; $i<$ct; $i++)<BR> {<BR> $floc1 = > =3D3D=3D20 > > $locs[$i]["FromStop"];<BR> $floc2 =3D3D =3D > > $locs[$i]["ToStop"];<BR>=3D20 > > <BR> The $JTRealTimeRequest is passed to the server = > service =3D > > as a=3D20 > > parameter. WSDL parses OK,<BR>however I can't access when a have more = > =3D > > then one=3D20 > > element of 'LocationsPairs']); type. i.e.<BR>Only When I pass = > one =3D > > array it=3D20 > > works.....<BR> <BR> Any ideas please...It this a PHP issue..<BR> <BR> = > =3D > > <BR> <BR>=3D20 > > Thanks in advance...<BR> <BR> <BR> Stefan =3D > > Sammut<BR></DIV></FONT></BODY></HTML> > > > > ------=3D_NextPart_000_0094_01C4260B.DD5075B0-- > > > > > > > > -- __--__-- > > > > Message: 2 > > From: "Scott Nichol" <snicholnews@xxxxxxxxxxxxxxx> > > To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> > > Subject: Re: [Nusoap-general] php nested array extract problem > > Date: Mon, 19 Apr 2004 09:44:47 -0400 > > > > The element > > > > <s:element form=3D3D"unqualified" maxOccurs=3D3D"unbounded" =3D > > minOccurs=3D3D"0" > > name=3D3D"LocationsPairs" type=3D3D"s0:LocationsPairsType"/> > > > > is what I call a doc/lit array, because it is the XML schema construct = > =3D > > that most closely represents a programming language array. An =3D > > rpc/encoded service would not use this construct, but would instead = > use =3D > > the Array type defined by SOAP encoding. > > > > With the latest CVS revision of nusoap.php, there is client support = > for =3D > > serializing doc/lit arrays. Specifically, the code now interprets = > such =3D > > a construct within the WSDL as corresponding to a PHP array and = > creates =3D > > the XML accordingly. However, NuSOAP does not yet allow the client to = > =3D > > correctly de-serialize a SOAP payload with a doc/lit array. > > > > A NuSOAP server similarly cannot de-serialize a doc/lit array. It = > will =3D > > get this capability at the same time the client does, which could be = > =3D > > soon. There is the larger problem, though, that a NuSOAP server = > cannot =3D > > truly support doc/lit WSDL. The WSDL for a NuSOAP service must be =3D > > rpc/encoded. > > > > Scott Nichol > > > > Do not send e-mail directly to this e-mail address, > > because it is filtered to accept only mail from > > specific mail lists. > > ----- Original Message -----=3D20 > > From: "Stefan Sammut" <ssammut@xxxxxxxxxx> > > To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> > > Sent: Monday, April 19, 2004 6:43 AM > > Subject: [Nusoap-general] php nested array extract problem > > > > > > Dear Mr. Scott /People, > > > > I had posted this sometime before, can you please give me some little = > =3D > > feed back regarding this message that I had posted. > > This is not a mulitdimentional array. Can use a nusoap function to be = > =3D > > able to extract it? > > > > Any help will be highly appreciated. > > > > Thanks a lot. > > > > > > Stefan Sammut > > > > Prev. Message > > > > > > > > Hello People, > > =3D20 > > I having a problem accessing an unbounded innrer array in PHP v.4. > > Here is the WSDL schema request type elements. > > =3D20 > > <s:element name=3D3D"webStop" type=3D3D"s0:JTRealTimeRequestType" /> > > =3D20 > > <s:complexType name=3D3D"JTRealTimeRequestType"> > > <s:sequence> > > <s:element minOccurs=3D3D"0" maxOccurs=3D3D"1" =3D > > form=3D3D"unqualified" name=3D3D"StopS > > tatusRealTimeRequest" type=3D3D"s0:StopStatusRealTimeRequestType"/> > > </s:sequence> > > </s:complexType> > > =3D20 > > <s:complexType name=3D3D"StopStatusRealTimeRequestType"> > > <s:sequence> > > <s:element minOccurs=3D3D"0" maxOccurs=3D3D"1" =3D > > form=3D3D"unqualified" name=3D3D" > > Date" type=3D3D"s:string"/> > > <s:element form=3D3D"unqualified" = > maxOccurs=3D3D"unbounded" =3D > > minOccurs=3D3D"0" n > > ame=3D3D"LocationsPairs" type=3D3D"s0:LocationsPairsType"/> > > </s:sequence> > > </s:complexType> > > <s:complexType name=3D3D"LocationsPairsType"> > > <s:all> > > <s:element form=3D3D"unqualified" maxOccurs=3D3D"1" =3D > > minOccurs=3D3D"0" name=3D3D"FromSto > > p" type=3D3D"s0:StopType"/> > > <s:element form=3D3D"unqualified" maxOccurs=3D3D"1" =3D > > minOccurs=3D3D"0" name=3D3D"ToSt > > op" type=3D3D"s0:StopType"/> > > </s:all> > > </s:complexType> > > =3D20 > > =3D20 > > =3D20 > > PHP Sample Client > > =3D20 > > $LocationsPairs[]=3D3Darray > > ( > > 'rt:FromStop' =3D3D> array > > ( > > 'rtig:NaptanStopNumber' =3D3D> 'LOC1', > > 'label' =3D3D> 'The High Street' > > ), > > 'rt:ToStop' =3D3D> array > > ( > > 'rtig:NaptanStopNumber' =3D3D> 'LOC2', > > 'label' =3D3D> 'The High Street' > > ) > > ); > > $LocationsPairs[]=3D3Darray > > ( > > 'rt:FromStop' =3D3D> array > > ( > > 'rtig:NaptanStopNumber' =3D3D> 'LONE040', > > 'label' =3D3D> 'The High Street' > > ), > > 'rt:ToStop' =3D3D> array > > ( > > 'rtig:NaptanStopNumber' =3D3D> 'LONE150', > > 'label' =3D3D> 'The High Street' > > ) > > ); > > =3D20 > > foreach ($LocationsPairs as $web) > > { > > $webstop_soap[] =3D3D new soapval('LocationsPairs', > > 'LocationsPairsType', > > $web); > > } > > / > > $JTRealTimeRequest =3D3D array ( > > 'rt:Date' =3D3D> '19/05/2004', > > $webstop_soap > > ); > > =3D20 > > $inputSoapVal=3D3Dnew soapval ("JTRealTimeRequest", =3D > > "JTRealTimeRequestType", > > $JTRealTimeRequest, '', 'http://webStop.org'); > > =3D20 > > =3D20 > > $client =3D3D new = > soapclient('http://10.1.1.2:80/infowebjt.php'); > > =3D20 > > =3D20 > > PHP Server > > =3D20 > > $locs=3D3D array($JTRealTimeRequest['LocationsPairs']); > > =3D20 > > $ct =3D3D count($locs); > > $dt =3D3D $JTRealTimeRequest["Date"]; > > create_temp_table($conn_id); > > =3D20 > > for ($i =3D3D 0 ; $i<$ct; $i++) > > { > > $floc1 =3D3D $locs[$i]["FromStop"]; > > $floc2 =3D3D $locs[$i]["ToStop"]; > > =3D20 > > The $JTRealTimeRequest is passed to the server service as a =3D > > parameter. WSDL parses OK, > > however I can't access when a have more then one element of =3D > > 'LocationsPairs']); type. i.e. > > Only When I pass one array it works..... > > =3D20 > > Any ideas please...It this a PHP issue.. > > =3D20 > > =3D20 > > =3D20 > > Thanks in advance... > > =3D20 > > =3D20 > > Stefan Sammut > > > > > > > > > > -- __--__-- > > > > _______________________________________________ > > Nusoap-general mailing list > > Nusoap-general@xxxxxxxxxxxxxxxxxxxxx > > https://lists.sourceforge.net/lists/listinfo/nusoap-general > > > > > > End of Nusoap-general Digest > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dcli= > ck > _______________________________________________ > Nusoap-general mailing list > Nusoap-general@xxxxxxxxxxxxxxxxxxxxx > https://lists.sourceforge.net/lists/listinfo/nusoap-general > > > > --__--__-- > > Message: 2 > From: "Scott Nichol" <snicholnews@xxxxxxxxxxxxxxx> > To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> > Subject: Re: [Nusoap-general] Re: Nusoap-general digest, Vol 1 #512 - 2 msgs > Date: Tue, 20 Apr 2004 08:40:02 -0400 > > The SOAP built into PHP 5 is totally separate code. It is a PHP = > extension written in C++. The client functions appear to support most = > of what NuSOAP does, but not proxies (and I am not sure about digest = > authentication). The server does not allow you to specify WSDL = > programmatically: you always need to create your own. > > Because the PHP 5 extension uses SoapClient as a class name, the NuSOAP = > soapclient class may have to be renamed soon. > > Scott Nichol > > Do not send e-mail directly to this e-mail address, > because it is filtered to accept only mail from > specific mail lists. > ----- Original Message -----=20 > From: "Stefan Sammut" <ssammut@xxxxxxxxxx> > To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> > Sent: Tuesday, April 20, 2004 3:22 AM > Subject: [Nusoap-general] Re: Nusoap-general digest, Vol 1 #512 - 2 msgs > > > Dear Scott, > > Also does PHP 5 , use your last version of SOAP build in? As regards to = > SOAP > are there benefits in for using PHP 5 instead of php 4.3 and nusoap.php. > > Thanks again > > Stefan > ----- Original Message -----=20 > From: <nusoap-general-request@xxxxxxxxxxxxxxxxxxxxx> > To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> > Sent: Tuesday, April 20, 2004 5:11 AM > Subject: Nusoap-general digest, Vol 1 #512 - 2 msgs > > > > Send Nusoap-general mailing list submissions to > > nusoap-general@xxxxxxxxxxxxxxxxxxxxx > > > > To subscribe or unsubscribe via the World Wide Web, visit > > https://lists.sourceforge.net/lists/listinfo/nusoap-general > > or, via email, send a message with subject or body 'help' to > > nusoap-general-request@xxxxxxxxxxxxxxxxxxxxx > > > > You can reach the person managing the list at > > nusoap-general-admin@xxxxxxxxxxxxxxxxxxxxx > > > > When replying, please edit your Subject line so it is more specific > > than "Re: Contents of Nusoap-general digest..." > > > > > > Today's Topics: > > > > 1. php nested array extract problem (Stefan Sammut) > > 2. Re: php nested array extract problem (Scott Nichol) > > > > -- __--__-- > > > > Message: 1 > > Reply-To: "Stefan Sammut" <ssammut@xxxxxxxxxx> > > From: "Stefan Sammut" <ssammut@xxxxxxxxxx> > > To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> > > Date: Mon, 19 Apr 2004 12:43:07 +0200 > > Organization: PTL > > Subject: [Nusoap-general] php nested array extract problem > > > > This is a multi-part message in MIME format. > > > > ------=3D_NextPart_000_0094_01C4260B.DD5075B0 > > Content-Type: text/plain; > > charset=3D"iso-8859-1" > > Content-Transfer-Encoding: quoted-printable > > > > Dear Mr. Scott /People, > > > > I had posted this sometime before, can you please give me some little = > =3D > > feed back regarding this message that I had posted. > > This is not a mulitdimentional array. Can use a nusoap function to be = > =3D > > able to extract it? > > > > Any help will be highly appreciated. > > > > Thanks a lot. > > > > > > Stefan Sammut > > > > Prev. Message > > > > > > > > Hello People, > > =3D20 > > I having a problem accessing an unbounded innrer array in PHP v.4. > > Here is the WSDL schema request type elements. > > =3D20 > > <s:element name=3D3D"webStop" type=3D3D"s0:JTRealTimeRequestType" /> > > =3D20 > > <s:complexType name=3D3D"JTRealTimeRequestType"> > > <s:sequence> > > <s:element minOccurs=3D3D"0" maxOccurs=3D3D"1" =3D > > form=3D3D"unqualified" name=3D3D"StopS > > tatusRealTimeRequest" type=3D3D"s0:StopStatusRealTimeRequestType"/> > > </s:sequence> > > </s:complexType> > > =3D20 > > <s:complexType name=3D3D"StopStatusRealTimeRequestType"> > > <s:sequence> > > <s:element minOccurs=3D3D"0" maxOccurs=3D3D"1" =3D > > form=3D3D"unqualified" name=3D3D" > > Date" type=3D3D"s:string"/> > > <s:element form=3D3D"unqualified" = > maxOccurs=3D3D"unbounded" =3D > > minOccurs=3D3D"0" n > > ame=3D3D"LocationsPairs" type=3D3D"s0:LocationsPairsType"/> > > </s:sequence> > > </s:complexType> > > <s:complexType name=3D3D"LocationsPairsType"> > > <s:all> > > <s:element form=3D3D"unqualified" maxOccurs=3D3D"1" =3D > > minOccurs=3D3D"0" name=3D3D"FromSto > > p" type=3D3D"s0:StopType"/> > > <s:element form=3D3D"unqualified" maxOccurs=3D3D"1" =3D > > minOccurs=3D3D"0" name=3D3D"ToSt > > op" type=3D3D"s0:StopType"/> > > </s:all> > > </s:complexType> > > =3D20 > > =3D20 > > =3D20 > > PHP Sample Client > > =3D20 > > $LocationsPairs[]=3D3Darray > > ( > > 'rt:FromStop' =3D3D> array > > ( > > 'rtig:NaptanStopNumber' =3D3D> 'LOC1', > > 'label' =3D3D> 'The High Street' > > ), > > 'rt:ToStop' =3D3D> array > > ( > > 'rtig:NaptanStopNumber' =3D3D> 'LOC2', > > 'label' =3D3D> 'The High Street' > > ) > > ); > > $LocationsPairs[]=3D3Darray > > ( > > 'rt:FromStop' =3D3D> array > > ( > > 'rtig:NaptanStopNumber' =3D3D> 'LONE040', > > 'label' =3D3D> 'The High Street' > > ), > > 'rt:ToStop' =3D3D> array > > ( > > 'rtig:NaptanStopNumber' =3D3D> 'LONE150', > > 'label' =3D3D> 'The High Street' > > ) > > ); > > =3D20 > > foreach ($LocationsPairs as $web) > > { > > $webstop_soap[] =3D3D new soapval('LocationsPairs', > > 'LocationsPairsType', > > $web); > > } > > / > > $JTRealTimeRequest =3D3D array ( > > 'rt:Date' =3D3D> '19/05/2004', > > $webstop_soap > > ); > > =3D20 > > $inputSoapVal=3D3Dnew soapval ("JTRealTimeRequest", =3D > > "JTRealTimeRequestType", > > $JTRealTimeRequest, '', 'http://webStop.org'); > > =3D20 > > =3D20 > > $client =3D3D new = > soapclient('http://10.1.1.2:80/infowebjt.php'); > > =3D20 > > =3D20 > > PHP Server > > =3D20 > > $locs=3D3D array($JTRealTimeRequest['LocationsPairs']); > > =3D20 > > $ct =3D3D count($locs); > > $dt =3D3D $JTRealTimeRequest["Date"]; > > create_temp_table($conn_id); > > =3D20 > > for ($i =3D3D 0 ; $i<$ct; $i++) > > { > > $floc1 =3D3D $locs[$i]["FromStop"]; > > $floc2 =3D3D $locs[$i]["ToStop"]; > > =3D20 > > The $JTRealTimeRequest is passed to the server service as a =3D > > parameter. WSDL parses OK, > > however I can't access when a have more then one element of =3D > > 'LocationsPairs']); type. i.e. > > Only When I pass one array it works..... > > =3D20 > > Any ideas please...It this a PHP issue.. > > =3D20 > > =3D20 > > =3D20 > > Thanks in advance... > > =3D20 > > =3D20 > > Stefan Sammut > > > > ------=3D_NextPart_000_0094_01C4260B.DD5075B0 > > Content-Type: text/html; > > charset=3D"iso-8859-1" > > Content-Transfer-Encoding: quoted-printable > > > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > > <HTML><HEAD> > > <META http-equiv=3D3DContent-Type content=3D3D"text/html; =3D > > charset=3D3Diso-8859-1"> > > <META content=3D3D"MSHTML 6.00.2800.1276" name=3D3DGENERATOR> > > <STYLE></STYLE> > > </HEAD> > > <BODY bgColor=3D3D#ffffff> > > <DIV><FONT face=3D3DArial size=3D3D2>Dear Mr. Scott =3D > > /People,</FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>I had posted this sometime = > before, can =3D > > you please=3D20 > > give me some little feed back regarding this message that I had=3D20 > > posted.</FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>This is not a mulitdimentional = > array. =3D > > Can use a=3D20 > > nusoap function to be able to extract it?</FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>Any help will be highly =3D > > appreciated.</FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>Thanks a lot.</FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>Stefan Sammut</FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2><STRONG><U>Prev. =3D > > Message</U></STRONG></FONT></DIV> > > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > > <DIV><FONT face=3D3DArial size=3D3D2>Hello People,<BR> <BR> I having a = > =3D > > problem accessing=3D20 > > an unbounded innrer array in PHP v.4.<BR> Here is the WSDL schema =3D > > request type=3D20 > > elements.<BR> <BR> <s:element name=3D3D"webStop" =3D > > type=3D3D"s0:JTRealTimeRequestType"=3D20 > > /><BR> <BR> <s:complexType=3D20 > > = > name=3D3D"JTRealTimeRequestType"><BR> &nb= > sp=3D > > ; =3D20 > > = > <s:sequence><BR> &nb= > =3D > > sp; =3D20 > > <s:element minOccurs=3D3D"0" maxOccurs=3D3D"1" = > form=3D3D"unqualified" =3D > > name=3D3D"StopS<BR>=3D20 > > tatusRealTimeRequest"=3D20 > > = > type=3D3D"s0:StopStatusRealTimeRequestType"/><BR> &nb= > sp=3D > > ; =3D20 > > </s:sequence><BR> </s:complexType><BR> <BR> =3D > > <s:complexType=3D20 > > = > name=3D3D"StopStatusRealTimeRequestType"><BR> &= > nb=3D > > sp; =3D20 > > = > <s:sequence><BR> &nb= > =3D > > sp; =3D20 > > <s:element minOccurs=3D3D"0" maxOccurs=3D3D"1" = > form=3D3D"unqualified" =3D > > name=3D3D"<BR> Date"=3D20 > > = > type=3D3D"s:string"/><BR> &nb= > sp=3D > > ; =3D20 > > <s:element form=3D3D"unqualified" maxOccurs=3D3D"unbounded" =3D > > minOccurs=3D3D"0" n<BR>=3D20 > > ame=3D3D"LocationsPairs"=3D20 > > = > type=3D3D"s0:LocationsPairsType"/><BR> =3D= > 20 > > </s:sequence><BR> </s:complexType><BR> = > <s:complexType=3D20 > > = > name=3D3D"LocationsPairsType"><BR> = > &n=3D > > bsp; =3D20 > > = > <s:all><BR> =3D= > 20 > > <s:element form=3D3D"unqualified" maxOccurs=3D3D"1" = > minOccurs=3D3D"0" =3D > > name=3D3D"FromSto<BR>=3D20 > > p"=3D20 > > = > type=3D3D"s0:StopType"/><BR> = > &n=3D > > bsp; =3D20 > > <s:element form=3D3D"unqualified" maxOccurs=3D3D"1" = > minOccurs=3D3D"0" =3D > > name=3D3D"ToSt<BR> op"=3D20 > > type=3D3D"s0:StopType"/><BR> =3D > > </s:all><BR>=3D20 > > </s:complexType><BR> <BR> <BR> <BR> PHP Sample Client<BR> = > <BR>=3D20 > > $LocationsPairs[]=3D3Darray<BR>=3D20 > > = > (<BR> =3D= > 20 > > 'rt:FromStop' =3D3D>=3D20 > > = > array<BR> &nbs= > =3D > > p; =3D20 > > = > (<BR> &n= > =3D > > = > bsp; &nb= > =3D > > sp;=3D20 > > 'rtig:NaptanStopNumber' =3D3D>=3D20 > > = > 'LOC1',<BR> &n= > =3D > > = > bsp; &nb= > =3D > > sp; =3D20 > > 'label' =3D3D> 'The High=3D20 > > = > Street'<BR> &n= > =3D > > bsp; =3D20 > > = > ),<BR> &= > =3D > > nbsp; =3D20 > > 'rt:ToStop' =3D3D>=3D20 > > = > array<BR> &nbs= > =3D > > p; =3D20 > > = > (<BR> &n= > =3D > > = > bsp; &nb= > =3D > > sp;=3D20 > > 'rtig:NaptanStopNumber' =3D3D>=3D20 > > = > 'LOC2',<BR> &n= > =3D > > = > bsp; &nb= > =3D > > sp; =3D20 > > 'label' =3D3D> 'The High=3D20 > > = > Street'<BR> &n= > =3D > > bsp; =3D20 > > )<BR> );<BR> $LocationsPairs[]=3D3Darray<BR>=3D20 > > = > (<BR> &n= > =3D > > bsp; =3D20 > > 'rt:FromStop' =3D3D>=3D20 > > = > array<BR> &nbs= > =3D > > p; =3D20 > > = > (<BR> &n= > =3D > > = > bsp; &nb= > =3D > > sp;=3D20 > > 'rtig:NaptanStopNumber' =3D3D>=3D20 > > = > 'LONE040',<BR>  = > =3D > > = > ; = > =3D > > =3D20 > > 'label' =3D3D> 'The High=3D20 > > = > Street'<BR> &n= > =3D > > bsp; =3D20 > > = > ),<BR> &= > =3D > > nbsp; =3D20 > > 'rt:ToStop' =3D3D>=3D20 > > = > array<BR> &nbs= > =3D > > p; =3D20 > > = > (<BR> &n= > =3D > > = > bsp; &nb= > =3D > > sp;=3D20 > > 'rtig:NaptanStopNumber' =3D3D>=3D20 > > = > 'LONE150',<BR>  = > =3D > > = > ; = > =3D > > =3D20 > > 'label' =3D3D> 'The High=3D20 > > = > Street'<BR> &n= > =3D > > bsp; =3D20 > > )<BR> );<BR> <BR> foreach ($LocationsPairs as =3D > > $web)<BR> =3D20 > > {<BR> $webstop_soap[] =3D3D new=3D20 > > = > soapval('LocationsPairs',<BR> &n= > =3D > > bsp; =3D20 > > = > 'LocationsPairsType',<BR> = > =3D > > =3D20 > > $web);<BR> }<BR> =3D > > /<BR> =3D20 > > $JTRealTimeRequest =3D3D array=3D20 > > = > (<BR> &n= > =3D > > bsp;=3D20 > > 'rt:Date' =3D3D>=3D20 > > = > '19/05/2004',<BR> &n= > =3D > > bsp; =3D20 > > = > $webstop_soap<BR> = > =3D > > );<BR>=3D20 > > <BR> $inputSoapVal=3D3Dnew soapval ("JTRealTimeRequest",=3D20 > > "JTRealTimeRequestType",<BR> $JTRealTimeRequest, '', '<A=3D20 > > href=3D3D"http://webstop.org'/" =3D > > target=3D3D_NEW>http://webStop.org'</A>);<BR> <BR>=3D20 > > <BR> $client =3D3D new =3D > > soapclient('<A=3D20 > > href=3D3D"http://10.1.1.2/infowebjt.php'"=3D20 > > target=3D3D_NEW>http://10.1.1.2:80/infowebjt.php'</A>);<BR> <BR> <BR> = > PHP =3D > > Server<BR>=3D20 > > <BR> $locs=3D3D array($JTRealTimeRequest['LocationsPairs']);<BR>=3D20 > > <BR> $ct =3D3D count($locs);<BR> = > $dt =3D > > =3D3D=3D20 > > $JTRealTimeRequest["Date"];<BR> =3D > > create_temp_table($conn_id);<BR>=3D20 > > <BR> for ($i =3D3D 0 ; $i<$ct; $i++)<BR> {<BR> $floc1 = > =3D3D=3D20 > > $locs[$i]["FromStop"];<BR> $floc2 =3D3D =3D > > $locs[$i]["ToStop"];<BR>=3D20 > > <BR> The $JTRealTimeRequest is passed to the server = > service =3D > > as a=3D20 > > parameter. WSDL parses OK,<BR>however I can't access when a have more = > =3D > > then one=3D20 > > element of 'LocationsPairs']); type. i.e.<BR>Only When I pass = > one =3D > > array it=3D20 > > works.....<BR> <BR> Any ideas please...It this a PHP issue..<BR> <BR> = > =3D > > <BR> <BR>=3D20 > > Thanks in advance...<BR> <BR> <BR> Stefan =3D > > Sammut<BR></DIV></FONT></BODY></HTML> > > > > ------=3D_NextPart_000_0094_01C4260B.DD5075B0-- > > > > > > > > -- __--__-- > > > > Message: 2 > > From: "Scott Nichol" <snicholnews@xxxxxxxxxxxxxxx> > > To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> > > Subject: Re: [Nusoap-general] php nested array extract problem > > Date: Mon, 19 Apr 2004 09:44:47 -0400 > > > > The element > > > > <s:element form=3D3D"unqualified" maxOccurs=3D3D"unbounded" =3D > > minOccurs=3D3D"0" > > name=3D3D"LocationsPairs" type=3D3D"s0:LocationsPairsType"/> > > > > is what I call a doc/lit array, because it is the XML schema construct = > =3D > > that most closely represents a programming language array. An =3D > > rpc/encoded service would not use this construct, but would instead = > use =3D > > the Array type defined by SOAP encoding. > > > > With the latest CVS revision of nusoap.php, there is client support = > for =3D > > serializing doc/lit arrays. Specifically, the code now interprets = > such =3D > > a construct within the WSDL as corresponding to a PHP array and = > creates =3D > > the XML accordingly. However, NuSOAP does not yet allow the client to = > =3D > > correctly de-serialize a SOAP payload with a doc/lit array. > > > > A NuSOAP server similarly cannot de-serialize a doc/lit array. It = > will =3D > > get this capability at the same time the client does, which could be = > =3D > > soon. There is the larger problem, though, that a NuSOAP server = > cannot =3D > > truly support doc/lit WSDL. The WSDL for a NuSOAP service must be =3D > > rpc/encoded. > > > > Scott Nichol > > > > Do not send e-mail directly to this e-mail address, > > because it is filtered to accept only mail from > > specific mail lists. > > ----- Original Message -----=3D20 > > From: "Stefan Sammut" <ssammut@xxxxxxxxxx> > > To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> > > Sent: Monday, April 19, 2004 6:43 AM > > Subject: [Nusoap-general] php nested array extract problem > > > > > > Dear Mr. Scott /People, > > > > I had posted this sometime before, can you please give me some little = > =3D > > feed back regarding this message that I had posted. > > This is not a mulitdimentional array. Can use a nusoap function to be = > =3D > > able to extract it? > > > > Any help will be highly appreciated. > > > > Thanks a lot. > > > > > > Stefan Sammut > > > > Prev. Message > > > > > > > > Hello People, > > =3D20 > > I having a problem accessing an unbounded innrer array in PHP v.4. > > Here is the WSDL schema request type elements. > > =3D20 > > <s:element name=3D3D"webStop" type=3D3D"s0:JTRealTimeRequestType" /> > > =3D20 > > <s:complexType name=3D3D"JTRealTimeRequestType"> > > <s:sequence> > > <s:element minOccurs=3D3D"0" maxOccurs=3D3D"1" =3D > > form=3D3D"unqualified" name=3D3D"StopS > > tatusRealTimeRequest" type=3D3D"s0:StopStatusRealTimeRequestType"/> > > </s:sequence> > > </s:complexType> > > =3D20 > > <s:complexType name=3D3D"StopStatusRealTimeRequestType"> > > <s:sequence> > > <s:element minOccurs=3D3D"0" maxOccurs=3D3D"1" =3D > > form=3D3D"unqualified" name=3D3D" > > Date" type=3D3D"s:string"/> > > <s:element form=3D3D"unqualified" = > maxOccurs=3D3D"unbounded" =3D > > minOccurs=3D3D"0" n > > ame=3D3D"LocationsPairs" type=3D3D"s0:LocationsPairsType"/> > > </s:sequence> > > </s:complexType> > > <s:complexType name=3D3D"LocationsPairsType"> > > <s:all> > > <s:element form=3D3D"unqualified" maxOccurs=3D3D"1" =3D > > minOccurs=3D3D"0" name=3D3D"FromSto > > p" type=3D3D"s0:StopType"/> > > <s:element form=3D3D"unqualified" maxOccurs=3D3D"1" =3D > > minOccurs=3D3D"0" name=3D3D"ToSt > > op" type=3D3D"s0:StopType"/> > > </s:all> > > </s:complexType> > > =3D20 > > =3D20 > > =3D20 > > PHP Sample Client > > =3D20 > > $LocationsPairs[]=3D3Darray > > ( > > 'rt:FromStop' =3D3D> array > > ( > > 'rtig:NaptanStopNumber' =3D3D> 'LOC1', > > 'label' =3D3D> 'The High Street' > > ), > > 'rt:ToStop' =3D3D> array > > ( > > 'rtig:NaptanStopNumber' =3D3D> 'LOC2', > > 'label' =3D3D> 'The High Street' > > ) > > ); > > $LocationsPairs[]=3D3Darray > > ( > > 'rt:FromStop' =3D3D> array > > ( > > 'rtig:NaptanStopNumber' =3D3D> 'LONE040', > > 'label' =3D3D> 'The High Street' > > ), > > 'rt:ToStop' =3D3D> array > > ( > > 'rtig:NaptanStopNumber' =3D3D> 'LONE150', > > 'label' =3D3D> 'The High Street' > > ) > > ); > > =3D20 > > foreach ($LocationsPairs as $web) > > { > > $webstop_soap[] =3D3D new soapval('LocationsPairs', > > 'LocationsPairsType', > > $web); > > } > > / > > $JTRealTimeRequest =3D3D array ( > > 'rt:Date' =3D3D> '19/05/2004', > > $webstop_soap > > ); > > =3D20 > > $inputSoapVal=3D3Dnew soapval ("JTRealTimeRequest", =3D > > "JTRealTimeRequestType", > > $JTRealTimeRequest, '', 'http://webStop.org'); > > =3D20 > > =3D20 > > $client =3D3D new = > soapclient('http://10.1.1.2:80/infowebjt.php'); > > =3D20 > > =3D20 > > PHP Server > > =3D20 > > $locs=3D3D array($JTRealTimeRequest['LocationsPairs']); > > =3D20 > > $ct =3D3D count($locs); > > $dt =3D3D $JTRealTimeRequest["Date"]; > > create_temp_table($conn_id); > > =3D20 > > for ($i =3D3D 0 ; $i<$ct; $i++) > > { > > $floc1 =3D3D $locs[$i]["FromStop"]; > > $floc2 =3D3D $locs[$i]["ToStop"]; > > =3D20 > > The $JTRealTimeRequest is passed to the server service as a =3D > > parameter. WSDL parses OK, > > however I can't access when a have more then one element of =3D > > 'LocationsPairs']); type. i.e. > > Only When I pass one array it works..... > > =3D20 > > Any ideas please...It this a PHP issue.. > > =3D20 > > =3D20 > > =3D20 > > Thanks in advance... > > =3D20 > > =3D20 > > Stefan Sammut > > > > > > > > > > -- __--__-- > > > > _______________________________________________ > > Nusoap-general mailing list > > Nusoap-general@xxxxxxxxxxxxxxxxxxxxx > > https://lists.sourceforge.net/lists/listinfo/nusoap-general > > > > > > End of Nusoap-general Digest > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dcli= > ck > _______________________________________________ > Nusoap-general mailing list > Nusoap-general@xxxxxxxxxxxxxxxxxxxxx > https://lists.sourceforge.net/lists/listinfo/nusoap-general > > > > > --__--__-- > > _______________________________________________ > Nusoap-general mailing list > Nusoap-general@xxxxxxxxxxxxxxxxxxxxx > https://lists.sourceforge.net/lists/listinfo/nusoap-general > > > End of Nusoap-general Digest ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Nusoap-general digest, Vol 1 #514 - 2 msgs: 00070, Stefan Sammut |
|---|---|
| Next by Date: | NuSOAP and SSL: 00070, Chris Boget |
| Previous by Thread: | Re: Nusoap-general digest, Vol 1 #514 - 2 msgsi: 00070, Stefan Sammut |
| Next by Thread: | NuSOAP and SSL: 00070, Chris Boget |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |