Hi,

I'm having trouble sending a request containing XML attributes in a soap
request.

I don't know how to go about doing it.

Previously to pass XML as a soap request from my client to the server I
would go throw the following steps:

(1) Create the XML string. (i.e xmlstr = <<<XML <properties><property id =
"10"></property></properties> XML;)

(2) Than I would make it an xml object:
$xml = simplexml_load_string($xmlstr);

(3) Next convert it to an xml complex type for the server
$xml1 = new SoapVar($xml, SOAP_ENC_OBJECT, "xml", http://thenamespace); 

(4) Send the request:
$client->SoapCall(new SoapParam($xml1, ""));

However when I do a $client->__getLastRequest(), I get:
 <Properties><Property></Property></Properties>

The Property field is coming up blank in the request with no attributes.

How would I go about sending it so the attributes are there?
Any help would be appreciated. I'm really stumped on this one.

Best,
Yoed

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

Reply via email to