RE: Making Progress... Appears params are not being passed?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm assuming that you are creating a client in non-WSDL mode.  If so,
you could:

$message = "Hello,SMI";
$soapVarObj = new SoapVar($message, XSD_ANYXML,null,"ns1:message");
$soapPamObj = new SoapParam($soapVarObj, "ns1:message");


I recommend you create the client in WSDL mode.  Then you could simple
call it this way:

$message->sendEcho->message = "Hello,SMI";
$result = $client->sendEcho($message);

Hope this Helps,

Chris McDevitt
IT Architect
AAA Michigan

-----Original Message-----
From: Russell Jones [mailto:rjonesx@gmail.com] 
Sent: Wednesday, June 24, 2009 9:45 AM
To: soap@lists.php.net
Subject:  Making Progress... Appears params are not being passed?

The SOAP message body should look like this...

<soapenv:Body>
<echo:sendEcho>
<echo:message>Hello, SMI</echo:message>
</echo:sendEcho>
</soapenv:Body>

But instead I am getting this...

<SOAP-ENV:Body>
<sendEcho/>
</SOAP-ENV:Body>

My call looks like this...

$params=array(
"message"=>"hello, SMI"
 );
$client->__soapCall('sendEcho',$params);

Any ideas why the params are not getting added? what am I doing wrong.

Thank you all again for all of your help!!!!!


Russell Jones
CTO Virante, Inc.
russ@virante.com
919-459-1035

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux