Webservice to RFC  testing

Hi,
I am testing webservice the RFC scenario using SOAPUI 2.0.2 tool and I get the below message in SOAPUI.What could be the problem?
Thanks
Points will be awarded
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP:Body>
      <SOAP:Fault>
         <faultcode>SOAP:Server</faultcode>
         <faultstring>Server Error</faultstring>
         <detail>
            <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
               <context>XIAdapter</context>
               <code>DeliveryException</code>
               <text>com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:NO_MAPPINGPROGRAM_FOUND:
     at com.sap.aii.adapter.xi.ms.XIEventHandler.onTransmit(XIEventHandler.java:451)
     at com.sap.aii.af.ra.ms.impl.core.queue.CallConsumer.onMessage(CallConsumer.java:125)
     at com.sap.aii.af.ra.ms.impl.core.queue.Queue.run(Queue.java:795)
     at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
     at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:74)
     at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:141)</text>
            </s:SystemError>
         </detail>
      </SOAP:Fault>
   </SOAP:Body>
</SOAP:Envelope>

I see 3 error msg in sxmb_moni
*1st msg shows sender  to receiver*
*response msg*
  <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!--  Request Message Mapping
  -->
- <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="RFC_ADAPTER">APPLICATION_ERROR</SAP:Code>
  <SAP:P1 />
  <SAP:P2 />
  <SAP:P3 />
  <SAP:P4 />
  <SAP:AdditionalText />
  <SAP:ApplicationFaultMessage namespace="urn:sap-com:document:sap:rfc:functions">Z_****************************.Exception</SAP:ApplicationFaultMessage>
  <SAP:Stack />
  <SAP:Retry>M</SAP:Retry>
  </SAP:Error>
*response Call adapter payload*
<rfc:Z_*****************************.Exception xmlns:rfc="urn:sap-com:document:sap:rfc:functions"><Name>RFC_ERROR_SYSTEM_FAILURE</Name><Text>The function module is not active or contains no code.</Text></rfc:Z_*******************************.Exception>
*2nd msg(receiver to sender)*
  <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!--  Request Message Mapping
  -->
- <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="RFC_ADAPTER">APPLICATION_ERROR</SAP:Code>
  <SAP:P1 />
  <SAP:P2 />
  <SAP:P3 />
  <SAP:P4 />
  <SAP:AdditionalText />
  <SAP:ApplicationFaultMessage namespace="urn:sap-com:document:sap:rfc:functions">Z_*****************************.Exception</SAP:ApplicationFaultMessage>
  <SAP:Stack />
  <SAP:Retry>M</SAP:Retry>
  </SAP:Error>
*response Call adapter payload*
<rfc:Z_***********************.Exception xmlns:rfc="urn:sap-com:document:sap:rfc:functions"><Name>RFC_ERROR_SYSTEM_FAILURE</Name><Text>The function module is not active or contains no code.</Text></rfc:Z_***********************.Exception>
*2nd msg(receiver to sender)*
  <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!--  Request Message Mapping
  -->
- <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="MAPPING">NO_MAPPINGPROGRAM_FOUND</SAP:Code>
  <SAP:P1>http://*****************os_**************toZ_********************</SAP:P1>
  <SAP:P2 />
  <SAP:P3 />
  <SAP:P4 />
  <SAP:AdditionalText />
  <SAP:ApplicationFaultMessage namespace="" />
  <SAP:Stack>Unable to determine name of mapping program</SAP:Stack>
  <SAP:Retry>N</SAP:Retry>
  </SAP:Error>

Similar Messages

  • Error in 'WEBSERVICE TO RFC' SCENARIO

    Hi experts,
      i am facing a problem in 'WEB SERVICE-RFC' scenario,here we are using soap sender communication cheannel & rfc receiver communication channel.while processing the message from 'portal'(through web service in 'SXI_MONI' we are gettin 1 request & 2 response(error) message.
    (in sxi_moni)
    1st error message:
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <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="RFC_ADAPTER">APPLICATION_ERROR</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="urn:sap-com:document:sap:rfc:functions">ZBAPI_QUOTATION.Exception</SAP:ApplicationFaultMessage>
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    [note: here we are using 'ZBAPI_QUOTATION' IN sap r/3)
    2nd response:
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <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="MAPPING">NO_MAPPINGPROGRAM_FOUND</SAP:Code>
      <SAP:P1>Object ID 08490A2EBE1A301E9D13373FF379B9BE Software Component 9776FD71CBAE11DF8942F5910A010C19</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Interface mapping Object ID 08490A2EBE1A301E9D13373FF379B9BE Software Component 9776FD71CBAE11DF8942F5910A010C19 does not exist in runtime cache</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    please help me to solve this issue.

    For the mapping error >>>  Please check whether  you have created a response mapping and properly  referenced it in your operation mapping
    For the RFC exception error >> Please check if you have any new fields added in RFC , re Import the RFC definition in PI
    refresh the cache SXI_Cache
    Please check below similar threads
    file rfc file
    RFC_ADAPTER "APPLICATION_ERROR"
    Re: Webservice to RFC  testing
    Hope this helps
    Regards
    Ninad

  • Webservice to RFC Scenario - Through Java Mapping

    Hello All,
    In my integration scenario, I will receive a request from a webservice consumer. The webservice is my outbound interface.
    Now I have to write a Java Mapping for it because a similar interface (file to RFC) has been implemented using it and the customer wants minimum deviation from that functionality.
    One question, that I have at this point in time is:
    I must define a Java class that implements the Java interface com.sap.aii.mapping.api.StreamTransformation. This interface has two methods, one of them is:
    public void execute(java.io.InputStream in, java.io.OutputStream out). In the existing interface the InputStream object say 'input' has been initialized to FileInputStream:
    InputStream in = new FileInputStream(new File("Sample7.xml"));
    What shall I initialize it to in my case? One probable is a InputSource, but does the execute method accept an InputSource?
    Please help,
    Regards,
    Varun

    Hello Jose,
    Thanks for your reply, but what I have mentioned above is how it is being done in a similar interface. That being a file to RFC interface, it makes sense to initialize 'in' with the file name.
    But if you mean that I do not need to initialize in my case (Webservice to RFC), then I'll surely give it a try and if useful, will get back to you.
    Thanks again,
    Varun

  • Webservice to RFC scenario

    Hi
    In the webservice to RFC scenario i am trying to create a webservice from the tools->define webservice option. the system takes to me a webservice creaton wizard and it asks for the Integration Server SOAP inbound channel URL I know that the  syntax of the URL is like shown below.
    http://host:port/XISOAPAdapter/MessageServlet?channel=party:service:channel
    How do I know what is the host and port of the system??
    Also we need java knowledge to excel in XI. I want to know to what extent we need to learn Java to be able to excel in XI. Is there any blog or link which discuss about this?
    thanks,
    sankar

    Hi,
    TCODE: SXMB_IFR
    Then you'll see then server, port .
    Also:
    SMICM -> goto -> services
    Java basic knowledge is required where u can able to write the user defined function in graphical mapping,
    but sometime the requirement is not fullfilled then u need to to go for advance java for writing a java mapping or adapter module program.
    We use ABAP Proxies in case of we are dealing with the ABAP Based Applications
    We use JAVA Proxies in case of we are dealing with the JAVA based application
    in SAP XI We have two ways of connectivity
    1) adapter
    2)proxy
    in applications based on WAS 6.20 or above we can directly communicate to XI through Proxies
    while application based on below WAS 6.20 you have to use adaptyer to communicate to XI
    proxies seperate business application logic from the integration logic of integration logic
    proxy generation converts non language specific interface description in WSDL into executable interface
    Java proxy is generated from the WSDL description opf interface and this is generated as a JAR file in IR
    while ABAP proxy is generated by transaction SPROXY
    on Application server based on WSDL description of message interface
    PROXIES have same mode and direction as Interfaces have
    To learn Java you should know only basic concepts of java means you must have basic java programmin skill
    Java proxy can be generated through wizard also this is an inbuild functionality of SAP XI
    to lear java follow this link
    java.sun.com/docs/books/tutorial/
    To learn ABAP you should know beginner level ABAP4GL
    ABAP is very simple language and coding is like that you are writing simple english sentence so you would be feeling comfortable withABAP with a little practice
    GO to T CODE se24 and start developing
    learn ABAP with this link
    http://www.itquestionbank.com/sams-teach-yourself-abap-4-in-21-days.html.
    Regards,
    Vinod.

  • Regarding webservice to RFC approach

    Hi all,
    I am doing webservice to RFC (Synchronous) interface.
    1.coould you please let me khow how many times PI can try to send information to and external system via a web service.
    2.In case PI could not connect to the external system after N number of trials and PI sends alert or email informing  about the failure, what would happen to the data, would it still be in PI or we will lose the information.
    3.What should be done from external system perspective to retrieve the data into itself once it is up and ready to receive the data.
    Thanks and Regards
    Kishore

    1.in this case, how abt data reprocess from PI incase of failures when target webservice is not available.
    Only the request will be processed (in terms of mapping and sending to target)......then you will get an error which will indicate that something is wrong with target system and the call will close with a red mark in SXMB_MONI.
    You have to resend the message from the sender.
    2.please confirm, data wont be available in PI, to resend from PI to webservice, since this is sync communication.
    It does not happen as the way you have mentioned......PI wont store the data and make a call again in case of error.
    3.Also please confirm how abt in async communication ( say for ex: proxy to webservice ) to handle data reprocess from
    PI in case of failures due to target webservice is not available.
    One is increasing the number of retries of the target channel....this is documented in a blog (probably by Naveen)
    Regards,
    Abhishek.

  • Error While executing WebService to RFC Scenario

    Hi,
    I am doing a Scenario of WebService to RFC . While Executing the WSDL in Altova I am getting an Error.
    <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
         <SOAP:Body>
              <SOAP:Fault>
                   <faultcode>SOAP:Server</faultcode>
                   <faultstring>Server Error</faultstring>
                   <detail>
                        <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
                             <context>XIAdapter</context>
                             <code>ADAPTER.JAVA_EXCEPTION</code>
                             <text><![CDATA[
    What might be the problem ..??

    When you receive a system fault, it means the receiver has an application error. So, please review the Configuration and Design objects (Integration Repositor/Directory), if all determinations and agreements are correct. Also, please try refreshing the cache by running the http://<host>:<port>/CPACache/refresh?mode=full (with PIDIRUSER).
    If you still face it, please provide the "<text>" tag content, for the exception trace.

  • Regenerate webservice from RFC

    We created several webservices from RFC in SE80. The initial creation went well. However, now we want to regenerate the webservice since, after a system copy, the XSLT transformations are giving errors. These are generate per environment (local objects). Now since these copied transformation are not available (under there generated names), the web services need to be regenerated. Question is: How to do this from ABAP / SE80 / RFC.
    I tried to re-create these webservices via SE80, but I get error message, that webservice already exists. Not possible to overwrite.
    I actually have two questions:
    1. How to regenerate the WS?
    2. Is my assumption correct that by regenerating the WS, the error with the XSLT transformations will be solved, since they are regenerated together with the webservices?
    Thanks in advance.

    Hi,
      Go to Web service (SE80) -> go in change Mode -> Click on Check button -> if there are any discrepancies then you get message to adjust it. Say 'Yes' -> Save the service and activate it.
    This might help.
    Regards,
    Priya

  • Using Webservice through RFC Func Mod Can I able to fill dropdown field

    Hi,
    I am going to develop offline interactive form using Webservice through RFC Function module.
    There are dropdown list fields in my adobe form. Then how can I able to fill these dropdown fields in my form, I mean how to bind the values to dropdown fields.
    Thanks & Regards,
    nspkumar.

    Hi,
    Option 1:
    If the form is designed in transaction SFP, which has a form interface (transaction SFI), then below solution will work:
    For example consider the data node name as 'COUNTRY' . Select drop down UI element and go to 'Object' properties tab. Select 'Binding' tab, on the top right hand side of this tab there is small icon, select the icon and enable the option 'Show Dynamic Properties'. Once this option is enabled in the 'Binding' tab you can click on the link 'Specify Item Values'. A popup will open, here specify the binding value as 
    $record.sap-vhlist.COUNTRY.item[*]
    Refer to link:
    [Drop down list binding|http://help.sap.com/erp2005_ehp_06/helpdata/en/43/7a667df4ad6fc9e10000000a1553f6/frameset.htm]
    Option 2:
    If the data connection is directly to the webservice then binding needs to be done similar to option 1 except one change. While binding the value in dynamic properties based on XML schema binding needs to be changed.
    As you can see in option 1, for dynamic property binding 
    $record.sap-vhlist.COUNTRY.item[*]
    , there is a value called sap-vhlist. This 'sap-vhlist' gets generated when form is designed in transaction SFP with form interface. So in your case if data connection is from webservice value sap-vhlist needs to changed to the value as per XML schema definition.
    Regards
    Srikanth KV

  • RFC - XI - WebService, scenario error in RFC Test

    Hi
    I am following this scenario
    /people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2
    and did sender RFC Adapter configuration according to michal's weblog  
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    when I did RFC connection test it gives me the following error
    http://www.flickr.com/photo_zoom.gne?id=1202592205&size=o
    <b>Connetion test:</b>
    Connection type: TCP/IP connection
    Connection error: Program sdnweblogs not registered/ CPI- C error CM_ALLOCATE_FAILURE_RETRY
    Can you pls let me know what is this error , how to solve this ?
    Thanks
    srinivas

    > The Program name which you have defined in the TCP/IP
    > Connection needs to be registered in the J2EE Visual
    > Admin. until you do that this will not work.
    This is not needed at all.
    Your RFC adapter and the TCP IP Connection should use the same Program ID. No need for registering it in the VA.
    Just make sure that the Gateway Host and Service in the Sender RFC adapter and in the TCP IP Connection use the Gateway Host and service of the R3 system.
    Regards
    Bhavesh

  • Scenario XI - HTTP - Webservice - XI - RFC - SAP R/3

    Hi,
    i have the scenario:
    Sending request to an Webservice per HTTPS and catch the response. This is working fine. In transaction sxmb_moni i can see the answer as XML.
    I have implemented the scenario response from webservice mapped into RFC-Function and send into SAP R/3. But i have to run this manuell! How can i run this automatically after getting the response from the Webservice.
    Thanks for any answere,
    Max

    Hi Max,
    You could look at these threads :
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    http://help.sap.com/saphelp_nw04/helpdata/en/11/13283fd0ca8443e10000000a114084/content.htm
    BPM: Multiple synchronous receivers
    Synchronous - Synchronous BPM
    Synchronous BPM start
    Regards,
    Laurent.
    Reward points if helpfull.

  • Risk Terminator ECC 6 - CC 5.2 - RFC  Test: Program not registered

    Dear board,
    I am configuring the risk terminator functionality and stumble accross problems with the setup of the RFC destination from ECC to the CC. The connection test fails with "ERROR: program GRCRTTOCC5X not registered".
    The RFC connection is of type TCP/IP, Registered Server Program, Default Gateway Value and Gateway host/service information I took from another working rfc connection.
    The RFC connection is equal to the one set up in the RT configuration transaction, I have set up a dedicated connector on the CC with direction outound and GRCRTTOCC5X as report.
    I have furthermore noticed that I am not able to active the SAP Adapter in the CC yet, a JCO error appears.
    Any ideas?
    Kind regards and many thanks,
    Richard

    Hi Richard,
    I am sorry to bother you and distract with this query, but couldn't find your email in your profile.
    Could you please contact me regarding your SPNego problem discussed in
    SPNego - Windows integrated Single-Sign On not working - How to debug?
    We are facing the same issue and I was curious whether you had a solution?
    <b>Thanks so much</b>, Emir
    My email is emirce at gmail dotcom.

  • Error in RFC test connection

    Hello Friends
    I am running a program which is using a RFC destination (PS_ACCESS_2).
    The program runs well when I run it in the foreground but in the background it gave error.
    To over come the error I made some changes to the RFC destination.
    The changes are as below.
    1)If you check the Rfc dest PS_ACCESS_2 in sm59 it is pointing to a exe file. I kept this file in application server and checked the radio button "start on application server".
    2) I clicked the radiobutton "specify timeout" and increased the timeout value.
    Inspite of these changes when I try to test the connection it gives error.
    the error says " logon Error".
    Kindly help me resolve this error
    Thanks in Advance
    Sudheendra

    Hi kishore
      There is no option to enter User name and password though there is a tab "logon & Security".
    In the tab "Logon & Security" I can see the below things
    Send SAP logon ticket    -> This is checked in my case.
    Status of secure protocol -> This is set to inactive in my case.
    Any help will be greatly appreciated

  • Difference between Webservice and RFC

    Dear Experts,
    We have an application to implement where the application will be called from other NON SAP technology. We got two solutions one is developing RFC's and calling it from other NON SAP Technology OR developing Webservice. Could any one please suggest us to which way do we need to choose?
    Regards,
    Gopinath A.

    That's more or less up to you. In a nutshell: RFC is a known SAP technology for communication between SAP and (NON) SAP systems (both ways, inbound and outbound). Communication is set up quite easily (check SCN for that, work for Basis Administrator).
    From an RFC, you can get to a WebService within a few clicks. RFC is basis of a webservice, which is based on known (internet) standards.
    You decide, together with NON-SAP system (can it consume or provide RFC requests, or webservices for that matter) and basis administrators.
    You can find a lot of info in SCN on both methods about architecture etc. This should help you decide.

  • XML not well formed - Java Mapping, Webservice to RFC Scenario

    Hello All Experts,
    I have facing a strange type of error. I have written a Java Mapping which implements a DOM parser to take a request from a Webservice and validate it on the basis of some prerequisites. i.e. If data in the incoming request is valid, it creates a message of the same structure type as the input. If the incoming data is incorrect or incomplete; It generates an Error response structure.
    When I run and test the same mapping program using Editplus Java editor for the error scenario; it executes perfectly and creates the correct error XML structure. (I checked it by importing the structure in the XI Message mapping test tab). But when I create jar of my java mapping program and test it in my interface mapping, it gives me "XML not well formed error" (Problem while building the tree).
    Any idea as to why is it behaving in such a way? There are 2 reasons which come to my mind as of now:
    1. The initilization of my input and output streams in the public static void main:
                InputStream in = new FileInputStream(new File("Input.xml"));
               OutputStream out = new FileOutputStream(new File("Output.xml"));
               validateXML myMapping = new ValidateXML();
                myMapping.execute(in, out);
    The Output.xml has the xml structure for the correct case, do I have to initialize my outputstream for the error file? say error.xml
    2. My Webservice interface is a sychronous interface (Request / Response) and output of the Java mapping program are two asynchronous interface. (I'll use a synch-asynch bridge when this works) - Is that causing a problem?
    Please help.
    Best regards,
    Varun

    Hello Varun,
    it gives me "XML not well formed error" (Problem while building the tree).
    I have come across the same error message while testing in interface mapping. My problem was when an exception occured in java mapping, the execution terminates with the messages XML not well formed error". In order to solve this issue what i did was catch the exception type TransformerException and in that catch block throw StreamTransformationException exception in main methos of mapping program i.e execute().
    eg:-                                                                               
    catch (TransformerException e) {
                   throw new StreamTransformationException("Can not write XML.", e);
    By doing this you will see the exception raised , because some times when you execute your mapping with mail() method, though it create the file, when you try to open it will give error if any exceptions occured in mapping. By using the above notation you can handle those in java mapping.
    Hope you have gone through this blog.
    [Handling and Tracing Exceptions in java mapping|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417700)ID1055371050DB01666765031379427182End?blog=/pub/wlg/15061]
    Regards,
    Prasanna

  • Webservice to RFC:Msg not coming to XI

    hi all,
               I am doing a soap to rfc scenario.I have created a synchronous outbound interface and mapped to a bapi which again gives a response.In config i created a business service for soap and a system for rfc and created the respective communication channels.Now i tried to test the scenario using an http client page but i find that there are no messages going to XI.Can anyone please help me out with this???
    thanks,
    Nisheeta

    Thats is strange.
    If the user has no authroization the request would have failed at the HTTP Client itself.
    Else, even if there ws an error the message would be in MONI.
    One final thing to check is if SYNC_LOGGIN is set.
    log on to XI> SXMB_ADM> Integration Engine Confioguration --> Specific Confgiuration --> See if there is a parameter <b>LOGGING_SYNC</b> and see if it has value <b>1</b>
    if not, add this value and then test your scenario.
    Regards,
    Bhavesh

Maybe you are looking for