Synchronous server proxy trigger

Hi All,
i have a interface  like webservice <--> SAP XI <--
> SAP (Synchronous).
we decided to go SOAP ---Proxy interface is it correct way?
if it is correct then how we trigger the SAP report when we got the input from the webservice it should online.
when ever user enter the input it should come to SAP and based on that input SAP will provides the inforamation related to that input.
please let me know about do we need to do any ABAP coding for trigger?
thanks In advance

>> i have a interface like webservice <--> SAP XI <--
> SAP (Synchronous).
>> we decided to go SOAP ---Proxy interface is it correct way?
Yes
>> if it is correct then how we trigger the SAP report when we got the input from the webservice it should online.
You don't need to trigger anything( XI will take care of it at runtime )
>> when ever user enter the input it should come to SAP and based on that input SAP will provides the inforamation related to that input.
User will provide input which will be pushed to XI via SOAP adapter. XI will push the input to SAP via proxy
>> please let me know about do we need to do any ABAP coding for trigger?
You need to do ABAP coding for the server proxy i.e you need to do coding for the business logic( converting input to output as per requirement); no coding for trigger etc
You could proceed as follows:
1. Built two service interfaces in XI - one outbound( for SOAP) and another inbound( for Proxy)
2. For the inbound interface, generate the proxy in the SAP system
3. Within this proxy, embed ABAP code for business logic
4. Do configuration for adapters
5. Generate the WSDL from outbound interface and provide it to the user
rgds

Similar Messages

  • Server proxy implementation with synchronous inbound interface

    <b>Hi all,</b>
        How we can implement a server proxy with synchronous inbound interface.If any example weblog please send the link.
    <b>thanks,
    Kishan.</b>

    Hi,
    For sync interface. You have to have a sync MI with both request and response message type.
    when you generate a proxy for the same , you will get a method called execute_synchronous, and import and export parameter.
    You don't have explicitly identify anywhere that the interface is sync.
    Regards
    Vijaya

  • Superclass for ABAP server proxy?

    Hi Experts,
    I generated an ABAP server proxy by using a synchronous inbound interface of XI.
    Can someone tell me which superclass does the server proxy use? I am trying to send an attachment back to XI in the proxy response but am not able to write the code of it.
    Please help.
    Thanks,
    Shobhit

    Hi Prateek,
    This blog is for sending attachment in client proxy. (Sending data from ECC to XI using a trigger in ECC)
    But my requirement is to send the attachment in server proxy (XI calling the ECC proxy program which returns the attachment back to XI synchronously)
    For this purpose Im not able to use the code in https://weblogs.sdn.sap.com/pub/wlg/3509. [original link is broken] [original link is broken] [original link is broken]
    The server prxoy does not recognize the statement
    attachment_protocol ?= prxy->get_protocol(
    if_wsprotocol=>attachments ).
    as the superclass of this method is not accessable by this proxy interface.
    HELP!!
    Regards,
    Shobhit

  • Error in synchronous( abap proxy to soap)scenario

    Hi experts,
    My scenario is synchronous abap proxy to sysnchronous soap. for proxy I am using business system name as ERDCLNT220 and soap business system name as BS_HRS_DEV
    configuration steps are
    1. only client proxy to soap scenario I have done.
    communication channels: only receiver soap adapter. no proxy sender communication channel for client proxy.
    Already we have RFC destination connection and connection type H for proxy to xi.
    1.Is it required RFC destination connection for xi to server proxy.
    2.Is it required receiver proxy communication channel for server proxy?.
    i HAVE TESTED THIS INTERFACE. I am able to send the request. But I am not able to receive the response from soap webservice message .
    error is:
    SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Exception occurred while trying to invoke service method getPerson
    exception caught with cause com.sap.engine.interfaces.messaging.api.exception.MessagingException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Exception occurred while trying to invoke service method getPerson
    Error Adapter Framework caught exception: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Exception occurred while trying to invoke service method getPerson
    Error Delivering the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Exception occurred while trying to invoke service method getPerson. Setting message to status failed.
    Kindly help me.
    advance thanks
    thanks and regards
    elton
    Edited by: eltonsaranya on May 9, 2011 10:27 AM

    Your exception message shows problem at the webservice side.
    Check the following:
    a) you need two mappings one for proxy req to soap request and other soap response to proxy response
    b) You need to create service interfaces both sender and receiver synchronous .
    c) communication channel  QOS is best effort for both sender and receiver
    d) I dont see problem in soap configuration. Bcuz you are able to ping and while getting response from the method getPerson it fails.
    f) See your SOAP response structure matches with WSDL provided.
    g) You can also test outside PI.. I meant testing via soap client tool like SOAPUI  for that web service. So that you know whether problem exists on the target system or not.
    Hope that helps.

  • ABAP server proxy help required

    Hello,
    I want to make two simple ABAP server proxy scenarios
    1. File to ABAP server proxy (async scenario)
    2. File to ABAP server proxy (sync scenario)
    Pls send me the blogs/docs for the above scenarios.
    Regards

    Henry,
    Please go through the below links.
    <b>File to R/3 via ABAP Proxy with good example</b>
    /people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    <b>Synchronous Proxies:</b>
    <b>Outbound Synchronous Proxy</b>
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2boutbound%2bprogram%2b-%2bpurchase%2border%2bsend
    <b>Inbound Synchronous Proxy</b>
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2binbound%2bprogram%2b-%2bsales%2border%2bcreation
    Also go through this, if you have problems in your proxy connection.
    <b>How to Activate Proxy.</b>
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    Regards,
    Sarvesh

  • Server Proxy Creation

    Hi,
    I am working on a Synchronous scenario with Proxy at receiver side.
    I have my Inbound message in SPROXY Transaction.
    Can somebody help me out on the steps to create Proxy and the
    message structure inside the proxy on ABAP side.
    Also i need to call a BAPI inside PROXY and map my structure to the BAPI.
    How can I do this?
    Regards,
    RK

    Hi,
    refer the below link:
    Server Proxy -
    ABAP Server Proxies
    File to Inbound Proxy:
    File to R/3 via ABAP Proxy
    Debugging Inbound Proxy:
    XI: Debug your inbound ABAP Proxy implementation
    SPROXY not working:
    How do you activate ABAP Proxies?
    chirag

  • Exception in Java Server proxy

    Hi,
    I created a synchronous Java Server Proxy , and when i tested it i got this error
    *Could not parse XMBMessage due to No SOAP Envelope but 1 MT_ProxyInput*
    What could i be doing wrong?
    <?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>XIAdapter</SAP:Category>
      <SAP:Code area="PLAINHTTP_ADAPTER">ATTRIBUTE_SERVER</SAP:Code>
      <SAP:P1>500</SAP:P1>
      <SAP:P2>Internal Server Error</SAP:P2>
      <SAP:P3>com.sap.aii.af.ra.ms.api.DeliveryException: Could not create Message from TransportMessage. Reason: com.sap.aii.af.ra.ms.api.MessagingException: com.sap.aii.af.ra.ms.api.MessagingException: Could not parse XMBMessage due to No SOAP Envelope but 1 MT_ProxyInput</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>HTTP server code 500 reason Internal Server Error explanation com.sap.aii.af.ra.ms.api.DeliveryException: Could not create Message from TransportMessage. Reason: com.sap.aii.af.ra.ms.api.MessagingException: com.sap.aii.af.ra.ms.api.MessagingException: Could not parse XMBMessage due to No SOAP Envelope but 1 {http://</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>

    I chose HTTP instead of Xi adapter type

  • Sync ABAP Server Proxy - Attachment in Response possible ?

    Hi I need to send an attachment in a synchronous ABAP Server Proxy.
    I proceeded as follows:
    1. design sync inbound interface in PI
    2. generate abap server proxy
    3. implement this abap proxy
    4. tried to attach file to response like this:
        data server_context type ref to if_ws_server_context.
        data attachment_prot type ref to if_wsprotocol_attachments.
        data attachment          type ref to if_ai_attachment.
        data attachments         type prx_attach.
        data lo_protocol         type ref to if_wsprotocol.
        data lo_payload_protocol type ref to if_wsprotocol_payload.
        try.
            server_context = cl_proxy_access=>get_server_context(
            attachment_prot ?= server_context->get_protocol( if_wsprotocol=>attachments ).
            attachment = attachment_prot->get_attachment_from_binary(
                data       = lv_xdata
                type       = if_ai_attachment=>c_mimetype_pdf
                name       = 'my attachment'
            append attachment to attachments.
            attachment_prot->set_attachments( attachments ).
          catch cx_ai_system_fault .
            output-mt_get_documents_resp-fault-fault_text = 'cx_ai_system_fault'.
            output-mt_get_documents_resp-fault-fault_url = 'ERR001'.
        endtry.
    However I cannot see any attachment in the response.
    Q1: is it possible at all to create attachments in sync server abap proxy?
    Q2: if it is, what is wrong with my coding?
    cheers
    simon:)

    Veronica,
        Unfortunately, this was not possible, due to the system EHP state.
    First after upgrade this functionality will be possible ( ECC 6.0 EHP5 - corresponding to NW AS EHP2 )
    For an example, as Stefan pointed out, you might want to open OSS if your system is up-to-date and you need one.
    best regards
    Simon:)

  • Synchronous abap proxy to sysnchronous soap: complex problem

    Hi experts,
    My scenario is synchronous abap proxy to sysnchronous soap. for proxy I am using business system name as ERDCLNT220 and soap business system name as BS_HRS_DEV
    client proxy to soap(request) i have configured. But when I am doing the configuration for soap to server proxy(response) I am not able to get the message interface name in the configuration.
    Note: In the soap BS_HRS_DEV business system receiver only we will get the message interface.
    but we cannot get sender side in the same business system BS_HRS_DEV find message interface. as we are aware as a synchronous scenario both side we have to get the message interface(sender and receiver BS_HRS_DEV).
    2. what are the configuration steps  i have to do for response message
    Kindly help me.
    advance thanks
    thanks and regards
    elton

    Hello,
    client proxy to soap(request) i have configured. But when I am doing the configuration for soap to server proxy(response) I am not able to get the message interface name in the configuration.
    In a synch scenario, you only need to configure it like it is an asynch scenario. The only exception is that the service interfaces are synchronous. Each synch service interface requires at least two messages (request and response), fault message is optional. So for your scenario, at least four messages are required
    1.) 1st message (Outbound request) -> Proxy message type request that will be entering PI
    2.) 2nd message (Inbound request) -> Soap request message type going to the webservice
    3.) 3rd message (Inbound response) -> Soap response message type from webservice going to PI
    4.) 4th message (Outbound response) -> contains the message type that has the values that you want
    So the flow could be like this (fault messages not shown)
    Outbound SI (1) -> PI -> Inbound SI (2)
                (4) <- PI <-            (3)
    what are the configuration steps i have to do for response message
    No additional steps in ID. Just make sure you handle the mapping of response message in ESR (if you have one)
    Hope this helps,
    Mark
    Edited by: Mark Dihiansan on May 3, 2011 10:01 AM

  • Sending PDF as an attachment in the ABAP server proxy

    Hello All,
    I have a synchronous SOAP to ABAP PROXY.
    In the response ABAP server proxy i need to attach PDF file as an attachment.
    Could you please suggest any ideas of attaching PDF file as an attachment in the SERVER PROXY response.
    Thanks in advance.
    Hari

    Hi Hari,
    check this link: http://help.sap.com/saphelp_nw70/helpdata/en/51/d5cd16235e4643ae8ec92395c4ad97/frameset.htm
    Also search on SDN, you will get many thread links with same question
    ABAP Proxy Attachment
    Regards,
    Praveen Gujjeti

  • Synchronous outbound proxy

    Hi all,
    I need a synchronous outbound proxy in SAP BW from XI. I do not know how to get it or how to implement it. I do not really know how the proxy works.....
    I am thankful for every little help or explanation.
    Thanks in forward
    Peter

    Hello Peter,
    Proxy Generation 
    Purpose
    Proxy generation converts non-language-specific interface descriptions in WSDL into executable interfaces known as Proxies.
    Depending on the target programming language, you choose one of the following:
    u2022        ABAP proxy generation is part of the SAP Web AS 6.40. ABAP proxy generation enables you to generate proxies to communicate by using the Web service infrastructure and by using SAP Exchange Infrastructure. ABAP proxies that were generated from message interfaces in the Integration Repository (IR) can be used in both infrastructures. This means that if none of the Integration Server services are required for a proxy-to-proxy communication scenario in ABAP, you can use a point-to-point connection using the Web service infrastructure instead.
    u2022        Java proxy generation in the Integration Builder (Design) generates proxies from message interfaces in the Integration Repository. Java proxy generation packs the proxy objects in a Jar file, which you can save locally. You use the generated classes in J2EE applications on the SAP J2EE Engine.
    How to create proxy.
    http://help.sap.com/saphelp_nw04/helpdata/en/14/555f3c482a7331e10000000a114084/frameset.htm
    How to Activate Proxy.
    How do you activate ABAP Proxies?
    ABAP Server Proxies (Inbound Proxy)
    ABAP Server Proxies
    OutBound Proxy (Client Proxy)
    Smarter Approach for coding ABAP Proxies
    ABAP Proxies in XI(Client Proxy)
    File to R/3 via ABAP Proxy with good example
    File to R/3 via ABAP Proxy
    Debug your inbound ABAP Proxy implementation
    XI: Debug your inbound ABAP Proxy implementation
    http://help.sap.com/saphelp_nw2004s/helpdata/en/48/d5a1fe5f317a4e8e35801ed2c88246/frameset.htm
    Synchronous Proxies:
    Outbound Synchronous Proxy
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2boutbound%2bprogram%2b-%2bpurchase%2border%2bsend
    Hope this info is very useful to you,
    Thanks,
    Satya Kumar
    Edited by: SATYA KUMAR AKKARABOYANA on Dec 17, 2008 3:49 PM

  • Error getting while implementing server proxy

    Hi All,
             I am implementing server proxy using synchronous inbound message interface.I am trying to get the purchage order details from SAP.I am giving input as PO number.While getting output of multiple rows it is showing only one row.that is the problem.If i can change the occurence of output fields its getting syntax error.
           how can i get the multiple row items from that synchronous proxy.please give me any suggestions.
    thanks,
    Kishan.

    Hi Shabarish,
        Thanks for reply.If i can change the occurence in outout structure at the time the output is not assigning to the output fields.This  is getting syntax error.
          The interface is working only for 1 occurence.
          I am assigning the output like this..
       <b>output-ES_TARGET_MSG_TYPE-ITEM-PONUMBER = it_EPSS-PONUMBER.</b>
       here it_EPSS is the table.
       ITEM-PONUMBER is the output field.
    thanks,
    Kishan.

  • Exception at server proxy

    Hi,
    In the scenario of server proxy where CRM is updating an application,
    If at any such state where some error happens n CRM fails to update, how can i trigger this process again .
    If i throw evception using exception class , then how can i generate the proxy again(think hav to generate proxy again to trigger whole process again)
    so as to try updating again in CRM,
    Pls suggest me on this ,
    Thanks,

    hi,
    if you implemented the server proxy exception correctly
    you just need to click on restart on your message
    (or have it sheduled) and the proxy will be executed once more
    Regards,
    michal

  • Server Proxy attachment with Attachment(s)

    Hi everyone,
    I have the requirement to create a server ABAP proxy that will provide a SOAP response with an attachment.   That is, the webservice will take the request message, do some work, and then send the response back along with a SOAP attachment.
    If I create a consumer proxy I can send the attachment out without an issue. I just cant seem to do it with a server proxy though.
    Does anyone have sample code on how to do this?
    SPROXY -> create the server proxy (inbound sync interface) -> code that goes inside of the method??
    Thanks in advance.

    Thanks for the link Trevor.  That piece of code is something that we can already do.   The code that I am looking for would get executed inside of the method during the request/response.
    For example, if I go into the ESR and build an Inbound Sync interface.  Then I go into SPROXY on the ECC box and build a proxy for it.  Next, I go into the provider class, open the method, and insert the code.
    In this manner, a request coming in would trigger a response that would include an attachment (assuming there was a way to do this).

  • Internal table in ABAP Server Proxy

    Hi Experts,
        I have developed a JDBC to ABAP Proxy scenario.
    I have a problem. In my ABAP server proxy I have to import the values into an internal table and pass them to a BAPI for GR creation.
    I get an error like. OCCURS 0 is not allowed in OO concept.
    Can anyone give me examples on declaring internal table in an ABAP Proxy(OO Concept).
    Thanks
    AK

    Hi
    Check this out.
    http://help.sap.com/saphelp_nw70/helpdata/EN/fc/eb3660358411d1829f0000e829fbfe/frameset.htm
    Cheers

Maybe you are looking for

  • Transfer a file from App Server to a FTP site.

    Hi, Abapers. I need your help. Probably, this topic has already been posted in a similar way, but we need an answer to solve our problem. We have to sent a PDF file from a directory of our app server (AIX) to a FTP directory... which would the FM seq

  • Update address-dependent email field on save of BP

    We have a requirement to update the address-dependent email field from the address-independent email field upon saving a Business Partner. I've been working on the 'BUPA_ADDR_UPDATE' BADi but am having no luck with it so far. I have managed to retrie

  • ORA-1653: unable to extend table X by 8192 in tablespace Y

    Hi, I have got this error in the alert log.As far as i know i need to add a datafile to that tablespace. But i don't understand why its throwing this error when the existing datafile in the Y tablespace is SET as Autoextend on and MAXSIZE is UNLIMITE

  • Sending IDoc from R/3 to XI -ongoing

    Hi, With reference to my previous errors while sending IDoc to XI from R/3 system. I have resolved errors with help of Seshagiri and Kummari advise and help. But now I am getting new kind of error, while sending IDoc from R/3 its getting passed from

  • How can I retrive current user information in Content Server's presetation template?

    We need to determine current user is the item's created user or not, so we want to know how to do this? we can use <pcs:if expr="'Luke' == createdBy">....,but the 'Luke' is static string, so, how can I retirve current user name in Content Server's pr