public class WsSoapMessageParser extends Object
Constructor and Description |
---|
WsSoapMessageParser(ExecutionContext context,
Type outputType,
List<RecordType> soapFaultTypes,
Map<String,String> metadata,
String metadataPrefix,
boolean useDefaultMapping,
BinaryDataService binaryDataService,
CoreTypeFactory coreTypeFactory)
Constructs new instance initialized with given output type and soap fault types.
|
Modifier and Type | Method and Description |
---|---|
Object |
parseMessage(Document document,
ReferenceHolder errorReference,
ListHolder headersReferenceList)
Parse the response from the given xml document and store the result to the passed reference.
|
void |
parseMessage(Document document,
ReferenceHolder objectReference,
ReferenceHolder errorReference,
ListHolder headersReferenceList)
Parse the response from the given xml document and store the result to the passed reference.
|
Object |
parseMessage(String document,
ReferenceHolder errorReference,
ListHolder headersReferenceList)
Parse the response from the given xml string and store the result to the passed reference
|
void |
parseMessage(String document,
ReferenceHolder objectReference,
ReferenceHolder errorReference,
ListHolder headersReferenceList)
Parse the response from the given xml string and store the result to the passed reference
|
public WsSoapMessageParser(ExecutionContext context, Type outputType, List<RecordType> soapFaultTypes, Map<String,String> metadata, String metadataPrefix, boolean useDefaultMapping, BinaryDataService binaryDataService, CoreTypeFactory coreTypeFactory)
context
- the execution contextoutputType
- output type to which the response should be parsedsoapFaultTypes
- possible types of soap faults. There should be always at least one generic soap fault to which any soap fault can be parsedmetadata
- metadata that should be used for request construction. Basically these are the metadata of task generated by modelling tool.metadataPrefix
- prefix prefix of metadata namesuseDefaultMapping
- determines if the default LSPS to xml mapping should be used, or the mapping
should be based on types metadata informationbinaryDataService
- the binary data servicecoreTypeFactory
- the core type factorypublic Object parseMessage(String document, ReferenceHolder errorReference, ListHolder headersReferenceList) throws XmlProcessingException, WsCallException, SoapFaultException, SAXException, IOException, ErrorException
document
- xml document containing web service soap xml responseerrorReference
- reference where soap fault should be storedheadersReferenceList
- references where soap headers should be storedXmlProcessingException
- if any xml parsing related problem occursWsCallException
- occurs if any web service parsing related problem occursSoapFaultException
- occurs if there was a soap fault in the responseSAXException
- occurs if the response can not be parsed, thus it is not the valid XMLIOException
- shouldn't occur in normal cases. Occur only if there is some io problem while reading the documentErrorException
public void parseMessage(String document, ReferenceHolder objectReference, ReferenceHolder errorReference, ListHolder headersReferenceList) throws XmlProcessingException, WsCallException, SoapFaultException, SAXException, IOException, ErrorException
document
- xml document containing web service soap xml responseobjectReference
- reference where the parsed object should be storederrorReference
- reference where soap fault should be storedheadersReferenceList
- references where soap headers should be storedXmlProcessingException
- if any xml parsing related problem occursWsCallException
- occurs if any web service parsing related problem occursSoapFaultException
- occurs if there was a soap fault in the responseSAXException
- occurs if the response can not be parsed, thus it is not the valid XMLIOException
- shouldn't occur in normal cases. Occur only if there is some io problem while reading the documentErrorException
public Object parseMessage(Document document, ReferenceHolder errorReference, ListHolder headersReferenceList) throws XmlProcessingException, WsCallException, SoapFaultException, SAXException, IOException, ErrorException
document
- xml document containing web service soap xml responseerrorReference
- reference where soap fault should be storedheadersReferenceList
- references where soap headers should be storedXmlProcessingException
- if any xml parsing related problem occursWsCallException
- occurs if any web service parsing related problem occursSoapFaultException
- occurs if there was a soap fault in the responseSAXException
- occurs if the response can not be parsed, thus it is not the valid XMLIOException
- shouldn't occur in normal cases. Occur only if there is some io problem while reading the documentErrorException
public void parseMessage(Document document, ReferenceHolder objectReference, ReferenceHolder errorReference, ListHolder headersReferenceList) throws XmlProcessingException, WsCallException, SoapFaultException, SAXException, IOException, ErrorException
document
- xml document containing web service soap xml responseobjectReference
- reference where the parsed object should be storederrorReference
- reference where soap fault should be storedheadersReferenceList
- references where soap headers should be storedXmlProcessingException
- if any xml parsing related problem occursWsCallException
- occurs if any web service parsing related problem occursSoapFaultException
- occurs if there was a soap fault in the responseSAXException
- occurs if the response can not be parsed, thus it is not the valid XMLIOException
- shouldn't occur in normal cases. Occur only if there is some io problem while reading the documentErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.