<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="font-family: Calibri, sans-serif; font-size: 14px; color: rgb(0, 0, 0);">
I’m attempting to make use of the “findEntities” operation defined in this WSDL: <a href="http://paste.scsys.co.uk/500528">http://paste.scsys.co.uk/500528</a></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; color: rgb(0, 0, 0);">
<br>
</div>
<div><font face="Calibri,sans-serif">When I try and “explain” this operation using XML::Compile::WSDL11, it doesn’t outline anything inside the “query” (see lines 17858, 3810, and 1121) element. Says it’s “probably a recursive complex”. Somewhat by trial
and error I’ve found that I need an XML structure like: </font></div>
<div><br>
</div>
<div>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"><quer:query xmlns:quer="http://www.example.com/ws/integration/query" productCode="RC1501" model="http://www.example.com/ws/tee800/2009/01" projectedClass="Candidate" locale="en" mode="T-XML" largegraph="true"
preventDuplicates="false" attributes="info.export.limit=true”></p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"> <quer:projections></p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"><span class="Apple-tab-span" style="white-space:pre"></span><quer:projection></p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"><span class="Apple-tab-span" style="white-space:pre"></span><quer:field path=“Field1” /></p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"><span class="Apple-tab-span" style="white-space:pre"></span></quer:projection></p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"><span class="Apple-tab-span" style="white-space:pre"></span><quer:projection></p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"><span class="Apple-tab-span" style="white-space:pre"></span><quer:field path=“Field2” /></p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"><span class="Apple-tab-span" style="white-space:pre"></span></quer:projection></p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"> </query:projections></p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"> <quer:filterings></p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"> <quer:filtering></p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"> <quer:equal></p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"> <quer:field path="City"/></p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"> <quer:string>Sydney</quer:string></p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"> </quer:equal></p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"> </quer:filtering></p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"></p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"> </quer:filterings></p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"></quer:query></p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"><br>
</p>
<p style="margin: 0px;">But I can’t seem to figure out how to represent that in a Perl data structure suitable for XML::Compile::WSDL11. I’ve tried variations on the following, but to no avail:</p>
<p style="margin: 0px;"><br>
</p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;">my ( $response, $trace ) = $client->call(</p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"> findEntities => mappingVersion => $MAPPING_VERSION,</p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"> query => {</p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"> query => {</p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"> alias => 'TestQuery',</p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"> projectedClass => 'Candidate',</p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"> projections => { projection => [ { field => { path => 'Number' } } ] },</p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"> filterings =></p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"> { filtering => [ { equal => { field => { path => 'LastName' }, string => 'McTesterson' } } ] },</p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"> }, </p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"> }, </p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"> attributes => {</p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"> entry => [</p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"> { key => 'info.export.limit',</p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"> value => 'false',</p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"> }, </p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"> ], </p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"> }, </p>
<p style="margin: 0px;"></p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;">);</p>
<p style="margin: 0px;"><br>
</p>
<p style="margin: 0px;">Can anyone suggest how I would encapsulate this query for XML::Compile::WSDL11?</p>
<p style="margin: 0px;"><br>
</p>
<p style="margin: 0px;">KP</p>
<p style="margin: 0px; font-size: 12px; font-family: Consolas;"><br>
</p>
</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; color: rgb(0, 0, 0);">
<div id="MAC_OUTLOOK_SIGNATURE"></div>
</div>
</body>
</html>