classmap - Mixed Content question.

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

 



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.

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

  Powered by Linux