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

[email protected] ("McDevitt, Chris")
Newsgroups php.soap
Message-ID <861A0DE0F0746F4092FBB3DBC115D1F8179AF26F@MIDRBNHQEXMB002.aaa-acg.net>
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:[email protected]] 
Sent: Wednesday, June 24, 2009 9:45 AM
To: [email protected]
Subject: [SOAP] 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.
[email protected]
919-459-1035
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.