An Simple Object Access Protocol (SOAP) interface to AMICO. In enables definition of SOAP adapters, that map variables from the communicator to invocation of SOAP services. We are also working on enabling AMICO to run as a SOAP service.
java -jar %AMICO_HOME%/bin/amico-soap.jar [<conf-url>]
A main configuration file:
This is a minimal configuration file that uses default
parameters for missing attributes. --------------------------------------------- <?xml version="1.0"
encoding="UTF-8"?> |
This is a full configuration file that overrides default parameters. --------------------------------------------- <?xml version="1.0"
encoding="UTF-8"?> <command>UPDATE
last-loaded-module SOAP</command>
|
A configuration file for AMICO SOAP adapter for
Google SOAP Search API (Beta) (linked from a main
configuration file):
<?xml version="1.0"
encoding="UTF-8"?>
<common> <namespace prefix="xsi">http://www.w3.org/1999/XMLSchema-instance</namespace> <namespace prefix="xsd">http://www.w3.org/1999/XMLSchema</namespace> <attribute name="soapenv:encodingStyle" namespace="null">http://schemas.xmlsoap.org/soap/encoding/</attribute> <parameter name="key" namespace="null" type="xsd:string" type-qualifier="xsi:type"> your Google API key </parameter> </common> <method name="doSpellingSuggestion" namespace="urn:GoogleSearch" trigger="spelling"> <parameter name="phrase" namespace="null" type="xsd:string" type-qualifier="xsi:type"><%=spelling%></parameter> <result update-variable="spelling-suggestion"/> </method> <method name="doGoogleSearch" namespace="urn:GoogleSearch" trigger="query"> <namespace prefix="soapenv">http://schemas.xmlsoap.org/soap/envelope/</namespace> <namespace prefix="SOAP-ENC">http://schemas.xmlsoap.org/soap/encoding/</namespace> <parameter name="q" namespace="" type="xsd:string" type-qualifier="xsi:type"><%=query%></parameter> <parameter name="start" namespace="" type="xsd:int" type-qualifier="xsi:type">0</parameter> <parameter name="maxResults" namespace="" type="xsd:int" type-qualifier="xsi:type">10</parameter> <parameter name="filter" namespace="" type="xsd:boolean" type-qualifier="xsi:type">true</parameter> <parameter name="restrict" namespace="" type="xsd:string" type-qualifier="xsi:type"></parameter> <parameter name="safeSearch" namespace="" type="xsd:boolean" type-qualifier="xsi:type">false</parameter> <parameter name="lr" namespace="" type="xsd:string" type-qualifier="xsi:type"></parameter> <parameter name="ie" namespace="" type="xsd:string" type-qualifier="xsi:type">utf-8</parameter> <parameter name="oe" namespace="" type="xsd:string" type-qualifier="xsi:type">utf-8</parameter> <result update-variable="search" xpath="/return/estimatedTotalResultsCount"/> <result update-variable="link1" xpath="/return/resultElements/item[position()=1]/URL"/> <result update-variable="link2" xpath="/return/resultElements/item[position()=2]/URL"/> <result update-variable="link3" xpath="/return/resultElements/item[position()=3]/URL"/> <result update-variable="snippet1" xpath="/return/resultElements/item[position()=1]/snippet"/> <result update-variable="snippet2" xpath="/return/resultElements/item[position()=2]/snippet"/> <result update-variable="snippet3" xpath="/return/resultElements/item[position()=3]/snippet"/> </method> |