Hey all,
Im using nusoap to consume a webservice. What i get back is a massivley nested array. How can i pull out of the array
just the array i need?
when i print_r($array) it looks like this, i've clipped hundreds of lines of more arrays, the array at the bottom in red is what
i need. someone please help, what can i do for this? 😕
thanks!
soapclient Object
(
[title] => NuSOAP
[version] => 0.6
[error_str] =>
[charencoding] => 1
[soap_defencoding] => UTF-8
[namespaces] => Array
(
[SOAP-ENV] => http://schemas.xmlsoap.org/soap/envelope/
[xsd] => http://www.w3.org/2001/XMLSchema
[xsi] => http://www.w3.org/2001/XMLSchema-instance
[SOAP-ENC] => http://schemas.xmlsoap.org/soap/encoding/
[si] => http://soapinterop.org/xsd
)
[typemap] => Array
(
[[url]http://www.w3.org/2001/XMLSchema[/url]] => Array
(
[string] => string
[boolean] => boolean
[float] => double
[double] => double
[decimal] => double
[duration] =>
[unsignedLong] =>
[unsignedInt] =>
[unsignedShort] =>
[unsignedByte] =>
[positiveInteger] =>
)
[[url]http://www.w3.org/1999/XMLSchema[/url]] => Array
(
[i4] =>
[int] => integer
[boolean] => boolean
[string] => string
[double] => double
[float] => double
[dateTime] => string
[timeInstant] => string
[base64Binary] => string
[base64] => string
[ur-type] => array
)
[[url]http://soapinterop.org/xsd[/url]] => Array
(
[SOAPStruct] => struct
)
[[url]http://schemas.xmlsoap.org/soap/encoding/[/url]] => Array
(
[base64] => string
[array] => array
[Array] => array
)
)
[xmlEntities] => Array
(
[quot] => "
[amp] => &
[lt] => <
[gt] => >
[apos] => '
)
[username] =>
[password] =>
[requestHeaders] =>
[responseHeaders] =>
[endpoint] => [url]http://localhost:8081/axis/services/webservice[/url]
[portName] =>
[fault] =>
[faultcode] =>
[faultstring] =>
[faultdetail] =>
[endpointType] => wsdl
[wsdlFile] => [url]http://localhost:8081/axis/services/webservice?wsdl[/url]
[debug_str] => soapclient: instantiating wsdl class with doc: [url]http://localhost:8081/axis/services/webservice?wsdl[/url]
soapclient: got 4 operations from wsdl http://localhost:8081/axis/services/webservice?wsdl
soapclient: wsdl debug:
wsdl: initial wsdl file: http://localhost:8081/axis/services/webservice?wsdl
wsdl: getting http://localhost:8081/axis/services/webservice?wsdl
...clip hundreds of lines of jibberish and more arrays....
[return] => Array
(
[getinfoReturn] => Array
(
[0] => Array
(
[address] => 1234 Some St
[phone] => 123-456-7890
[city] => Jackson
[state] => MS
[emailAddress] => jim@hotmail.com
[fname] => Jim
[lname] => Johnson
)
)
)