By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,780 Members | 1,549 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,780 IT Pros & Developers. It's quick & easy.

Problem: PEAR SOAP => PHP5 SOAP

P: n/a
I am having problems converting from Pear SOAP to
PHP5 SOAP, especially when it comes to complex types.
I would be grateful for any help on how this should be
translated:

require_once("SOAP/Client.php");

$wsdlurl = "http://myserver/myservices/mypage.php?wsdl";

$wsdl = new SOAP_WSDL($wsdlurl, array("timeout" => 360));
$soapclient = $wsdl->getProxy();
$soapclient->setEncoding("UTF-8");
$soapclient->__trace(1);

$mydata = array(
"fromDate" => new SOAP_Value("fromDate", "string", "2003-10-01"),
"toDate" => new SOAP_Value("toDate",
"string", "2004-02-31"));

$args = array(
"myId" => new SOAP_Value("myId","int", 1),
"criteria" => new SOAP_Value("criteria", "{urn:engine}myData", $mydata),
"start" => new SOAP_Value("start","int", 0),
"limit" => new SOAP_Value("limit","int", 20));

$res = $soapclient->searchData($args);

if(PEAR::isError($res)) {
echo "Error: ".$res->getMessage()."\n";
} else {
echo "\nRes:\n";
print_r($res);
echo "\n";
}

Any ideas?

Regards,
Henrik
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.