Topic by Phil Franklin
Content
I am trying to execute an ROQL query to return a binary result using the MTOM parameters. According to the docs the signature from the wsdl should be: ( + a clientInfoHeader param):
CSVTableSet = Binding.QueryCSV(string Query, int PageSize, string Delimiter, bool ReturnRawResult, bool DisableMTOM, out byte[] FileData);
I am using Netbeans 8.1 with Axis 2 1.6.2 and wss4j 1.6.19 libraries. I've built the client stub jar file using the Ant build script in the docs. So far everything is working apart from the binary version of queryCSV. The method signature that I get for queryCSV is:
QueryCSVResponseMsg queryCSV(String queryString, int PageSize, String Delimiter, boolean returnRawResult, boolean disableMTOM, ClientInfoHeader clientInfoHeader)
Note that there is no FileData() parameter. Also note there is no mention of the QueryCSVResponseMsg in the docs.
I can set the returnRawResult and disableMTOM parameters and execute the query, but how do I retrieve the data? So far I've had no luck with various syntaxes using the QueryCSVResponseMsg object returned.
Any help gratefully received + it might be a good idea if someone updated the docs and sample code.
Code snippet that works so far without the code to get the data is in the code snippet below. It is called from my main() routine which has all the security stuff and the _service variable reference to the stub.