com.raritantechnologies.webServices
Class SimpleInputMapper
java.lang.Object
com.raritantechnologies.webServices.StandardInputMapper
com.raritantechnologies.webServices.SimpleInputMapper
- All Implemented Interfaces:
- IWebServiceInputMapper
- public class SimpleInputMapper
- extends StandardInputMapper
Maps a SOAP request to a RTI search source, query and paging parameters.
Handles a simplified custom field request format:
<SearchRequest>
<Sources>[ list of SearchSource names ]</Sources>
<StartRec>[ starting record number ]</StartRec>
<PageSize>[ page size of returned results ]</PageSize>
<!-- One or more tags where the field name is the tag name and the value is the text node -->
<[FieldName_1]>[ field 1 value ]<[FieldName_1]>
<[FieldName_2]>[ field 2 value ]<[FieldName_2]>
</SearchRequest>
XML Configuration Template:
<InputMap inputMapperClass="com.raritantechnologies.webServices.SimpleInputMapper"
sessionIDPath="[ optional (i.e. non-standard) path in SOAP request to get session ID ]"
requestSourcesPath="[ optional (i.e. non-standard) path to get request search sources ]"
requestFieldsPath="[ optional (i.e. non-standard) path to get request fields ]"
fieldNameTag="[ optional (i.e. non-standard) name of tag that has field name ]"
fieldValueTag="[ optional (i.e. non-standard) name of tag that has field value ]"
startRecPath="[ optional (i.e. non-standard) path to get start record number ]"
pageSizePath="[ optional (i.e. non-standard) path to get page size ]" >
<!-- One or more Field elements: -->
<!-- Maps the paths within a SOAPRequest to the FieldID -->
<Field ID="[ input field ID ]" xPath="[SOAP xPath ]" />
<Field ID="[ input field 2 ]" xPath="[SOAP xPath ]" />
</InputMap>
Developed by
Raritan Technologies Inc..
- Author:
- Ted Sullivan
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleInputMapper
public SimpleInputMapper()
initialize
public void initialize(org.w3c.dom.Element inputMapElem)
- Specified by:
initialize in interface IWebServiceInputMapper- Overrides:
initialize in class StandardInputMapper
convertSOAPRequest
public OrderedMap convertSOAPRequest(SOAPEnvelope soapRequest)
- Specified by:
convertSOAPRequest in interface IWebServiceInputMapper- Overrides:
convertSOAPRequest in class StandardInputMapper