Description
Given this simple Roxie query:
#WORKUNIT('name','dantest'); SET OF STRING some_items := [] : STORED('items'); OUTPUT(some_items,NAMED('EnteredItems')); OUTPUT(COUNT(some_items),NAMED('NumItems'));
If you go to the query web interface (port 8002), enter a couple of return-delimited strings into the form, then select the "JSON Test" popup list item, you get something like the following JSON query:
{ "dantest": { "items": { "Item": [ "foo", "bar" ] } } }
Submitting this code results in an error in the web browser:
"Problem occurred in response: Status Code: 0 Message: Response: see response body"
From esp.log:
000000CA 2013-07-03 09:50:14 51387 51442 "HTTP First Line: POST /WsEcl/json/query/roxie/dantest?ver_=0 HTTP/1.1" 000000CB 2013-07-03 09:50:14 51387 51442 "POST /WsEcl/json/query/roxie/dantest, from unknown@10.210.103.26" 000000CC 2013-07-03 09:50:14 51387 51442 "soap from json req: <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> <soap:Body><dantestRequest><items><Item>foo</Item><Item>bar</Item></items></dantestRequest></soap:Body></soap:Envelope>" 000000CD 2013-07-03 09:50:14 51387 51442 "Loading dll (libW20130703-094146.so) from location /var/lib/HPCCSystems/myeclccserver/libW20130703-094146.so" 000000CE 2013-07-03 09:50:14 51387 51442 "HandleSoapRequest response: <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> <soap:Body><dantestResponse xmlns="urn:hpccsystems:ecl:dantest"><Results><Result><Dataset xmlns="urn:hpccsystems:ecl:dantest:result:entereditems" name="EnteredItems"><Row><EnteredItems><Item>foo</Item><Item>bar</Item></EnteredItems></Row></Dataset><Dataset xmlns="urn:hpccsystems:ecl:dantest:result:numitems" name="NumItems"><Row><NumItems>2</NumItems></Row></Dataset></Result></Results></dantestResponse></soap:Body></soap:Envelope>" 000000CF 2013-07-03 09:50:14 51387 51442 "Parse schema failed: itemName=All, typeName=<no-type-name>"