classmap - Mixed Content question.
| From: | sem user | Date: | Wed, 22 Aug 2007 21:55:45 +0000 |
| Subject: | classmap - Mixed Content question. | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-2605@lists.php.net to get a copy of this message | ||
Hi All,
Probably a very simple question.
My WSDL contains a complex type like
<xs:element name="greeting">
<xs:complexType mixed="true">
<xs:attribute ref="xml:lang"/>
</xs:complexType>
I am using classmap on the PHP server.
For above complex type i created class like
class GreetingType
{
public $lang;
}
I have mapped the class properly and i want to use it in the function.
So i created an instance of above class and setting lang as follows.
$greetingObj = new GreetingType ();
$greetingObj->lang = "en";
Now how do i set the actaul greeting string so that my SOAP looks like follows
<greeting xml:lang="en">hello world</greeting>
Thanks in advance for your help.
regards,
rahul
---------------------------------
Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool.