|
SAP NetWeaver 7.4 SP03 Process Integration | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.aii.mapping.lookup.RfcAccessor
public final class RfcAccessor
Accessor for calling remote function modules in SAP ABAP systems via the rfc
adapter. You can get an instance with the help of LookupService.
After executing your communication calls, the accessor must be closed through the secure cleanup idiom. See the following example.
// 1. Get a system accessor for a channel.
RfcAccessor accessor = LookupService.getRfcAccessor(channel);
try{
// 2. Create a xml input stream representing the function module request message.
}finally{
InputStream inputStream;
...
// 3. Create xml payload.
Payload payload = LookupService.getXmlPayload(inputStream);
// 4. Execute lookup.
Payload result = accessor.call(payload);
...
// Steps 2. to 4. can be executed several times.
...
// 4. Close the accessor in order to free resources.
}
if (accessor!=null) accessor.close();
| Method Summary | |
|---|---|
XmlPayload |
call(XmlPayload payload)
Executes a remote function call. |
void |
close()
Closes this accessor and releases any resources associated with the accessor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public XmlPayload call(XmlPayload payload)
throws LookupException
payload - input payload
LookupException - if an error occurs.
NullPointerException - if payload is null.
public void close()
throws LookupException
LookupException - if an error occurs.| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] SAP_XIAF
|
[sap.com] com.sap.aii.mapping.lib.facade
|
api
|
BC-XI
|
|
SAP NetWeaver 7.4 SP03 Process Integration | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||