logo       

Re: Nusoap-general digest, Vol 1 #512 - 2 msgs: msg#00063

php.nusoap.general

Subject: 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] = new
LocationsPairs() ; ...)
And the last question is after doing the above will be able to access the
array from PHP using $locs =$JTRealTimeRequest["LocationsPairs"] (giving me
the solution)?

Thanks very much indeed!

Stefan Sammut

----- Original Message -----
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.
>
> ------=_NextPart_000_0094_01C4260B.DD5075B0
> Content-Type: text/plain;
> charset="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 =
> feed back regarding this message that I had posted.
> This is not a mulitdimentional array. Can use a nusoap function to be =
> able to extract it?
>
> Any help will be highly appreciated.
>
> Thanks a lot.
>
>
> Stefan Sammut
>
> Prev. Message
>
>
>
> Hello People,
> =20
> I having a problem accessing an unbounded innrer array in PHP v.4.
> Here is the WSDL schema request type elements.
> =20
> <s:element name=3D"webStop" type=3D"s0:JTRealTimeRequestType" />
> =20
> <s:complexType name=3D"JTRealTimeRequestType">
> <s:sequence>
> <s:element minOccurs=3D"0" maxOccurs=3D"1" =
> form=3D"unqualified" name=3D"StopS
> tatusRealTimeRequest" type=3D"s0:StopStatusRealTimeRequestType"/>
> </s:sequence>
> </s:complexType>
> =20
> <s:complexType name=3D"StopStatusRealTimeRequestType">
> <s:sequence>
> <s:element minOccurs=3D"0" maxOccurs=3D"1" =
> form=3D"unqualified" name=3D"
> Date" type=3D"s:string"/>
> <s:element form=3D"unqualified" maxOccurs=3D"unbounded" =
> minOccurs=3D"0" n
> ame=3D"LocationsPairs" type=3D"s0:LocationsPairsType"/>
> </s:sequence>
> </s:complexType>
> <s:complexType name=3D"LocationsPairsType">
> <s:all>
> <s:element form=3D"unqualified" maxOccurs=3D"1" =
> minOccurs=3D"0" name=3D"FromSto
> p" type=3D"s0:StopType"/>
> <s:element form=3D"unqualified" maxOccurs=3D"1" =
> minOccurs=3D"0" name=3D"ToSt
> op" type=3D"s0:StopType"/>
> </s:all>
> </s:complexType>
> =20
> =20
> =20
> PHP Sample Client
> =20
> $LocationsPairs[]=3Darray
> (
> 'rt:FromStop' =3D> array
> (
> 'rtig:NaptanStopNumber' =3D> 'LOC1',
> 'label' =3D> 'The High Street'
> ),
> 'rt:ToStop' =3D> array
> (
> 'rtig:NaptanStopNumber' =3D> 'LOC2',
> 'label' =3D> 'The High Street'
> )
> );
> $LocationsPairs[]=3Darray
> (
> 'rt:FromStop' =3D> array
> (
> 'rtig:NaptanStopNumber' =3D> 'LONE040',
> 'label' =3D> 'The High Street'
> ),
> 'rt:ToStop' =3D> array
> (
> 'rtig:NaptanStopNumber' =3D> 'LONE150',
> 'label' =3D> 'The High Street'
> )
> );
> =20
> foreach ($LocationsPairs as $web)
> {
> $webstop_soap[] =3D new soapval('LocationsPairs',
> 'LocationsPairsType',
> $web);
> }
> /
> $JTRealTimeRequest =3D array (
> 'rt:Date' =3D> '19/05/2004',
> $webstop_soap
> );
> =20
> $inputSoapVal=3Dnew soapval ("JTRealTimeRequest", =
> "JTRealTimeRequestType",
> $JTRealTimeRequest, '', 'http://webStop.org');
> =20
> =20
> $client =3D new soapclient('http://10.1.1.2:80/infowebjt.php');
> =20
> =20
> PHP Server
> =20
> $locs=3D array($JTRealTimeRequest['LocationsPairs']);
> =20
> $ct =3D count($locs);
> $dt =3D $JTRealTimeRequest["Date"];
> create_temp_table($conn_id);
> =20
> for ($i =3D 0 ; $i<$ct; $i++)
> {
> $floc1 =3D $locs[$i]["FromStop"];
> $floc2 =3D $locs[$i]["ToStop"];
> =20
> The $JTRealTimeRequest is passed to the server service as a =
> parameter. WSDL parses OK,
> however I can't access when a have more then one element of =
> 'LocationsPairs']); type. i.e.
> Only When I pass one array it works.....
> =20
> Any ideas please...It this a PHP issue..
> =20
> =20
> =20
> Thanks in advance...
> =20
> =20
> Stefan Sammut
>
> ------=_NextPart_000_0094_01C4260B.DD5075B0
> Content-Type: text/html;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META http-equiv=3DContent-Type content=3D"text/html; =
> charset=3Diso-8859-1">
> <META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR>
> <STYLE></STYLE>
> </HEAD>
> <BODY bgColor=3D#ffffff>
> <DIV><FONT face=3DArial size=3D2>Dear Mr.&nbsp;Scott&nbsp; =
> /People,</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2>I had posted this sometime before, can =
> you please=20
> give me some little feed back regarding this message that I had=20
> posted.</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2>This is not a mulitdimentional array. =
> Can use a=20
> nusoap function to be able to extract it?</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2>Any help will be highly =
> appreciated.</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2>Thanks a lot.</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2>Stefan Sammut</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2><STRONG><U>Prev. =
> Message</U></STRONG></FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2>Hello People,<BR> <BR> I having a =
> problem accessing=20
> an unbounded innrer array in PHP v.4.<BR> Here is the WSDL schema =
> request type=20
> elements.<BR> <BR> &lt;s:element name=3D"webStop" =
> type=3D"s0:JTRealTimeRequestType"=20
> /&gt;<BR> <BR> &lt;s:complexType=20
> name=3D"JTRealTimeRequestType"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
> ;&nbsp;&nbsp;=20
> &lt;s:sequence&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
> sp;&nbsp;&nbsp;=20
> &lt;s:element minOccurs=3D"0" maxOccurs=3D"1" form=3D"unqualified" =
> name=3D"StopS<BR>=20
> tatusRealTimeRequest"=20
> type=3D"s0:StopStatusRealTimeRequestType"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp=
> ;&nbsp;&nbsp;&nbsp;&nbsp;=20
> &lt;/s:sequence&gt;<BR> &lt;/s:complexType&gt;<BR> <BR> =
> &lt;s:complexType=20
> name=3D"StopStatusRealTimeRequestType"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
> sp;&nbsp;&nbsp;&nbsp;=20
> &lt;s:sequence&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
> sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
> &lt;s:element minOccurs=3D"0" maxOccurs=3D"1" form=3D"unqualified" =
> name=3D"<BR> Date"=20
> type=3D"s:string"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
> ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
> &lt;s:element form=3D"unqualified" maxOccurs=3D"unbounded" =
> minOccurs=3D"0" n<BR>=20
> ame=3D"LocationsPairs"=20
> type=3D"s0:LocationsPairsType"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
> &lt;/s:sequence&gt;<BR> &lt;/s:complexType&gt;<BR> &lt;s:complexType=20
> name=3D"LocationsPairsType"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
> bsp;&nbsp;=20
> &lt;s:all&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
> &lt;s:element form=3D"unqualified" maxOccurs=3D"1" minOccurs=3D"0" =
> name=3D"FromSto<BR>=20
> p"=20
> type=3D"s0:StopType"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
> bsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
> &lt;s:element form=3D"unqualified" maxOccurs=3D"1" minOccurs=3D"0" =
> name=3D"ToSt<BR> op"=20
> type=3D"s0:StopType"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
> &lt;/s:all&gt;<BR>=20
> &lt;/s:complexType&gt;<BR> <BR> <BR> <BR> PHP Sample Client<BR> <BR>=20
> $LocationsPairs[]=3Darray<BR>=20
> (<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
> 'rt:FromStop' =3D&gt;=20
> array<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
> p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
> (<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
> bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
> sp;=20
> 'rtig:NaptanStopNumber' =3D&gt;=20
> 'LOC1',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
> bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
> sp;&nbsp;=20
> 'label' =3D&gt; 'The High=20
> Street'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
> bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
> ),<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
> nbsp;&nbsp;&nbsp;=20
> 'rt:ToStop' =3D&gt;=20
> array<BR>&nbsp;&nb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ach ($LocationsPairs as =
> $web)<BR>&nbsp;&nbsp;&nbsp;=20
> {<BR>&nbsp;&nbsp;&nbsp; $webstop_soap[] =3D new=20
> soapval('LocationsPairs',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
> bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
> 'LocationsPairsType',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
> $web);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR> =
> /<BR>&nbsp;&nbsp;=20
> $JTRealTimeRequest =3D array=20
> (<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
> bsp;=20
> 'rt:Date' =3D&gt;=20
> '19/05/2004',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
> bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
> $webstop_soap<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
> );<BR>=20
> <BR> $inputSoapVal=3Dnew soapval ("JTRealTimeRequest",=20
> "JTRealTimeRequestType",<BR>&nbsp; $JTRealTimeRequest, '', '<A=20
> href=3D"http://webstop.org'/" =
> target=3D_NEW>http://webStop.org'</A>);<BR> <BR>=20
> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $client =3D new =
> soapclient('<A=20
> href=3D"http://10.1.1.2/infowebjt.php'"=20
> target=3D_NEW>http://10.1.1.2:80/infowebjt.php'</A>);<BR> <BR> <BR> PHP =
> Server<BR>=20
> <BR> $locs=3D array($JTRealTimeRequest['LocationsPairs']);<BR>=20
> <BR>&nbsp;&nbsp;&nbsp; $ct =3D count($locs);<BR>&nbsp;&nbsp;&nbsp; $dt =
> =3D=20
> $JTRealTimeRequest["Date"];<BR>&nbsp;&nbsp; =
> create_temp_table($conn_id);<BR>=20
> <BR>&nbsp; for ($i =3D 0 ; $i&lt;$ct; $i++)<BR> {<BR>&nbsp; $floc1 =3D=20
> $locs[$i]["FromStop"];<BR>&nbsp;&nbsp;&nbsp; $floc2 =3D =
> $locs[$i]["ToStop"];<BR>=20
> <BR> The&nbsp;&nbsp; $JTRealTimeRequest is passed to the server service =
> as a=20
> parameter. WSDL parses OK,<BR>however I can't access when a have more =
> then one=20
> element of 'LocationsPairs']);&nbsp; type. i.e.<BR>Only When I pass one =
> array it=20
> works.....<BR> <BR> Any ideas please...It this a PHP issue..<BR> <BR> =
> <BR> <BR>=20
> Thanks in advance...<BR> <BR> <BR> Stefan =
> Sammut<BR></DIV></FONT></BODY></HTML>
>
> ------=_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=3D"unqualified" maxOccurs=3D"unbounded" =
> minOccurs=3D"0"
> name=3D"LocationsPairs" type=3D"s0:LocationsPairsType"/>
>
> is what I call a doc/lit array, because it is the XML schema construct =
> that most closely represents a programming language array. An =
> rpc/encoded service would not use this construct, but would instead use =
> the Array type defined by SOAP encoding.
>
> With the latest CVS revision of nusoap.php, there is client support for =
> serializing doc/lit arrays. Specifically, the code now interprets such =
> a construct within the WSDL as corresponding to a PHP array and creates =
> the XML accordingly. However, NuSOAP does not yet allow the client to =
> correctly de-serialize a SOAP payload with a doc/lit array.
>
> A NuSOAP server similarly cannot de-serialize a doc/lit array. It will =
> get this capability at the same time the client does, which could be =
> soon. There is the larger problem, though, that a NuSOAP server cannot =
> truly support doc/lit WSDL. The WSDL for a NuSOAP service must be =
> 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 -----=20
> 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 =
> feed back regarding this message that I had posted.
> This is not a mulitdimentional array. Can use a nusoap function to be =
> able to extract it?
>
> Any help will be highly appreciated.
>
> Thanks a lot.
>
>
> Stefan Sammut
>
> Prev. Message
>
>
>
> Hello People,
> =20
> I having a problem accessing an unbounded innrer array in PHP v.4.
> Here is the WSDL schema request type elements.
> =20
> <s:element name=3D"webStop" type=3D"s0:JTRealTimeRequestType" />
> =20
> <s:complexType name=3D"JTRealTimeRequestType">
> <s:sequence>
> <s:element minOccurs=3D"0" maxOccurs=3D"1" =
> form=3D"unqualified" name=3D"StopS
> tatusRealTimeRequest" type=3D"s0:StopStatusRealTimeRequestType"/>
> </s:sequence>
> </s:complexType>
> =20
> <s:complexType name=3D"StopStatusRealTimeRequestType">
> <s:sequence>
> <s:element minOccurs=3D"0" maxOccurs=3D"1" =
> form=3D"unqualified" name=3D"
> Date" type=3D"s:string"/>
> <s:element form=3D"unqualified" maxOccurs=3D"unbounded" =
> minOccurs=3D"0" n
> ame=3D"LocationsPairs" type=3D"s0:LocationsPairsType"/>
> </s:sequence>
> </s:complexType>
> <s:complexType name=3D"LocationsPairsType">
> <s:all>
> <s:element form=3D"unqualified" maxOccurs=3D"1" =
> minOccurs=3D"0" name=3D"FromSto
> p" type=3D"s0:StopType"/>
> <s:element form=3D"unqualified" maxOccurs=3D"1" =
> minOccurs=3D"0" name=3D"ToSt
> op" type=3D"s0:StopType"/>
> </s:all>
> </s:complexType>
> =20
> =20
> =20
> PHP Sample Client
> =20
> $LocationsPairs[]=3Darray
> (
> 'rt:FromStop' =3D> array
> (
> 'rtig:NaptanStopNumber' =3D> 'LOC1',
> 'label' =3D> 'The High Street'
> ),
> 'rt:ToStop' =3D> array
> (
> 'rtig:NaptanStopNumber' =3D> 'LOC2',
> 'label' =3D> 'The High Street'
> )
> );
> $LocationsPairs[]=3Darray
> (
> 'rt:FromStop' =3D> array
> (
> 'rtig:NaptanStopNumber' =3D> 'LONE040',
> 'label' =3D> 'The High Street'
> ),
> 'rt:ToStop' =3D> array
> (
> 'rtig:NaptanStopNumber' =3D> 'LONE150',
> 'label' =3D> 'The High Street'
> )
> );
> =20
> foreach ($LocationsPairs as $web)
> {
> $webstop_soap[] =3D new soapval('LocationsPairs',
> 'LocationsPairsType',
> $web);
> }
> /
> $JTRealTimeRequest =3D array (
> 'rt:Date' =3D> '19/05/2004',
> $webstop_soap
> );
> =20
> $inputSoapVal=3Dnew soapval ("JTRealTimeRequest", =
> "JTRealTimeRequestType",
> $JTRealTimeRequest, '', 'http://webStop.org');
> =20
> =20
> $client =3D new soapclient('http://10.1.1.2:80/infowebjt.php');
> =20
> =20
> PHP Server
> =20
> $locs=3D array($JTRealTimeRequest['LocationsPairs']);
> =20
> $ct =3D count($locs);
> $dt =3D $JTRealTimeRequest["Date"];
> create_temp_table($conn_id);
> =20
> for ($i =3D 0 ; $i<$ct; $i++)
> {
> $floc1 =3D $locs[$i]["FromStop"];
> $floc2 =3D $locs[$i]["ToStop"];
> =20
> The $JTRealTimeRequest is passed to the server service as a =
> parameter. WSDL parses OK,
> however I can't access when a have more then one element of =
> 'LocationsPairs']); type. i.e.
> Only When I pass one array it works.....
> =20
> Any ideas please...It this a PHP issue..
> =20
> =20
> =20
> Thanks in advance...
> =20
> =20
> 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=1470&alloc_id=3638&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise