SYNC/ASYNC - Proxy to File

I have a sync proxy. It will sent a mesg. from R3 and I have to write it to a file and then from a diff file I have to read and sent a mesg. back to R3.
So Sync Proxy -> XI -> File1 : File2 -> XI -> Sync Proxy
Now I am sure a SYNC/ASYNC bridge will be used in BPM.
How many Mesg. Interface will come in the picture ?
1. sync outbound for the Proxy
2. async outbound for the incoming file
3. async inbound for out going file
4. Now for the abstract interfaces;
   a. sync abs for proxy
    b. 2 more abstract async interfaces (but what sud it correspond to ? the proxy req/resp or file req/resp)
My understanding is;
1. SyncReceive – To Receive the payload synchronously from Proxy (open S/A Bridge)
2. Send – To Send the request payload Asynchronously from BPM to the File system
3. Receive – To receive the response Asynchronously from Legacy File system to BPM
4. SyncSend – To Send the response Synchronously from BPM to Proxy (close S/A Bridge)
My design;
In SyncReceive – To Receive the payload synchronously from Proxy (open S/A Bridge)
Sync Interface – abst. Sync proxy
Message - Abs aysnc req. of proxy
In Send – To Send the request payload Asynchronously from BPM to the File system
Message – Abs aysnc req. of proxy
In Receive – To receive the response Asynchronously from Legacy File system to BPM
Message – Abs async resp. proxy
In SyncSend – To Send the response Synchronously from BPM to Proxy (close S/A Bridge)
Message - Abs async resp. proxy
Can you confirm on this ? Kinda confused cos I havnt mentioned any mesg. interface pertaining to the file here

well, now that the design is confirmed (can somebody tell me y we dont mention any of the file interface in BPM), where do i actually handle my mapping ?
Cos i will have 2 mapping;
ProxyReq -> File1
File2 -> ProxyResp
and how do i go onto create my Interface mapping ?
Cos Proxy is a sync interface but file gets to be a Async.
And yeah Udo, i do seriously doubt the performance ... but well at this point i will leave that concern away and get onto build up the scenario.
Does is sound stupid ??? Well consider these questions to be be that of someone who encountered a  SYNC/ASYNC for the very first time
Message was edited by: Shabarish Vijayakumar

Similar Messages

  • File based Sync-Async Bridge

    Hi All,
    I have a scenario where a file is available in a shared folder.
    This file needs to be picked by a RFC Function module called in a Synchronous mode and the contents of the file needs to be displayed as the output of this RFC.
    Is this achievable using Sync-Async Bridge.If so can someone explain me the steps to achieve the same?

    If i were to open a Sync-Async bridge, I need to do the following
    Step 1: Receive step to open the sync/async bridge
    Step 2:Asynchronous send step
    Step 3:Receive step
    Step 4: Send step to close the sync/async bridge
    In my scenario.
    Step 1: Receive the RFC's request message
    Step 2: ????
    Step 3: Get the message from the file
    Step 4: Transform the file's message to RFC's response message
    Step 5: Send the RFC's response message  
    Moreover file adapter works in a polling mechanism..

  • Is it possible to create soap to file sync/async bridge

    Hi All,
    I am balakrishna, I have one requirement, at sender side we have ep system and at receiver side having http system. from ep side we are using soap req/res as sync communication. At reciver side we have to use the reciver file adapter as a dummy because receiver file adapter doesn't pick the file from the http links. so, again we have to use the sender file adapter  to pick the files (text/excel) from the http links directly using wget os command. how can i implement this scenario using bpm.

    Hi,
         You will find a sample BPM for sync/async bridge under
    SAP BASIS --> http://sap.com/xi/XI/System/Patterns --> Integration Process --> BpmPatternSyncAsyncBridge.
    Your requirement would be similar to this.
    Regards

  • For File -- RFC-- File scenario want to remove sync/async bridge

    For File -- RFC-- File scenario want to remove sync/async bridge
    Can I work with File -- RFC-- File scenario without BPM
    Regards

    Hi-
    Check this threads
    RFC -> File without BPM
    File - RFC - File without a BPM - Possible from SP 19.
    File-To-RFC without using BPM

  • Sync/async bridge and proxy

    Hi all. I am going to implement a sync/async bridge in the following scenatio:
    JMS -> XI -> PROXY -> R/3
    My question is how to hold the sync connection in R/3 using the Proxy class. Should i make a call  from my inbound proxy class to the outbound proxy class, when returning data?, and if so, how is the sync connection being hold?
    Thanks
    /Thomas

    Hi Thomas,
                      Just go thru links given below ur doubt will be cleared:
    Synchronous Proxies:
    Outbound Synchronous Proxy
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2boutbound%2bprogram%2b-%2bpurchase%2border%2bsend
    Inbound Synchronous Proxy
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2binbound%2bprogram%2b-%2bsales%2border%2bcreation
    go thru the weblog /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies which explains how to activate proxies
    Regards,
    Vinod.

  • RFC -File Sync Async bridge RFC Adapter Exception

    Hi
    I am using sync async bridge to send a response back to rfc.
    Although there is no error in sxmb_moni as well as the auditlog shows that the response was sent successfully to rfc.. still the RFC adapter gives the following error with no response sent to RFC..
    Error in processing caused by: com.sap.aii.af.rfc.RfcAdapterException: failed to identify XML document:java.lang.Exception: javax.xml.parsers.FactoryConfigurationError: Provider com.sap.engine.lib.jaxp.SAXParserFactoryImpl not found
    please help

    Solved the problem..
    The problem could be due to the following..
    1. the response structure was just a single character..while i was sending a whole string..
    2. I restarted the server...probably the problem
    javax.xml.parsers.FactoryConfigurationError: Provider com.sap.engine.lib.jaxp.SAXParserFactoryImpl not found
    system property must have set mismatch for the SAXFactoryImpl.... by deploying modules before in which i was using SAX parser.. may be the i set the system property earlier to other provider dont remember...
    Hope this information will be useful to someone in future using Sync/Async bridge

  • Scenario PROXY - SENDER FILE - RECEIVER FILE

    Hi Experts,
    I need to create a synchronous scenario where the proxy sends the filename to send and PI must transfer the file to a location X. The source file is in a different location of the destination file 
    This scenario, should this be done through Process Integration?
    Thanks,

    Hi,
    I think you can use a sync/async bridge to do your scenario and you wont need any development outside of using standard modules. The idea is to create a scenario Proxy(sync)-File(Async) -File (Async) without BPM. Check the point 8 in this document http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80f96dbf-adca-3010-ffb5-daf2d1f0e276?QuickLink=index&…
    I have never tested this with the SFTP channel, and i dont know if this adapter supports the RequestOneWayBean and WaitResponseBean modules. May be you should wait to someone that confirms to you the possibility of using this modules with the SFTP adapter.
    Regards.

  • Sync/Async brdige error in BPM

    Hi,
       I am working on RFC-TO-Webservice scenario(Synchronous) and I am using the BPM in this scenario.
    In BPM just I have used 2 steps.
    Receive - Opened Sync/Async bridge
    Send - Synchrouns step
    Send - Cloase the Receive step
    Send - Asynchrous send step (to send the response to the file...).
    When I sent my RFC message from R/3 I am getting following error.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">PL_TIMEOUT</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Timeout condition of pipeline reached</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    I am using PI 7.0 SP13 is why I am not able to receive the Sync message in BPM...I have created the abstract interface based on RFC...getting the first message itself Timeout error.
    I am trying to use Sync/Asnc bridge in BPM. First message itself PL_TIMEOUT error..bpm is not able to receive my rfc request...
    I need help on this...do I need to do any settings in WEBAS level..I did Timeout setting in SXMB_ADM.
    Regards,
    Venu.

    hi,
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1403 [original link is broken] [original link is broken] [original link is broken]
    check this blog..and same thing I did in my scenario
    my scenario is RFC-TO-Webservice.
      Sync/Async bridge can't we use like this ...Receiver step(open sync/async)-> Send(Synchronous)-Send(Close sync bridge)....that way can't we use ...
    I am not able to receive the RFC request itself inside my BPM first step...getting the Timeout error.
    But when I use the RECEIVE STEP with Asynchronous mode..I am able to receive the message inside my bpm.Incase of Synchronous I am not able to receive the message..
    I am working PI 7.0 and SP13..did any body worked this version...
    Thanks,
    venu.

  • Getting Time-Out Error in Sync-Async Bridge

    Hi All,
    My IP has a Sync-Async Bridge. I have a fork, two senders, two switchs and a transformation step inside the bridge.
    If XI takes much time to process the IP, the send step that closes sync-async bridge is not waiting for the message after a particular period and throws time out error to the sender.
    Is it possible to increase the waiting time for sync-async bridge?
    This IP works correctly 8 out of 10 times. Sometimes the message is sitting permenantly in the queue(smq2) and gives me system failure error.
    Can u tell me why this problem happening?
    Thanks & Regards,
    Senthil.

    Dear Michal/Senthil,
    Can you pl clear a confusion that i have had for ages...
    suppose there is a sync/async bridge ( i understand that it is used for sync business system too async BS communcation )
    where we have 4 steps
    sync receive - > async send -> async receive -> sync send..
    i do understand that async send and async receive are combined through correlation
    but i do not understand how do they work..
    i mean when async send say send a file to a target system...does async receive reads a file from the same folder based on the corelation or wat...
    basically can you pls explain me how do the steps 2 and 3 above work
    Edited by: Tarang Shah on Mar 3, 2009 12:51 PM

  • Sync-Async process

    Hi Friends,<br>
    I am in a problem, I have one jpd published as a webservice to a poral [synchronous] client. This jpd is asynchronous,meaning it have separate client request and client response node, but the same jpd is calling one more process control[async again] to do the dirty work of tranforming incoming request and then sending to legacy system using JMS control[async activity]. The question is, can we call the outer jpd [that is published as a web-service] synchronously from a portal page. I seen the weblogic docs they say to make sync-async wsdl file and define client callback method,I tried it but it doesn't work.<br>
    I think my design fall in some limitation that the doc is talking about as in between pair of client request and client response node I have another client request to the process control [for transforming and sendng receiving message].<br>
    <b>Is there anyother way to make it work?<br>
    Did anyone got the same problem before?<br>
    Guys, you need to help me in this pls
    I already tried lots of permutation and combination to arrive at this design so pls don't ask me to change this now. :(<br>
    Cheers,<br>
    Shailesh <br>

    Just to let you know that I have gotten sync-async WSDL to work.
    In my situation we front an async JPD with a JWS via this sync/async WSDL. We had to do this since we had a requirement that only allows soap over http AND sync/async WSDL needs soap over jms protocol.
    Can you clarify when you say "it does not work"?
    There is a test project out there somewhere in dev2dev codeshare or samples area that demonstrated this procedure. The first time I tried this approach I missed one step where I forgot to add the following line in mine process definition block:
    * @jws:protocol jms-soap="true"
    Hope this helps.
    Parvez

  • Sync-Async Gotchaa

    Hi Friends,<br>
    I am in a problem, I have one jpd published as a webservice to a poral [synchronous] client. This jpd is asynchronous,meaning it have separate client request and client response node, but the same jpd is calling one more process control[async again] to do the dirty work of tranforming incoming request and then sending to legacy system using JMS control[async activity]. The question is, can we call the outer jpd [that is published as a web-service] synchronously from a portal page. I seen the weblogic docs they say to make sync-async wsdl file and define client callback method,I tried it but it doesn't work.<br>I think my design fall in some limitation that the doc is talking about as in between pair of client request and client response node I have another client request to the process control [for transforming and sendng receiving message].<br>
         <b>Is there anyother way to make it work?<br>
         Did anyone got the same problem before?<br>
         Guys, you need to help me in this pls<br>I already tried lots of permutation and combination to arrive at this design so pls don't ask me to change this now. :(<br>
    Cheers,<br>
    Shailesh

    Hi Rohini,
    Sync/async communication enables a synchronous sender system to communicate with a receiver system that cannot process synchronous messages.
    The central component of sync/async communication is the sync/async bridge, which enables the Integration Server to receive synchronous messages from a sender and send them to a receiver as asynchronous messages. Conversely, it can send the asynchronous response from the receiver back to the sender as a synchronous response.
    To do this, you define an integration process, which is started as soon as a synchronous message is received from the sender system. The process uses a special receive step to open the sync/async bridge, sends the received message to the receiver system asynchronously, and waits for the asynchronous response to arrive from the receiver.
    The Business Process Engine receives the asynchronous response from the receiver, correlates it with the corresponding query, and activates the waiting process, which then sends the response back to the sender synchronously.
    There is an example of the Sync/Async Bridge in th SWCV: SAP BASIS.
    Namespace: http://sap.com/xi/XI/System/Patterns
    Go through this link to get a good idea as to how to <a href="http://help.sap.com/saphelp_nw04/helpdata/en/43/65d4dab39b0398e10000000a1553f6/frameset.htm">Define Sync/Async Communication</a>
    This blog also should give you some idea...
    https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/wlg/1403 [original link is broken]
    Also go through these links:
    http://help.sap.com/saphelp_nw04/helpdata/en/83/d2a84028c9e469e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c4/dc06418752ef6fe10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/f9/66bf40ad090366e10000000a1550b0/RN_XI_DE_neu.pdf
    I hope it helps.
    Regards,
    Abhy
    Message was edited by: Abhy Thomas

  • BPM Design using sync-async  bridge

    Hi Arpit,
    Below mentioned is an overview of the process flow which we are trying to implement.
    1. A synchronous interface takes in the request
    2. After the mapping, a file is created
    3. Another file adapter reads this file and sends a message back to the sync interface. This step is to make sure that the file is created
    I'm using a sync-async bridge for this process, since file creation and reading processes are asynchronous and the request/response is synchronous.
    Can somebody help me by telling how to design the BPM. How many send and receive steps are required etc?
    Thanks,
    Sandeep
        | Request  |    |    |       |    |     |    |       |
        |--------->|    |    |       |    |     |    |File   |
    HTTP|          |Sync|--->|Mapping|--->|Async|--->|Adapter|
        |<---------|I/f |<-  |       |    |I/f  |    |(write)|
        | Response |    | |  |       |    |     |    |_______|
                          |                              |
                          |                              |
                          |                          ____|___
                          ||      |   |        |    |        |
                          -|Async |<--|File Adp|<---|Folder  |
                           | I/f  |   |(read)  |    |________|

    Hi
    <i>>>I have to map the incoming xml from HTTP to another format before creating the file.</i>
    Ya then u can use the transform Step in between the
    sync Recv ---> Transform ---> Send to File System
    <i>>>Once a file is read, that interface has to send an acknowledgement message telling the status.</i>
    Wht type of acknowledgement msg telling the status.
    I think u can add another element in ur created file payload like <b>Status</b>: Created (ConstanT)
    Then u can map the payload of the readed file with tis payload having Ststus init.Fo this u need a <b>Transformation</b> Step.
    BTW i was searching some previous blogs and i got this and it is bit related to ur scenario.Go thru this
    /people/sriram.vasudevan3/blog/2005/01/11/demonstrating-use-of-synchronous-asynchronous-bridge-to-integrate-synchronous-and-asynchronous-systems-using-ccbpm-in-sap-xi
    Hope it helps.
    Regards
    Arpit Seth

  • Sync Async without BPM and JMS.

    Hi Guys,
    Searched SDN a lot but in vain...
    i have soap(Sync) to File(Async) synario...Soap response can have like this "PI system received message"..
    How can i, with out BPM?
    Thanks
    Prabhakar

    i have soap(Sync) to File(Async) synario...Soap response can have like this "PI system received message"..
    If the SOAP is mandatorily working in SYNC mode then the above solution wont work (SOAP --> XI --> SOAP)....this will be treated as two different calls for the SOAP and the solution would have worked for ASYNC flow.
    Why do you need PI system received message .... if i send a SOAP message and if it is successfully send from the SOAP application then I would get a 200 OK message which would indicate that everything was fine till sending the message to the XI/ PI system.
    If SYNC communication is needed then implement a BPM with a SYNC-ASYNC bridge.
    Regards,
    Abhishek.

  • Sync - async w/o BPM

    I have a scenario where a Bapi functionality(server proxy) is exposed as a webservice .
    So scenario will be SOAP -> XI -> Proxy (calls a BAPI).
    I was thinking of:
    Receiving the call from WS consumer Synchronously and send him back the ACK (just transport level) and end the sync call. Then fwd this request to R3 using Async proxy...but w/o BPM.
    Or can we have a Async call from WS consumer to Xi and from there to R3 proxy and some work around to send back transport level acknowledgement to WS consumer from XI  async.
    plz suggest...
    XI Queries.

    Hi,
    I think you can handle in the sender client end. Check this note
    Note 856597 - FAQ: XI 3.0 / PI 7.0 / PI 7.1 SOAP Adapter
    It states :
    Sender Asynchronous Calls
    Q: What are the correct sender options for asynchronous calls?*
    A: The setting in the channel configuration determines how the message is passed to the XI infrastructure. Setting the channel's quality of service to ExactlyOnce guarantees the delivery of the message exactly once between the adapter and the back end. This will not automatically guarantee the delivery with exactly once between the client and the back end. The behavior of the client determines the level of quality of service achieved.
    When the client sends a SOAP message and ignores the response completely as in "fire-and-forget", the quality of service with AtMostOnce may be realized.
    When the client sends a SOAP message and checks if the response is an HTTP 200 response message with an empty soap envelope or an HTTP 202 response message with no content, the quality of service with AtLeastOnce can be realized. In this case, the client must resend the message until such a successful response is returned. When the message successfully accepted by the adapter, an HTTP 200 response with an empty SOAP envelope or an HTTP 202 response message with no content is returned.
    When the client resends the message, there is a possibility that the message may arrive more than once. However, this possible duplicate only happens, when the client previously received no response message at all.For all other cases, the client can resend the message without resulting any duplicate. In order to eliminate duplicates for all cases, the client may send the message with a unique message ID. This message ID will be used to create an XI message so that the identity of the created XI message and that of the original SOAP message are coupled.The client must resend the message with the same message ID, until, a HTTP 200 response with an empty soap envelope/HTTP 202 without content is received as an acknowledgement and client would not get the DuplicateMessageException in this regard.In either case, the client can assume that the message is delivered exactly once (theoretically the message ID could be identical to another message ID used previously but the probability of this is extremely low).
    Regards
    Suraj

  • Sync Java Proxy Server response in XML

    Hi !
    We've this scenario: File1 <-> XI <-> Java Proxy <-> File2
    Using a BPM, we made a Async/Sync workflow. It works ok. It uses a SYNC Java Proxy Server.
    The problem is that inside the java proxy, we query an http source that returns already XML formated data. We need this data to be mapped from the java proxy response message type to the File2 message type.
    We know that we can parse the XML data inside the java proxy and fill the response message type structures (creating items, and array items for nested records), or directly   code the mapping here.
    But, is there any alternative to pass the received XML from the HTTP directly to XI, and map that XML structure with the File2 message type using graphical mapping ? instead of programming the xml parsing and creating the response structure?
    If we create a message type for the response of the java proxy, as 1 field that contains the whole XML code, then we would not map it....Is there any way to complete or to add  something to the received XML code, to convert it to the XI message format..so XI could interpret it as a true XI message and map it transparently via graphical mapping?
    Thanks,
    Matias

    Hi Akshay !
    That's exactly what I don't know how to do it.
    Inside the java proxy function I have a string variable, let's call it xmlResponse, that contains:
    <customer>
    <name>Matias</name>
    <country>China</country>
    </customer>
    I also have a message type created in XI (let's call it MT_Response), that has the same fields as the above message structure. And my java proxy function is declared something like this:
    public MT_Response.Type myFunction(MT_Request.Type myRequest) {
    String xmlResponse="";
    // http connection code goes here..
    xmlResponse = httpConnection.getResponse();
    return ??????? what ????
    I don't want to parse the xmlResponse variable in order to fill the MT_Response structure. I need a more direct way, because the content of xmlResponse is already XML !
    Thanks.

Maybe you are looking for