Re: classmap - Mixed Content question.

From: Date: Thu, 23 Aug 2007 14:16:39 +0000
Subject: Re: classmap - Mixed Content question.
References: 1  Groups: php.soap 
Request: Send a blank email to php-soap+get-2608@lists.php.net to get a copy of this message
Dnia 22-08-2007 o 23:55:45 sem user <sem_user@yahoo.com> napisał(a):
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.
Try something like this: $greetingObj->_ = "hello world"; (yes, it is an underscore used as field name)

« previous php.soap (#2608) next »