From: Scott N. <sni...@sc...> - 2005-04-27 15:26:00
|
Your service method is something like function mymethod(...) { ... return array("id"=3D>$id,"message"=3D>$message); } Your client might look something like $client =3D new soapclient("http://myhost/myserver.php"); $params =3D array('param1' =3D> 'value1', 'param2' =3D> 'value2'); $result =3D $client->call('mymethod', $params); echo 'id is ' . $result['id'] . '<br/>'; echo 'message is ' . $result['message'] . '<br/>'; 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: "Daniel Pozzi" <po...@un...> To: <nus...@li...> Sent: Tuesday, April 26, 2005 8:34 AM Subject: [Nusoap-general] remove headers from response or easily fetch = response values > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 >=20 > Hi there. >=20 > I'm a soap newbie and need some help. I managed to set up client and=20 > server, but the server response I get is header plus xml. I need just=20 > two simple values from the response, nothing special. the server's php = > function returns: >=20 > return array("id"=3D>$id,"message"=3D>$message); >=20 > pretty simple and that seems to work, since the corect values are in=20 > the response (graved deep in xml though). how can I fetch these two=20 > easily? >=20 > Thanks! >=20 > Dipl.Oecotroph. Daniel Pozzi > Section of Appliance Technology > University of Bonn > +49 (0)228 732384 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.4 (Darwin) >=20 > iD8DBQFCbjVcKmWYJcHN8GoRApZkAJkBopS1G+ZoCRJPyIGoNaRrEun3MwCfZAoc > 74QRaIF8NARKfhey83Rb4Cg=3D > =3DlDBn > -----END PGP SIGNATURE----- >=20 >=20 >=20 > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real = users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick > _______________________________________________ > Nusoap-general mailing list > Nus...@li... > https://lists.sourceforge.net/lists/listinfo/nusoap-general > |