Xml Facade creation doubt

I used the following steps for creating xml facades. However, I am unable to fetch values from the facade and display in jsp. It displays null.
Xml Facade:
1. Create schema with the variables that you want to include in the facade.
2. In the bpel_process.wsdl file, import the schema you just created:
<import namespace="http://www.example.org/facadeSchema"
schemaLocation="facadeSchema.xsd"/>
3.Run schemac utility and include the class files generated in the project so that they can be used in the jsp to fetch values from the facade.
4. Using an assign activity, fetch values (example fname, lname etc) from the process input into the facade.
example:
<assign xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" name="assign-1">
     <copy>
          <from variable="input" part="payload" query="/tns:ProcessRequest/tns:fname"></from>
          <to variable="facadeVar" query="/facade:facadeElem/fname"/>
     </copy>
     <copy>
          <from expression="ora:getInstanceId()"></from>
          <to variable="facadeVar" query="/facade:facadeElem/bpelId"/>
     </copy>
</assign>
5.attach this facadeElem (element created in the schema imported) to the atachment in the task (assign statement)
6. on the jsp side, use the createFacade method(as described in chap 4) ... where you would like to display the values from the facade.
However, maybe I am missing out on a step as I am not able to see what I am fetching from the facade. It displays null. Even though the facade variable contains values as seen in the Audit flow for the process instance.
Any say?

This works fine now. Used schemac utility again (and used those classfiles on the jsp side).

Similar Messages

  • Event based xml message creation and sending to an ESB

    Hi,
    what's the easiest way, to trigger xml message creation based on certain event (e.g. change of the contract) and to automaticaly send it to ESB - IBM websphere in this case? So it's not clasical web service call, more like an event driven architecture. BAdI for Inform Of Contracts Change is available in this case.
    Thanks in advance!

    Hi UjwalKumar,
    Follow this link:
    /people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy
    This blog gives an excellent description of 'FILE to Proxy' scenario.
    what you need is XML to proxy...i.e. your scenario is very similar to this one...only diffrence is  that  , you wont be using FCC .since your source msg is in XML format..
    Hope this helps..
    Regards ,
    Sushil

  • Help with XML PDF creation

    Hi can anyone help or point me in the right direction. I am developing an event management system, part of this is the dynamic creation on name badges which will be printed at the events.
    I want to do this by exporting all the data as XML then loading it into the pdf which will create the name badges. I have done this and it works fine in the PDF preview mode, but when the pdf is saved and opened in reader or in a browser the data dosent load into the PDF.
    Do i have to call the XML on load, or do anything to get it to work outside of LIveCycle?? Any help would be much appreciated.
    Many thanks
    Simon

    I am having the same problem. Did you happen to resolve this issue at all or is there someone out there that knows the solution to this problem. I have been researching this prob for a day or so. Any help would be great
    Dave

  • ABAP Proxy creation doubt   -  Pls Help

    Hi Friends ,
                          I have referred the following blog for abap proxy creation
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
                      as per the previous replies , <b>we have to generate proxiy from R3 syetm</b> . <b>But</b> in this weblog they are <b>generating from XI server</b> ?
                          The  have doubt  in the following passges
    1.
    <i>We use two clients of XI here. <b>Client 100 acts as XI server</b> .<b>Client 105 acts as a client ABAP proxy</b> which sends employee information as a message to XI which routes the info to a file. Logical flow is depicted as shown below. Note that conversion of sending system format to XI specific format is not done at the outbound side of the XI server.</i>
    <b>
               a.  i have webAS 6.40 . i have  R3 6 . So i can generate proxy from R3 it self right ? then how to procedd further .
                b. So Proxy and report to call proxy also from R3 SIDE ?
                c. If No sender agreement  required then in IR only receiver determination and receiver agreement is enough ? 
                d. Then in receiver Detrmination , do i need to give Business system as sender service ?
                  </b>
            <b>    can u please explain this a little bit more ?</b>
    Regards.,
    Shyam

    Hi Shyam,
    <b>we have to generate proxiy from R3 syetm . But in this weblog they are generating from XI server ?</b>
       In this blog, Ravi has taken two different clients in the same system. As the abap code is client independent so it can be generated anywhere irrespective of clients. But while executing the report we cannot do it from the same client as of the IS.So we need to trigger the report from the client 105 which is considered as the client proxy.
      check Triggering ABAP PROXY in the blog.
    <b>c. If No sender agreement required then in IR only receiver determination and receiver agreement is enough ?</b>
       Yes.
    <b>d. Then in receiver Detrmination , do i need to give Business system as sender service ?</b> 
    You can create business system for the R/3 and use it in RD.But the business system dont have any sender communication channel and no need of sender agreement as the data will directly hit the IE of XI.
    Regards,
    Prasanthi.

  • ESOA - XML PO creation in MM system

    Hi Gurus,
    I m working on MM-SUS scenario using eSOA. I have imported business scenarion Service procurment in XI system. I have activated WF WS53800008 for BO BUS2012 and Business function LOG_MM_P2PSE_1.
    When I create PO in MM system, it should create an XML PO and that supposed to reach SUS system thru XI. The issue is, XML PO is not getting generated in MM system. I couldnt find the solution... Could anyone help me on this???
    What all are the necessary steps to be followed for this scenario???
    Currently I am working on SRM 7.0 version...
    Regards
    Iyyappa...
    Edited by: Rama Iyyappa on Aug 30, 2010 9:27 AM

    Hello,
    Could you check the foll cust link in SPRO:
    Define Objects in Backend System (Purch. Reqs, Reservations, Purch. Orders).
    PO is created if you set the "*" for EITHER the purchasing group OR the product category.
    SRM is creating PR or PO depending on:
    SRM customizing (ex: always external proc + PR if incomplete, PO if complete)
    the interpretation of SC data by R/3.
    IF your SC is considered complete by SRM (but with a fixed vendor and not a preferred vendor) the system will check if it can create a PO in R/3.
    For this, each item will request a META_INTERPRETE_DATA to R/3, asking if it can create a PO. If R/3 considers this data as incomplete, it will reply to create a PR.
    Usual cases of R/3 PR creation instead of PO:
    prefered vendor in SRM (and not a fixed one)
    custom checks in user exits in R/3
    error messages in R/3 (ex: O6 334 In the case of a fixed vendor, please enter info record)
    To debug without debuging into R/3, you can also try the following:
    use BADI DETERMINE_TARGET_OBJECT and force PO creation
    so the system will always try to create a PO
    R/3 won't create the PO (for the same reason as in META_INTERPRETE_DATA), and will raise an error in SRM
    finally you get the real error in application monitor (SC --> backend application errors
    Related thread:
    Re: PO not create from SC with source of supply in classic sena
    Kind regards,
    Gaurav
    PLEASE GIVE FULL POINTS FOR USEFUL REPLIES

  • Step by step on shipment creation - doubts on 'check in' date

    Dear Expert,
    I need guide on shipment creation.
    Now i have one doubts regarding the 'check in' date, this field is gray, and how to be updated??
    For i manuallly input the date, and save the shipment, still the check in date not updated,,,
    Thank you.

    I love the "date" posts. Here's Valerie, trying to get the date off of her image, and a few threads down is a question from a guy trying to get the date ON his picture. :)
    OK, Valerie. First, in the Editor portion of Elements, go to the main menu under Window and make sure there are checkmarks next to the items "Palette Bin" and "Layers". That should give you the Layer Palette on the right side of your screen.
    Make sure the image you want to work on is open. Then go to the main menu again and look at the options under "Layer" and find "Duplicate Layer." You'll get a chance to name your new layer, so you might want to give it something descriptive. (By the way, it might not be blue in the palette; the color depends on settings on your computer - mine happens to be gray.)
    Now look at the Tool Palette on the left side of your screen. There are a number of icons that represent various tools. I no longer remember which one is default, but the Spot Healing Brush Tool is with the Healing Brush Tool, but only one is visible. There's a little arrow in the lower right corner. If you click on arrow, you can choose which tool to activate. The location on your Tool Palette could be slightly different on your computer than on mine. Mine is set to single column, and those tools are #13 down from the top.
    Since you're new to Elements, I STRONGLY recommend that you work on a copy of the original image file. That way, if you're not happy with the results, you can always go back to the original, make another copy, and try again.
    Sometimes, by the way, the only way to learn about a new program is to just poke around in it. As you can see, the ability to edit an image relies on the person being able to find the tools they need. I usually spend time just fiddling with new software to get the feel of what features it contains and how to access them.

  • XML File Creation Problem in FTP Server

    Hi.. Experts
    My Internal Table is as follows
    Types: Begin of ty_xmlfile,
             xmlline(60000)        type C,
           End of ty_xmlfile.
    Data: it_xmlfile type standard table of ty_xmlfile,
            wa_xmlfile type ty_xmlfile.
    When I download the file to my desktop using  GUI_DOWNLOAD. It works fine
    CALL FUNCTION 'GUI_DOWNLOAD'
              EXPORTING
                BIN_FILESIZE = lv_size
                FILENAME     = lv_file_name
                FILETYPE     = 'ASC'
              TABLES
                DATA_TAB     = it_xmlfile
              EXCEPTIONS
                OTHERS       = 10.
            IF SY-SUBRC <> 0.
              MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
            ENDIF.
    In the debug mode when I download the internal table(IT_XMLFILE) into an excel file it doesn't open and it says tag is missinig(/basic_material_text) and also when I create the file in Application Server and transfer it to FTP Server it doesn't open there..and also in debug mode I find the length until  DIMENSION AN.. for that row when I double click on that line in debug mode it shows all the text until </baisc_material_Text>
    <basic_material_text>4.500 +.000/-.010 O.D. X 213.0&quot; LG.(F)                      (A)ASTM A276 CONDITION &quot;A&quot; 317LTYPICAL MILL CERTS REQ&apos;D.DIMENSION REFERENCE:(A) = ALLOWANCE IS INCLUDED FOR MACHINING(F) = THIS IS A FINISHED DIMENSION AN*
    The above statement is incomplete when the file is open in FTP Server.
    But when the file is created on to my desktop. It displays all the text....
    <basic_material_text>4.500 +.000/-.010 O.D. X 213.0" LG.(F) (A)ASTM A276 CONDITION "A" 317LTYPICAL MILL CERTS REQ'D.DIMENSION REFERENCE:(A) = ALLOWANCE IS INCLUDED FOR MACHINING(F) = THIS IS A FINISHED DIMENSION AND WILL BE USED AS RECEIVED(T) = TO FINISH TO THIS DIMENSION FOR FORGING AND BILLET MATERIAL ONLYVENDOR TO SUPPLY THE FOLLOWING ENGINEERING/QUALITY ASSURANCE DATATYPICAL MILL TEST CERTIFICATES/CERTIFICATES MUST ACCOMPANY THE MATERIAL.* COPIES REQUIRED:(2)ALL CERTIFICATES MUST HAVE LIGHTNIN PART NO.CLEARLY MARKED ON THEM.* COPIES REQUIRED:(2)</basic_material_text> *
    I could not understand why it takes only until DIMENSION AN
    Any suggestions would be very helpful...
    Thanks,
    Chaitanya
    -Points will be awarded for helpful answers.

    Hi...
    I think each XML Line will be of length 256. So I have to split the String into 256 of each Line.
    XML DOM Processing in ABAP part I -  Convert an ABAP table into XML file using SAP DOM Approach.
    Hope  it works out....I will try for that and Close the Post...
    Thanks,
    chaitanya K

  • XML file creation in Tool 8.45

    Hello All,
    I am on tools 8.45. I have a requirement to create an XML file from peoplesoft and send it to an ESB server(Enterprise Service Bus).
    How can i achieve this. I need to do delta as well as full publish.
    For example whenever there is job data update i need to send the a file to the esb server and at the end of the day i need to send a large single file again
    Can i acheive this in PS 8.8 and tools 8.45

    May be try to define as below and see what happens.
    types : gty_line_t(100) TYPE x.
    data : gt_restab        TYPE STANDARD TABLE OF gty_line_t,
             <gs_restab>        LIKE LINE OF gt_restab.
    OPEN DATASET l_file_name FOR OUTPUT IN BINARY MODE .
              IF sy-subrc = 0.
                LOOP AT gt_restab ASSIGNING <gs_restab>.
                  TRANSFER <gs_restab> TO l_file_name.
               endloop.
              endif.
    CLOSE DATASET l_file_name.

  • Problem in XML Message creation using ABAP Proxy

    Hi,
    I am trying to send the data from ECC to CRM when post goods issue is done for a delivery from ECC side using ABP Proxy. I called my proxy method in BADI : DELIVERY_PUBLISH.
    And after calling the method, I used commit work also.
    But the problem is, some times it is working fine. and some times the XML messages are not getting created. When I go in debug, looks everything is fine.
    I am unable to understand why this inconsistency.
    Could you please help me out, do I need to take any more precautions.
    Thanks,
    Sandeep

    Hi,
    There is no problem in the proxy. Some small problem in the database update.
    It is solved.
    cheers
    san

  • XML document creation using reflection

    Hi all,
    I'm tyring to write a class which creates an XML document from objects passed in. For example, you call the add(Object) method and it takes your object, uses reflection, then outputs XML like this...
    <fieldName>fieldValue<fieldName>
    The only problem is that after looking through this forum I am a little concerned about the performance of my proposed solution (using reflection).
    The class will be used in a batch process which processes millions of objects (to generate a whopping XML file that'll be sent on for further processing by a third party).
    Is there a better way to do this than by using reflection?
    This class is going to be used by multiple batch processes hence there will be lots of different object types passed (they'll also be new ones in the future that we don't even know about yet) hence my reflection choice.
    Thanks,
    Chris

    The only problem is that after looking through this
    forum I am a little concerned about the performance of
    my proposed solution (using reflection).The only way that you'll know for sure is if you try it out. Write the code, test it, then run it in a profiler to find out where the performance problems (if any) are.
    Is there a better way to do this than by using
    reflection?Probably not, if you want to pass any arbitrary object to it.
    One possible alternative is to have "XML aware" objects: define an interface WritesXML, that defines a method toXML(). You then check to see whether the given object implements this interface, and if it does you simply call the method, otherwise you use reflection.
    Another alternative, assuming that your objects follow the Bean pattern, is to create "XML-ifiers" on the fly, similar to the way an app-server handles JSPs. First time you see an object you create a class that will write it to XML, then compile this class and invoke it for all subsequent objects. This will require that you have a JDK installed on the runtime machine, that the objects follow the Bean pattern, and that the number of instances of a given class are very high.
    This class is going to be used by multiple batch
    processes hence there will be lots of different object
    types passed (they'll also be new ones in the future
    that we don't even know about yet) hence my reflection
    choice.Sounds like a good reason to use reflection.

  • XML document creation

    Does anyone know of a Javascript or PHP script that will
    allow a client to create new and update existing xml documents that
    can be used with the Spry Dataset, through an admin area?

    I don't know of such a system. We do have a script that can
    convert queries to XML:
    http://labs.adobe.com/technologies/spry/samples/utils/query2xml.html
    And I know there are PHP scripts for inserting and updating
    records in a database, which might be easier.
    Hope this helps,
    Donald Booth
    Adobe Spry Team

  • XML schema creation

    hi all,
    i created a XML schema but i have some confusion in :
    <Processsteps>
    <ProcessStep/>
    <ParallelProcessStep/>
    </ProcessSteps>
    in this case none(child element) is manadatory, but there should be at least 1 child element of either type.
    how can i implement this problen mentioned above in Schema? can anybody send code for this problem/

    Try the 'choice' option for a 'complexType'
    I just recently learned how to write schemas. This tutorial is a little vague, but it gave me a good start
    http://www.w3schools.com/schema/default.asp
    Sorry, not giving you code, it's not that difficult.

  • XML file creation

    I am trying to write XML file from xPath with corresponding
    values from database. Below are the part of xpath's and values in
    1. I am trying to write as XML file with this format in 2(this is
    part of file). Could any please tell me how to write this file?
    1)
    ReturnDataState/FEIN
    ReturnDataState/NameControl
    ReturnDataState/OriginalSubmissionID
    ReturnDataState/BusinessEntity/Header/HdrAddress/Address/USAddress/AddressLine1
    ReturnDataState/BusinessEntity/Header/HdrAddress/Address/USAddress/AddressLine2
    ReturnDataState/BusinessEntity/Header/HdrAddress/Address/USAddress/City
    ReturnDataState/BusinessEntity/Header/HdrAddress/Address/USAddress/State
    ReturnDataState/BusinessEntity/Header/HdrAddress/Address/USAddress/ZIPCode
    ReturnDataState/BusinessEntity/Header/HdrAddress/AddressChange
    ReturnDataState/BusinessEntity/Header/HdrAddress/StateOfIncorporation/USAddress/AddressLi ne1
    ReturnDataState/BusinessEntity/Header/HdrAddress/StateOfIncorporation/USAddress/AddressLi ne2
    ReturnDataState/BusinessEntity/Header/HdrAddress/StateOfIncorporation/USAddress/City
    ReturnDataState/BusinessEntity/Header/HdrAddress/StateOfIncorporation/USAddress/State
    ReturnDataState/BusinessEntity/Header/HdrAddress/StateOfIncorporation/USAddress/ZIPCode
    ReturnDataState/BusinessEntity/Header/HdrCheckBox/AmendedReturnIndicator
    ReturnDataState/BusinessEntity/Header/HdrCheckBox/AttachmentFiledIndicator
    0
    ReturnDataState/BusinessEntity/Header/HdrCheckBox/CalendarYearFilerIndicator
    ReturnDataState/BusinessEntity/Header/HdrCheckBox/DebtIndicator
    ReturnDataState/BusinessEntity/Header/HdrCheckBox/Fed1120AIndicator
    0
    ReturnDataState/BusinessEntity/Header/HdrCheckBox/Fed1120HIndicator
    0
    ReturnDataState/BusinessEntity/Header/HdrCheckBox/Fed1120Indicator
    1
    ReturnDataState/BusinessEntity/Header/HdrCheckBox/Fed1120SIndicator
    0
    ReturnDataState/BusinessEntity/Header/HdrCheckBox/FedConsIndicator
    0
    2)
    <?xml version="1.0" encoding="UTF-8"?>
    <ReturnDataState>
    <FEIN></FEIN>
    <NameControl></NameControl>
    <OriginalSubmissionID></OriginalSubmissionID>
    <BusinessEntity>
    <Header>
    <HdrAddress>
    <Address>
    <USAddress>
    <AddressLine1></AddressLine1>
    <AddressLine2></AddressLine2>
    <City></City>
    <State></State>
    <ZIPCode></ZIPCode>
    </USAddress>
    </Address>
    <AddressChange></AddressChange>
    <StateOfIncorporation>
    <USAddress>
    <AddressLine1></AddressLine1>
    <AddressLine2></AddressLine2>
    <City></City>
    <State></State>
    <ZIPCode></ZIPCode>
    </USAddress>
    </StateOfIncorporation>
    </HdrAddress>
    <HdrCheckBox>
    <AmendedReturnIndicator></AmendedReturnIndicator>
    <AttachmentFiledIndicator>0</AttachmentFiledIndicator>
    <CalendarYearFilerIndicator></CalendarYearFilerIndicator>
    <DebtIndicator></DebtIndicator>
    <Fed1120AIndicator>0</Fed1120AIndicator>
    <Fed1120HIndicator>0</Fed1120HIndicator>
    <Fed1120Indicator>1</Fed1120Indicator>
    <Fed1120SIndicator>0</Fed1120SIndicator>
    <FedConsIndicator>0</FedConsIndicator>

    These links should help you. The process is pretty simple.
    http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm ?context=ColdFusion_Documentation&file=part_dev.htm
    http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm ?context=ColdFusion_Documentation&file=part_dev.htm

  • APIs for XML file creation

    hi,
    can anyone tell me whether there is any Java APIs for creating XML file( similar to the one used for parsing).
    thx in advance,
    -Soni.

    Hi,
    you can try the org.apache.xml.serialize.XMLSerializer which is included in the Apache Xerces Package (http://xml.apache.org/xerces). This Class allows you to serialize a org.w3c.dom.Document to a OutputStream which can be a FileOutputStream.
    Check out this code:
    OutputFormat format = new OutputFormat();
    format.setDoctype("mapping","mapping.dtd");
    format.setEncoding("ISO-8859-1");
    format.setLineWidth(100);
    XMLSerializer ser = new XMLSerializer(new FileOutputStream(f),format);
    ser.serialize(doc);
    Rgds,
    Sebastian

  • Xml Schema creation - enforcing one tag at root

    I have a schema such as the one below but this permits any of the global element declarations to start as the root of an xml document.
    I want just <table> to be at the root.
         <xs:element name="table">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element maxOccurs="unbounded" ref="tr"/>
                   </xs:sequence>
                   <xs:attributeGroup ref="attrs"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="tr">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element maxOccurs="unbounded" ref="td"/>
                   </xs:sequence>
                   <xs:attributeGroup ref="attrs"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="td">
              <xs:complexType mixed="true">
                   <xs:complexContent>
                        <xs:extension base="Flow">
                             <xs:attributeGroup ref="attrs"/>
                             <xs:attributeGroup ref="cellvalign"/>
                        </xs:extension>
                   </xs:complexContent>
              </xs:complexType>
         </xs:element>Must I have one global element to allow only one element as the document root?
    i.e.
         <xs:element name="table">
              <xs:complexType>
                   <xs:sequence>
                              <xs:element name="tr">
                                 <xs:complexType ref="tr.c">
                        </xs:element >
                   </xs:sequence>
                </xs:complexType>
          </xs:element>
         <xs:complexType name="tr.c">
              <xs:sequence>
                   <xs:element maxOccurs="unbounded" ref="td"/>
              </xs:sequence>
              <xs:attributeGroup ref="attrs"/>
         </xs:complexType>
         thanks

    I would rather use the flatter approach, the xhtml schema does how does it do it?
    http://www.w3.org/2002/08/xhtml/xhtml1-transitional.xsd
    Maybe I should explain more....
    I wish to validate an xml document with a schema only, I pull the xml from within a propery file (Ugly I know). And keep it in memory.
    The xml has no xsi attributes such as 'schemaLocation' , I tell the paser using a property the location of the external schema.
    The outcome of validation is that the paser allows any globally declared element to be a root element when I wish just to have just one.
    I guess the question is, what within the xml document or the schema tells the parser what the root element is?
    cheers

Maybe you are looking for

  • Button in ALV

    im displaying button in ALV using these statements. form set_pf_status using rt_extab type slis_t_extab.   SET PF-STATUS 'STANDARD' excluding rt_extab. endform.                    "set_pf_status When that button is clicked shuld display a secondary l

  • Photo gallery with buttons and php.

    I am relatively new to actions script, very new to as3, and brand new to php. I have tried very hard to figure all of this out via tutorials, studying the code, etc but now I'm running out of time to get this done so I need some help. I am trying to

  • How can I get flash player to work on my iPad?

    How can I get flash player to work on my iPad?

  • How to create IT0128 subtype-02 record using HR_INFOTYPE_OPERATION

    Hi All, Can anyone suggest how to use HR_INFOTYPE_OPERATION to create/insert a record in IT0128 for an employee from an ABAP program. Some background::: Note that the field - "Short Title" which is mandatory in this Infotype. And it uses a Q-structur

  • Best doctype and encoding?

    What is the best doctype and encoding to use for web pages these days?