Post data to XML template in Agentry app

Hi Community,
Is there a way to post data from object/transaction properties to XML template in Agentry?
From the below link, it appears we can do it using an update rule, but I couldn't understand how? Any other information on this would be helpful.
How to configure Agentry to format and post an xml document to a url using transaction data - SAP Mobility - SCN Wiki
Thanks
Narasimha
Tags edited by: Michael Appleby

Narasimha,
That article is just suggesting that it could be done with an update rule.  This would still be a completely manual process where you would need to create the XML using CONCATENATE statements in the rule to build the XML by hand.  The update rule would be tied to a transaction property.  You would then use the Java or SQL backend to pass the generated XML to your backend system.
To have Agentry build the XML transaction data for you via template, you need to use the XML backend and create XML backend steps.  The XML backend is used primarily for communicating with web services.  Within the step, you set up your base XML template with placeholders for the transaction properties.
Here are a couple links to help get you started with the XML backend:
Configuring HTTP-XML Back-end Connections for Agentry Applications - Administrator - SAP Library
SyBooks Online
Jason Latko - Senior Product Developer at SAP

Similar Messages

  • How to sort Data in XML template (rtf) file?

    Hi, I have an oracle 11i custom report (rdf) with an xml output to a PDF. There is a formula column in the report. Now I need the data to be sorted on this formula column. As we cannot sort on formula column, i have decided to find a way to sort it in the data in the XML template. But I don't really know how to sort and also where to specify the sort tag in the rtf file. I appreciate your response.
    Databse version : 9.2.0.8.0
    E-Biz Version : 11.5.10.2
    Oracle Reports Version : 6.0.8.27.0
    Oracle BI version : 10.1.3.2.1
    Note : I posted this question under : XML General forum also. But did not get any response. I assumed that may be thats not the right place to post it as my report is in e-Biz environment.

    Hi
    As long as you don't have your ^field commands grouped inside a ^group the order in the .dat file is not important. Your last command
    ^field BG_DOC_LN__LN_AM
    246624.12
    should populate field BG_DOC_LN_AM wherever you place it on your form. Obviously you need to name the fields according to your ^field commands and not just use tab (move to next field).
    Shout if this was not what you are asking.
    Stale Sodal

  • Flilter webpart to read the data from XML template

    Hi
    Is there any out of the box webpart to read data from xml file for filtering in sharepoint 2010.
    The filter dialog look like following functionality and allow to select only one value.
      .Paretn1
         chiild1
         child2
     .Parent2
         child1
         child2
    Thanks

    Hi,
    According to your post, my understanding is that you wanted to read data from xml file with the out of the box web part.
    There is no out of the box web part for us to read the data from the xml file in SharePoint 2010.
    However, you can create your own custom web part to achieve it.
    There are some articles about the read the xml file, you can have a look at them.
    http://mosshowto.blogspot.com/2008/10/simplify-xpath-use-c-class.html
    http://social.technet.microsoft.com/Forums/en-US/6ae03f7a-23fe-4361-9e4f-d82bd3802ebf/how-to-read-data-from-an-xml-file-in-sharepoint-2010s?forum=sharepointgeneralprevious
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • POST data using XML

    hi everyone...i want to upload a video to youtube from my desktop application. i went through the following link.
    http://code.google.com/apis/youtube/2.0/developers_guide_protocol_resumable_uploads.html#Sending_a_Resumable_Upload_API_Request
    it is for sending data using XML. but i don't know how to send data using XML. can someone give me an insight of data POST'ing using XML? any help is appreciated.

    actually i saw the following segment in this link :
    http://code.google.com/apis/youtube/2.0/developers_guide_protocol_resumable_uploads.html#Sending_a_Resumable_Upload_API_Request
    POST /resumable/feeds/api/users/default/uploads HTTP/1.1
    Host: uploads.gdata.youtube.com
    Authorization: AuthSub token="DXAA...sdb8"
    GData-Version: 2
    X-GData-Key: key=adf15ee97731bca89da876c...a8dc
    Content-Length: 1941255
    Slug: my_file.mp4
    Content-Type: application/atom+xml; charset=UTF-8
    <?xml version="1.0"?>
    <entry xmlns="http://www.w3.org/2005/Atom"
      xmlns:media="http://search.yahoo.com/mrss/"
      xmlns:yt="http://gdata.youtube.com/schemas/2007">
      <media:group>
        <media:title type="plain">Bad Wedding Toast</media:title>
        <media:description type="plain">
          I gave a bad toast at my friend's wedding.
        </media:description>
        <media:category
          scheme="http://gdata.youtube.com/schemas/2007/categories.cat">People
        </media:category>
        <media:keywords>toast, wedding</media:keywords>
      </media:group>
    </entry>

  • 903/902/BC4J can't get OC4J data-sources.xml conn pooling to work in production: help

    [cross posted to the j2ee forum]
    I have several BC4J ears deployed to a 903 instance of OC4J being configured as a standalone
    instance. I've had this problem since I started deploying in development on 902. So it's
    some basic problem that I've not mastered.
    I can't get data-sources.xml managed connection pooling to actually pool conn's. I'm wanting
    to declare my jndi jdbc source connection pool in j2ee/home/config/data-sources.xml and
    have all BC4J apps get conns from this JNDI JDBC pool. I've removed all data-sources.xml from
    my BC4J ears, and published the jndi jdbc source in my oc4j common data-sources.xml.
    I've tested that this is the place controlling the conn URL/login passwd by commenting it
    out of config/data-sources.xml and my BC4J apps then throw exceptions, can't get conn.
    I've set the oc4j startup cmd line with the BC4J property to enabled connection pooling:
    -Djbo.doconnectionpooling=true
    symptom
    Connections are created and closed. Instead of being put back into the pool managed by oc4j,
    what ever BC4J is doing or my data-sources.xml is doing, the connections are just being created and
    closed.
    I can verify this via (solaris) lsof and netstat, where I see my oc4j instance under test load
    with only 1 or 2 conns to the db box, and the ephemeral port is tumbling, meaning a new socket is
    being opened for each conn. ;( grrrrrrr
    Does anyone have a clue as to why this is happening?
    Thanks, curt
    my data-sources.xml
    <data-sources>
         <data-source
            class="com.evermind.sql.DriverManagerDataSource"
            connection-driver="oracle.jdbc.driver.OracleDriver"
            ejb-location="jdbc/DEVDS"
            location="jdbc/DEVCoreDS"
            name="DEVDS"
            password="j2train"
            pooled-location="jdbc/DEVPooledDS"
            url="jdbc:oracle:thin:@10.2.1.30:1521:GDOC"
            username="jscribe"
            xa-location="jdbc/xa/DEVXADS"
            inactivity-timeout="300"
            max-connections="50"
            min-connections="40"
        />
    </data-sources>

    Thanks Leif,
    Yes, set it to the location jndi path.
    A piece of info is that the 903 oc4j release notes states that global conn pooling doesn't
    work. Infering that the j2ee/home/config/data-sources.xml data sources aren't pooled or ??
    I just tested so called local connection pooling, where I edited the data-sources.xml that
    gets packaged in the ear, to include the min/max params and re-ran my test.
    Still, the AM creates a new conn, it's to a new socket, and closes the conn when done. Causing
    each conn to not be pooled, rather opened then closed to the DB box. As verified with lsof and
    netstat, checking the ephemeral port # on the DB box side, always changes, meaning it's a
    new socket and not an old pooled conn socket.
    ???? What the heck??
    Surely if the AM conn check out / return code works properly, OC4J's pooling JDBC driver would
    pool and not close the socket??
    Has anywone gotten JDBC Datasource connections in BC4J to actually be pooled under OC4J??
    Since I couldn't get this to work in my early 902 oc4j testing, and now can't get it to work
    still under 903 OC4J, either it's my config or BC4J AM's code or OC4J?
    Any thoughts on how to figure out what's not configed correctly or has a bug?
    Thanks, curt

  • 903/902/BC4J can't get data-sources.xml conn pooling to work in production; help

    I have several BC4J ears deployed to a 903 instance of OC4J being configured as a standalone
    instance. I've had this problem since I started deploying in development on 902. So it's
    some basic problem that I've not mastered.
    I can't get data-sources.xml managed connection pooling to actually pool conn's. I'm wanting
    to declare my jndi jdbc source connection pool in j2ee/home/config/data-sources.xml.
    Have all BC4J apps get conns from this JNDI JDBC pool. I've removed all data-sources.xml from my BC4J ears,
    and published the jndi jdbc source in my oc4j common data-sources.xml. I've tested that this is
    the place controlling the conn URL/login passwd by commenting it out of config/data-sources.xml
    and my BC4J apps then throw exceptions, can't get conn.
    I've set the oc4j startup cmd line with the BC4J property to enabled connection pooling:
    -Djbo.doconnectionpooling=true
    symptom
    Connections are created and closed. Instead of being put back into the pool managed by oc4j,
    what ever BC4J is doing or my data-sources.xml is doing, the connections are just being created and
    closed.
    I can verify this via (solaris) lsof and netstat, where I see my oc4j instance under test load
    with only 1 or 2 conns to the db box, and the ephemeral port is tumbling, meaning a new socket is
    being opened for each conn. ;( grrrrrrr
    Does anyone have a clue as to why this is happening?
    Thanks, curt
    my data-sources.xml
    <data-sources>
         <data-source
            class="com.evermind.sql.DriverManagerDataSource"
            connection-driver="oracle.jdbc.driver.OracleDriver"
            ejb-location="jdbc/DEVDS"
            location="jdbc/DEVCoreDS"
            name="DEVDS"
            password="j2train"
            pooled-location="jdbc/DEVPooledDS"
            url="jdbc:oracle:thin:@10.2.1.30:1521:GDOC"
            username="jscribe"
            xa-location="jdbc/xa/DEVXADS"
            inactivity-timeout="300"
            max-connections="50"
            min-connections="40"
        />
    </data-sources>

    I've run another test using local data-source.xml, that's packaged in the .ear. Still
    pooling under BC4J doesn't work??
    A piece of info is that the 903 oc4j release notes states that global conn pooling doesn't
    work. Infering that the j2ee/home/config/data-sources.xml data sources aren't pooled or ??
    I just tested so called local connection pooling, where I edited the data-sources.xml that
    gets packaged in the ear, to include the min/max params and re-ran my test.
    Still, the AM creates a new conn, it's to a new socket, and closes the conn when done. Causing
    each conn to not be pooled, rather opened then closed to the DB box. As verified with lsof and
    netstat, checking the ephemeral port # on the DB box side, always changes, meaning it's a
    new socket and not an old pooled conn socket.
    ???? What the heck??
    Surely if the AM conn check out / return code works properly, OC4J's pooling JDBC driver would
    pool and not close the socket??
    Has anywone gotten JDBC Datasource connections in BC4J to actually be pooled under OC4J??
    Since I couldn't get this to work in my early 902 oc4j testing, and now can't get it to work
    still under 903 OC4J, either it's my config or BC4J AM's code or OC4J?
    Any thoughts on how to figure out what's not configed correctly or has a bug?
    Thanks, curt

  • How do I modify invoice request xml file by adding posting date?

    Hi,
    We import customer invoice requests via xml files from an external data source. Currently the standard SAP xml file does not include the posting date, and invoices enter SAP with a blank posting date. When the invoice is released, the posting date is taken from the invoice date.
    Due to our month end processes, we have hundreds of invoice requests every month where we do not want posting date to equal the invoice date, and for each of those invoices the posting date is manually entered one invoice at a time during the release process. This is very time consuming.
    We would like to build functionality in our external system to create the posting date at the xml file generation stage. Could anyone let us know the following:
    - what is the name of the posting date field on invoice requests (invoice documents)?
    - where would we place the additional script in the xml file?
    I'm attaching one of our current xml files (which already contains one section that has been customized)
    Your suggestions would be appreciated.
    Thanks,
    Kerstin

    Kerstin,
    The closest i could find in the WSDL of the Manage Invoice Request Web Service that handles this integration is "<ProposedInvoiceDate>" or possibly even "<ProposedDeviatingPostingdate>", both of which sit directly under the <CustomerInvoiceRequest> element.
    For more information, go to the Service Explorer, find the ManageInvoiceRequestsIn Web Service, download the WSDL, and open it in SOAP-UI or something similar. This way you can see all the fields that you can write to, which is where i found these two elements.

  • Issue generating pdf from xml template, data and StreamServer webservices

    We purchased Abode LiveCycle Premium Print ES4. It included a product called StreamServe which we planned to use to merge xml templates and data into a pdf file using a StreamServe webservice (for developers). It seems the StreamServe webservices are not equal to that task.  Can anyone offer a hint how this automated pdf generation can be achieved using LCPP?  (I suspect it can be done using Workbench but I don't know this to be a fact.)
    TIA,
    Bill

    Was that another shameless book plug??
    Sorry, gotta run. I just got word the Fed Ex delivery of my copy of your book just arrived. Do you 'e-sign' personalized copies?
    p.s. The preview of Chapter 7 (Transforming XML with XSLT) is great and filled with good clean examples and explanation.

  • Inserting XML data into and XML template

    I have XML data structured according to a schema. I also have a
    template structured with the same schema, plus a schema for document formatting. I want to merge the XML data into the Template to produce an output file.
    I know I can write a program to use XPath or DOM, but I am sure a generic solution already exists for this. I did not have any luck with google.
    Suggestions?
    thanks
    d1

    I have XML data structured according to a schema. I also have a
    template structured with the same schema, plus a schema for document formatting. I want to merge the XML data into the Template to produce an output file.
    I know I can write a program to use XPath or DOM, but I am sure a generic solution already exists for this. I did not have any luck with google.
    Suggestions?
    thanks
    d1

  • Unable to retrieve data from XML Type

    Hi All,
    I have table which has Column of type XMLType
    XML Data is loaded in the table.
    But when iam trying to extract not able to retrieve the data
    Following is the select query i am using
    SELECT CL.XMLDATA.EXTRACT('/ServiceType/entityName/text()').getStringVal() "entityname" FROM CL_DATA_SERVICE_TEMPLATE CL;
    Any help / pointer will help me a lot... Thanks in advance
    Sample XML File:
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    <ServiceType xmlns="http://www.bmiasia.com/tBos/service_1_0">
    <entityName>bmiasia.app.irb.servicetemplate12</entityName>
    <systemVersion>4</systemVersion>
    <displayName>
    <bundle />
    <key>AG-EVC</key>
    </displayName>
    <description>AG-EVC GROUP: AG-EVC</description>
    <category entityName="bmiasia.app.service.category.ServiceRootCategory.AG_-_EVC_Services">
    <operation>ADD</operation>
    </category>
    <entityMetaInfo name="bmiasia.app.irb.servicetemplate12.NC_PRODUCT_ID">
    <type entityName="1"></type>
    </entityMetaInfo>
    <entityMetaInfo name="bmiasia.app.irb.servicetemplate12.NC_GL_PRODUCT_CODE">
    <type entityName="2"></type>
    </entityMetaInfo>
    <entityMetaInfo name="bmiasia.app.irb.servicetemplate12.NC_GL_PROFIT_CENTRE">
    <type entityName="3"></type>
    </entityMetaInfo>
    <entityMetaInfo name="bmiasia.app.irb.servicetemplate12.NC_SERVICE_CODE">
    <type entityName="4"></type>
    </entityMetaInfo>
    <entityMetaInfo name="bmiasia.app.irb.servicetemplate12.RSP_EU_CUST_REF">
    <type entityName="5"></type>
    </entityMetaInfo>
    <entityMetaInfo name="irbPkClass">
    <type entityName="com.convergys.geneva.j2ee.product.ProductPK"></type>
    </entityMetaInfo>
    <entityMetaInfo name="irbId">
    <type entityName="12"></type>
    </entityMetaInfo>
    <extensionProperty name="hasAddress" value="true"></extensionProperty>
    <parent>
    <itemkey>AllServiceTemplate</itemkey>
    <name>AllServiceTemplate</name>
    <targetEntity entityName="bmiasia.app.service.template.AllServiceTemplate"></targetEntity>
    <number>0</number>
    </parent>
    <group>NORMAL</group>
    <siu>
    <itemkey>L2_OPTION</itemkey>
    <operation>ADD</operation>
    <name>L2_OPTION</name>
    <required>true</required>
    <source>INTERNAL</source>
    <displayName>
    <key>L2 Option</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
    <scope>PRODUCT</scope>
    </siu>
    <siu>
    <itemkey>L3_OPTION</itemkey>
    <operation>ADD</operation>
    <name>L3_OPTION</name>
    <required>false</required>
    <source>INTERNAL</source>
    <displayName>
    <key>L3 Option</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
    <scope>PRODUCT</scope>
    </siu>
    <siu>
    <itemkey>QPEVPL_SERVICE_ID</itemkey>
    <operation>ADD</operation>
    <name>QPEVPL_SERVICE_ID</name>
    <required>false</required>
    <source>INTERNAL</source>
    <displayName>
    <key>QP EVLP Service ID</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
    <scope>PRODUCT</scope>
    </siu>
    <siu>
    <itemkey>QPEVPL_LAG_ID</itemkey>
    <operation>ADD</operation>
    <name>QPEVPL_LAG_ID</name>
    <required>false</required>
    <source>INTERNAL</source>
    <displayName>
    <key>QP EVLP LAG ID</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
    <scope>PRODUCT</scope>
    </siu>
    <siu>
    <itemkey>CO_NAME</itemkey>
    <operation>ADD</operation>
    <name>CO_NAME</name>
    <required>false</required>
    <source>INTERNAL</source>
    <displayName>
    <key>Aggregation Layer / Co Layer</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
    <scope>PRODUCT</scope>
    </siu>
    <siu>
    <itemkey>INSTALL_SALUTAION</itemkey>
    <operation>ADD</operation>
    <name>INSTALL_SALUTAION</name>
    <required>false</required>
    <source>INTERNAL</source>
    <displayName>
    <key>Installation Salutation</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
    <scope>PRODUCT</scope>
    </siu>
    <siu>
    <itemkey>INSTALL_LASTNAME</itemkey>
    <operation>ADD</operation>
    <name>INSTALL_LASTNAME</name>
    <required>false</required>
    <source>INTERNAL</source>
    <displayName>
    <key>Installlation Last Name</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
    <scope>PRODUCT</scope>
    </siu>
    <siu>
    <itemkey>INSTALL_FIRSTNAME</itemkey>
    <operation>ADD</operation>
    <name>INSTALL_FIRSTNAME</name>
    <required>false</required>
    <source>INTERNAL</source>
    <displayName>
    <key>Installation First Name</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
    <scope>PRODUCT</scope>
    </siu>
    <siu>
    <itemkey>INSTALL_TELEPHONE</itemkey>
    <operation>ADD</operation>
    <name>INSTALL_TELEPHONE</name>
    <required>false</required>
    <source>INTERNAL</source>
    <displayName>
    <key>Installation Telephone</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
    <scope>PRODUCT</scope>
    </siu>
    <siu>
    <itemkey>INSTALL_MOBILE</itemkey>
    <operation>ADD</operation>
    <name>INSTALL_MOBILE</name>
    <required>false</required>
    <source>INTERNAL</source>
    <displayName>
    <key>Installation Mobile</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
    <scope>PRODUCT</scope>
    </siu>
    <siu>
    <itemkey>INSTALL_EMAIL</itemkey>
    <operation>ADD</operation>
    <name>INSTALL_EMAIL</name>
    <required>false</required>
    <source>INTERNAL</source>
    <displayName>
    <key>Installlation Email</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
    <scope>PRODUCT</scope>
    </siu>
    <siu>
    <itemkey>INSTALL_NOTIFICATION</itemkey>
    <operation>ADD</operation>
    <name>INSTALL_NOTIFICATION</name>
    <required>false</required>
    <source>INTERNAL</source>
    <displayName>
    <key>Installation Notification</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
    <scope>PRODUCT</scope>
    </siu>
    <siu>
    <itemkey>TECHNICAL_SALUTAION</itemkey>
    <operation>ADD</operation>
    <name>TECHNICAL_SALUTAION</name>
    <required>false</required>
    <source>INTERNAL</source>
    <displayName>
    <key>Operational / Technical Salutation</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
    <scope>PRODUCT</scope>
    </siu>
    <siu>
    <itemkey>TECHNICAL_LASTNAME</itemkey>
    <operation>ADD</operation>
    <name>TECHNICAL_LASTNAME</name>
    <required>false</required>
    <source>INTERNAL</source>
    <displayName>
    <key>Operational / Technical Last Name</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
    <scope>PRODUCT</scope>
    </siu>
    <siu>
    <itemkey>TECHNICAL_FIRSTNAME</itemkey>
    <operation>ADD</operation>
    <name>TECHNICAL_FIRSTNAME</name>
    <required>false</required>
    <source>INTERNAL</source>
    <displayName>
    <key>Operational / Technical First Name</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
    <scope>PRODUCT</scope>
    </siu>
    <siu>
    <itemkey>TECHNICAL_TELEPHONE</itemkey>
    <operation>ADD</operation>
    <name>TECHNICAL_TELEPHONE</name>
    <required>false</required>
    <source>INTERNAL</source>
    <displayName>
    <key>Operational / Technical Telephone</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
    <scope>PRODUCT</scope>
    </siu>
    <siu>
    <itemkey>TECHNICAL_MOBILE</itemkey>
    <operation>ADD</operation>
    <name>TECHNICAL_MOBILE</name>
    <required>false</required>
    <source>INTERNAL</source>
    <displayName>
    <key>Operational / Technical Mobile</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
    <scope>PRODUCT</scope>
    </siu>
    <siu>
    <itemkey>TECHNICAL_EMAIL</itemkey>
    <operation>ADD</operation>
    <name>TECHNICAL_EMAIL</name>
    <required>false</required>
    <source>INTERNAL</source>
    <displayName>
    <key>Operational / Technical Email</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
    <scope>PRODUCT</scope>
    </siu>
    <siu>
    <itemkey>TECHNICAL_NOTIFICATION</itemkey>
    <operation>ADD</operation>
    <name>TECHNICAL_NOTIFICATION</name>
    <required>false</required>
    <source>INTERNAL</source>
    <displayName>
    <key>Operational / Technical Notification</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
    <scope>PRODUCT</scope>
    </siu>
    <siu>
    <itemkey>SERVICE_ACTIVATION_PERIOD</itemkey>
    <operation>ADD</operation>
    <name>SERVICE_ACTIVATION_PERIOD</name>
    <required>false</required>
    <source>INTERNAL</source>
    <displayName>
    <key>Service Activation Period</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
    <scope>PRODUCT</scope>
    </siu>
    <siu>
    <itemkey>REJECT_CODE</itemkey>
    <operation>ADD</operation>
    <name>REJECT_CODE</name>
    <required>false</required>
    <source>INTERNAL</source>
    <displayName>
    <key>Rejection Reason</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
    <scope>PRODUCT</scope>
    </siu>
    <siu>
    <itemkey>APPLICATION_ACCEPTED</itemkey>
    <operation>ADD</operation>
    <name>APPLICATION_ACCEPTED</name>
    <required>false</required>
    <source>INTERNAL</source>
    <displayName>
    <key>Application Accepted</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.common.BooleanCheckSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
    <scope>PRODUCT</scope>
    </siu>
    <siu>
    <itemkey>APPLICATION_REJECTED</itemkey>
    <operation>ADD</operation>
    <name>APPLICATION_REJECTED</name>
    <required>false</required>
    <source>INTERNAL</source>
    <displayName>
    <key>Application Rejected</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.common.BooleanCheckSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
    <scope>PRODUCT</scope>
    </siu>
    <siu>
    <itemkey>APPROVAL_CODE</itemkey>
    <operation>ADD</operation>
    <name>APPROVAL_CODE</name>
    <required>false</required>
    <source>INTERNAL</source>
    <displayName>
    <key>Approval Code</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
    <scope>PRODUCT</scope>
    </siu>
    <siu>
    <itemkey>PROCESSED_BY</itemkey>
    <operation>ADD</operation>
    <name>PROCESSED_BY</name>
    <required>false</required>
    <source>INTERNAL</source>
    <displayName>
    <key>Processed By</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
    <scope>PRODUCT</scope>
    </siu>
    <siu>
    <itemkey>ACTUAL_RFS_DATE</itemkey>
    <operation>ADD</operation>
    <name>ACTUAL_RFS_DATE</name>
    <required>false</required>
    <source>INTERNAL</source>
    <displayName>
    <key>Actual RFS Date</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.common.DateSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
    <scope>PRODUCT</scope>
    </siu>
    <siu>
    <itemkey>DISCLAIMER</itemkey>
    <operation>ADD</operation>
    <name>DISCLAIMER</name>
    <required>false</required>
    <source>INTERNAL</source>
    <displayName>
    <key>Disclaimer</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
    <scope>PRODUCT</scope>
    </siu>
    <siu>
    <itemkey>NC_PRODUCT_ID</itemkey>
    <operation>ADD</operation>
    <name>NC_PRODUCT_ID</name>
    <required>false</required>
    <source>EXTERNAL</source>
    <displayName>
    <key>NC Product ID</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
    <scope>PRODUCT</scope>
    </siu>
    <siu>
    <itemkey>NC_GL_PRODUCT_CODE</itemkey>
    <operation>ADD</operation>
    <name>NC_GL_PRODUCT_CODE</name>
    <required>false</required>
    <source>EXTERNAL</source>
    <displayName>
    <key>NC GL Product Code</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
    <scope>PRODUCT</scope>
    </siu>
    <siu>
    <itemkey>NC_GL_PROFIT_CENTRE</itemkey>
    <operation>ADD</operation>
    <name>NC_GL_PROFIT_CENTRE</name>
    <required>false</required>
    <source>EXTERNAL</source>
    <displayName>
    <key>NC GL Profit Centre</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
    <scope>PRODUCT</scope>
    </siu>
    <siu>
    <itemkey>NC_SERVICE_CODE</itemkey>
    <operation>ADD</operation>
    <name>NC_SERVICE_CODE</name>
    <required>false</required>
    <source>EXTERNAL</source>
    <displayName>
    <key>EUC ID</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.common.StringSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAttribute"></mapping>
    <scope>PRODUCT</scope>
    </siu>
    <siu>
    <itemkey>bmiasia.app.irb.servicetemplate54</itemkey>
    <operation>ADD</operation>
    <name>bmiasia.app.irb.servicetemplate54</name>
    <required>false</required>
    <source>INTERNAL</source>
    <equalsProvider>bmiasia.app.service.spi.AddSvcSIUEqualsProvider</equalsProvider>
    <displayName>
    <key>CIR Per 250Mbps CoS A</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.AdditionalServiceSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAdditionalService"></mapping>
    <scope>SERVICE</scope>
    <outSvcAttr>true</outSvcAttr>
    </siu>
    <siu>
    <itemkey>bmiasia.app.irb.servicetemplate55</itemkey>
    <operation>ADD</operation>
    <name>bmiasia.app.irb.servicetemplate55</name>
    <required>false</required>
    <source>INTERNAL</source>
    <equalsProvider>bmiasia.app.service.spi.AddSvcSIUEqualsProvider</equalsProvider>
    <displayName>
    <key>CIR Per 250Mbps CoS B</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.AdditionalServiceSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAdditionalService"></mapping>
    <scope>SERVICE</scope>
    <outSvcAttr>true</outSvcAttr>
    </siu>
    <siu>
    <itemkey>bmiasia.app.irb.servicetemplate56</itemkey>
    <operation>ADD</operation>
    <name>bmiasia.app.irb.servicetemplate56</name>
    <required>false</required>
    <source>INTERNAL</source>
    <equalsProvider>bmiasia.app.service.spi.AddSvcSIUEqualsProvider</equalsProvider>
    <displayName>
    <key>CIR Per 250Mbps CoS C</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.AdditionalServiceSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAdditionalService"></mapping>
    <scope>SERVICE</scope>
    <outSvcAttr>true</outSvcAttr>
    </siu>
    <siu>
    <itemkey>bmiasia.app.irb.servicetemplate57</itemkey>
    <operation>ADD</operation>
    <name>bmiasia.app.irb.servicetemplate57</name>
    <required>false</required>
    <source>INTERNAL</source>
    <equalsProvider>bmiasia.app.service.spi.AddSvcSIUEqualsProvider</equalsProvider>
    <displayName>
    <key>CIR Per 250Mbps CoS D</key>
    </displayName>
    <type entityName="bmiasia.app.siulib.siu.AdditionalServiceSIU"></type>
    <mapping entityName="bmiasia.app.service.oo.ServiceAndAdditionalService"></mapping>
    <scope>SERVICE</scope>
    <outSvcAttr>true</outSvcAttr>
    </siu>
    <defaultWorkflowInfo>
    <workflow entityName="bmiasia.app.irb.servicetemplate12_Workflow"></workflow>
    <cancelFlow entityName="bmiasia.app.irb.servicetemplate12_CancelFlow"></cancelFlow>
    </defaultWorkflowInfo>
    <source>EXTERNAL</source>
    <additionalServices entityName="bmiasia.app.irb.servicetemplate54">
    <operation>ADD</operation>
    <name>CIR Per 250Mbps CoS A</name>
    </additionalServices>
    <additionalServices entityName="bmiasia.app.irb.servicetemplate55">
    <operation>ADD</operation>
    <name>CIR Per 250Mbps CoS B</name>
    </additionalServices>
    <additionalServices entityName="bmiasia.app.irb.servicetemplate56">
    <operation>ADD</operation>
    <name>CIR Per 250Mbps CoS C</name>
    </additionalServices>
    <additionalServices entityName="bmiasia.app.irb.servicetemplate57">
    <operation>ADD</operation>
    <name>CIR Per 250Mbps CoS D</name>
    </additionalServices>
    <defaultWorkflowDefinition>
    <installSoEntityName>bmiasia.app.template.serviceorder.Installservicetemplate12SO</installSoEntityName>
    <changeSoEntityName>bmiasia.app.template.serviceorder.Modifyservicetemplate12SO</changeSoEntityName>
    <removeSoEntityName>bmiasia.app.template.serviceorder.Removeservicetemplate12SO</removeSoEntityName>
    <workflow>
    <entityName>bmiasia.app.irb.servicetemplate12_Workflow</entityName>
    </workflow>
    <cancelFlow>
    <entityName>bmiasia.app.irb.servicetemplate12_CancelFlow</entityName>
    </cancelFlow>
    </defaultWorkflowDefinition>
    </ServiceType>

    Hi !!
    Now when iam extracting the data for the above xml, using the below query
    SELECT extractvalue(VALUE(p),'/itemkey/*') Name, extractvalue(VALUE(p),'/required/*') Required FROM CL_DATA_SERVICE_TEMPLATE w, TABLE(XMLSEQUENCE(EXTRACT(xmldata,'/ServiceType/siu','xmlns="http://www.bmiasia.com/tBos/service_1_0"'))) p
    I am expecting the output to be something like below
    Name | Required
    L2_OPTION | true
    L3_OPTION | false
    but iam getting the required number of rows but all blank
    Lets take it as O/P should be 20 Rows, then iam getting 20 Rows.... But all are blank
    What is wrong in the query ?
    Can some one point it out

  • How to start XML reports in Oracle Apps

    Hi All,
    As im new to develop XML reports in Oracle Apps. And Im used to develop oracle reports. But i have a new requirement came and i need to develop new XML reports.
    I am using windows please let me know any software to be installed and how to register the XML reports.
    1) how to create .rtf
    2) How to make columns mapping in rtf file.
    If any knows please let me know as it is bit urget for me.
    Im leaving in Duabi, if any is intrested to teach me i will join or pls let me know any instute
    Thanks,

    Assuming that you intend to create a layout template to use against an existing report, then you should start by changing the output type in the concurrent program definition to XML. You should then run the report and save the XML file output. This will form the start point for yout layout template.
    In order to create the layout template, you need to download the BI Publisher desktop. This is the add-in for Word which is used to build the template.
    When you have these tasks completed, you can open up Word and you will find you have some new menu options. Load the XML data you created in the first step, and you can build your template. You will also be able to preview the output from within Word.
    When you have completed the template, you need to go into XML Publisher responsibility. You should create a data definition which has a code the same as the concurrent program short name. This is the link between the template and the concurrent program.
    You then need to define a template for this data definition which will have the layout template uploaded.
    Having done this, switch to systeem administration responsibility, select the concurrent program menu entry and query back the program you are workin on. Click on the 'update' icon. You then need to click on the 'Onsite setting' tab. This allows you to attach the template to the program.
    Hope this helps.

  • POST Data Using Javascript

    Hi Guys,
    I ran into this trouble, basically, what I need is to post data into this url using REST:
    www.thissite.com/comment
    now it says:
    do this with a variable name content, containing "key: value" line by line:
    id:
    Action: comment
    Text: the text comment
    now it has a sample on how to do this using java:
    import java.io.IOException;
    import org.apache.commons.httpclient.HttpClient;
    import org.apache.commons.httpclient.methods.PostMethod;
    import org.apache.commons.httpclient.methods.multipart.MultipartRequestEntity;
    import org.apache.commons.httpclient.methods.multipart.Part;
    import org.apache.commons.httpclient.methods.multipart.StringPart;
    public class RtTicketCreator {
    static final String BASE_URI = "http://www.thissite.com/REST/1.0";
    public static void main(String[] args) throws IOException {
    PostMethod mPost = new PostMethod(BASE_URI + "/1234/comment/");
    Part[] parts = { new StringPart("content", "id: 1234\nAction: comment") };
    mPost.setRequestEntity(new MultipartRequestEntity(parts, mPost.getParams()));
    HttpClient cl = new HttpClient();
    cl.executeMethod(mPost);
    System.out.println(mPost.getResponseBodyAsString());
    Now, my question is: Can I do this using javascript? If yes, could you at least give me an idea how to accomplish this?
    Thanks Guys,
    Best Regards,
    Aaron

    Hi Vishvesh,
    Could you please let me know how you resolved the issue.
    I am also developing a web app in eclipse consuming the odata and when checking the script in Firebug i gor the error as
    GET http:/<server>;port/sap/opu/sdata/sap/GURU/$metadata/$metadata?$format=xml 
    00:01:50 2012-04-06 The following problem occurred: HTTP request failed0,, -
    Thanks and regards
    Gururaj

  • Urgent JBO-26041: Failed to post data to database during (in insert Clob)

    HI ,
    we have a code to get the clob and then write it to the database
    HttpSession session = UIServices.getHttpSession(context);
    byte] payloadByteArray = (byte[)session.getAttribute("FILE_BYTES_fileName");
    String payloadStr = null;
    try {
    //get the string
    payloadStr = new String(payloadByteArray, "UTF-8");
    // System.out.println("---payloadstr --->>>>"+payloadStr) ;
    ClobDomain cd =new ClobDomain(payloadStr);
    XhubRoutingRulesAMImpl am = (XhubRoutingRulesAMImpl)Jbo.getApplicationModule(context);
    SnwRoutingRulesVOImpl SnwRoutingRulesVO= (SnwRoutingRulesVOImpl) am.findObject("SnwRoutingRulesVO");
    Jbo.applyViewCriteriaOneRow(SnwRoutingRulesVO,"RoutingRuleId",routingRuleId);
    SnwRoutingRulesVO.executeQuery();
    SnwRoutingRulesVORowImpl row=null;
    while (SnwRoutingRulesVO.hasNext())
    row =(SnwRoutingRulesVORowImpl) SnwRoutingRulesVO.next();
    row.setPreXslt(cd);
    row.setOverridexslt("Y");
    row.setPostXslt(null);
    //commiting the data
    Jbo.commit(am);
    session.removeAttribute("FILE_BYTES_fileName");
    catch(Exception e){
    e.printStackTrace();
    session.removeAttribute("FILE_BYTES_fileName");
    THE exception are :
    oracle.jbo.DMLException: JBO-26041: Failed to post data to database during "Update": SQL Statement "null".
    at oracle.jbo.server.EntityImpl.doDMLWithLOBs(EntityImpl.java:8139)
    at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:7994)
    at oracle.apps.snw.schema.server.WhoEntityImpl.doDML(WhoEntityImpl.java:200)
    at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6319)
    at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3168)
    at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:2976)
    at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2014)
    at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2273)
    at oracle.apps.snw.uicommon.Jbo.commit(Jbo.java:148)
    at oracle.apps.snw.tpadmin.webui.TPRouteRulesEvent.fileUpload(TPRouteRulesEvent.java:241)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at oracle.cabo.servlet.event.MethodEventHandler.handleEvent(Unknown Source)
    at oracle.cabo.data.jbo.servlet.event.ChainingEventHandler.handleEventImpl(Unknown Source)
    at oracle.cabo.data.jbo.servlet.event.FindRootAppModuleEventHandler.handleEventImpl(Unknown Source)
    at oracle.cabo.data.jbo.servlet.event.BaseEventHandler.handleEvent(Unknown Source)
    at oracle.cabo.servlet.event.TableEventHandler.handleEvent(Unknown Source)
    at oracle.cabo.servlet.event.TableEventHandler.handleEvent(Unknown Source)
    at oracle.cabo.data.jbo.xml.parse.JboParserExtensionImpl$SynchronizingEventHandler.handleEvent(Unknown Source)
    at oracle.cabo.servlet.event.BasePageFlowEngine.handleRequest(Unknown Source)
    at oracle.cabo.servlet.AbstractPageBroker.handleRequest(Unknown Source)
    at oracle.cabo.servlet.ui.BaseUIPageBroker.handleRequest(Unknown Source)
    at oracle.cabo.servlet.PageBrokerHandler.handleRequest(Unknown Source)
    at oracle.cabo.servlet.UIXServlet.doGet(Unknown Source)
    at oracle.cabo.servlet.BajaServlet.doGet(Unknown Source)
    at oracle.cabo.servlet.UIXServlet.doPost(Unknown Source)
    at oracle.cabo.servlet.BajaServlet.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.NullPointerException
    at oracle.jbo.domain.ClobDomain.writeCharsToLob(ClobDomain.java:1322)
    at oracle.jbo.domain.ClobDomain.saveToDatabase(ClobDomain.java:464)
    at oracle.jbo.server.EntityImpl.doDMLWithLOBs(EntityImpl.java:8114)
    ... 49 more
    This same code is running fine sometime and we didnt get any issue but sometime it is throwing the error .Its very strange

    EDIT: Nevermind you're using ClobDomain. I was thinking of standard jdbc CLOB's.
    Edited by: Jan Nawara on May 5, 2010 10:35 AM

  • Dynamic selection of xml templates from within a report

    I have a report for sales orders that I need to be able to select two different xml publisher templates based on payment type. I am including the code that I have wrote and the error that it is getting when it is ran in in the eBusiness Suite. Any ideas about what I may be doing wrong would be very helpful.
    Thank You Russ Cowan
    function CF_XML_Template_Code_IDFormula return Number is
    v_vcr_template varchar2(100);
    begin
    if :Payment_Type_Code = 'Check' THEN v_vcr_template := 'XXTRU_OEXPMTRC';
    elsif :Payment_Type_Code = 'Cash' THEN v_vcr_template := 'XXTRU_OEXPMTRC';
    elsif :Payment_Type_Code = 'Credit Card' THEN v_vcr_template := 'XXTRU_OEXPMTRC';
    else v_vcr_template := 'XXTRU_OEXPMTRC_FO';
    end if;
    Exception
    When Others Then
    v_vcr_template := 'XXTRU_OEXPMTRC_FO';
    :CP_XML_TEMPLATE_CODE := v_vcr_template;
    return v_vcr_template;
    end;
    function AfterReport return boolean is
    v_num_retcode number;
    v_vcr_errbuf varchar2(100);
    begin
    srw.message(1,'in after report trigger');
    BEGIN
    SRW.USER_EXIT('FND SRWEXIT');
    EXCEPTION
    WHEN SRW.USER_EXIT_FAILURE THEN
    SRW.MESSAGE(1,'FAILED IN AFTER REPORT TRIGGER');
    RETURN(FALSE);
    END;
    Following modified by SVSastry for enabling this report from Action Button
    If NVL(:P_REP_REQ_SOURCE,'XXX') != 'SRS' Then
    -- execute this line of code only if report is called from actions button
    -- XXTRU_OEXPMTRC(v_num_retcode, v_vcr_errbuf, 'XXTRU_OEXPMTRC', :P_CONC_REQUEST_ID);
    -- srw.message(100,'Print Payment Receipt Result :'||v_num_retcode||'-'||v_vcr_errbuf);
    Following modified by Russell Cowan for enabling multiple templates based on payment.
    XXTRU_OEXPMTRC(v_num_retcode, v_vcr_errbuf, :CP_XML_TEMPLATE_CODE, :P_CONC_REQUEST_ID);
    srw.message(100,'Print Payment Receipt Result :'||v_num_retcode||'-'||v_vcr_errbuf);
    End If;
    return (TRUE);
    end;
    emsg:was terminated by signal 11
    Xlib: connection to "athena:0.0" refused by server
    Xlib: No protocol specified
    REP-3000: Internal error starting Oracle Toolkit.
    MSG-00001: in before parameter form trigger
    MSG-00001: in after parameter form trigger
    MSG-00001: in before report trigger

    Hi Chris I have been working on it throught out the day without much luck. the following code is what I am using to try and accomplish the select.
    Any help would be great.
    Thanks Russell
    /*************************************Primary Template*****************************
    <?import:xdo://ONT.XXTRU_OEXPMTRC_PR.EN.US?>
    <?import:xdo://ONT.XXTRU_OEXPMTRC_FO.EN.US?>
    <?if:Payment_Type_Code !=''?> <?call-template:XXTRU_OEXPMTRC_PR?> <?end if?>
    <?if:Payment_Type_Code =''?> <?call-template:XXTRU_OEXPMTRC_FO?> <?end if?>
    /*********************************Sub-Template #1****************************************
    <?template: XXTRU_OEXPMTRC_PR?>
    "Template data"
    <?end template?>
    /*********************************Sub-Template #2****************************************
    <?template: XXTRU_OEXPMTRC_FO?>
    "Template data"
    <?end template?>
    I have been getting an error that reads
    --XDOException
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeNewXSLStylesheet(XSLT10gR1.java:520)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:196)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:161)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1015)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:968)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:209)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1561)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:951)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5975)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3555)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3614)
         at oracle.apps.xdo.oa.cp.JCP4XMLPublisher.runProgram(JCP4XMLPublisher.java:815)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:148)
    Caused by: oracle.xdo.parser.v2.XSLException: <Line 48, Column 66>: XML-22049: (Error) Template 'XXTRU_OEXPMTRC_PR' invoked but not defined.
         at oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1526)
         at oracle.xdo.parser.v2.XSLStylesheet.endContent(XSLStylesheet.java:333)
         at oracle.xdo.parser.v2.XSLBuilder.endDocument(XSLBuilder.java:273)
         at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:289)
         at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:266)
         at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:560)
         ... 17 more

  • Problem posting data with HttpsConnection

    Hi,
    I am currently having problems posting data using a HttpsConnection.
    I am setting the setRequestMethod to HttpConnection.POST and then using the openDataOutputStream method.
    I will post my code when I get home for reference.
    Background to my problem - I am trying to use the declarative security features of J2EE to authenticate a mobile user.
    I am firstly firing a HttpsConnection from the mobile device to a protected resource on the app server. I grab the JSessionId from the Set-Cookie http header of the response and post a second request to the j_security_check and provide the refer http header to the protected resource - this simulates exactly what happens on a browser (I used a Http monitor tool to confirm this). However, I need to pass the j_username and j_password as body of the https request. This doesn't seem to work because the server displays my access denied at this point - as if it hadn't received the crednetials
    However, just to confirm my technique works I subsituted the post request for a get request to j_security_check and passed the j_username and j_password as request params in the URL. This worked fine and I got a 302 response 'temporily moved' which I then handle by simply making a further request for the original resource - this time it serves back the resource because I am authenticated.
    Anyway that sets the scene - so the problem definitely appears to be posting data using an HttpsConnection.
    Any help would be greatly appreciated
    Rgds,
    David

    Hi,
    Here is my code relating to the above problem:
    httpsConn = (HttpsConnection)Connector.open("https://127.0.0.1:8443/ebank/j_security_check");
                httpsConn.setRequestMethod(HttpConnection.POST);
                httpsConn.setRequestProperty("referer", "https://127.0.0.1:8443/ebank/main/mainMenu.xml");
                httpsConn.setRequestProperty("cookie", cookieValue);
                httpsConn.setRequestProperty("location", url);
                httpsConn.setRequestProperty("User-Agent",
                    "Profile/MIDP-1.0, Configuration/CLDC-1.0");
                httpsConn.setRequestProperty("Content-Language",
                    "en-gb");
    String credentials = "j_username=EB0001&j_password=240589";
                httpsConn.setRequestProperty("Content-Length",""+credentials.length());
                DataOutputStream os = httpsConn.openDataOutputStream();
                os.writeUTF(credentials);
    ....Thanks,
    David

Maybe you are looking for