SOAP messages for adding servers from an input file
The following example shows how to format SOAP requests and responses for running a BLCLI command that adds servers using an attached input text file that provides server details.
The following code presents the SOAP request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://bladelogic.com/webservices/framework/xsd"
xmlns:clit="http://bladelogic.com/webservices/skeleton/clitunnel">
<soapenv:Header>
<xsd:sessionId>urn:uuid:B14BDDDFA62D8969A11431409087313</xsd:sessionId>
</soapenv:Header>
<soapenv:Body>
<clit:executeCommandByParamListAndAttachment>
<!--Optional:-->
<clit:nameSpace>Server</clit:nameSpace>
<!--Optional:-->
<clit:commandName>bulkAddServers</clit:commandName>
<!--Zero or more repetitions:-->
<clit:commandArguments>/c/host1.csv</clit:commandArguments>
<clit:commandArguments>US-ASCII</clit:commandArguments>
<clit:commandArguments>false</clit:commandArguments>
</clit:executeCommandByParamListAndAttachment>
</soapenv:Body>
</soapenv:Envelope>
xmlns:xsd="http://bladelogic.com/webservices/framework/xsd"
xmlns:clit="http://bladelogic.com/webservices/skeleton/clitunnel">
<soapenv:Header>
<xsd:sessionId>urn:uuid:B14BDDDFA62D8969A11431409087313</xsd:sessionId>
</soapenv:Header>
<soapenv:Body>
<clit:executeCommandByParamListAndAttachment>
<!--Optional:-->
<clit:nameSpace>Server</clit:nameSpace>
<!--Optional:-->
<clit:commandName>bulkAddServers</clit:commandName>
<!--Zero or more repetitions:-->
<clit:commandArguments>/c/host1.csv</clit:commandArguments>
<clit:commandArguments>US-ASCII</clit:commandArguments>
<clit:commandArguments>false</clit:commandArguments>
</clit:executeCommandByParamListAndAttachment>
</soapenv:Body>
</soapenv:Envelope>
The following code presents the SOAP response:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns6:executeCommandByParamListAndAttachmentResponse xmlns:ns6="http://bladelogic.com/webservices/skeleton/clitunnel">
<ns6:return>
<ns5:classInstance xmlns:ns5="http://bladelogic.com/webservices/model/clitunnel/xsd">false</ns5:classInstance>
<ns5:comments xmlns:ns5="http://bladelogic.com/webservices/model/clitunnel/xsd">No comments</ns5:comments>
<ns5:error xsi:nil="1" xmlns:ns5="http://bladelogic.com/webservices/model/clitunnel/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
<ns5:executionTime xmlns:ns5="http://bladelogic.com/webservices/model/clitunnel/xsd">0</ns5:executionTime>
<ns5:list xmlns:ns5="http://bladelogic.com/webservices/model/clitunnel/xsd">false</ns5:list>
<ns5:memoryUsed xmlns:ns5="http://bladelogic.com/webservices/model/clitunnel/xsd">0</ns5:memoryUsed>
<ns5:realInputArguments s71:type="s72:string" xmlns:ns5="http://bladelogic.com/webservices/model/clitunnel/xsd" xmlns:s71="http://www.w3.org/2001/XMLSchema-instance" xmlns:s72="http://www.w3.org/2001/XMLSchema">/c/host1.csv</ns5:realInputArguments>
<ns5:realInputArguments s73:type="s74:string" xmlns:ns5="http://bladelogic.com/webservices/model/clitunnel/xsd" xmlns:s73="http://www.w3.org/2001/XMLSchema-instance" xmlns:s74="http://www.w3.org/2001/XMLSchema">US-ASCII</ns5:realInputArguments>
<ns5:realInputArguments s75:type="s76:string" xmlns:ns5="http://bladelogic.com/webservices/model/clitunnel/xsd" xmlns:s75="http://www.w3.org/2001/XMLSchema-instance" xmlns:s76="http://www.w3.org/2001/XMLSchema">false</ns5:realInputArguments>
<ns5:returnValue s77:type="s78:string" xmlns:ns5="http://bladelogic.com/webservices/model/clitunnel/xsd" xmlns:s77="http://www.w3.org/2001/XMLSchema-instance" xmlns:s78="http://www.w3.org/2001/XMLSchema">void</ns5:returnValue>
<ns5:success xmlns:ns5="http://bladelogic.com/webservices/model/clitunnel/xsd">false</ns5:success>
</ns6:return>
</ns6:executeCommandByParamListAndAttachmentResponse>
</soapenv:Body>
</soapenv:Envelope>
<soapenv:Body>
<ns6:executeCommandByParamListAndAttachmentResponse xmlns:ns6="http://bladelogic.com/webservices/skeleton/clitunnel">
<ns6:return>
<ns5:classInstance xmlns:ns5="http://bladelogic.com/webservices/model/clitunnel/xsd">false</ns5:classInstance>
<ns5:comments xmlns:ns5="http://bladelogic.com/webservices/model/clitunnel/xsd">No comments</ns5:comments>
<ns5:error xsi:nil="1" xmlns:ns5="http://bladelogic.com/webservices/model/clitunnel/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
<ns5:executionTime xmlns:ns5="http://bladelogic.com/webservices/model/clitunnel/xsd">0</ns5:executionTime>
<ns5:list xmlns:ns5="http://bladelogic.com/webservices/model/clitunnel/xsd">false</ns5:list>
<ns5:memoryUsed xmlns:ns5="http://bladelogic.com/webservices/model/clitunnel/xsd">0</ns5:memoryUsed>
<ns5:realInputArguments s71:type="s72:string" xmlns:ns5="http://bladelogic.com/webservices/model/clitunnel/xsd" xmlns:s71="http://www.w3.org/2001/XMLSchema-instance" xmlns:s72="http://www.w3.org/2001/XMLSchema">/c/host1.csv</ns5:realInputArguments>
<ns5:realInputArguments s73:type="s74:string" xmlns:ns5="http://bladelogic.com/webservices/model/clitunnel/xsd" xmlns:s73="http://www.w3.org/2001/XMLSchema-instance" xmlns:s74="http://www.w3.org/2001/XMLSchema">US-ASCII</ns5:realInputArguments>
<ns5:realInputArguments s75:type="s76:string" xmlns:ns5="http://bladelogic.com/webservices/model/clitunnel/xsd" xmlns:s75="http://www.w3.org/2001/XMLSchema-instance" xmlns:s76="http://www.w3.org/2001/XMLSchema">false</ns5:realInputArguments>
<ns5:returnValue s77:type="s78:string" xmlns:ns5="http://bladelogic.com/webservices/model/clitunnel/xsd" xmlns:s77="http://www.w3.org/2001/XMLSchema-instance" xmlns:s78="http://www.w3.org/2001/XMLSchema">void</ns5:returnValue>
<ns5:success xmlns:ns5="http://bladelogic.com/webservices/model/clitunnel/xsd">false</ns5:success>
</ns6:return>
</ns6:executeCommandByParamListAndAttachmentResponse>
</soapenv:Body>
</soapenv:Envelope>
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*