Re: classmap - Mixed Content question.

[email protected] (Ammarmar)
Newsgroups php.soap
Message-ID <[email protected]>
Dnia 22-08-2007 o 23:55:45 sem user <[email protected]> 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)
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.