I have managed to figure out that the stuff that is returned from the web
service appears to be good XML. I can't understand what is causing
PEAR::SOAP to reject it as malformed. I'm totally open to suggestions
from anyone who might have had a similar problem.
I figured that perhaps sending a print_r of the original return object
might do some good. Here it is:
**********
PEAR::SOAP return object from web service
**********
soap_fault Object
(
[error_message_prefix] =>
[mode] => 1
[level] => 1024
[code] => Parser
[message] => XML error on line 1 col 4 byte 4 not well-formed
[userinfo] => HTTP/1.1 200 OK
Date: Tue, 26 Jul 2005 23:01:46 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Cache-Control: private, max-age=0
Content-Type: text/xml; charset=utf-8
Content-Length: 1777
<?xml version="1.0" encoding="utf-8"?><soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetInfoPublicOnlyResponse
xmlns="DigitalWellWebServiceAPI"><GetInfoPublicOnlyResult><xs:schema
id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"><xs:element
name="NewDataSet" msdata:IsDataSet="true"><xs:complexType><xs:choice
maxOccurs="unbounded"><xs:element
name="Table"><xs:complexType><xs:sequence><xs:element name="CollectionID"
type="xs:int" minOccurs="0" /><xs:element name="Name" type="xs:string"
minOccurs="0" /><xs:element name="Description" type="xs:string"
minOccurs="0" /><xs:element name="CollectionType" type="xs:string"
minOccurs="0" /><xs:element name="ImagePath" type="xs:string"
minOccurs="0" /><xs:element name="ParentCollectionID" type="xs:int"
minOccurs="0" /><xs:element name="AltText" type="xs:string" minOccurs="0"
/><xs:element name="PID" type="xs:string" minOccurs="0"
/></xs:sequence></xs:complexType></xs:element></xs:choice></xs:complexType></xs:element></xs:schema><diffgr:diffgram
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1"><NewDataSet
xmlns=""><Table diffgr:id="Table1"
msdata:rowOrder="0"><CollectionID>76</CollectionID><Name>Kieran
Photos</Name><Description>collection of photos of my favorite
son</Description><CollectionType>Generic</CollectionType><ImagePath
/><ParentCollectionID>68</ParentCollectionID><AltText
/><PID>392B325B-4D3B-4C7C-B853-51E4596630E8</PID></Table></NewDataSet></diffgr:diffgram></GetInfoPublicOnlyResult></GetInfoPublicOnlyResponse></soap:Body></soap:Envelope>
[backtrace] => Array
(
[0] => Array
(
[file] => /usr/local/php/lib/php/SOAP/Fault.php
[line] => 49
[function] => pear_error
[class] => pear_error
[type] => ::
[args] => Array
(
[0] => XML error on line 1 col 4 byte 4 not
well-formed
[1] => Parser
[2] =>
[3] =>
[4] => HTTP/1.1 200 OK
Date: Tue, 26 Jul 2005 23:01:46 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Cache-Control: private, max-age=0
Content-Type: text/xml; charset=utf-8
Content-Length: 1777
<?xml version="1.0" encoding="utf-8"?>
*****elided for brevity's sake*****
)
)
[1] => Array
(
[file] => /usr/local/php/lib/php/SOAP/Base.php
[line] => 199
[function] => soap_fault
[class] => soap_fault
[type] => ->
[args] => Array
(
[0] => XML error on line 1 col 4 byte 4 not
well-formed
[1] => Parser
[2] =>
[3] => HTTP/1.1 200 OK
Date: Tue, 26 Jul 2005 23:01:46 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Cache-Control: private, max-age=0
Content-Type: text/xml; charset=utf-8
Content-Length: 1777
<?xml version="1.0" encoding="utf-8"?>
*****elided for brevity's sake*****
[4] =>
[5] =>
)
)
[2] => Array
(
[file] => /usr/local/php/lib/php/SOAP/Parser.php
[line] => 103
[function] => _raisesoapfault
[class] => soap_parser
[type] => ->
[args] => Array
(
[0] => XML error on line 1 col 4 byte 4 not
well-formed
[1] => HTTP/1.1 200 OK
Date: Tue, 26 Jul 2005 23:01:46 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Cache-Control: private, max-age=0
Content-Type: text/xml; charset=utf-8
Content-Length: 1777
<?xml version="1.0" encoding="utf-8"?>
*****elided for brevity's sake*****
)
)
[3] => Array
(
[file] => /usr/local/php/lib/php/SOAP/Client.php
[line] => 542
[function] => soap_parser
[class] => soap_parser
[type] => ->
[args] => Array
(
[0] => HTTP/1.1 200 OK
Date: Tue, 26 Jul 2005 23:01:46 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Cache-Control: private, max-age=0
Content-Type: text/xml; charset=utf-8
Content-Length: 1777
76Kieran Photoscollection of photos of my favorite
sonGeneric68392B325B-4D3B-4C7C-B853-51E4596630E8
[1] => UTF-8
[2] =>
)
)
[4] => Array
(
[file] => /usr/local/php/lib/php/SOAP/Client.php
[line] => 281
[function] => __parse
[class] => webservice_getdwdata_getdwdatasoap
[type] => ->
[args] => Array
(
[0] => HTTP/1.1 200 OK
Date: Tue, 26 Jul 2005 23:01:46 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Cache-Control: private, max-age=0
Content-Type: text/xml; charset=utf-8
Content-Length: 1777
76Kieran Photoscollection of photos of my favorite
sonGeneric68392B325B-4D3B-4C7C-B853-51E4596630E8
[1] => UTF-8
[2] =>
)
)
[5] => Array
(
[file] => /usr/local/php/lib/php/SOAP/WSDL.php(614) :
eval()'d code
[line] => 158
[function] => call
[class] => webservice_getdwdata_getdwdatasoap
[type] => ->
[args] => Array
(
[0] => GetInfoPublicOnly
[1] => Array
(
[GetInfoPublicOnly] => soap_value
Object
(
[value] => Array
(
[recordID] => 76
[containerCollectionID] => 68
[applicationID] => 19
[inputClass] => Folder
[attributeList] =>
)
[name] => GetInfoPublicOnly
[type] =>
[namespace] =>
DigitalWellWebServiceAPI
[type_namespace] =>
[attributes] => Array
(
)
[arrayType] =>
[options] => Array
(
)
[nqn] => qname Object
(
[name] =>
GetInfoPublicOnly
[ns] =>
[namespace] =>
DigitalWellWebServiceAPI
)
[tqn] => qname Object
(
[name] =>
[ns] =>
[namespace] =>
)
[type_prefix] =>
)
)
[2] => Array
(
[namespace] =>
DigitalWellWebServiceAPI
[soapaction] =>
DigitalWellWebServiceAPI/GetInfoPublicOnly
[style] => document
[use] => literal
)
)
)
[6] => Array
(
[file] =>
/Users/cewing/phpstuff/CMEtests/SOAP/tests/wsdl-test.php
[line] => 38
[function] => getinfopubliconly
[class] => webservice_getdwdata_getdwdatasoap
[type] => ->
[args] => Array
(
[0] => 76
[1] => 68
[2] => 19
[3] => Folder
[4] =>
)
)
)
[callback] =>
)
**********
End PEAR::SOAP return object
**********
********************************
Cris Ewing
CME and Telehealth Web Services
University of Washington
School of Medicine
Work Phone: (206) 685-9116
Home Phone: (206) 365-3413
E-mail: cewing@u.washington.edu
*******************************
--
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php