You can use the command FILEDEF SOAPTSCQ within a procedure to capture the SOAP request being generated and store it in a designated location in the file system. Since the SOAP request itself is not actually executed, 0 records are returned in the report.
In this example, the procedure reports against a Web Service operation that has the two parameters: SYMBOL and USERNAME. The generated SOAP request is stored in a file called SOAPrequest.xml.
FILEDEF SOAPTSCQ DISK C:\IBI\APPS\XIGNITE\SOAPrequest.xml TABLE FILE XQUOTES_GETQUOTE PRINT SYMBOL1 LAST WHERE SYMBOL EQ `IBM` WHERE USERNAME EQ `myusername` END
The following is the content of SOAPrequest.xml after the procedure is executed:
<soap_tscq> <soap_url>http://www.xignite.com/xQuotes.asmx</soap_url> <soap_action>http://www.xignite.com/services/GetQuote</soap_action> <soap_body> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.xignite.com/services/"> <SOAP-ENV:Header> <m:Header xmlns:m="http://www.xignite.com/services/"> <m:Username xsi:type="xsd:string">myusername</m:Username> </m:Header> </SOAP-ENV:Header> <SOAP-ENV:Body> <m:GetQuote xmlns:m="http://www.xignite.com/services/"> <m:Symbol xsi:type="xsd:string">IBM</m:Symbol> </m:GetQuote> </SOAP-ENV:Body> </SOAP-ENV:Envelope> </soap_body> </soap_tscq>
iWay Software |