|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.adfnmc.dc.JavaBeanOperation
oracle.adfnmc.dc.ws.WebServiceTransportLayer
public class WebServiceTransportLayer
Field Summary | |
---|---|
protected java.lang.String |
action
|
protected static java.lang.String |
AMPERSAND
|
protected java.lang.String |
credStoreKey
|
protected boolean |
debug
|
protected boolean |
dotnet
|
protected java.lang.String |
encodeNamespace
|
protected java.lang.String |
endpoint
|
protected java.lang.String |
envNamespace
|
protected static java.lang.String |
EQUAL
|
protected java.lang.Exception |
error
|
protected org.ksoap2.SoapFault |
fault
|
protected boolean |
isDocLitBare
|
protected boolean |
isSecure
|
protected java.lang.String |
passwordToken
|
protected static java.lang.String |
QUESTION_MARK
|
static int |
REQUEST_HTTP_GET
Execute the web service via HTTP / GET request |
static int |
REQUEST_HTTP_POST
Execute the web service via HTTP / POST request |
static int |
REQUEST_SOAP_1_0
Execute the web service via SOAP 1.1 request |
static int |
REQUEST_SOAP_1_1
Execute the web service via SOAP 1.1 request |
static int |
REQUEST_SOAP_1_2
Execute the web service via SOAP 1.2 request |
protected static java.lang.String |
SLASH
|
protected int |
status
|
protected java.lang.String |
usernameToken
|
protected int |
version
|
protected java.lang.String |
wsdl
|
Fields inherited from class oracle.adfnmc.dc.JavaBeanOperation |
---|
input, name, namespace, operation, output, parameters, result, returnNodeName, returnPrimitive, returnType |
Constructor Summary | |
---|---|
WebServiceTransportLayer(java.lang.String namespace,
java.lang.String name,
java.lang.String operation)
Default constructor. |
Method Summary | |
---|---|
protected java.lang.String |
dumpSoapObject(int indent,
java.lang.String name,
org.ksoap2.serialization.SoapObject so)
|
protected java.lang.String |
dumpSoapObject(java.lang.String header,
org.ksoap2.serialization.SoapObject so)
|
protected java.lang.String |
getEndpoint()
|
protected java.lang.String |
getIndent(int indent)
|
protected java.lang.String |
getParametersAsString()
INTERNAL METHOD: Helper method used to convert the operation's parameters as a string. |
protected java.lang.String |
getSoapAction()
|
protected org.ksoap2.SoapFault |
getSoapFault()
|
protected org.ksoap2.serialization.SoapObject |
getSoapMethod()
INTERNAL METHOD: Helper method used to convert the operation's parameters as a string. |
protected org.ksoap2.serialization.SoapObject |
getSoapObject(java.lang.String ns,
java.lang.String name,
HashMap p)
|
static int |
getSoapVersionFlag(java.lang.String sv)
|
protected int |
getStatus()
|
protected java.lang.String |
getWsdl()
|
protected java.lang.String |
getXMLRequest(org.ksoap2.SoapEnvelope envelope)
|
protected java.lang.Object |
invoke(int requestMethod,
int timeout)
Inovke the web service operation. |
protected java.lang.String |
invokeHttpRequest(int requestMethod,
int timeout)
Invoke a HTTP request. |
protected java.lang.Object |
invokeSoapRequest(int soapVersion,
int timeout)
Invoke a request as a SOAP request. |
protected java.lang.Object |
invokeSoapRequest(org.ksoap2.SoapEnvelope envelope)
Invoke the SOAP request (envelope) |
boolean |
isSecureConnection()
|
protected java.lang.String |
sendReceive(java.lang.String requestMethod,
java.lang.String request,
java.lang.String payload,
int timeout)
INTERNAL METHOD: Helper method used to send the request. |
protected void |
setDebug(boolean yn)
set the debug flag |
protected void |
setDebug(java.lang.String yn)
set the debug flag |
protected void |
setDefaultEndPoint(java.lang.String endpoint)
set the service endpoint |
protected void |
setDotNet(boolean yn)
set the dotNet flag |
protected void |
setDotNet(java.lang.String yn)
set the dotNet flag |
protected void |
setEndPoint(java.lang.String endpoint)
set the service endpoint |
protected void |
setSoapAction(java.lang.String action)
|
protected void |
setWsdl(java.lang.String wsdl)
set the current WSDL location |
Methods inherited from class oracle.adfnmc.dc.JavaBeanOperation |
---|
addInputParameter, clearParameters, execute, getInputObject, getName, getNamespace, getOperation, getOutput, getParameters, getParamter, getReturnType, invoke, isReturnPrmitive, log, log, setInput, setName, setNamespace, setOperation, setParameter, setParameters, setReturnIsPrimitive, setReturnPropertyName, setReturnType, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int REQUEST_HTTP_GET
public static final int REQUEST_HTTP_POST
public static final int REQUEST_SOAP_1_0
public static final int REQUEST_SOAP_1_1
public static final int REQUEST_SOAP_1_2
protected static final java.lang.String SLASH
protected static final java.lang.String AMPERSAND
protected static final java.lang.String EQUAL
protected static final java.lang.String QUESTION_MARK
protected boolean isDocLitBare
protected boolean isSecure
protected java.lang.String credStoreKey
protected java.lang.Exception error
protected org.ksoap2.SoapFault fault
protected java.lang.String action
protected java.lang.String endpoint
protected java.lang.String wsdl
protected java.lang.String usernameToken
protected java.lang.String passwordToken
protected boolean dotnet
protected boolean debug
protected java.lang.String encodeNamespace
protected java.lang.String envNamespace
protected int version
protected int status
Constructor Detail |
---|
public WebServiceTransportLayer(java.lang.String namespace, java.lang.String name, java.lang.String operation)
Method Detail |
---|
public static int getSoapVersionFlag(java.lang.String sv)
protected java.lang.Object invoke(int requestMethod, int timeout) throws java.lang.Exception
requestMethod
- invoke as a HTTP (GET/POST), or as a SOAP (1.1/1.2) requesttimeout
- milliseconds before the underlying request times out
java.io.IOException
java.lang.Exception
protected java.lang.String getEndpoint()
protected org.ksoap2.SoapFault getSoapFault()
protected int getStatus()
protected java.lang.String getWsdl()
protected void setDebug(java.lang.String yn)
yn
- protected void setDebug(boolean yn)
yn
- protected void setDotNet(java.lang.String yn)
yn
- protected void setDotNet(boolean yn)
yn
- protected void setDefaultEndPoint(java.lang.String endpoint)
endpoint
- protected void setEndPoint(java.lang.String endpoint)
endpoint
- protected void setWsdl(java.lang.String wsdl)
wsdl
- protected java.lang.String getParametersAsString()
protected java.lang.String invokeHttpRequest(int requestMethod, int timeout) throws java.lang.Exception
requestMethod
- used to determine if a GET or POST HTTP request should be madetimeout
- in milliseconds
java.lang.Exception
- on any errorsREQUEST_HTTP_GET
,
REQUEST_HTTP_POST
protected java.lang.Object invokeSoapRequest(int soapVersion, int timeout) throws java.lang.Exception
soapVersion
- timeout
-
java.lang.Exception
- for anything that could go wrongprotected java.lang.String sendReceive(java.lang.String requestMethod, java.lang.String request, java.lang.String payload, int timeout) throws java.lang.Exception
requestMethod
- request
- payload
- timeout
-
ProtocolException
java.lang.Exception
protected java.lang.Object invokeSoapRequest(org.ksoap2.SoapEnvelope envelope) throws java.lang.Exception
envelope
-
java.lang.Exception
- for anything that could go wrongpublic boolean isSecureConnection()
protected org.ksoap2.serialization.SoapObject getSoapMethod()
protected org.ksoap2.serialization.SoapObject getSoapObject(java.lang.String ns, java.lang.String name, HashMap p)
protected java.lang.String getSoapAction()
protected void setSoapAction(java.lang.String action)
protected java.lang.String getXMLRequest(org.ksoap2.SoapEnvelope envelope) throws java.io.IOException
java.io.IOException
protected java.lang.String getIndent(int indent)
protected java.lang.String dumpSoapObject(int indent, java.lang.String name, org.ksoap2.serialization.SoapObject so)
protected java.lang.String dumpSoapObject(java.lang.String header, org.ksoap2.serialization.SoapObject so)
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |