Proxy to Webservice Synchronous Scenario

Hi All,
I have a Synchronous Proxy to Webservice Scenario.
Here is the catch:
My Source Proxy Datatype is
DT_Source
    Status
     PayGradeA
     PayGradeB
Now the requirement is
if PayGradeA is equal to 01, 04, 05 then the data should be sent to WebserviceA and we need to get the response back to the Proxy,
if PayGradeB is not equal to 01, 04, 05 then the data should be sent to WebserviceB and we need to get the response back to the Proxy.
To handle this, in XI. I created
2  Receiver Communication Channels ,
2 Receiver Communication Components,
2 Receiver Agreements,
1 Interface Determination,
1 Receiver Determination, (In the Receiver Determination I gave the Conditions, if PayGradeA is equal to 01, 04, 05 and PayGradeB is not equal to 01, 04, 05 ).
Now when I trigger the proxy I am getting the following error
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!--  Receiver Identification
  -->
- <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="RCVR_DETERMINATION">TOO_MANY_RECEIVERS_CASE_BE</SAP:Code>
  <SAP:P1 />
  <SAP:P2 />
  <SAP:P3 />
  <SAP:P4 />
  <SAP:AdditionalText />
  <SAP:ApplicationFaultMessage namespace="" />
  <SAP:Stack>Multiple receivers are not permitted in synchronous calls</SAP:Stack>
  <SAP:Retry>N</SAP:Retry>
  </SAP:Error>
I have read some blogs, they say XI wont support synchronous calls if we have more than 1 receiver.
I want to handle this without the use of BPM.
"Can we handle this in the ABAP Program in ECC?? If so can some body let me know how many Service Interfaces do I need to create in XI??"
Can somebody help me step by step.
Thanks,
Harsh

the other possibilitiy to avoid ccBPM is create a multimapping.
so in the memssage mapping define 2 target structures and you will create or not the root structures: for example:
If PayGrade is equal to 01,04,05 then create MT_PayGradeA
IF PayGrade is not equal to 01,04,05 create MT_PayGradeB
to do that in the message mapping add a new Message type in the target section under signature tab.
now if you will only receive values 01,04,05 so validate the routing rule defined in the Receiver determination.
best Regads
RP
Edited by: Rodrigo Alejandro Pertierra on Nov 10, 2011 4:04 PM

Similar Messages

  • SAP Client Proxy to Webservice Synchronous Scenario

    Hi Experts,
    I have an outbound Synchronous Scenario.In which i have to trigger a Client Proxy from SAP side and Connect to a WebService using PI.
    I have with me the WSDl and URL for Webservice.Can anyone guide me with the necessary steps.
    Regards
    Gaurav

    Hi gaurav,
    From client proxy u have to send request and get the response back...
    So, for this create 2 corresponding data types and message types. and mapping will be between request message type which u created and request wsdl message and another mapping for response wsdl message and response message type which u created.
    create service interface outbound synchronous(give the message types which u created) and inbound synchronous(give the wsdl request and response messages).
    Regards,
    Sunitha

  • Java Proxy - XI - RFC Synchronous Scenario OUTBINDING Problem.

    Java Proxy -> XI -> RFC Synchronous Scenario. Problem
    Hi,
         I'm doing a Java Proxy -> XI -> RFC Syncronous Scenario.
         A Java Server Socket is running as a Demon. When a client make a request to the Java Server Socket, this one call Java Proxy Client and set up the parameters.
         The first time that execute the scenario it works perfectly but no the next one and so on.
         The error when I check the monitor (TCODE: SXMB_MONI) is in PLSRV_OUTBOUND_BINDING.
    <Trace level="1" type="B" name="CL_XMS_PLSRV_OUTBINDING-ENTER_PLSRV">
      <Trace level="1" type="T">no outbound binding found.</Trace>
      <Trace level="1" type="T">No standard agreement found for , DES210_DEV, , JPX_DEV, urn:servipago:SERVIPAGO_SAP_02, mi_os_t1</Trace>
    </Trace>
    <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />
    And it has sense, because my scenario doesn't begin with the execution of FM (RFC).
    A Hint, my services in the first try are:
         <b>Sender Service:</b>          JPX_DEV (Java Proxy Client)
         <b>Receiver Service:</b>     DES210_DEV (R/3 4.6C)
    But the second try and so on the services that I saw in the monitor are:
         <b>Sender Service:</b>          DES210_DEV (R/3 4.6C)
         <b>Receiver Service:</b>     JPX_DEV (Java Proxy Client)
    I can't understand why they swich each other.
    Any idea?

    Hi,
    Outbound binding problem is because of Reciever Determination/Agreement is not activated or refreshed correctly.
    Try to recreate or refresh and activate it. Then check it.
    also do the cache refresh in SXI_CACHE.
    Also in go to Integration Builder(XI home page)->Administration->Cache Overview and do all the cache refresh.
    Hope this helps
    Regards,
    Moorthy

  • No response message in Proxy to JDBC synchronous scenario

    Dear Team,
    I am working on synchronous scenario Sender ABAP proxy <===> SAP PI 7.31 <===> Oracle Database.All the necessary proxy configuration has been successfully tested.
    Business Scenario:
    ABAP proxy will send a single Vendor Id to Oracle DB as request and in return , it has to retrieve all the columns related to Vendor as response.Oracle Database stores all the Vendor information.There are 11 columns including the vendor Id in the view for the Vendor records.
    Design :
    For Request structure:
    a-->Created MT for Sender ABAP Proxy with only 1 field for Vendor Id.
    b-->Created MT for Receiver JDBC  with Action as SELECT , Table with "View Name" , Access with Constant Blank for all 11 column and Key as Vendor Id.
    I have been following  the link and Bhavesh Kantilal document.
    http://help.sap.com/saphelp_nw73/helpdata/en/44/7b7171fde93673e10000000a114a6b/content.htm?frameset=/en/44/7b7855fde93673e10000000a114a6b/f
    rameset.htm&current_toc=/en/ca/b977f1c7814201954f20bb87ad7aab/plain.htm&node_id=71
    For Response structure:
    Created MT for Receiver JDBC with All the column names.
    Created MT for target ABAP ECC with the same 11 column name of JDBC response.
    Note :
    1.Database team shared a excel file as a sample payload which has all the column names of a vendor and I created my DT with the same naming conventions as they are maintaining in their database i.e. Column names are in CAPs, in the same order and even the special characters in the column name.
    2. The PING test connection for Cc works fine to database.
    Please read out my queries as the I am not receiving any response from Oracle DB and gives error as timeout exception:
    1.Since I am trying to retrieve all the column of the view , am I doing the correct procedure of putting all the column name in the JDBC request structure and making a Select statement. Can I add < * > to fetch all the column name and if so where can I add it.
    2. Whats the difference between SELECT and SQL_QUERY and on what circumstances I can add it?
    3. How can I test ICO in ID?
    4. Can I use any SOAP tool to test the messages? Is there any functionality in NWA to test the messages directly to JDBC .
    Hope all your inputs can improve my design part.
    Regards
    Rebecca

    Hi Rebecca,
    Did you go through all of these links below?
    PROXY to JDBC- SYNC
    Proxy to JDBC Sync, with Idoc Receiver
    JDBC to PROXY Sync Scenario | SCN
    JBDC Receiver Insert Statement Response
    Re: Synchronous JDBC select
    receiver JDBC structure
    Regards,
    Jannus Botha

  • Proxy to File Synchronous Scenario

    Hello,
    My scenario is 
    SAP System ----->(Proxy)   PI -------->(File)  FTP
    Synchronous Scenario
    I have been using the RequestResponseBean and ResponseOnewayBean module in the Sender Request Adapter channel to convert the file adapter from Asynchrounous to Synchronous scenario.
    While Triggering Data From Proxy the receiver request channel is placing the file in the FTP.
    But the sender Response channel is saying that "No suitable Sender  agreement found" error.
    Also in the Audit log :SOAP: call failed com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error encountered while executing mapping: com.sap.aii.af.service.mapping.MappingException: 204 .
    Getting the above error.
    Also I need the Sender Response Channel to pick the file after 10 minutes of placing the file in the FTP by the receiver Request channel.
    Please help on this.

    My question is , can I use graphical mapping as I am using a java class for content conversion?
    You can use as long as the structure generatde by the JAVA program is same as the source-message structure of the message mapping.
    I have developed a java code for content conversion and it is working fine. How to use this .jar file in XI?
    In my opinion this should be the adapter module....as the conversion needs to be done in the channel and inclucing it as a mapping wont help.
    Regards,
    Abhishek.

  • Client Proxy to JDBC synchronous Scenario

    I'm using Proxy--PI---JDBC synchronous shcenario, when i execute the proxy from R/3 it is giving me error "RCVR_DETERMINATION.NO_RECEIVER_CASE_BE" in configuration i have used one inbound receiver determination for request, my question is do i need to have one more reciever determination for response.
    Thanks for help.

    No, you do not have to add additional receiver determination
    Usually in sync scenario, make sure you have one receiver determination, no arbitration.
    If you have condition for receiver detemination, make sure the condition only return one true.
    Liang

  • Webservice Synchronous Scenario.

    Hi All,
    I will trying to implement file->webservice->file scenario using the blog.
    /people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
    Upto message mapping everything is fine and configured as given in the blog.
    But in Interface mapping , I am not getting response tab where I can specify the message mapping for response data from webservice.
    I am only getting request tab. What could the reason?
    Ranjeet Singh.

    Hi All,
    I tried to configured the scenario as given in link by Raj.
    Description:
    Syn-RFC-Syn-Webservice.
    FILE Request -> webService Request -> webservice resp->File response.
    Both file input and webservice message interface are synchronouos.
    While testing the scenario, my sender file adapter is giving this error.
    Error: com.sap.aii.af.service.cpa.CPAException: Couldn't retrieve inbound binding for the given P/S/A values: FP=;TP=;FS=BS_webservice;TS=BS_webservice;AN=MI_Request;ANS=http://sap.com/xi/sap
    to dig into the issue,
    Then I tired to implement simple asynchronous scenario.
    Asyn File Request -> Asy webservice.
    I am sending file request to XI. Xi call webservice. End.
    This time scenario ran successfully.
    Then I revert back to my previous configuration of synchronous interfaces and again i got the same error as given above.
    This cannot be CPA cache refresh otherwise secnd scenario should not have run.
    It looks like Module configuration issue. But I have SAP XI 3.0 SP 19 .
    Any idea what is happening inside Adapter engine.
    Ranjeet Singh.

  • Error in Proxy to SOAP synchronous scenario

    Hi Gurus,
    Hope you are doing well. I have a Proxy to SOAP synchronous interface interacting with an external system (system outside the firewall/landscape of my company).
    When I am trying to post the request message from XI, I am getting the following error.
    MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: The server was unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs
    In the WSDL provided by the external application, i.e. receiver WSDL, there is no attribute/field with the name 'IncludeExceptionDetailInFaults' and there is no fault string defined.
    Where is this error being thrown up? Is it a network/firewall error that XI is unable to determine?
    Please provide an answer as soon as possible.
    regards
    Debansu

    Hi,
    i think it is the problem in the WSDL provider system, because it is throwing the Error with some string".NET",
    do the below steps for investigating the issue
    1)try pinging the URL provided in the WSDL from internet explorer.
    2)if it is successfull, try to push one message from SOAP UI to by importing that WSDL, if you get any error then it is problem in the end system.
    Thank You,
    Madhav

  • Proxy to Webservice synchronous

    Hi All,
    I have a scenario where SAP PI needs to communicate with a target synchronous webservice:
    The server returns the data in binary format (byte[]) using MTOM to optimize large data transfer.
    I need to carry out the following steps after receiving the synchronous webservice response:
    1. Verify the integrity of the data received using SHA-1 hashing algorithm.
    2. Call another method on webservice server once i verify data with hash algorithm after successful receipt of data.
    3. Decrypt the data using AES symmetric algorithm.
    4. Decompress the data. GZipStream is used to compress the data.
    Can I carry out the following steps in the SOAP adapter module or I need to handle it in Java mapping.
    I was referring the folowwing blog which is similar to my scenario : /people/sap.user72/blog/2005/06/16/using-digital-signatures-in-xi
    How you use java cryptographic tool kit for this ..and the algorithm used for this purpose ..If you can send me the sample code will be very helpful .And the step by step method of implementing digital signature.
    Thanks in advance
    Edited by: Nidhi Bansal on Dec 28, 2009 7:11 PM
    Edited by: Nidhi Bansal on Dec 29, 2009 12:26 PM

    Hi All,
    I needed some tips on how I can handle this effectively:
    u2022 Outgoing SOAP request must have the Addressing, TimeStamp and SOAP Body signed.
    u2022 Outgoing SOAP request must have the body encrypted.
    u2022 Outgoing SOAP request must have the client credential in a UsernameToken.
    u2022 Incoming SOAP response must have the Addressing and TimeStamp signed.
    u2022 Incoming SOAP response does not require SOAP body encryption. Data is encrypted using symmetric key encryption.
    I need develop an adapter module in receiver soap adapter to fulfill the requirement to encrypt and decrypt.
    As per my understanding on adapter module I can access the xmlpayload and operate on it. In the above case how do I access the SOAP Header and SOAP Body and sign it.
    Also what is the sample java code to access the public certificate in J2ee keystore.

  • Message flow in SAP PI 7.31 JAVA only for ABAP Proxy synchronous scenario with Oracle DB

    Dear Experts,
    I am working on a synchronous scenario Sender ABAP Proxy <===> SAP PI 7.31 JAVA only <===> Oracle Database.I have successfully
    configured all the proxy configurations as well both Sender SOAP and JDBC receiver channels are showing no error when pinged from
    Cc monitoring in NWA.
    1.During testing at Tx SPROXY , I am triggering a message and after 5 minutes I receive an PARSING error message with 2 messages in ECC
    local IE i.e. Tx SXMB_MONI.
    Note : In NWA , I can see only 1 message that too in cancelled status.
    2.Seeing the trace of the messages I assume that the messages have not moved from sender ECC system. I am still confused with flow of message
    from the Message Audit log. Audit log of error messages.Could any one share the full Audit log of a successful message generated in SAP PI 7.31 JAVA only.
    3.I observed that the QIN Scheduler status in ECC is in INACTIVE status. There is no queue id for 2 messages generated in ECC. Does
    it should in ACTIVE status in Tx SMQR..
    Regards
    Rebecca

    Hi Thomas,
    Valuable inputs..
    1. Since I don't have any audit log for successful message, would you be able to share referring to the
    below screenshot whether the message was put into receiver JDBC adapter and JDBC adapter tried to retrieve the Select response from Oracle Database.
    2.I have done some setting in Advance mode of the receiver JDBC to increase the time out and other parameters as per SAP note but still the issue is same. If you perhaps have some experience in such scenarios, please share some input so that I can ask the Oracle Database administrator exactly what is required from our side.
    3.Regarding the slow response from Oracle , there was some suggestion that the datatype of the request and response should match the column name of the Oracle database. I did that.. Do you have any more suggestion that may be hampering the generation of the response message from the Oracle like SAP note or document.
    Regards
    Rebecca

  • Popup for logon data in proxy to webservice scenario

    Hi all,
    We configured a proxy to webservice senario. The scenario consists of an ABAP program consuming a webservice through PI. All is working fine, but when the ECC system calls the PI system a popup to enter logon data appears. After entering the correct credentials the interface proceeds and returns the data of the webservice.
    I read a lot of threads about this subject, but still was not able to find the answer to solve this problem.
    Is anyone familiair with this problem? Thanks in advance for your help.
    Best regards,
    Ivo van Ee

    Hi Ivo,
    --> The Error which you are facing is due to the configuration problem in your RFC destination of type H.These are the proxy pre-configurations steps.
    This interface was working before, but after a systemcopy from ECC production system to ECC development system the popup appeared when running the interface. We didn't make any change to the PI objects.
    --> After done with the client copy check the RFC destination of Type H whether the details provided are correct or not.
    --> If you are unable to solve this issue contact your basis consultant.
    Thanks

  • File to Proxy synchronous scenario

    Experts,
       I am working on a File to proxy synchronous scenario.
    I am doing the content conversion at the sendre side by using java program as  input structure is very complex so have to go fr java code. Its a  txt file at sender side.
    Once I read the file in XI, am doing a graphical mapping ( just one to one mapping)  then using the server proxy , a service entry is getting created then response am sending to the receiver.
    My question is , can I use graphical mapping as I am using a java class for content conversion? both in one scenario is possible?
    I have developed a java code  for content conversion and it is working fine. How to use this .jar file in XI?
    Can Any one help me wz thsi one?
    Thanks in Advance
    Virendra

    My question is , can I use graphical mapping as I am using a java class for content conversion?
    You can use as long as the structure generatde by the JAVA program is same as the source-message structure of the message mapping.
    I have developed a java code for content conversion and it is working fine. How to use this .jar file in XI?
    In my opinion this should be the adapter module....as the conversion needs to be done in the channel and inclucing it as a mapping wont help.
    Regards,
    Abhishek.

  • SOAP to Proxy synchronous scenario

    Hi,
    Hope you are all doing well.
    I have a SOAP to Proxy synchronous scenario. As part of this scenario, the data structure of the response sent by SAP is different from the response sent back to the SOAP requester. Hence I have used request message mapping between the SOAP request sent by requester and the one passed on to SAP and response message mapping between the response sent by SAP and the one passed on to the requester. Both the message mappings are incorporated in a single Interface mapping.
    The problem is that the interface is behaving like a asynchronous one, i.e., request is passing over to SAP but though the proxy is giving a response back, the same is not coming over to XI.
    It would be really helpful if you can let me know what might have gone wrong.
    regards
    Debansu

    Hi,
    you should have that:
    1. Two Message Mapping:
    1.1. a Message Mapping for request    (called MM_request)    , from MT_SOAP_request     to   MT_Proxy_request.
    1.2. a Message Mapping for response (called MM_response) , from MT_Proxy_response   to   MT_SOAP_response.
    2. One Operation Mapping (in PI 7.1) or Interface Mapping (in PI 7.0) from SI_SOAP to SI_ Proxy with:
    2.1 in the tab "request", so from MT_SOAP_request     to   MT_Proxy_request    , give your Message Mapping "MM_request".
    2.2 in tab "response"   , so from MT_Proxy_response   to   MT_SOAP_response, give your Message Mapping "MM_response".
    3. In you Directory, you define a flow like that:
    from SI_SOAP to SI_ Proxy by using your Operation Mapping.
    If I missed nothing, that's all.
    MT = Message Type
    MM = Message Mapping
    SI =Service Interface in PI 7.1  or Message Interface in PI 7.0.
    regards.
    Mickael
    Edited by: Mickael Huchet on Oct 19, 2011 4:07 PM

  • SOAP - XI- PROXY synchronous  scenario

    Hi Experts,
    I have a
    SOAP -
    XI -
    PROXY  Synchronous Scenario
    I have done the following things ESR and ID
    ESR:
    1. Created DT and respective MT for Request and Response.
    2. Created Service Interfaces with Synchronous mode with respective MT's.
    3. Created Two separate MM with respective Request and Response MT's.
    4. Created Operation Mapping and call both Request and Response Mappings in it.
    Integration Directory (ID):
    1. Configured considering Sender SOAP and Receiver ECC Services.
    2. Configured CC with required parameters in Sender SOAP CC and Receiver XI CC.
    3. Generate wsdl from Sender agreement and save it as a local file.
    I am getting error in receiver agreement. Do I need to specify any Module parameters in Module TAB for Sender CC or Receiver CC to synchronous scenario.
    Please hep me out.
    Thanks

    Hi Ram,
    I am getting error in receiver agreement. Do I need to specify any Module parameters in Module TAB for Sender CC or Receiver CC to synchronous scenario.
    It looks like you did not create a receiver agreement, or if you did, it did not match the interface that is given or configured in Interface Determination. Can you recheck your configuration?
    Regards,
    Mark

  • Synchronous Scenario SOAP to Proxy and Proxy to SOAP

    Hi Sdn,
    I am new to Synchronous Scenario.
    Third party will send SOAP message requesting some information from SAP.
    SOAP - > PI -> Proxy SAP
    they are expecting a response Proxy - > PI -> SOAP.
    Could you please let me know how to design teh Synchronous Scenario in PI .
    Thanks

    > Create DT and respective MT for Request and Response.
    > Create Service Interfaces with Synchronous mode with respective MT's.
    > Create Two separate MM with respective Request and Response MT's.
    > Create Operation Mapping and call both Request and Response Mappings in it.
    > Complete the Configuration part considering Sender SOAP and Receiver ECC Services.
    > Configure CC with required parameters in Sender SOAP CC and Receiver XI CC.
    > Generate wsdl from Sender agreement and save it as a local file.
    > Use SOAP UI or any available Tool for testing purpose. Import the generated wsdl, provide input data and execute the test.
    > If you are comfortable with expected result, deliver wsdl to the Sender Party.
    > For Inbound Proxy, you can refer initial replies.
    Hope it helps.!
    Regards,
    Sunil

Maybe you are looking for

  • How can I handle data in a multi row block?

    Hi all, I have a form which contain a multi row block. I put data in that block. Suppose that in the second column of that block data no changes.I want to fill only the first cell of the column and all the cells below first cell ( header) inherits th

  • Production Planing Report query

    Dear All, Pls. Provide me production planing report query on this basis client purchase RM for production. Best Regards

  • Trim whitespace in output file using spool program

    hi all, How do i can trim the space between the output? 1000064426                                                   16-MAR-10 60355230028 1000064269                                                   16-MAR-10 60355230002 1000064251                  

  • Print text AND pictures

    Hi, I have a psc 1355 AIO. When I have written a document in Open Office Writer with text and pictures and want to print the document, it suddenly comes out with text and an empty space where the pictures should have been. It has never done that befo

  • SQL statement audit in 8i

    Hi, Is there any way to audit that when a particular sql statement was executed against a table, e.g somebody ran an update statement on employee table. Regards