on 07-08-2008 6:05 AM
Hi All,
I wanted to understand how an application works via Generic Sync:
Can any one explain me about
1. The InBound and OutBound Containers in Generic Sync ?
2. How the Data containers are created ?
3. The Application flow via API's in Generic Sync?
Any ideas and suggestions are truely welcome..
Thanks and Regards
Neha Mahanty.
Hi Neha
From an application developers point of view
1. Inbound Containers contains the data that is transmitted from the Server to the Client and Outbound Containers contains data that has to be transmitted from Client to Server.
2 & 3. You really do not need to know how they are created but just know that the API OutboundContainerFactory.createOutboundContainer() will create the container.
OutboundContainer.addItem() is to be used to put in data into the container
OutboundContainer.close() is to be called to close the container (This is mandatory)
To read Inbound data use
InboundContainer.readNextElement();
InboundContainerElement.getFieldName()
InboundContainerElement.getFieldValue()
More detail explaination along with examples is available in MDK
Best Regards
Sivakumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Siva,
Its clear now that we create the outbound Container and pass the values like the RFC function module that is to be called.
and then we fill the container by using addItem()
just one more question, can you tell me where do we specify the processing type whether the data needs to be handled Synchronously or Asynchronously ?
Thanks and Regards
Neha Mahanty
HI Neha,
The API OutboundContainer.TYPE_OUTBOUND will create a asynchronous container while OutboundContainer.TYPE_REQUEST will create a synchronous container. You will have to use this API while using API OutboundContainerFactory.createOutboundContainer(VisibilityType type, String method, String outboundType)
Best Regards
Siva
User | Count |
---|---|
84 | |
10 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.