public class WSDLSOAPInvoker extends Object
Constructor and Description |
---|
WSDLSOAPInvoker(WSDLParser parser,
String operationName,
List<String> outputNames) |
Modifier and Type | Method and Description |
---|---|
protected void |
addSoapHeader(SOAPEnvelope envelope) |
SOAPMessage |
call(SOAPMessage message) |
protected List |
extractAttachments(SOAPMessage message)
Exctracts any attachments that result from invoking the service, and
returns them as a List wrapped within a DataThing
|
protected String |
getOperationName() |
protected List<String> |
getOutputNames() |
protected WSDLParser |
getParser() |
protected String |
getStyle() |
protected Integer |
getTimeout()
Reads the property taverna.wsdl.timeout, default to 5 minutes if missing.
|
protected String |
getUse() |
Map<String,Object> |
invoke(Map inputMap)
Invokes the webservice with the supplied input Map, and returns a Map
containing the outputs, mapped against their output names.
|
Map<String,Object> |
invoke(SOAPMessage message)
Invokes the webservice with the supplied input Map and preconfigured axis call,
and returns a Map containing the outputs, mapped against their output names.
|
protected SOAPMessage |
makeRequestEnvelope(Map inputMap) |
protected SOAPElement |
makeSoapBody(Map inputMap) |
void |
setCredentials(String username,
String password) |
void |
setWSSSecurity(WSSTokenProfile token) |
public WSDLSOAPInvoker(WSDLParser parser, String operationName, List<String> outputNames)
public void setWSSSecurity(WSSTokenProfile token)
protected String getOperationName()
protected WSDLParser getParser()
public Map<String,Object> invoke(Map inputMap) throws Exception
inputMap
- Exception
public SOAPMessage call(SOAPMessage message) throws Exception
Exception
public Map<String,Object> invoke(SOAPMessage message) throws Exception
Exception
protected SOAPMessage makeRequestEnvelope(Map inputMap) throws UnknownOperationException, IOException, javax.wsdl.WSDLException, ParserConfigurationException, SOAPException, SAXException
UnknownOperationException
IOException
javax.wsdl.WSDLException
ParserConfigurationException
SOAPException
SAXException
protected void addSoapHeader(SOAPEnvelope envelope) throws SOAPException
SOAPException
protected SOAPElement makeSoapBody(Map inputMap) throws UnknownOperationException, IOException, javax.wsdl.WSDLException, ParserConfigurationException, SOAPException, SAXException
UnknownOperationException
IOException
javax.wsdl.WSDLException
ParserConfigurationException
SOAPException
SAXException
protected Integer getTimeout()
protected String getStyle() throws UnknownOperationException
UnknownOperationException
protected String getUse() throws UnknownOperationException
UnknownOperationException
protected List extractAttachments(SOAPMessage message) throws SOAPException, IOException
message
- SOAPException
IOException
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.