Re: [SOAP] how to grab a list of objects from a soap response

[email protected] (atulveer)
Newsgroups php.soap
Message-ID <[email protected]>

Milo van der Linden-2 wrote:
> 
> I also prefer not to parse the string for future compatibility with the 
> php soap library..
> 
> I am one step further;
> 
> I now try:
> 
> 
> Which gives me:
> string(469) 
> "<Projects><Project><ID>1</ID><Name>LOGIS_2007-1</Name></Project><Project><ID>2</ID><Name>LOGIS_2007-2</Name></Project><Project><ID>3</ID><Name>LOGIS_2007-3-1</Name></Project><Project><ID>4</ID><Name>LOGIS_2007-4</Name></Project><Project><ID>5</ID><Name>LOGIS_2007-5</Name></Project><Project><ID>6</ID><Name>LOGIS_2007-6</Name></Project><Project><ID>7</ID><Name>MWI_TEST_LOCATIEVELD</Name></Project><Project><ID>8</ID><Name>MWI_TEST_LOCATIE_2</Name></Project></Projects>"
> 
> So at least the string only contains a Projects collection now.
> 
> I also noticed that thw WDSL definition does not contain a description 
> of the content of the Response, it simply states "any"
> 
> Might this be the problem?
> 
> 

  Hi,

   I am having same problem my var dump has same 'structure' as yours...

object(stdClass)#4 (1) {
>>    ["GetProjectListResult"]=>
>>    object(stdClass)#5 (1) {
>>      ["any"]=>
>>      string(478) "<projects 
  
  You said you tried something and now it shows xml without those
'object(stdclass)#4' tags...

What you did to remove those??? I am unable to get the clear xml response..

Atul.
    
-- 
View this message in context: http://www.nabble.com/how-to-grab-a-list-of-objects-from-a-soap-response-tf4371377.html#a13076682
Sent from the Php - Soap mailing list archive at Nabble.com.
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.