Mapping SOAP response to RFC out parameters

Hello
I have RFC to SOAP (sync) scenario.
The SOAP reponse from webservice is an embedded XML string (Result XML wrapped within Response XML; The result string from web service is an XML itself)
How to achieve Message Mapping so that the fields in the result XML can be captured directly in to RFC output paramters?
I have mapped Result XML string to RFC output thru User Defined Function. I have filtered xml tags in UDF but I do not wish to hard code the tags' filtering.
Is there a better solution?
Kindly advise.
cheers
Alkesh

Hey Chris
Here are the structure samples (source & target)
The intention is to map <Elem1> & <Elem2> of each <Line> to RFC structure fields, 'Item1' & 'Item2'.
The <Line> items can be multiple and for each Line one RFC strcuture 'Record' has to be created.
*********source begin**
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <WSDLResponse xmlns="namespace123">
      <WSDLResult>xml_string</WSDLResult>
    </WSDLResponse>
  </soap:Body>
</soap:Envelope>
...where the xml_string is as below (whole XML)-
<?xml version =''1.0'' encoding=''utf-8'' ?>
   <Addr>
     <Result>
         <ErrorCode>0</ErrorCode>
         <ErrorDesc></ErrorDesc>
     </Result>
     <Return>
         <Line>
             <Elem1>value1</Elem1>
             <Elem2>value2</Elem2>
         </Line>
         <Line>
              <Elem1>value3</Elem1>
              <Elem2>value4</Elem2>
         </Line>
      </Return>
    </Addr>
source end***
The target structure is -
target begin***
- RFC strcture
    - Record
         - Item1
         - Item2
source end***
Apologies for the lengthy text but it is quite confusing
What is the best way to achieve mapping?
thx
Alkesh

Similar Messages

  • Mapping problem in SOAP response to RFC response - RFC-XI-SOAP scenario

    Hi gurus,
    response structure from SOAP is as below (inbound msg - in SXMB_MONI)
    MONI and RWB shows successful(I am using graphical mapping)
    <?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">
    - <ns0:SAP_OUT>
           <ns0:F1 Value="1234" />
           <ns0:F2 Value="2345" />
         - <ns0:SAP_LINES>
             - <ns0:SAP_LINE>
                    <ns0:SAP_L Value="1" />
                    <ns0:Field5 Value="" />
                  - <ns0:SAP_S1>
                           - <ns0:SAP_S>
                                   <ns0:ID Value="11111" />
                                   <ns0:SAP__NO Value="0001" />
                                   <ns0:DATE1 Value="08/15/2008 00:00:00:000" />
                                   <ns0:FST/>
                             </ns0:SAP_S>
                    </ns0:SAP_S1>
             </ns0:SAP_LINE>
          </ns0:SAP_LINES>
      </ns0:SAP_OUT>
      </ns0:testrequestResponse>
    I make the RFC response with same structure and mapped it but it is not giving the full structure rather it is giving only this (Outbound Msg in SXMB_MONI)
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns1:Z_MYRFC.Response xmlns:ns1="urn:sap-  com:document:sap:rfc:functions">
      <STATUS>Success</STATUS>
      </ns1:Z_MYRFC.Response>
    what went wrong?

    Hi,
    You would have forgot to map parent node coming after <STATUS>Success</STATUS>
    Make sure that you have properly mapped all the parents and there child.
    Are you getting the same result while Testing it standalone?
    Thanks
    Sunil Singh

  • Map XML content to RFC Input parameters

    Hello
    I have a MII Transaction that opens a xml file from a legacy system, this transaction have to handle the content of that XML file and fill out the BAPI_PRODORDCONF_CREATE_TT parameters.
    My transaction is already reading the XML using Reference Document Loader, this feature is working properly.
    The question is... what are the different ways to map my XML to the RFC parameters ?

    This blog might help:
    http://scn.sap.com/people/padmavathi.rao2/blog/2009/03/14/mii-odyssey-how-to-pass-table-structure-to-bapi-using-jco-interface-of-erp-system-interface-in-mii-12
    Regards,
    Christian

  • Synchronous RFC -- SOAP Scenario: problem with SOAP Response/Fault Mapping

    Hi,
    I've a synchronous RFC --> PI --> SOAP Scenario. The problem is that the message structure of the sending RFC doesn't match the Webservice Structure.
    The (SAP standard) RFC has just a Request / Response message structure. Part of the Response Message structure is a exception structure.
    The Webservice has a Request / Response message structure and in case of an error I get a SOAP:Fault.
    Problem now is that I cannot configure that scenario without usage of BPM as I will have to map SOAP:Response or SOAP:Fault to the RFC Response structure.
    Has anybody another idea to do that synchronous scenario (with usage of message mapping) without BPM?
    BR
    Holger

    1)
    you maus define 3 mapping.
    1)request
    2)response
    3)Fault
    in Interface mapping define at response boths (2-3) mapping. its clear??
    2)
    otherwise sometjhing is not clear, why do you want fault?? why dont you  get only response message. we implement this kind of response:
    <response_MT>
    <ID> (error ID)
    <system> (target system) 
    <error> (Error Description)
    </response>
    by this way fault message is not needed. but if you must have it just follow the top of message else, propose second.
    Thanks
    Rodrigo
    Thanks
    Rodrigo
    Edited by: Rodrigo Pertierra on Feb 25, 2008 11:52 AM

  • Soap request- XI- RFC- RFC- soap response

    Hi,
    I want to implement a scenario like this.
    A third party system use the soap adapter to call the ECC RFC via XI.
    AND I want to write the RFC response into another RFC.
    After that i want to send back another Rfc response result to soap client (third party system).
    So the scenario looks like this
    soap request->XI->RFC->RFC->soap response
    I want to use BPM,but have not too much experience.appreciate your help.
    Regards

    Hi,
    You would need a Synch Asynch Bridge in this case.
    Steps in BPM.
    1. Receive --> Receives SOAP request message --> Select Opens Synch Asynch Bridge
    2. Transfrom --> Map SOAP request to RFC 1's request Message
    3. Send Synchronous --> Make the Synch Call to the RFC and get the Response back.
    4. Transform --> Map RFC 1's response  to RFC 2's Request
    5. Send Synchronous --> Make the Synch Call to RFC 2 and get the RFC response back
    6. Trasnsform -->Map RFC 2's response to SOAP response.
    7. Send --> Select Closes Synch Asycnh Bridge and Send SOAP response back.
    For synch asynch bridge , take a look at this too,
    http://help.sap.com/saphelp_nw04/helpdata/en/83/d2a84028c9e469e10000000a1550b0/content.htm
    Regards,
    Bhavesh

  • Help Need on SOAP (Sender) to RFC Scenario(Synchronous Communication)

    Hi All
    I have a requirement of <b>SOAP(Sender) to RFC</b> scenario(Syncronous Communication).  The scenaio goes like this........
    I have a web service through which I have to create a SAP Notification in SAP system and the Notification ID created and other details have to be returned back to the webservice from the BAPI.  I have identified the relevant BAPI for the scenario.
    I have a wsdl file which I have uploaded it.  What are the next steps to be done?
    Please let me know what all(e.g., Data types, Message Types, Message Interface)  I have to create in Integration Repository and what all configurations I have to make in Integraion Directory.
    FYI, I have a gone through a list of Blogs, but didn't get enough info.
    Please help me out in providing your valuable answers.
    Thanks,
    Vijay
    P.S. Rewards points are sure .....

    Hi Vijay,
       If at all you have uploded wsdl file for the webservice you no need to create data types for the same even for the same as RFC also.
         Create message mapping and drag the wsdl file which you have imported as External Definiations and there you will be having request and response parameters..Do the mapping accordingly(according to your requirement).
    Mapping like:
        Wsdl(Request)---->RFC (Input parametrs)
        RFC (out parameters)------>wsdl(Response)
    Create message interface with Synchronous for outbound
        No need of DT,MT if at all if you import the wsdl file.
       Hope i am clear.
      Please let me know if you have any queries..!
      Thanks and Regards,
      Chandu.
    null
    null

  • Handling/Mapping a SOAP response message back to the RFC request Message

    Hi
    I was wondering if you could kindly offer some advice on how to handle the SOAP response back to an RFC in a RFC>SOAP>RFC.Response scenario. When executing an RFC function module that triggers a message to XI, the outbound message seems to process successfully, however, there is an error in the response message. I am not sure how to map the response back to the function module response message because it looks like the response payload is empty. It is also strange that the interface seems to run in synchronous mode despite being configured as an asynchronous interface. If it ran in asynchronous mode, there would not be a problem because we actually do not need a response back. The interface also runs perfectly when executing it from the Runtime Workbench, and it also runs in asynchronous mode as it should.     
    I would really appreciate any suggestions on how to solve this problem.
    Thank you,
    Brendon

    Hi Reyaz,
    This is actually an RFC-->SOAP scenario where the message structure of the source and target systems are different. We don't actually need a reponse back from the SOAP system. I was wondering if you perhaps know how we can cancel the Response response back to the requestor or at leaset map the SOAP response back?
    The interface runs perfectly in asynchronous mode when executing it from the Runtime Workbench in the test section, but it runs in synchronous mode for some reason when executing the RFC function call in SAP.
    Thank you,
    Brendon

  • Soap response mapping error

    hi
    i got payload of response from webservice as below;
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <m:requestResponse xmlns:m="http://tempuri.org/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <result xsi:type="xsd:string">20060911tt11</result>
      </m:requestResponse>
    when i test mapping with above contents in mapping test tab, i got mapping error as blow;
    16:03:59 Start of test
    Cannot produce target element /ns1:Rnumber_MT/rnum. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd Cannot produce target element /ns1:Rnumber_MT/rnum. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd
    16:03:59 End of test
    source side in MM_response, comming from wsdl for MT.
    result          xsd:string
    target side in MM_response, i created DT, MT.
    Rnumber_MT
             |__
                 rnum  xsd:string
    i sent data to webservice succesfully, and i can see return value as well, but mapping error.
    please guide me.
    thanks in advance
    venjamin

    hi
    in response procedure;
    my scenario abap proxy 2 soap sync
    1. response from webserivce --> r/3
      there is no DT, MT due to coming from wsdl.
      only i can see result xsd:string
    2. data type for r/3
       Rnumber_DT
           rnum xsd:string
       message type Rnumber_MT
       Rnumber_MT
           |_
               rnum  xsd:string     
    3. mapping for response
       1. source (webservice)
         external message : requestResponse
         result xsd:string
       2. target  (r/3)
       Rnumber_MT
           |_
               rnum  xsd:string  
       i did map ,,, result ---> rnum..
      here is payload for response from webservice....
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!-- Request Message Mapping
    -->
    - <m:requestResponse xmlns:m="http://tempuri.org/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <result xsi:type="xsd:string">20060911tt11</result>
    </m:requestResponse>
    please help me
    thanks in advance
    venjamin

  • Soap(sync) to RFC(Sync Scenario ,error in response

    Dear all,
    For Sender,I created 2 message types
    request
    record
    getdetail                        1..1
    Response
    Details
    Records                       0..1
    items                             1-- unbounded
    1                                    0-1
    2                                     0--1
    3                                     0--1
    4                                     0--1
    The Rfc is imported in to Imported objects which has similar structure as source i.e same occurrences and higher levels.
    I took 2 message mappings
    1)MT request to RFC Request
    2)MT Response tp RFC Response
    Operation mapping
    req_out(MT req,MT_res)---- RFC(MT)
    The problem is while testing in operation mapping ,I am getting error in Response.
    in Message mapping as an individual mapping it is working fine(tested in mm test tab).
    I did not configure the ID,Is it required to get the response.
    if not pls provide me pointers on the same.
    We are using PI7.3,are there any changes in generating and publishing the WSDL.
    Can I use Integrated configaration for this scenario.
    If I use it where to pudlish wsdl as there will be no sender agreement to publish in SR.
    Thanks
    Pi

    Hi,
    >>>The problem is while testing in operation mapping ,I am getting error in Response.
    COnfiguration objects need to be created & test as full scenario.
    B'cos, it need to hit RFC of ECC & provide back the response.
    >>>in Message mapping as an individual mapping it is working fine(tested in mm test tab).
    so, the mapping part is working fine.
    >>>I did not configure the ID,Is it required to get the response.
    if not pls provide me pointers on the same.
    Yes. configure the ID objects.
    >>>We are using PI7.3,are there any changes in generating and publishing the WSDL.
    Not sure, but, it should be same. Create all the objects & generate the WSDL.
    >>>Can I use Integrated configaration for this scenario.
    Yes. it can be used.
    >>>If I use it where to pudlish wsdl as there will be no sender agreement to publish in SR.
    why NO SA. it should be created in this scenario.
    -santosh.

  • Do we need to mapp the SOAP Response to any thing in mapping???

    Hi,
    I have a scenario like IDOC----SOAP
    In this we have the WSDl file for SOAP webservice, this contains Request and the response structures.
    We are not mapping the response to any thing, why because we dont want any response and the IDOC is not ment for Sync process.
    So what will happen in this case, any error will occure??
    Regards
    Suman

    Hi,
    i have one more doubt on this scenario,
    Our Webservice team is saying that you dont mapp the Response structure in mapping and we will send the response msg to XI and Xi will show u the response msg in XI.
    Is this possible by any chance
    Regards
    Suman

  • How to map WSDL response to different RFC?

    Hi ALL,
    I have following scenario.
    Suppose there are 2 different RFC like
    1.  RFC A (Async)
    2.  RFC B
    And I have one WSDL (Web Service)
    Now flow of scenario is as following
    Step 1: RFC A will send request to WSDL (Web Service)
               need to map RFC A request to WSDL request.
    Step 2: WSDL response to RFC B
               how can I map WSDL response to different RFC?
    Can we map response of WSDL to different RFC? If yes please let me know the steps.
    Thanks in advance.
    Thanks,
    Bhupesh

    Step 1: RFC A will send request to WSDL (Web Service)
    need to map RFC A request to WSDL request.
    Step 2: WSDL response to RFC B
    how can I map WSDL response to different RFC?
    Have your communication as Asynchronous....
    create your scenario as:
    Scenario 1) RFC A ---> XI --> WSDL
    Scenario 2)
    WSDL --> XI (Mapping to RFC 1) --> SAP
    WSDL --> (XI Mapping to RFC 2) --> SAP
    In scenario 2 you will need:
    1) Two MI...each based on the individual RFCs (RFC 1, 2)
    2) Two mapping programs
    In ID
    1) One Sender Agreement
    2) two receiver agreements
    3) two interface determinations
    4) in receiver determination check for some field which needs to be send to the RFC...this will imply that only a particular wsdl response is mapped to the RFCs (RFC1, 2)...here you can correlate using some value

  • SOAP Response Error Message

    Hi Experts
    I am working on a RFC to SOAP scenario, where RFC is Asynchronous and SOAP is Synchronous,
    Message are being sent to SOAP and Response are coming back from Reciver system into PI server and it is failing i.e error status because there is no map for the response,
    How can we make the Response message not to error out without doing any mapping in PI 7.0
    Thanks
    PR

    HI,
    When sending the RFC, send asynchronously, meaning call 'in background task' and 'commit work'. Since the QOS for this type of call is EO, the asynchronous nature will be propagated to the receiver end and you should see no response being generated.
    This can help you:
    /people/swaroopa.vishwanath/blog/2006/12/28/send-rfc-to-sap-xi-150-asynchronous
    And Hope that you have removed expor parameters of RFC and reimported in to ESR.
    Let us know if this resolves your problem
    Thanks
    Divyesh Vasani

  • Soap response with envelope

    Hi
    My PI server is able to make a soap call to the SFDC ( webservice ) ...however the response that is received within PI
    has a SOAP envelope...and hence the response mapping is going in error....because the source data type in response mapping doesnot match with the soap response ( with envelope )
      <?xml version="1.0" encoding="UTF-8" ?>
    - <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:enterprise.soap.sforce.com">
    - <soapenv:Body>
    - <upsertResponse>
    - <result>
      <created>false</created>
      <id>a0UT0000004aeaMMAQ</id>
      <success>true</success>
      </result>
      </upsertResponse>
      </soapenv:Body>
      </soapenv:Envelope>
    how do i handle this

    Hi,
    I think there is an option while configuration of SOAP adapter, where you can define, not to keep SOAP envelop. Please check the option Conversion Parameters\Do Not Use SOAP Envelope and set it as per your requirement. That might solve the problem. Here is the link which can be helpful
    http://help.sap.com/saphelp_nw04/helpdata/en/29/5bd93f130f9215e10000000a155106/content.htm
    Alternatively you need a java mapping or XSLT mapping to remove the envelop.
    Here is the java mapping code to remove SOAP envelop
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.Map;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    import com.sap.aii.mapping.api.StreamTransformation;
    import com.sap.aii.mapping.api.StreamTransformationException;
    public class RemoveSoapEnvelop implements StreamTransformation{
    public void execute(InputStream in, OutputStream out)
    throws StreamTransformationException {
    try
         DocumentBuilderFactory factory=DocumentBuilderFactory.newInstance();
         DocumentBuilder builderel=factory.newDocumentBuilder();
         /*input document in form of XML*/
         Document docIn=builderel.parse(in);
         /*document after parsing*/
         Document docOut=builderel.newDocument();
         TransformerFactory tf=TransformerFactory.newInstance();
         Transformer transform=tf.newTransformer();
         Element root;
         Node p;
         NodeList l;
         int mm,n1;
         //if you need to include namespace use next two lines
         //root=docOut.createElement("ns0:upsertResponse");
         //root.setAttribute("xmlns:ns0","http://connectsystems.be/MAINFR/AccDocument");
         root=docOut.createElement("upsertResponse");
         p=docIn.getElementsByTagName("upsertResponse").item(0);
         l=p.getChildNodes();
         n1=l.getLength();
         for(mm=0;mm<n1;++mm)
              Node temp=docOut.importNode(l.item(mm),true);
              root.appendChild(temp);
         docOut.appendChild(root);
         transform.transform(new DOMSource(docOut), new StreamResult(out));
    catch(Exception e)
         e.printStackTrace();
    public void setParameter(Map arg0) {
    public static void main(String[] args) {
    try{
         RemoveSoapEnvelop genFormat=new RemoveSoapEnvelop();
         FileInputStream in=new FileInputStream("C:\\Apps\\my folder\\sdn\\sd2.xml");
         FileOutputStream out=new FileOutputStream("C:\\Apps\\my folder\\sdn\\removedEnvelop.xml");
         genFormat.execute(in,out);
    catch(Exception e)
    e.printStackTrace();
    input xml file sd2.xml
      <?xml version="1.0" encoding="UTF-8" ?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:enterprise.soap.sforce.com">
    <soapenv:Body>
    <upsertResponse>
    <result>
      <created>false</created>
      <id>a0UT0000004aeaMMAQ</id>
      <success>true</success>
      </result>
      </upsertResponse>
      </soapenv:Body>
      </soapenv:Envelope>
    Here is the output xml removedEnvelop.xml
      <?xml version="1.0" encoding="UTF-8" ?>
    <upsertResponse>
    <result>
      <created>false</created>
      <id>a0UT0000004aeaMMAQ</id>
      <success>true</success>
      </result>
      </upsertResponse>
    Helpful articles on java mapping for PI 7.1
    http://wiki.sdn.sap.com/wiki/display/XI/SampleJAVAMappingcodeusingPI7.1+API
    You can also try following XSLT mapping to get the same output as java mapping
    <xsl:stylesheet version="1.0"
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    exclude-result-prefixes="SOAP-ENV">
    <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" />
    <xsl:template match="/">
    <xsl:for-each select="SOAP-ENV:Envelope/SOAP-ENV:Body">     
    <upsertResponse>
    <result>
         <xsl:variable name="var" select="normalize-space(.)"></xsl:variable>
         <xsl:variable name="tokenizedSample" select="tokenize($var,' ')"/>
        <created><xsl:value-of select="$tokenizedSample[1]"/></created>
        <id><xsl:value-of select="$tokenizedSample[2]"/></id>
        <success><xsl:value-of select="$tokenizedSample[3]"/></success>
    </result>
    </upsertResponse>
    </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>
    Other than these please refer to following links for further examples on the topic
    Remove SOAP-ENV tags from xml RECEIVER RESPONSE payload (XSL needed?)
    Remove SOAP Envelop using XSLT  mapping.
    Hope this helps your cause.
    regards
    Anupam

  • SOAP sync to RFC - Multiple lines in the RFC 'input'

    Hello everyone!
    I need a little 'insight help'/opinion.
    I had a cenario that was working just fine, SOAP Async to iDoc. In the cenario I received 1:n lines and send it to the iDoc. No problem at all.
    Now,  the analyst asked us to change this cenario to: SOAP Sync to RFC (I opposed that but.. it's their decision..)
    So, I created a RFC with NO IMPORTING AND EXPORTING and 2 TABLES. One table to receive 1:n lines as inputs of the data, and other table to give 1:n line as response of the process of that line.(the RFC is remote, so can be used by PI)
    When I test this RFC in R3 using transaction SE37, I am able to enter 1:n line in the input table, and get the 1:n line in the response table. And also, the data is inserted in my table. Perfect.
    When I import and use this RFC in PI, everything seems to be fine during mapping procedures and such, but when I execute the SOAP call, I get an mapping error. I was able to see that:
    1 - The Response from the RFC using PI is 'blank'. I mean, the mapping from the response of the RFC to my SOAP is 'null', that's why I´m getting the error mapping.
    2 - Tha data WAS NOT inserted into the table using PI. This worries me more.
    So, my question is, does PI understand the use of 2 tables (one as 'input' and other as 'output') from the RFC? - the RFC has no importing and exporting, only tables, as I've mentioned.
    Also, is this what I am trying to achieve here, possible? I mean, can I expect to use a RFC with multiple line as 'input' or PI only accepts 'parameters' as input?
    Thanks for the insight help!
    Ricardo Sancio Lóra
    Brazil

    but when I map anything from the response to my output, I get the mapping error, but if I map something constant it
    worked
    Did you test the mapping in IR using the Test tab of Interface/ Message mapping? If it is working for Constant and not for runtime (or other) values then it means that the mapping logic is not proper.
    But did you see when I say that the item was NOT inserted into the table in R3?
    Now the last check-point in XI.....is your RFC channel showing proper payload in RWB --> Component Monitoring --> Adapter Engine --> CC Monitoring?
    Regards,
    Abhishek.

  • SOAP Response handling

    Helo
    I have a problem when receiving SOAP Message response and I hope you can help.
    The code has been working fine until two days ago, when I could NOT receive the SOAP Messages anymore and I do not know what to do.
    Anyway my piece of code is like below:
        public static void main(String[] args) {
                // Create the connection
                SOAPConnectionFactory scf = SOAPConnectionFactory.newInstance();
                SOAPConnection conn = scf.createConnection();
                // Create message
                MessageFactory mf = MessageFactory.newInstance();
                SOAPMessage msg = mf.createMessage();
                // Object for message parts
                SOAPPart sp = msg.getSOAPPart();
                SOAPEnvelope env = sp.getEnvelope();
                //  STUFFS SKIPPED MANY ADDING HEADER AND BODY AND DIFFERENT PARTS
                // Save message
                msg.saveChanges();
                // View input
                System.out.println("\n Soap request:\n");
                msg.writeTo(System.out);
                System.out.println();
                // Send
                String urlval = "http://someURL/files.jws";
                SOAPMessage rp = conn.call(msg, urlval);
                // Get reply content
                Source sc = rp.getSOAPPart().getContent();
                // Close connection
                conn.close();
            } catch (Exception e) {
                System.out.println(e.getMessage());
            }My question is how can i wait for the respose from the URL?
    Because it looks like the response is being delayed and for some reason, when it is coming back I have already finished the execution of my program...
    Is threads the only answer?
    Any other possibilities into getting the response?
    thanks for the response
    pipsu

    Hi Reyaz,
    This is actually an RFC-->SOAP scenario where the message structure of the source and target systems are different. We don't actually need a reponse back from the SOAP system. I was wondering if you perhaps know how we can cancel the Response response back to the requestor or at leaset map the SOAP response back?
    The interface runs perfectly in asynchronous mode when executing it from the Runtime Workbench in the test section, but it runs in synchronous mode for some reason when executing the RFC function call in SAP.
    Thank you,
    Brendon

Maybe you are looking for

  • Question on Bit Locker & IBM Client Security Solution CSS.

    Since both Bit Locker and CSS use the TPM chip to store the key, can they both be used at the same time?

  • Shipment cost load to material

    We have following scenario against which Freight cost are not loading to material in outbound delivery process. Outbound delivery is created against Salse Order using delivery type LF. then we created shipment document then PGI and finally Shipment C

  • International App Store Control

    I am currently in one of the countries with out App store access and can not access the App store to buy items. I have read post about this where excuses are given saying that it is due to goverment relations, trading laws and service..... I agree th

  • Unable to enter a negative amount for payment

    I am trying to enter a negative amount for payments under order items, but I keep getting this error message: "The minimum accepted payment amount for 'Financing' is '0'. Please enter an amount greater than '0' to continue.(SBL-SFS-00167)". The payme

  • Can't install Safari 1.3.1 Update

    Having previously trashed Safari & gone back to 1.2....I tried to work back up to current status. Permissions Repair done before and after. First, I applied the 10.3.9 Combo updater. Then, when trying to do the 1.3.1 update (and 1.3.2) I get that blo