RFC- XI -SOAP and response back to RFC

Hi,
I am doing RFC-XI-SOAP and get response back from SOAP to RFC.
if I am not check the "Do Not Use SOAP Envelop" then it gives error in SXMB_MONI says  - NO SOAP envelop.
"No SOAP Envelope but 1 {}RESPONSES; HTTP 200 OK"
if I check thet  check bos ""Do Not Use SOAP Envelop" then it gives no error in SXMB_MONI , but message is not giving response back from webservice in SXMB_MONI it shows only
<?xml version="1.0" encoding="UTF-8" ?>
  <ns1:MYRFC.Response xmlns:ns1="urn:sap-com:document:sap:rfc:functions" />
gurus ...Pl. reply asap

hi, all
you are right the XML sp/tcpgateway response structure is different than what I used earlier,
now I build the same structure,but then also some problem occures it is giving only one element from structure in response.
it is giving
  <?xml version="1.0" encoding="UTF-8" ?>
- <ns1:MYRFC.Response xmlns:ns1="urn:sap-com:document:sap:rfc:functions">
  <STATUS>Success</STATUS>
  </ns1:MYRFC.Response>
while actual inbound from WS is ...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!--  Inbound Message   -->
- <ns0:testrequestResponse xmlns:ns0="conversion" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" Status="Success" DbgCmd_="testrequest" DbgTag_="REQUEST">
- <ns0:SAP_OUTPUT>
  <ns0:E1 Value="3000194" />
  <ns0:E2 Value="300"/>
  <ns0:E3  Value="3"/>
  </ns0:E4 Value="94">
  </ns0:testrequestResponse>

Similar Messages

  • Sending response back to RFC in UDF

    Hi All,
    I have a Sync scenario from RFC to SOAP. I want to check the line items in RFC request. If there are no line items , then i want to stop the scenario and use UDF to send the constant (Invalid line items based on validations) back to RFC responce by using RFC lookup.
    Is it possible to send response back to RFC in UDF?
    Please suggest me, i want to handle exceptions without BPM.
    Thanks and regards
    Uma

    hi,
    >>Is it possible to send response back to RFC in UDF?
    I don't think such an option exists in standard
    but maybe you can do the check in the RFC much faster instead os checking
    this in XI ?
    Regards,
    Michal Krawczyk

  • BAPI - XI - webservice and response back to BAPI

    HI experts,
    could anyone please explain the step by step procedure for the below scenario in XI.
    1.Bapi ->2.XI -> 3.webservice -> 4.XI -> 5.Bapi
    BAPI must invoke a service in XI which invokes a webservice and fetches the data from external system, the response received back in XI is mapped to the BAPI.
    a) How to configure BAPI in SAP R/3 to invoke XI service
    b) how to configure the communication channel for RFC and SOAP
    please provide links for step by step procedure.
    Thanks & Regards,
    Shan

    Hi,
    Check these
    RFC -> XI -> WebService - A Complete Walkthrough (Part 1)
    /people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
    RFC -> XI -> WebService - A Complete Walkthrough (Part 2)
    /people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2
    Regards
    Seshagiri

  • RFC - XI -SOAP problem

    Hi,
    I am doing RFC -XI -SOAP scenario in which I am sending PO no. from R/3 using RFC --> call the webservice using SOAP --> get response back in RFC response.
    in this all the test is successful, there is no error in SXMB_MONI or RWB (all successful) , but I can't get the data back as Response from Webservice (no payload in sxmb_moni) , and webservice guy told me that my message even can't reach to webservice host server.
    Pl. suggest any resolution urgent, (or how to trouble shoot)
    I allready visited most blogs of SOAP (3387/3408,trouble shooting) . but if it give any error then I can cure, here it is not giving any error and not giving response aslo.

    Hi,
    Check this two links complete walk throug RFC-XI-SOAP.
    RFC -> XI -> WebService - A Complete Walkthrough (Part 1)
    RFC -> XI -> WebService - A Complete Walkthrough (Part 2)
    Regards,
    Phani

  • How to merge source data with RFC response and post back again as Idoc

    Hi All,
    This is the requirement we have for an interface
    The legacy application is sending Vendor master to PI 7.0
    If it is new vendor then it is send as an Cremas Idoc into SAP. Legacy (New Vendor) -
    > PI 7.0  -
    >Cremas Idoc SAP
    If it is changed Vendor legacy will only send changed fields for that Vendor.In PI we would like to call an RFC which will return all the data for that changed Vendor Number and then merge the RFC response with changed data from legacy and then send it to SAP as Cremas Idoc again with all values.
    I know these can be achieved using Proxy by custom Abap Code in SAP.But we would like to avoid it.
    How can we achieve it?
    1.RFC lookup - Shall we use these , when PI receives changed Vendor from legacy ,it will call RFC using RFC lookup and the response message from RFC lookup should be merged with source data .Is this possible?
    2.Shall we achieve this using BPM ?Is it feasible and How?
    Any Help greatly appreciated
    Thanks,
    V

    If it is changed Vendor legacy will only send changed fields for that Vendor.In PI we would like to call an RFC which will return all the data for that changed Vendor Number and then merge the RFC response with changed data from legacy and then send it to SAP as Cremas Idoc again with all values.
    I am not sure why you want to pull whole data from R3 and send back to R3.
    you can follow any of these approach..
    if you have any indicator for new/ changed cusotmer in the legacy data then trigger CREMAS IDoc accordingly.
    mapping rules will be diffrent for New and changed CREMAS idoc.
    otherwise just do RFC look up for each record then based on the output(new/changed) create or update cusotmer data through CREMAS IDoc.
    when changing the customer through CREMAS no need to pass whole data again. it is enough if pass the changed fields. offcourse qualifier values  for segments will differ.

  • WS to RFC Scenario:: One RFC As Req and Other as Response

    Hi Experts,
    I am dealing with a scenario, WS to RFC, where I have to Use the request of one RFC as the resonse of the other RFC.
    WS--> Req Of RFC1
    RFC2 as Resp of RFC1-->WS
    Please suggest how it can be accomplished?
    T & R
    Sushama

    Hi Sushama,
    Hope u r doing well!!!
    As the scenario is SOAP to RFC, When you are dealing with this scenario you have RFC (Bapi) req and responce as well
    In the IR part
    we need to configure two message mappings
    1) Soap sender to bapi request
    2) Bapi response to soap receiver
    In the interface mapping we need to assign two mapping one is req mapping and res mapping in mapping program we can get a tab after assigning a bapi
    In the ID part
    Soap adapter as sender  (with mandatory parameter of MI and namespace)
    RFC adapter as receiver  (If RFC is a receiver, no need of configration from SAP side)
    Receiver determination
    Interface determination
    Sender agreement
    Receiver agreement
    Hope this might help you... Dear Experts. pls correct me if i'm wrong
    Thanks
    Rajshekar

  • SOAP ACTION IN SOAP ADAPTER and PROGRAM  IF IN RFC COMMUNICATION CHANNEL

    Hi Gurus,
    Please Explain me what is SOAP action in soap adapter what is the use of it.
    What is the Program ID in the RFC communication channel and what is the use of it.
    Please tell me in  Detail.
    Thanks and Regards,
    RAM.

    Hi,
    Please Explain me what is SOAP action in soap adapter what is the use of it.
    As of W3C definition:
    The SOAPAction HTTP request header field can be used to indicate the intent of the SOAP HTTP request. The value is a URI identifying the intent. SOAP places no restrictions on the format or specificity of the URI or that it is resolvable. An HTTP client MUST use this header field when issuing a SOAP HTTP Request.
    The presence and content of the SOAPAction header field can be used by servers such as firewalls to appropriately filter SOAP request messages in HTTP. The header field value of empty string ("") means that the intent of the SOAP message is provided by the HTTP Request-URI. No value means that there is no indication of the intent of the message.
    Putting things simple, this is an identifier of an operation that you want to execute in the web service (as one web service can offer multiple actions).
    What is the Program ID in the RFC communication channel and what is the use of it.
    Again, this is an identifier for both: RFC sender and receiver systems. It tells the receiver where to listen for connections, and the sender - where to send the data. It works a little bit like a port number in HTTP communication, but with less restrictions.
    Hope this helps,
    Greg

  • RFC  to SOAP Scenario -- Delivery Exception

    Hi All,
    I am working on RFC to SOAP scenario.
    On executing a program in the SAP system, the system is throwing a dump stating                                                   "com.sap.aii.af.ra.ms.api.DeliveryException: invalid content type for SOAP: TEXT/HTML".
    I feel that the error is because of the response not being sent back by the webservice. On executing the webservice independently, it is working fine i.e. sending back the response.
    Can anyone suggest the possible reasons for this error and what needs to be done to rectify this?
    Thanks,
    Ravi Kiran

    the return from the Web service must have been an HTML(may be an error page or something)...What kind of authorization does this WS look for ?
    Pls check these threads...
    SOAP Receiver Adapter Proxy Settings
    Receiver SOAP Adapter Error: invalid content type for SOAP: TEXT/HTML

  • Rfc to soap (webservice)

    Hi,
    I have a RFC in R3 sending out employee# in TABLES parameter to XI. XI needs to call an external webservice, for each of these employees and get their name.
    RFC will collect the names in the TABLES parameter(second column) and send response back to R3. (This way i can keep R3 -XI- R3 traffic to single message).
    Appreciate help to develop this scenario. Would BPM be useful in this scenario....i would like to use it too.
    Thanks,
    Ram

    Hi,
    If you alredy BAPI with you then you no need to go for Proxy,you can build customized BAPI to pull the data from tables,then use RFC adapter to retrive the data from tables and send it to web service using SOAP adapter use synchronous mode,Webserice send the response and update the same in R/3.(i never use RFC sender as sync)
    else use ABAP proxy in sender side,it will work for you.
    no need to go for BPM.
    Regards,
    raj

  • (SOAP sender) --- XI ---- R/3 (RFC receiver) this sync scenario

    Hi Experts,
    Webservice(SOAP sender) < - > XI <--> R/3 (RFC receiver) this sync scenario tested with Infopath successfully.
    I have given partner number,student object id are the two input fields(request) and i am getting student number as response. This scenario is working when i use MS infopath.
    I have generated WSDL file embedded with below URL
    http://xxxx.yyytec.passh.ed:7271/XISOAPAdapter/MessageServlet?channel=:Webservice_Sender_BS:GET_NUMBERS_Sender_CC&version=3.0;amp;Sender.Service=Webservice_Sender_BS;amp;Interface=urn%Apache
    Sender business system: Webservice_Sender_BS
    Sender CC: GET_NUMBERS_Sender_CC
    Msg Interface: STU_GET_NUMBERS_Synch_MI
    now we want to test from third party website, what are the things to be provided to the website developer to test the scenario.
    the way i generated URL, is it correct?
    if i provide above URL and generated WSDL in XI , is it enough for web developer to enter the input fields to RFC(r/3) via XI as webservice request and getting back response from RFC(r/3) to webservice via XI.
    can you please advice if any body worked on this kind of scenario.
    Thanks
    Dhanush.

    For the developer you have to provide WSDL file so that they know the input/output fields and write the code.
    URL is correct.
    Other informatino they required is Username and password of you PI system.
    Gaurav Jain
    Points if answer is helpful

  • RFC -- XI --- SOAP synch scenaio

    Hi Experts,
          My current scenario is RFC<> XI <-> SOAP.  Rfc sending request and getting responce back from WebService, current scenario is working fine.   Now i want to modify existing scenario, I want to send WebService response to RFC and Receiver Mail adapter also, please advice me what should i modify in my scenario. i do not want to change my existing RFC.
    Thanks
    Dhanush.

    Hi Gaurav,
    May i know why do we use BPM at the beggining for receiving request from R3 to XI,
    is it possible to do the same like below steps.
    1) RFC sends the request to XI ,
    2) XI sends the request to Webservice
    3) webservice gives the response back to XI
    after receiving the response to XI from webservice, is it possible to use BPM in this step to send the response to RFC and Receiver Mail adapter. instead of using BPM at the beginning.
    can any one help me how to do useing this approach.
    other than this approach: https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1403 [original link is broken] [original link is broken] [original link is broken]
    Thanks,
    Dhanush.

  • Sych BPM scenario (RFC to SOAP)

    Hello
    I am using the RFC2SOAP scenario using the process shown below to get alerts.
    Receive  - Open S/A bridge ( Sync receive)
    Transform - Request_Asyn ( Mapping from RFC request to SOAP request)
    Sync Send - Call SOAP
    Transform - Response Asyn ( Mapping from SOAP response to RFC response)
    Send - Close S/A bridge
    Switch - Success / Failure
    Control - Alert
    My question is: How many Receiver detrminations need to be provided. Also, system is not proposing the Abs mapping between RFC and SOAP Sync Messages automatically.
    Did any one has implemented this scenario, will this process work ?
    Appreciate any help.
    Regards
    Prasad

    Hi Prasad,
      Sync BPM works fine, but i doubt if the below scenario works.
    1) I dont think in your Transform the Request/Response be Async. cos all are sync calls. secondly if you open S/A bridge, you are supposed to give Abstract Sync Interface.
    2) I doubt the swtich and control step as well, I dont know what msg you would get at that stage, because the 'S/A close' would end the call by sending back the response to Interface (AbsSync as per #1).
    Hope this helps,
    keep us posted of the outcome of your trials.
    Regards
    Vishnu

  • RFC to SOAP Interface - Problem in Request Message Mapping

    Dear All,
    We are working on RFC to SOAP Scenario i.e. pulling out data from an WebService from SAP via PI.
    In Request Message Mapping, when the wsdl file is uploaded as Target Message, the wsdl request shows the nested elements like below.
    <Request>
       <Request_New>
          <PAR1>xyz</PAR1>
          <PAR2>123</PAR2>
       </Request_New>
    </Request>
    But the desired Request should go like below.
    <Request>
       <PAR1>xyz</PAR1>
       <PAR2>123</PAR2>
    </Request>
    Hence it gives an error saying that the tag Request_New does not exist.

    Dear All,
    Our target webservice cotains multiple methods.
    The every method contains its corresponding request, response and SQL ecxeption as messages.
    In case of request structures, every method (except crmPaymentReceived) contains more than 1 root element.
    So while calling those methods having more than 1 root element, the additional header tag will always appear(not avoidable) in the request coming from SAP PI.
    For Example,
    Request Structure for method u2018isLoginIdExistu2019 (having more than 1 root element)
    <?xml version="1.0" encoding="UTF-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
    <ns1:isLoginIdExistRequest xmlns:ns1="http://netpricing">      -
    >>>>>  u201CThis Header tag will always appear u201D
    <isLoginIdExistin0>asp</isLoginIdExistin0>
    <isLoginIdExistin1>1</isLoginIdExistin1>
    </ns1:isLoginIdExistRequest>
    </soap:Body>
    </soap:Envelope>
    For this method, we get the error(saying that ns1:isLoginIdExistRequest xmlns:ns1="http://netpricing" does not exists).
    Request Structure for method u2018crmPaymentReceivedu2019 (having only 1 root element)
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd=http://www.w3.org/2001/XMLSchema-instance xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soap:Body>
    <ns1:crmPaymentReceivedin0 xmlns:ns1="http://netpricing">false</ns1:crmPaymentReceivedin0>
    </soap:Body>
    </soap:Envelope>
    For this method, we get the success response.
    I tested their wsdl URL in XMLspy and wizdal(a wsdl testing tool), it shows request in the format having only root elements and not the header tags.
    But header tags will always appear when header tag contains more than 1 root element.
    Can anybody suggest me how do I tackle this?
    Thanks in Advance.

  • Error in Interface Sync RFC-XI-SOAP

    Hi,
    I have an interface RFC - XI - SOAP Sync.
    The error appears only in PRD environment and is intermittent error.
    Follow the message error in sxmb_moni:
    <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Security.SecurityException: The event source ExceptionManagerInternalException does not exist and cannot be created with the current permissions. ---> System.Security.SecurityException: Requested registry access is not allowed. at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) at System.Diagnostics.EventLog.CreateEventSource(String source, String logName, String machineName, Boolean useMutex) at System.Diagnostics.EventLog.CreateEventSource(String source, String logName, String machineName) at System.Diagnostics.EventLog.CreateEventSource(String source, String logName) at Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher.VerifyValidSource() --- End of inner exception stack trace --- at Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher.VerifyValidSource() at Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher.Publish(Exception exception, NameValueCollection additionalInfo, NameValueCollection configSettings) at Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.PublishInternalException(Exception exception, NameValueCollection additionalInfo) at Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.Publish(Exception exception, NameValueCollection additionalInfo) at Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.Publish(Exception exception) at mServices.WebServices.mServices.CancelServiceOrderList(OrderTypeCancelTO[] orders) --- End of inner exception stack trace ---</SAP:AdditionalText>
    Could you help me?
    Thank a lot.
    Maicon.

    > {quote:title=Rosa Maicon wrote:}
    > Hi,
    > I have an interface RFC - XI - SOAP Sync.
    > The error appears only in PRD environment and is intermittent error.
    > The event source ExceptionManagerInternalException does not exist and cannot be created with the current permissions.
    This looks like a permission error for the user role provided in production. try sending soap request from web client tool and see whether you get the same error.
    Check whether you have all the permissions required and also check whether there is WS security in the production environment.
    Regards,
    Pavan

  • RFC to SOAP sync error

    Hi All,
    I am doing the RFC to SOAP sync scenario. request R3 data is coming to XI and its triggering to SOAP receiver.
    Information SOAP: continuing to response message e9598290-a14f-11df-969a-00145e474044
    Error SOAP: response message contains an error Application/UNKNOWN/APPLICATION_ERROR - application fault
    i have tried to test the File to SOAP sync scenario to test the SOAP and its working fine. from file request to soap request and soap response to file response.
    the same way i have done the RFC request to soap request and soap response to rfc response.
    in sxmi_moni i can see the request from RFC but i did't find the request mapping to SOAP.
    I have tested the test mapping and its working fine.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  XML Validation Outbound Channel Response
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="UNKNOWN">APPLICATION_ERROR</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>application fault</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="http://www.webMethods.com/2001/10/soap/encoding">exception</SAP:ApplicationFaultMessage>
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    the r3 request stacture is:
    <filed1>
    <filed2>
    <filed3>
    <ITEM>
    <ITEM1>
    <ITEM22>
    </ITEM>
    the soap request stacture is:
    <filed1>
    <filed2>
       <Header>
        <filed1>
        <filed2>
        <filed3>
       </header>
       <Item>
        <item1
        <item2>
        <item3>
       </Item>
    </field2>
    </field1>   
    is there any issue with mapping?
    RFC sender CC error is Error in processing caused by: com.sap.aii.adapter.rfc.core.server.RfcServerException: got unexpected document type:DOC_TYPE_UNKNOWN
    Can you pls let me know the some inputs to reslove this issue
    Thanks,
    Venkat

    have tried to test the File to SOAP sync scenario to test the SOAP and its working fine. from file request to soap request
    and soap response to file response. the same way i have done the RFC request to soap request and soap response to rfc
    response.
    FILE to SOAP Sync scenario....did you use RequestResponseBean and are you using the same to process RFC to SOAP Sync scenario? If yes, then you dont need the RequestResponseBean for RFC <--> SOAP.
    in sxmi_moni i can see the request from RFC but i did't find the request mapping to SOAP. I have tested the test mapping
    and its working fine. - - Application APPLICATION_ERROR application fault exception M the r3 request stacture is: the soap
    request stacture is: is there any issue with mapping?
    I hope you have included a mapping program for Request Mapping and also for Response Mapping in the Interface/ Operation Mapping and included the same in Interface Determination!
    Regards,
    Abhishek.

Maybe you are looking for

  • Crystal 2008 - Selected table names are blank or end in 1

    I am creating a new report in Crystal 2008.  I am connecting to a database using ODBC.  The tables show up correctly in the available tables column of the Database Expert.  Once I select a table the table shows up in the selected tables list as an ic

  • I use Firefox at work and home. I have different screens on thee two computers. I can't figure out how to make them the same even though all settings match.

    At home the address bar etc is grey but my settings are for rose. At work using the colour settings the address bar is rose. I have a different setup with icons on the two screens. At home I have the refresh icon between the search bar and address ba

  • Mac not constantly connected to network

    I have both a Mac Mini and a Macbook and both are unable to maintain connection with the network. The internet does work, but whenever I need to use the wireless printer or connect with another computer on the network, I need to reset airport to esta

  • Want help on statspack

    Hi, I will be running a statspack report on my database. I need some help. I have installed the statspack correctly. I want a statspack report every 30 minutes. how shall I do this. Regards SL

  • WRT160NV2 problems

    Got a WRT160NV2 that is not working. First, the power light is flashing constantly. I've tried the reset buttong for 30 sec/ 1 min then unplugging...but still flashed. I've downloaded the Firmware update, saved to desk top, but can't get it to open b