473,326 Members | 2,438 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Problem: PEAR SOAP => PHP5 SOAP

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
0 4062

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: junkmail | last post by:
on a win 2k server apparantly it is saying i dont have it. or it cant find it. im using mySQL 4.1 php 4.3.x apache 3.0.53 im new to php and am doing some tutorials, but when i run the sripts...
0
by: Michel P. | last post by:
Hi, I'm trying to install the bcompiler extension, under PHP 5.0.4 / Apache / FreeBSD, but can't finalize the install process... Has anybody allready done it ? I'm using the recommended...
4
by: petermichaux | last post by:
Hi, I have installed PHP 5.0.3 for OS X. I have read in several places that PEAR is included in recent installations of PHP. I'm having trouble getting PEAR DB working. How would I know or test...
1
by: Tony B | last post by:
Hi, I'm trying to call a webservice written in .NET that takes some parameters. I can get it working on a machine with php5 but when I try to call the function from machine using php4 and...
1
by: webguynow | last post by:
I've installed PEAR in my local area, on my shared host, under htdocs but I'm anticipating a number of issues. I'm forcing use of PHP5 with an .htaccess file, but by default the host runs ...
2
by: awebguynow | last post by:
latest PEAR on W32, refers to PHP5 inaccurately. I've seen posts regarding path's that get messed up, by lost ini's or registry settings. I don't think that's my case, because I can't find PHP5 in...
0
by: info | last post by:
Dear all, is the first time that I use SOAP, and i must say that i'm having several problems. this is SOAP message that expects the server =================XML EXPECTED FROM THE...
1
by: IchBin | last post by:
I am new to PHP and I am running on Windoze XP SP 2. Just noticed that the PEAR installed dir structure I have (to DB subdir) is : C:\php5.2\PEAR\pear\DB My registry vars are:...
4
by: inetquestion | last post by:
php has been configured with the following two configure lines and core's during "make install" on the PEAR section. Is there something simple i'm missing? Any help would be appreciated. ...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.