>From my experience (not that much), it seems to depend on the type of server you are connecting to and how strict it is with data types and so forth. I have found that using the following style seems to work more often (also not all the time) $client = new SOAP_Client( $url ); $params = array( $text ); $result = $client->call( "thisIsTheService", $params, $namespace ); I hope this helps. Corey ----- Original Message ----- From: "Soos Istvan" <syntern@sch.bme.hu> To: <soap@lists.php.net> Sent: Sunday, March 07, 2004 1:33 AM Subject: pear soap client parameter question - it makes me crazy > Hi! > > I've made a (PEAR) SOAP client like this: > > $WSDL = new SOAP_WSDL($wsdl_url); > $client = $WSDL->getProxy(); > $result = $client->thisIsTheService($text); > > My problem is that this won't work (soap fault), if I set the: > > $text = $_REQUEST['text']; > > but it will if I set the: > > $text = "Sample text"; > > What is the difference between them and how can I set it to work? > ($_REQUEST['text'] . " " and such does not work. The text parameter seems ok > if I echo it, the type is string..) > > Thank you: > Istvan > > -- > PHP Soap Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Soap Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php