Thanks for the test .
I succeed in retrieving a number. I had to add $soapclient->setHTTPProxy to connect. I don't know anything about webservices and I wonder if you know what I can put in place of $soapclient = new soapclient ('http://www.edelphi.com/scripts/KzAnyWho.exe/soap/IAnyWho'); $result=$soapclient->call ('AnyWho',$parameters,"urn:AnyWhoIntf-IAnyWho","urn:AnyWhoIntf-IAnyWho#AnyWho"); to connect to the webservice http://glkev.net.innerhost.com/glkev_ws/Currencyws.asmx I didn't find anything in the declaration satarting with "urn"; Regards. Laurent Drouet "Thalis A. Kalfigopoulos" To: Laurent Drouet <[EMAIL PROTECTED]> <[EMAIL PROTECTED] cc: t.edu> Subject: Re: [PHP] Web Services 26/06/02 17:23 You'll find sample code for both server and client in the README file of the package. I've written this client: <html> <body> <?php require_once('nusoap.php'); if(!empty($areacode) && !empty($phonenum)){ $parameters = array('AreaCode'=>$areacode,'PhoneNumber' =>$phonenum); $soapclient = new soapclient ('http://www.edelphi.com/scripts/KzAnyWho.exe/soap/IAnyWho'); $result=$soapclient->call ('AnyWho',$parameters,"urn:AnyWhoIntf-IAnyWho","urn:AnyWhoIntf-IAnyWho#AnyWho"); echo("RESULTS for ($areacode) $phonenum<br>\n"); if(is_array($result)){ foreach($result as $key=>$val){ echo("$key -> $val<br>\n"); } } } ?> <form action="<?=$PHP_SELF?>" method="post"> <table border="0"> <tr><td>Phone Number: <td><input name="areacode" type="text" size="3" maxlength="3"> - <input name="phonenum" type="text" size="7" maxlength ="7"><br> <tr><td colspan="2"><input type="submit" value="Lookup"> </table> </form> </body> </html> It is a client for this service: http://www.edelphi.com/scripts/KzAnyWho.exe/ cheers, thalis On Wed, 26 Jun 2002, Laurent Drouet wrote: > > Do you have an URL of a web service and a PHP script from wich I can start > my tests ? > > Regards > Laurent > > > > > "Thalis A. > Kalfigopoulos" To: Laurent Drouet <[EMAIL PROTECTED]> > <[EMAIL PROTECTED] cc: [EMAIL PROTECTED] > t.edu> Subject: Re: [PHP] Web Services > > 26/06/02 17:10 > > > > > > > I've used Dietrich's SOAP implementation for PHP and have been able to use > only with specific type of webservices (<soap:binding style="rpc"...> and > <soap:body use="encoded"...>). Unfortunately your service has style > ="document" and use="literal", so I'm not sure about it. > > It can be found at: > http://dietrich.ganx4.com/nusoap/index.php > > cheers, > thalis > > > On Wed, 26 Jun 2002, Laurent Drouet wrote: > > > > > Hi the ML > > > > I would like to know if there is a way to request data from a web > services > > for example http://glkev.net.innerhost.com/glkev_ws/Currencyws.asmx > > using php without java ? > > > > If yes do you have some examples ? > > > > > > regards > > > > Laurent > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php