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

Similar Messages

  • How to map WSDL string to BAPI in IR

    Hi,can any body please let me know how to map the WSDL with XML string(notthe XML structure) to the SAP's BAPI structure. Here the BAPI structure contains tree like structure, and the WSDL(XML with one string) contains one field.
    Thanks
    Kiran

    Hi,
    create a data type for a xml that is
    inside your WSLD string
    create a java or abap mapping which will remove the
    wsld structure so you will only have xml string
    now you can map this string to bapi
    you can do it in one interface mapping
    (you just need two mappings):
    first one - remove the wsld
    second - map xml to bapi
    Regards,
    michal

  • How to map wsdl to java in build.xml?

    I write like this it is not working.............
    <target name="generate.java" >
         <taskdef name="wsdl2java"
         classname="org.apache.ws.wsdl2java.WSDL2JavaTask"
         classpathref="axis2.classpath"/>
         <wsdl2java file="http://192.168.4/forums/forumIntegration.php?wsdl"
         outputLocation="${build.dir}" >
         <classpath>
         <pathelement path="${axis2.classpath}"/>
         <pathelement location="${build.dir}/classes"/>
         </classpath>
         </wsdl2java>
         </target>

    Have used the axis ant tasks successfully before with axis 1. Are you using axis two? What kind of errors are you getting?
    Jim

  • 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

  • How to map rfc?

    HI How are guys?
    Iam working with rfc to SAP portal and the functional send me 20 names of RFCs , he wants that I identify WHAT RFCS are used in process of PT60  (program RPTIME00).
    I tryed search in code of program RPTIME00 but dont find.Then I think maybe i can debug ,but the functional sayed :"there are many processes in that transaction"
    Then I try by se37 search the programs that call the rfc but dont work(because it is called out) ,then I ask :How can I map waht RFCs are call in process?
    Thanks.

    Hi Ronaldo,
    Please search the main program by giving 'Destination' as keyword, you can find the list of RFC enabled function module's called in the program.
    Regards,
    Nandakumar

  • How to map 2 different dws??

    Hi Experts,
    i hav 2 diff dws..1 for normal and 2 nd for night shift..i created these with 2 different daily schedule classes.now for night shift i need to pay basic 200% and for normal 100%..how to map this..plz respond
    regards
    rao

    yu need to use V_T510S table for this.
    select the appropriate inputs.. n checks..only for DWSClass=2
    and store the hours in a WT.
    use V_512w_B for valuating these hours as 200%.
    Regards
    ...SAdhu

  • How to map 3 different Finished goods aginist one SFG Material

    Dear all,
    I have a SFG material "A " product. From this SFG -XX1, XX2,XX3 are the  3 different FG  product generated.
    How to map this 3 different FG againts One SFG.
    PLease tell me how to mapping this in Production?
    How to put Goods Receipt For XX1, XX2 & XX3?
    Regards
    Raghunath

    Dear ,
    This is a Co-Product scinario where One SFG good generating 3 different FG .You need  keep the following set up :
    1.In material master of the FG keep Co-Product Indicator ticked
    2.In BOM of ther SFG , keep all this three FG as BOM compoenet and Keep the negetive quantity which are getting produced for a base unit quanity .At the same time , selet the item line and go down to Basic Data Tab , keep the Co-Product Indicator ticked .
    3. To calculate the production cost of co-products give equivalence
    numbers in MRP2 view by clicking Joint Production push button
    or you can give the same in the settlement rule in the
    Production order by clicking Header menu - Settlement rule.
    5. You will get the GR qty for co-products while doing MB31, 101
    for the order of the header material.
    Hope this will help you to understand the business requirement .
    Regards
    JH
    Edited by: Jiaul Haque on Feb 9, 2010 8:52 AM

  • How can I not wait for a RFC response

    Hi everyone, i want to execute an RFC and not wait for the response, i don´t care, so, is there a way to achieve this ? thanks

    Hello Isaac,
    If you are calling the RFC from WebDynpro then you have to wait for the RFC response. However, there is a way that you can get early response from a RFC.
    Suppose you are using RFC1 in your program and it contains business logic. Now, don't directly call the RFC1, instead, write another RFC2 which calls RFC1 asyncronously. This way, when you call RFC2 it automatically call RFC1 and does not wait for any response for RFC1
    You can call RFC1 from RFC2  asynchronously:
    CALL FUNCTION RFC1 STARTING NEW TASK taskName
    Your WD application will immediately get a response from RFC2 while RFC1 still executing.
    To know more about asynchronous RFC refer [Parallel Processing with Asynchronous RFC  |http://help.sap.com/saphelp_nwpi71/helpdata/en/22/0425c6488911d189490000e829fbbd/content.htm]
    Hope this helps
    Abhinav

  • How to map a collection of object in TopLink?

    For (simple) example, I've a XSD that defines:
    <xsd:complexType name="AttachmentType">
    <xsd:sequence>
    <xsd:element name="docID" nillable="false" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="MyDocType">
    <xsd:sequence>
    <xsd:element name="attachment" nillable="true" minOccurs="0"
    maxOccurs="unbounded" type="tns:AttachmentType"/>     
    </xsd:sequence>
    </xsd:complexType>
    This XSD is referenced by a WSDL. Using JDeveloper to generate a Java Web Service using the WSDL and will get the following classes:
    public class AttachmentType implements java.io.Serializable
    protected java.lang.String docID;
    public AttachmentType() {    }
    public java.lang.String getDocID() {        return docID;    }
    public void setDocID(java.lang.String docID) {        this.docID = docID;    }
    public class MyDocType implements java.io.Serializable
    protected AttachmentType[] attachment;
    public MyDocType () {    }
    public AttachmentType[] getAttachment() {        return attachment;    }
    public void setAttachment(AttachmentType[] attachment)
    this.attachment = attachment;
    Now I want to generate a XML document from MyDocType. I use TopLink (JAXB) to do the mapping. However, how to map the 'attachment' of type AttachmentType[]? TopLink seems only allowing List/Set/Collection container options.
    Anyone can help?
    Note: I have to use the classes generated from WSDL.
    Thanks!!

    Thanks. I'm using TopLink Workbench for the mapping
    and have no idea on how to specify the XML
    transformation mapping for array attribute. Can you
    tell me more?I was putting together an example of the transformation mapping but came up with a better way. It turns out that a transformation mapping isn't ideal because you have to take over some of the responsibility for converting XML to objects. A better solution is to intercept the calls to the getter and setter for the AttachmentType[] and convert between an Array and List. Just map the Array as a composite collection in the workbench and customize the attachment attribute mapping in code.
    Each mapping in TopLink has Accessor object responsible for getting and setting values in objects. If you choose method or direct access the mapping will have a different Accessor class. So the solution is to use an Accessor that converts the List TopLink builds into an Array of the correct type on set. On get, the Accessor creates a List from the Array.
    You can introduce a custom Accessor using an After Load method. I've put a complete example up on my googlepages account[1]. The key code is listed below. Note that this code assumes you're using direct instance variable access. Also, this code works with TopLink 10.1.3.2 and the TopLink 11 preview. It won't work with previous versions.
    The After Load class that changes the mapping accessor:
    public class MyDocCustomizer {
         public static void customize(ClassDescriptor descriptor) {
              XMLCompositeCollectionMapping mapping = (XMLCompositeCollectionMapping)
                   descriptor.getMappingForAttributeName("attachment");
              InstanceVariableAttributeAccessor existingAccessor =
                   (InstanceVariableAttributeAccessor) mapping.getAttributeAccessor();
              ListArrayTransformationAccessor transformationAccessor =
                   new ListArrayTransformationAccessor(AttachmentType.class, "attachment");
              transformationAccessor.initializeAttributes(descriptor.getJavaClass());
              mapping.setAttributeAccessor(transformationAccessor);
    }The custom InstanceVariableAccessor subclass:
    public class ListArrayTransformationAccessor extends
              InstanceVariableAttributeAccessor {
         private Class arrayClass;
         public ListArrayTransformationAccessor(Class arrayClass, String attributeName) {
              super();
              this.arrayClass = arrayClass;
              this.setAttributeName(attributeName);
         public Object getAttributeValueFromObject(Object anObject)
                   throws DescriptorException {
              Object[] attributeValueFromObject =
                   (Object[]) super.getAttributeValueFromObject(anObject);
              return Arrays.asList(attributeValueFromObject);
         public void setAttributeValueInObject(Object anObject, Object value)
                   throws DescriptorException {
              List collection = (List)value;
              Object[] array = (Object[]) Array.newInstance(arrayClass, collection.size());
              for (int i = 0; i < collection.size(); i++) {
                   Object element = collection.get(i);
                   Array.set(array, i, element);
              super.setAttributeValueInObject(anObject, array);
    }--Shaun
    http://ontoplink.blogspot.com
    [1] http://shaunmsmith.googlepages.com/Forum-519205-OXM-Array.zip

  • Using different RFC's in one Application / Entity Service?

    Hello *,
    I just want to create my first Composite Application Service but before I begin I have some questions.
    The service will read out material master data from PLM. For that it has some findBy-operations with full-text search (creationDate, MatNr. ...) which return a result list and one operation which returns the material object for a given MatNr.
    For this operations I need to call different RFC's which are imported by external services.
    Now my questions:
    1. What kind of service should wrap my external services and provide the operations? Should I use one or more entity service to wrap external services and then realize the operations in an application service? Or should I just take an application service without entity services?
    2. The created service should not only be an internal CAF  service but also a Web service? How can I realize this?
    Thanks for your answers.
    Best regards
    Joschi

    Ok, thanks a lot. So nearly everything's clear now. Only one question remains:
    > 6. mark the entity service as "remote" and create a
    > web service from it
    > (note: this requires NW04s SP8)
    Is this possible? I can't find any checkbox to mark an entity service as "remote" like in an application service (NWDS 7.0.07 and NW04s SP8).
    So I have to map the findBy operations to an application service and create a web service from it!?
    Regards
    Joschi

  • How to use bapi response in XI

    HI ALL,
             Can any one suggest me, how to use bapi response in XI as a sender.
    I m using bapi BAPI_BCA_BANKSTATEMENT_EXECUTE , I am executing  this bapi manually ,but want to use this BAPI RESPONSE in XI as a sender and map it with receiver.
    can i have any idea about how to do it, or can i have the idoc which is used by this bapi BAPI_BCA_BANKSTATEMENT_EXECUTE.
    THANX
    HONEY

    Hi Honey,
    Have a look at these
    -Configuring the Sender RFC Adapter - step by step
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    -Troubleshooting - RFC and SOAP scenarios
    /people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009
    -sender RFC (forum thread)
    Is it possible to use the RFC sender adapter for asynchronous calls?
    Regards,
    Sreenivas

  • How to map the permits Scenarios

    Dear Experts,
    Good Morning  to Every to Body.
    I am confusing to map the permits scenario . In my client place they raise the Work permit request to the Safety Officer for getting the approval for doing their work.
    Based on working condition safety officer checks the safety precautions , after verification he approved it and handover to the workperson. if safety officer not satisfied with safety precaustions he deny to give the approving for start the work. this is one scenario. and this work permit valid only for that approved day only. if its not complete that day , next day again workpermit was raised by work person or incharge of the work.
    2. scenario : for any corrective action on running machine or predictive maintenance time , maintenance people gets the work approval from the Relevant department or Concerned persons. Ones relevant department head gives approved , then only maintenance people will start the work.
    i am requesting you please guide me how to map in sap with out complexity. i am waiting for you people response.
    please suggest me.
    thanks & regards
    Jalu

    Hi,
    There are 2 different type of permits.
    1. Safety Permit
    2. Work Permit
    Safety permit will be approved by Safety officer. This is your first scenario. Work permit is approved by Maintenance officer, that is your second scenario.
      IWO10007 Maint.order: Customer enhancement - permits in the order
    As permits are approved in IW32, through above mentioned User Exit, you can develop some logic to restrict the authorisation between Safety officer in case of safety permits & Maintenance Manager in case of work permits.
    Regards,
    Maheswaran.

  • How to map single input value to Two columns of Database table using format file of Bulk Copy Process

    Hi All,
    Am using OPENROWSET to load the file data into table, here the problem is i need to map same input value to two different columns of table, As format file doesn't allow the duplicate numbers am unable to insert same value to two columns, please help me to
    find a solution for this. 
    i can use only OPENROWSET because i need to insert some default values also which come based on file. only the problem is how to map same input value to two different columns of table. please give me the suggestions.
    Thanks,
    Sudhakar

    From what you say:
       INSERT tbl(col1, col2)
          SELECT col1, col1
          FROM   OPENROWSET(....)
    But I guess it is more difficult. You need to give more details. What sort of data source do you have? What does your query look like? The target table?
    Erland Sommarskog, SQL Server MVP, [email protected]
    Hi Erland,
    Thanks for your response
    my source file is text file with | symbol separate for ex:
    1002|eTab |V101|eTablet|V100|Logic|LT-7|Laptops|SCM
    Database table have columns like
    column1,column2,column3...etc, now i need to insert same value from input file into two columns for ex:
    the eTab value from text file has to be insert into column2 and column3 of
    table
    we cannot change format file like below one
    for the above situation how can we insert eTab into column2 and column3
    Thanks,
    Sudhakar.

  • How to generate wsdl url in Siebel 8.1

    Dear Gurus,
    Please help, how to generate wsdl url from inbound web services in Siebel 8.1
    Regards,
    Eldin

    Hi Raj,
    I've tried, this url did'nt recognize as a web service.
    For example, in Oracle E-Business Suite ( Integration Repository ) there's a button to generate wsdl url. The wsdl url is http://servername/webservice/pls/test?WSDL.
    So is it possible we generate wsdl url like in E-Business Suite ? Or there's something we need to configure so Siebel wsdl url will recognize as web service in E-Business Suite.
    Thanks for your response.

  • How to call hr_location_api.create_location for different address style with only those fields that belongs specific to  that address style.

    How to call hr_location_api.create_location for different address style with only those fields that belongs specific to  that address style. It should decide at run time means at run time it will come to know the type of address style and based on that only the fields which belong to address details mapped to calling hr_location_api.create_location.
    Thanks in advance.

    You can create a wrapper package on top of the API (hr_location_api.create_location)
    In the wrapper package you set all the values dynamically based on your requirements(say the style and add_line columns are populated on your conditions) and then you call the API.
    Does that not work ?

Maybe you are looking for