[Xml-compile] wsdl soap call fails with missing data in response

Paul B. Henson henson at acm.org
Fri Jan 21 03:02:50 GMT 2011


I'm trying to use XML::Compile to access the API exposed by a content
management system via WSDL based SOAP:

http://www.hannonhill.com/kb/Web-Services/web-services-operations/index.html

I think they publish the wsdl somewhere on their site, but I can't find
it at the moment, so a copy is at:

http://www.csupomona.edu/~henson/tmp/cascade-http.wsdl

I wrote a short test script that just calls the read method. The call
appears to successfully reach the soap server, but then the returned xml
fails to be parsed with the following error:

error: data for element or block starting with `success' missing at
{http://www.hannonhill.com/ws/ns/AssetOperationService}readResponse/readReturn

Honestly, xml gives me a headache :). I've spent a few hours working
with it and am at a bit of a loss. I dumped the returned xml, listed
at the bottom of this message, which to my eyes appears to contain
"<success>true</success>".

Any thoughts on what's going on? An error I'm making? A problem with
their wsdl file or soap server? I already beat my head against SOAP::WSDL
for most of yesterday with no luck. The release version didn't support
recursive data structures, and the development release failed with what
might be a similar error:

<Fault
xmlns="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>SOAP-ENV:Server</faultcode><faultstring>Error
deserializing message: Can&apos;t call method &quot;get_class&quot; on
an undefined value at
/usr/lib64/perl5/vendor_perl/5.8.8/SOAP/WSDL/Expat/MessageParser.pm line
318.
 at line 2 at /usr/lib64/perl5/vendor_perl/5.8.8/SOAP/WSDL/Expat/Base.pm
 line 82

The examples the vendor provides are pretty limited, and only in java or
php. I'm not a big fan of php 8-/, and don't really want to use java for
what should be a simple scripting task.

Much thanks for any assistance. Here's the xml being returned that is
failing to parse:

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><readResponse
xmlns="http://www.hannonhill.com/ws/ns/AssetOperationService"><readReturn><asset><assetFactory
xsi:nil="true" /><assetFactoryContainer xsi:nil="true"
/><connectorContainer xsi:nil="true" /><contentType xsi:nil="true"
/><contentTypeContainer xsi:nil="true" /><dataDefinition xsi:nil="true"
/><dataDefinitionContainer xsi:nil="true" /><databaseTransport
xsi:nil="true" /><destination xsi:nil="true" /><feedBlock xsi:nil="true"
/><file xsi:nil="true" /><fileSystemTransport xsi:nil="true" /><folder
xsi:nil="true" /><ftpTransport xsi:nil="true" /><group xsi:nil="true"
/><indexBlock xsi:nil="true" /><metadataSet xsi:nil="true"
/><metadataSetContainer xsi:nil="true" /><page xsi:nil="true"
/><pageConfigurationSet xsi:nil="true" /><pageConfigurationSetContainer
xsi:nil="true" /><publishSet xsi:nil="true" /><publishSetContainer
xsi:nil="true" /><reference xsi:nil="true" /><role xsi:nil="true"
/><scriptFormat xsi:nil="true" /><site xsi:nil="true"
/><siteDestinationContainer xsi:nil="true" /><symlink xsi:nil="true"
/><target xsi:nil="true" /><template xsi:nil="true" /><textBlock
xsi:nil="true" /><transportContainer xsi:nil="true" /><twitterConnector
xsi:nil="true" /><user><authType>ldap</authType><defaultGroup
xsi:nil="true" /><defaultSiteId xsi:nil="true" /><defaultSiteName
xsi:nil="true"
/><email>henson at csupomona.edu</email><enabled>true</enabled><entityType><name>user</name></entityType><fullName>Paul
B.
Henson</fullName><groups>csupomona</groups><password>XXXXXXXXXX</password><role>Contributor</role><username>henson</username></user><wordPressConnector
xsi:nil="true" /><workflowConfiguration xsi:nil="true"
/><workflowDefinition xsi:nil="true" /><workflowDefinitionContainer
xsi:nil="true" /><xhtmlDataDefinitionBlock xsi:nil="true" /><xmlBlock
xsi:nil="true" /><xsltFormat xsi:nil="true" /></asset><message
xsi:nil="true"
/><success>true</success></readReturn></readResponse></soapenv:Body></soapenv:Envelope>


-- 
Paul B. Henson  |  (909) 979-6361  |  http://www.csupomona.edu/~henson/
Operating Systems and Network Analyst  |  henson at csupomona.edu
California State Polytechnic University  |  Pomona CA 91768



More information about the Xml-compile mailing list