JMS header properties are null

Hi all,
At sending messages to the internal WLI event queue from a client application
I get the following problem:
I set a application specific jms header property via the setStringProperty method.
An event node in the receiving workflow extracts the property with EventAttribute.
The event node gets the message but the header property is always null. I tried
various sorts of property names, none of them works. Only the real jms header
names which are set by the send method give non null values, but I cannot set
these in the client application.
Any ideas?

Hi All,
I have got it working here is how i did it.
- transport header add a user defined name and value, it get added to outbound transport header.
- at receiving end. retrieve it using for/each loop for inbound header user properties.
Regards,
Amit

Similar Messages

  • Message Selector and Setting JMS Header Properties PL/SQL Enqueue

    Currently I am attempting to use the Message selector functionality. I just know know exactly how we need to set the property in PL/SQL when enqueuing. I also want to verify the syntax that I should use in the event that I am doing this incorrectly...
    The code I am using to test the enqueue is
    declare
    enqueue_options dbms_aq.enqueue_options_t;
    message_properties dbms_aq.message_properties_t;
    message_handle RAW(16);
    agent sys.aq$_agent := sys.aq$_agent('', null, null);
    message sys.aq$_jms_text_message;
    recipients DBMS_AQ.aq$_recipient_list_t;
    BEGIN
    message := sys.aq$_jms_text_message.construct;
    message.set_text('<ORDER><HEADER_ID>16992531</HEADER_ID></ORDER>');
    message.header.set_string_property('bamfilter','ORDER_ENTRY');
    dbms_aq.enqueue(queue_name => 'XX_OM_MONITOR_Q',
    enqueue_options => enqueue_options,
    message_properties => message_properties,
    payload => message,
    msgid => message_handle);
    COMMIT;
    END;
    we have tried a few other methods, but still to no avail...
    the syntax I believe for the selector in the ems should be bamfilter='ORDER_ENTRY'
    Any help would be great.
    The DB the Queue is locate is on 10g if that makes any difference...

    Yes
    I am able to specify JMS Header and JMS Properties when producing a message. However I am not able to user "Message Selector" to filter messages based on JMS Properties information when consuming messages.
    In the link you provide, there is an example on how to use Message Selector:
    # (a copy from the link)
    Message Selector
    ...for example, you can enter logic, such as:
    * JMSType = 'car' AND color = 'blue' AND weight > 2500
    * Country in ('UK', 'US', 'France')
    I believe the example with "Country" is exactly what I need, but I can´t get it work.
    I create the same example above, setting a property named "Country" in the JMSHeader, sending the message to a JMS Queue (BPEL Process #1) and try to comsume it on the Message Selector (BPEL Process#2), but JMSAdapter never consumes the message.
    Thanks for your help.

  • Delegates, and Object properties are null

    -----------------------------
    CGRect frame = CGRectMake( 0, 0, 100, 100 );
    _svContainer = [ [ UIScrollView alloc ] initWithFrame:frame ];
    _svContainer.pagingEnabled = YES;
    _svContainer.scrollEnabled = YES;
    _svContainer.showsHorizontalScrollIndicator = NO;
    _svContainer.showsVerticalScrollIndicator = NO;
    _svContainer.delegate = self;
    i have this code in my viewDidLoad function in my view controller. the scrollview gets set up properly and everything displays fine. I'm setting the delegate of the scrollview to the view controller. and get the following warning: "Class 'MyViewController' does not implement the 'UIScrollViewDelegate' protocol". However, i have a function to capture when the scrollview is scrolling which does get fired:
    -( void ) scrollViewDidScroll:( UIScrollView * )scrollView
    NSLog( @"SingleIssueViewController :: scrollViewDidScroll:" );
    NSLog( @" offset:%@", scrollView );
    NSLog( @" prop:%@", scrollView.frame );
    the variable scrollView is good, but frame prints out "(null)". I've tried accessing other properties, like .contentOffset, to which the app crashes without any sort of error message in the console.
    what could be causing this?
    Message was edited by: mrkos66
    Message was edited by: mrkos66

    Declare in your header file that your VC adopts the UIScrollViewDelegate protocol and the warning will go away.
    You cannot print out C structures as Objective-C objects using the %@ format specifier. You need to print the various primitive components of the CGRect using the appropriate specifier (generally %f, %g etc. can be used for float values).

  • EbXML Header Properties to JMS properties

    Hi,
    We are using the ebXML protocol(ebMS) and using JMS integration to set up the Internal Delivery Channel. We are not using Oracle AQ instead using BEA JMS.
    For inbound messages, we noticed that when the ebXML message gets enqueued on the JMS Queue but we dont get all the ebXML header properties in the JMS properties of the message. Looks like only those properties which are needed by Oracle B2B are coming into the JMS properties.
    In our current architecture, we will be needing some more of the ebxml headers (like Conversation Id, From Role, To Role, Receiver Routing Id,Sender Routing Id, Service etc).
    Similarly for the Outbound messages, some of the JMS properties that is being set by the mid tier layer which enqueues the message on the Queue is being overridden by Oracle B2B. Looks like the message id is being overwritten and also this mid tier layer explicitly sets the conversation id, To Role, Receiver Routing Id, Sender Routing Id and Ref To Msg Id etc.
    We are looking at these details as we will need to migrate to Oracle B2B without much impact on the other mid tier components.
    Please give your thoughts.
    Thanks
    Kavitha

    Hi Sinkar, Nandagopal,
    The following is the message we are trying to send:
    <mes:message transport="async" acknowledgeRequired="true"
    xsi:schemaLocation="http://www.bt.com/btgs/solutions/message ../../Schemas/messageV3.01.xsd"
    xmlns:mes="http://www.bt.com/btgs/solutions/message"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <mes:messageSequenceID>1166429678cRY</mes:messageSequenceID>
         <mes:messageType>incident</mes:messageType>
         <mes:messageAction>event</mes:messageAction>
         <mes:messageDateTime>2006-12-18T08:14:40.005Z</mes:messageDateTime>
         <mes:routingDataItem>
              <mes:param>source</mes:param>
              <mes:value>Expedio IM</mes:value>
              <mes:param>destination</mes:param>
              <mes:value>TP BT MOM Bridge</mes:value>
         </mes:routingDataItem>
         <mes:payload>
              <inc:incident xmlns:inc="http://www.bt.com/btgs/solutions/message/incident"
                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" majorVersion="1" minorVersion="1"
              xsi:schemaLocation="http://www.bt.com/btgs/solutions/message/incident ../../Schemas/IncidentV1.01.xsd">
                   <inc:sourceSystem type="Remedy" name="Expedio IM"/>
                   <inc:targetSystem type="TP" name="TP BT MOM Bridge"/>
                   <inc:incidentHeader supplierTicketRef="XF02958950" customerTicketRef="NA" masterTicketRef="unknown" supplierTicketCreateDate="2006-12-18T07:00:55.000Z">
                   <inc:customerDetails contactNumber="609-252-6596" customerContact="Jo Bloggs" customerContract="ABC123" customerID="23558" customerName="ENCO"/>
                   <inc:incidentContact>          
                        <inc:role>Prime Contact </inc:role>          
                        <inc:firstName>GCS Helpdesk </inc:firstName>          
                        <inc:lastName>GCS Helpdesk </inc:lastName>          
                        <inc:telephone>0800 282820 </inc:telephone>          
                   </inc:incidentContact>          
                        <inc:product xsi:type="inc:CPEproductType" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                             <inc:elementID>3212435</inc:elementID>
                             <inc:productID>67</inc:productID>
                             <inc:productType>Routers</inc:productType>
                             <inc:productName>Cisco 7204</inc:productName>
                             <inc:productDescription >Unknown</inc:productDescription>
                             <inc:aEndSite>
                                  <inc:siteName>RUSSIA:MOSCOW;17; BUILDING 1;KRYLATSKAYA STREET;121614</inc:siteName>
                                  <inc:siteReference>TMPRUS-01</inc:siteReference>
                                  <inc:siteID>390075</inc:siteID>
                                  <inc:city>MOSCOW</inc:city>
                                  <inc:country>RUSSIAN FEDERATION</inc:country>
                                  <inc:postcode>121614</inc:postcode>
                                  <inc:location>
                                       <inc:subPremise>BUILDING</inc:subPremise>
                                  </inc:location>
                             </inc:aEndSite>
                             <inc:hostname>INB_RU_MOS01_RTR_01</inc:hostname>
                             <inc:serialNumber>74223995</inc:serialNumber>
                        </inc:product>
                        <inc:incidentTitle>Network Unreachable</inc:incidentTitle>
                   </inc:incidentHeader>
                   <inc:incidentBody>
                        <inc:incidentAction incidentAction="attribute change" incidentType="fault"/>
                        <inc:incidentPriority>2</inc:incidentPriority>
                        <inc:incidentSeverity>2</inc:incidentSeverity>
                        <inc:incidentStatus>in-progress</inc:incidentStatus>
                        <inc:logNotes>
                             <inc:noteLine timestamp="2006-12-18T08:14:38.000Z" author="macenadf">INITIAL VALUES:Element reported is INB_RU_MOS01_RTR_01 at RUSSIA:MOSCOW;17; BUILDING 1;KRYLATSKAYA STREET;121614.Assigned to Douglas Macena.Status set to WORK IN PROGRESS.Severity set to 2.Ticket submitted at 18/12/2006 07:00:55.</inc:noteLine>
                        </inc:logNotes>
                   </inc:incidentBody>
              </inc:incident>
         </mes:payload>
    </mes:message>
    Do the header properties have to be modified here?
    Further no other details were obtained in the B2B opmn server logs besides Start and Stop OPMN
    Is there a stub we can run from WLI that can put a message on the JMS, that can be read by B2B?
    With Thanks & Regards,
    Suhas.

  • JMS Header: JMS Properties and Message Selector

    Hi all
    I´m using a JMS Adapter to consume messages from a JMS queue (a JMS adapter which create the BPEL instance when a message arrives).
    The process must select messages which meet certain criterias, so I´m using Message Selector to filter the messages and only pick up the ones who interest me (If click on the "help" button on JDeveloper Wizard in the page you define Message Selector, you can see an example on how doing this).
    So how can I select messages using values placed on JMS Properties, in the Message Selector?
    For example, I set in the JMS Header:
    JMSInboundHeadersAndProperties
    --------JMSInboundProperties
    ----------------Property
    -----------------------name = 'Country'
    -----------------------value = 'Brazil'
    The JMSAdapter must consume only messages that "Country" = "Brazil".
    Thanks in advance.
    Menezes

    Yes
    I am able to specify JMS Header and JMS Properties when producing a message. However I am not able to user "Message Selector" to filter messages based on JMS Properties information when consuming messages.
    In the link you provide, there is an example on how to use Message Selector:
    # (a copy from the link)
    Message Selector
    ...for example, you can enter logic, such as:
    * JMSType = 'car' AND color = 'blue' AND weight > 2500
    * Country in ('UK', 'US', 'France')
    I believe the example with "Country" is exactly what I need, but I can´t get it work.
    I create the same example above, setting a property named "Country" in the JMSHeader, sending the message to a JMS Queue (BPEL Process #1) and try to comsume it on the Message Selector (BPEL Process#2), but JMSAdapter never consumes the message.
    Thanks for your help.

  • Values from a jsp page are null in Action Class

    hi, i am working on an application...i have a jsp page with several inputs (type=text) and when a submit the form to to my action class all values      received are null.
    Here is a part of code:
    the jsp file: letter.jsp
    <form target="_self" action="/Test/editLetter.do" name="letterTF">
    <table>
    <tbody>
    <tr>
    <th>
    No of objects
    </th>
    <th>
    Weight
    </th>
    <th>
    Description
    </th>
    </tr>
    <tr>
    <td>
    Package
    <input name="package" id="package" type="checkbox">
    </td>
    <td>
    <input name="package_No" type="text" value="<%=currentBean.getPackageNo() %>"> <%-- from session...have to edit some date from a data base--%>
    </td>
    <td>
    <input name="package_weight" type="text" value="<%=currentBean.geWeight()%>">
    </td>
    <td>
    <input name="description" type="text" value="<%=currentBean.Description()%>"
    </td>
    </tr>
    <tr>
    ..................................................... <%-- It's a big form --%>
    </tr>
    <tr>
    <input type="submit" name="send" value="Send">
    </tr>
    </tbody>
    </table>
    </form>
    struts-config.xml:
    <form-bean
              name="letterTF"
              type="Test.LetterForm">
    </form-bean>
    <action path="/editLetter"
                   type="Test.LetterAction"
                   name="scrisoareTF"
                   input="/letter.jsp"
                   scope="request"
                   validate="false">
                   <forward name="success" path="/index_orders.jsp"/>
    </action>
    The ActionForm class:
    public class LetterForm extends ActionForm{
    private String package;
         private String package_No;
         private String package_weight;
         public void setPackage(String package){
    this.package = package
    public String getPackage(){
    return package;
    The action class:
    public class LetterAction extends Action{
    public ActionForward execute(     
                   ActionMapping mapping,
                   ActionForm form,
                   HttpServletRequest request,
                   HttpServletResponse response)
         throws Exception{
    String package;
    String package_No;
    String package_weight;
    LetterForm letterTF = (LetterForm) form;
    package = letterTF.getPackage();
    package_No = letterTF.getPackageNo()
    package_weight = letterTF.getPackageWeight();
    System.out.println("Package: "+package);//it will print Package: null
    System.out.println("Weight: "+weight);//it will print Weight: null
    System.out.println("Description "+description) //it will print Description: null
    As I observed its not making the set methods from LetterForm.java
    I am dealing with this bug for a couple of days an i didn't managed to break it. If anyone has an idea would he be so kind to share it with me.
    Thanks in advanced,
    David

    Basically your form beans are the place holders or containers for your jsp attributes. It has to be mapped in such a way that when the form is submitted the user entered values get populated on to your form bean.
    For Eg:
    JSP
    <html:form action="accountSearchResults.do">
    <html:text property="myName" size="15"/>
    //USE ONLY STRUTS TAGS IN JSP's. U CAN REFER TO
    //http://struts.apache.org/1.x/struts-taglib/tlddoc/index.html
    //THE PROPERTY NAME "myName" SHOULD BE DEFINED IN
    //YOUR FORMBEAN WITH getMyName AND setMyName
    //METHODS DEFINED
    </html:form>
    struts-config.xml
    <form-beans>
         <form-bean name="addEditAccount" type="org.apache.struts.validator.LazyValidatorForm">
              <form-property name="myName" type="java.lang.String">
              </form-property>
         </form-bean>
    </form-beans>
    <action-mappings>
         <action path="/accountSearchResults" type="com.zzz.AccountSearchResultAction" name="addEditAccount" scope="request">
              <forward name="success" path="NextPage.jsp">
              </forward>
         </action>
    </action-mappings>
    Action Class
    Since we have defined the form bean as a lazyvalidator instance you can use:
    PropertyUtils.copyProperties(targetBean, form);to fetch the values entered by the user. Try to use struts tags in your jsp's and map the properties to your form bean variables. Hope that helps.
    SirG

  • Values from a jsp page are null in an Action class

    hi, i am working on an application...i have a jsp page with several inputs (type=text) and when a submit the form to to my action class all values received are null.
    Here is a part of code:
    the jsp file: letter.jsp
    <form target="_self" action="/Test/editLetter.do" name="letterTF">
    <table>
    <tbody>
    <tr>
    <th>
    No of objects
    </th>
    <th>
    Weight
    </th>
    <th>
    Description
    </th>
    </tr>
    <tr>
    <td>
    Package
    <input name="package" id="package" type="checkbox">
    </td>
    <td>
    <input name="package_No" type="text" value="<%=currentBean.getPackageNo() %>"> <%-- from session...have to edit some date from a data base--%>
    </td>
    <td>
    <input name="package_weight" type="text" value="<%=currentBean.geWeight()%>">
    </td>
    <td>
    <input name="description" type="text" value="<%=currentBean.Description()%>"
    </td></tr>
    <tr>
    ..................................................... <%-- It's a big form --%>
    </tr>
    <tr>
    <input type="submit" name="send" value="Send">
    </tr>
    </tbody>
    </table>
    </form>
    struts-config.xml:
    <form-bean
    name="letterTF"
    type="Test.LetterForm">
    </form-bean>
    <action path="/editLetter"
    type="Test.LetterAction"
    name="scrisoareTF"
    input="/letter.jsp"
    scope="request"
    validate="false">
    <forward name="success" path="/index_orders.jsp"/>
    </action>
    The ActionForm class:
    public class LetterForm extends ActionForm{
    private String package;
    private String package_No;
    private String package_weight;
    public void setPackage(String package){
    this.package = package
    public String getPackage(){
    return package;
    The action class:
    public class LetterAction extends Action{
    public ActionForward execute(
    ActionMapping mapping,
    ActionForm form,
    HttpServletRequest request,
    HttpServletResponse response)
    throws Exception{
    String package;
    String package_No;
    String package_weight;
    LetterForm letterTF = (LetterForm) form;
    package = letterTF.getPackage();
    package_No = letterTF.getPackageNo()
    package_weight = letterTF.getPackageWeight();
    System.out.println("Package: "+package);//it will print Package: null
    System.out.println("Weight: "+weight);//it will print Weight: null
    System.out.println("Description "+description) //it will print Description: null
    As I observed its not making the set methods from LetterForm.java
    I am dealing with this bug for a couple of days an i didn't managed to break it. If anyone has an idea or a solution would he be so kind to share it with me
    Thanks in advance,
    David

    Basically your form beans are the place holders or containers for your jsp attributes. It has to be mapped in such a way that when the form is submitted the user entered values get populated on to your form bean.
    For Eg:
    JSP
    <html:form action="accountSearchResults.do">
    <html:text property="myName" size="15"/>
    //USE ONLY STRUTS TAGS IN JSP's. U CAN REFER TO
    //http://struts.apache.org/1.x/struts-taglib/tlddoc/index.html
    //THE PROPERTY NAME "myName" SHOULD BE DEFINED IN
    //YOUR FORMBEAN WITH getMyName AND setMyName
    //METHODS DEFINED
    </html:form>
    struts-config.xml
    <form-beans>
         <form-bean name="addEditAccount" type="org.apache.struts.validator.LazyValidatorForm">
              <form-property name="myName" type="java.lang.String">
              </form-property>
         </form-bean>
    </form-beans>
    <action-mappings>
         <action path="/accountSearchResults" type="com.zzz.AccountSearchResultAction" name="addEditAccount" scope="request">
              <forward name="success" path="NextPage.jsp">
              </forward>
         </action>
    </action-mappings>
    Action Class
    Since we have defined the form bean as a lazyvalidator instance you can use:
    PropertyUtils.copyProperties(targetBean, form);to fetch the values entered by the user. Try to use struts tags in your jsp's and map the properties to your form bean variables. Hope that helps.
    SirG

  • How to set JMS Header Property without using DynamicConfiguration.

    Hi,
    My Scenario is: PDF File -->XI -->JMS
    I need to send the PDF file as it is to JMS receiver, which shouldn't be a problem. The problem is I need to set the same file name in the Receiver JMS header property.
    So to do this I am using DynamicConfiguration in message mapping but when File Adapter picks the PDF file (as it is) I get the run time mapping error which is quite obvious since message mapping expects the data in xml format.
    Do you have any idea if I can avoid the message mapping and set the Dynamic Configuration somewhere else (not sure if java mapping can help here) or if there is some Module available to set file name in JMS header.
    Note: PDF File name is dynamic.
    Thanks!

    I am on XI 3.0. I am not good in java.. can someone give an example?
    Update:-
    I have done some changes to my code and now it is working for me. Since I don't have much knowledge in Java (except writing UDFs )so don't know how good this coding is but defiantly this is my first step to learn Java APIs. Thanks to everyone for their comments & suggestions!!
    If any improvement in below code can be done please let me know.
    package com.sap.xi;
    import com.sap.aii.mapping.api.*;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.HashMap;
    import java.util.Map;
    import com.sap.aii.mapping.api.StreamTransformation;
    import com.sap.aii.mapping.api.StreamTransformationException;
    import org.xml.sax.helpers.DefaultHandler;
    public class JMSHeaderMapping extends DefaultHandler implements StreamTransformation{
       private Map param;
        public void setParameter(Map map)//to access message header data during runtime
            param = map;
            if(param == null)
            param = new HashMap();
        public void execute(InputStream in, OutputStream out)  //This method is used to run the mapping
        throws StreamTransformationException
                DynamicConfiguration dynamicconfiguration = (DynamicConfiguration)param.get("DynamicConfiguration");
                DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
                String MyFileName = dynamicconfiguration.get(key);
               DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/JMS","DCJMSMessageProperty0");
            dynamicconfiguration.put(key1, MyFileName);
            byte[] inbyte = null;
            try {
        // convert InputStream into byte stream
              int bufsize = in.available();
              inbyte = new byte[bufsize];
              in.read(inbyte);
        // convert byte stream into OutputStream         
              out.write(inbyte);
            catch (Throwable t){
             t.printStackTrace();
    Edited by: Sarvesh Singh on May 9, 2011 8:47 PM

  • Passing Idoc Control Record information  to JMS header

    Hi All,
    We have a requirement where we need to pass the 'MESCOD' and 'MESFCT" in the EDIDC_40 - Control record for the idoc to the Header of a JMS message.
    Basically we are trying to pass IDOC Control segment to the JMS header.
    I was looking at the options we have in the JMS adapter, and i am not sure how can this be achieved.
    Would appreciate any info on how this can be done.
    Thanks,
    Karthik

    Hi Karthik,
    As suggested by Ravi, you can hardcode this values in XI mapping before pushing data to JMS.
    Otherway round would be...check for User Exit where you can populate EDIDC_40 with MESCOD and MESFCT.
    Nilesh

  • Change a label in page when webpart properties are changed

    Hi
    can anyone please tel me how to
    Change label in page when webpart properties are changed
    Nishanthi N

    Hi Nishanthi,
    If it would be a Visual Webpart, then you have to pass webpart property in user control as WP property bag/collection so that you will retrieve it in ascx and assign its value to label on load event.
    Add below code in Webpart:
    [Personalizable(), WebBrowsable, WebDisplayName("City or Town"), Category("Address settings")]
          public String City {
    get; set; }
            protected
    override void CreateChildControls()
            AddressUserControl control = Page.LoadControl(_ascxPath)
    as AddressUserControl;
            if
    (control != null)
                control.WebPart =
    this;
            Controls.Add(control);
    Put this code in your ASCX Control:
    MyWebPartClass ParentWebPart = (MyWebPartClass)this.Parent;
    Use this code in your ASCX methods:
    string webPartProperty = this.ParentWebPart.City;
    Thanks
    Please mark it as Answer if works...

  • XSLT sender plugin fails to set JMS message properties

    When creating a JMS message to be put on a JMS queue, one of the XSLT for the XSLT automation plugin fails to set JMS string properties like: wlsmimehdrContent_Type
    The content on the xslt are listed below.
    The xslt in CPRLookupRequest.xslt sets:
    wlsmimehdrContent_Type
    SERVICE_SUFFIX
    OSM_EVENT_TYPE
    as expected, but the almost similar plugin NABSCreditEvalPluginRequest.xsl fails to set the same string JMS properties.
    I'm looking for a clue, because I'm clueless. I'm an XSLT newbie, so it might be something simple.
    The core part of the problem is put in bold in the listings below
    h2. CPRLookupRequest.xslt:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns="http://java.sun.com/products/oss/xml/ServiceActivation" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:oms="urn:com:metasolv:oms:xmlapi:1" xmlns:java="http://xml.apache.org/xalan/java" xmlns:xalan="http://xml.apache.org/xalan" xmlns:mslv-sa="http://www.metasolv.com/oss/ServiceActivation/2003" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:co="http://java.sun.com/products/oss/xml/Common" exclude-result-prefixes="oms java xsl xalan">
         <xsl:param name="automator"/>
         <xsl:param name="log"/>
         <xsl:param name="context"/>
         <xsl:param name="outboundMessage"/>
         <xsl:output method="xml" indent="yes" omit-xml-declaration="no" xalan:indent-amount="5"/>
         <xsl:template match="/">
              <xsl:apply-templates select="oms:GetOrder.Response">
                   <xsl:with-param name="SERVICE_SUFFIX" select="'CprDomain/Cpr'"/>
                   <xsl:with-param name="OSM_EVENT_TYPE" select="'CPR_LOOKUP'"/>
              </xsl:apply-templates>
         </xsl:template>
         <xsl:template match="oms:GetOrder.Response">
              <xsl:param name="SERVICE_SUFFIX" />
              <xsl:param name="OSM_EVENT_TYPE" />
    *<xsl:variable name="void2" select="java:setStringProperty($outboundMessage, '_wls_mimehdrContent_Type', 'text/xml; charset=UTF-8')" />*
    *<xsl:variable name="void3" select="java:setStringProperty($outboundMessage, 'SERVICE_SUFFIX', $SERVICE_SUFFIX)" />*
    *<xsl:variable name="void4" select="java:setStringProperty($outboundMessage, 'OSM_EVENT_TYPE', $OSM_EVENT_TYPE)" />*
              <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                   <env:Body env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
                        <m:getPersonByCPR xmlns:m="/Cpr">
                             <getPersonByCprRequestInfo xmlns:n1="java:dk.tdc.soa.cpr.extern.datatypes" xsi:type="n1:GetPersonByCprRequestInfo">
                                  <applicationId xsi:type="xsd:string"><xsl:text>CPR</xsl:text></applicationId>
                                  <cprNumber xsi:type="xsd:string"><xsl:value-of select="oms:_root/oms:cpr" /></cprNumber>
                             </getPersonByCprRequestInfo>
                        </m:getPersonByCPR>
                   </env:Body>
              </env:Envelope>
         </xsl:template>
    </xsl:stylesheet>
    h2. NABSCreditEvalPluginRequest.xsl
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" exclude-result-prefixes="oms java xsl xalan"
         xmlns="http://java.sun.com/products/oss/xml/ServiceActivation"
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
         xmlns:oms="urn:com:metasolv:oms:xmlapi:1"
         xmlns:java="http://xml.apache.org/xalan/java"
         xmlns:xalan="http://xml.apache.org/xalan"
         xmlns:mslv-sa="http://www.metasolv.com/oss/ServiceActivation/2003"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:co="http://java.sun.com/products/oss/xml/Common">
         <xsl:param name="automator"/>
         <xsl:param name="log"/>
         <xsl:param name="context"/>
         <xsl:param name="outboundMessage"/>
         <xsl:template match="/">
              <xsl:apply-templates select="oms:GetOrder.Response">
                   <xsl:with-param name="SERVICE_SUFFIX" select="'/APILink/CreditServices'"/>
                   <xsl:with-param name="OSM_EVENT_TYPE" select="'NABS_CREDIT_EVAL'"/>
              </xsl:apply-templates>
         </xsl:template>
         <xsl:template match="oms:GetOrder.Response">
              <xsl:param name="SERVICE_SUFFIX"/>
              <xsl:param name="OSM_EVENT_TYPE"/>
    *<xsl:variable name="void2" select="java:setStringProperty($outboundMessage, '_wls_mimehdrContent_Type', 'text/xml; charset=UTF-8')"/>*
    *<xsl:variable name="void3" select="java:setStringProperty($outboundMessage, 'SERVICE_SUFFIX', $SERVICE_SUFFIX)"/>*
    *<xsl:variable name="void4" select="java:setStringProperty($outboundMessage, 'OSM_EVENT_TYPE', $OSM_EVENT_TYPE)"/>*
              <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                   <env:Body env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
                        <xsl:choose>
                             <xsl:when test="count(oms:_root/oms:cpr) + count(oms:_root/oms:birthDayPart) >0">
                                  <xsl:call-template name="private" />
                             </xsl:when>
                             <xsl:when test="count(oms:_root/oms:cvr) > 0">
                                  <xsl:call-template name="business" />
                             </xsl:when>
                        </xsl:choose>
                   </env:Body>
              </env:Envelope>
         </xsl:template>
         <xsl:template name="private">
              <m:validatePrivateCustomer xmlns:m="java:dk.tdc.apilink.logic.sessions.interfaces">
                   <validateCustomerCreditInput xsi:type="n1:ValidateCustomerCreditInput" xmlns:n1="java:dk.tdc.apilink.logic.datatypes">
                        <accountCategory xsi:type="java1:char" xmlns:java1="java:language_builtins">
                             <xsl:text>I</xsl:text>
                        </accountCategory>
                        <adrLocation xsi:type="xsd:string">
                             <xsl:value-of select="oms:_root/oms:houseNo"/>
                        </adrLocation>
                        <adrStreetName xsi:type="xsd:string">
                             <xsl:value-of select="oms:_root/oms:streetName"/>
                        </adrStreetName>
                        <adrZip xsi:type="xsd:string">
                             <xsl:value-of select="oms:_root/oms:zipCode"/>
                        </adrZip>
                        <xsl:choose>
                             <xsl:when test="count(oms:_root/oms:birthDayPart) > 0">
                                  <birthDate xsi:type="xsd:string">
                                       <xsl:value-of select="substring(oms:_root/oms:birthDayPart,1,4)"/><xsl:text>.</xsl:text>
                                       <xsl:value-of select="substring(oms:_root/oms:birthDayPart,5,2)"/><xsl:text>.</xsl:text>
                                       <xsl:value-of select="substring(oms:_root/oms:birthDayPart,7,2)"/>
                                  </birthDate>
                             </xsl:when>
                             <xsl:otherwise>
                                  <birthDate xsi:type="xsd:string">
                                       <xsl:text>19</xsl:text>
                                       <xsl:value-of select="substring(oms:_root/oms:cpr,5,2)"/><xsl:text>.</xsl:text>
                                       <xsl:value-of select="substring(oms:_root/oms:cpr,3,2)"/><xsl:text>.</xsl:text>
                                       <xsl:value-of select="substring(oms:_root/oms:cpr,1,2)"/>
                                  </birthDate>
                             </xsl:otherwise>
                        </xsl:choose>
                        <firstName xsi:type="xsd:string">
                             <xsl:value-of select="oms:_root/oms:firstName"/>
                        </firstName>
                        <lastBusinessName xsi:type="xsd:string">
                             <xsl:value-of select="oms:_root/oms:lastName"/>
                        </lastBusinessName>
                   </validateCustomerCreditInput>
              </m:validatePrivateCustomer>
         </xsl:template>
         <xsl:template name="business">
              <m:validateCompanyCustomer xmlns:m="java:dk.tdc.apilink.logic.sessions.interfaces">
                   <validateCustomerCreditInput xsi:type="n1:ValidateCustomerCreditInput" xmlns:n1="java:dk.tdc.apilink.logic.datatypes">
                        <accountCategory xsi:type="java1:char" xmlns:java1="java:language_builtins">
                             <xsl:text>B</xsl:text>
                        </accountCategory>
                        <cvrNumber xsi:type="xsd:string">
                             <xsl:value-of select="oms:_root/oms:cvr"/>
                        </cvrNumber>
                   </validateCustomerCreditInput>
              </m:validateCompanyCustomer>
         </xsl:template>
    </xsl:stylesheet>

    I have written an UDF to determine the filename dynamicly:
    //write your code here
    String str = "SAPDATA-" + a + "ES" + ".xml";
    DynamicConfiguration conf = (DynamicConfiguration)
    container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey FileName = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File","FileName");
    conf.put(FileName, str);
    return "";

  • JMS header fields

    Can I update a JMS Message Header field or a JMS System Property for an existing JMS message without receiving it and then puting it back onto the queue ?
              

    You can modify any of the JMS header fields any time you want. To put it
              on a queue would need a producer. But when you call producer.send/publish,
              it will overwrite nearly all of the header fields. The exceptions are
              JMSCorrelationID, JMSReplyTo and JMSType. Those three fields will retain
              the values you set.
              _sjz.
              

  • Propagate custom JMS message properties to replyTo message

    WebServices are invoked over JMS. In the SOAP JMS message request, I want to record some information in JMS properties and get them back in the reply JMS message received in the replyTo queue. I wonder if there is a way to do that, either by writing custom hook to copy over custom JMS message properties, or WLS recognize special JMS message properties that will be propagated.

    I have written an UDF to determine the filename dynamicly:
    //write your code here
    String str = "SAPDATA-" + a + "ES" + ".xml";
    DynamicConfiguration conf = (DynamicConfiguration)
    container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey FileName = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File","FileName");
    conf.put(FileName, str);
    return "";

  • UME properties are getting loaded after during cluster Import.

    Hi All,
    We are getting an error while starting the JAVA instance of oue SCM system.
    We have done a SYSTEM refresh and during our Pre Steps we have exported the Cluster DATA from the config tool.
    After the Restore when we have imported the Cluster Data back from Config Tool, we are getting this error
    Error occured hile loading UME properties MSG:null.
    We are using ABAP database as a userstore, now we are not able to see the UME LDAP DATA tab in the config tool.
    nd also we are getting error when we are opening the Propertysheet com.sap.security.core.ume.service.
    Kindly help us on that as we are not getting any help on net.
    Regards,
    Arun Pathak

    This the dafault Trace from location /usr/sap/<SID>/DVEBMSG<nn>/j2ee/cluster/server0/log/defaultTrace
    #1.#001E0BFD70DA001F00000002000002240004809A3FD2D48C#1267299890942#com.sap.security.core.server.ume.service.UMEServiceFrame##com.sap.security.core.server.ume.
    service.UMEServiceFrame.start()#######SAPEngine_System_Thread[impl:5]_72##0#0#Error##Plain###com.sap.security.core.util.config.UMConfigurationException: Readi
    ng current UME properties failed.: Invalid PKCS\#5 padding length: 243#
    #1.#001E0BFD70DA001F00000003000002240004809A3FD2D521#1267299890942#com.sap.security.core.server.ume.service.UMEServiceFrame##com.sap.security.core.server.ume.
    service.UMEServiceFrame.start()#######SAPEngine_System_Thread[impl:5]_72##0#0#Error##Plain###com.sap.security.core.util.config.UMConfigurationException: Readi
    ng current UME properties failed.: Invalid PKCS\#5 padding length: 243
            at com.sap.security.core.server.ume.service.SAPJ2EEConfiguration.readPropertiesFromStorage(SAPJ2EEConfiguration.java:242)
            at com.sap.security.core.util.config.UMConfigurationBase.refreshProperties(UMConfigurationBase.java:1043)
            at com.sap.security.core.util.config.UMConfigurationBase.initialize(UMConfigurationBase.java:113)
            at com.sap.security.core.server.ume.service.SAPJ2EEConfiguration.<init>(SAPJ2EEConfiguration.java:143)
            at com.sap.security.core.server.ume.service.SAPJ2EEPlatformTools.<init>(SAPJ2EEPlatformTools.java:79)
            at com.sap.security.core.server.ume.service.UMEServiceFrame.start(UMEServiceFrame.java:258)
            at com.sap.engine.frame.ApplicationFrameAdaptor.start(ApplicationFrameAdaptor.java:31)
            at com.sap.engine.core.service630.container.ServiceRunner.startApplicationServiceFrame(ServiceRunner.java:214)
            at com.sap.engine.core.service630.container.ServiceRunner.run(ServiceRunner.java:144)
            at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
            at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:81)
            at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:152)
    caused by -
    com.sap.engine.frame.core.configuration.ConfigurationException: Invalid PKCS\#5 padding length: 243
            at com.sap.engine.core.configuration.impl.security.Crypter.decrypt(Crypter.java:168)
            at com.sap.engine.core.configuration.impl.addons.PropertyEntryImpl.<init>(PropertyEntryImpl.java:97)
            at com.sap.engine.core.configuration.impl.addons.PropertyEntryImpl.readPropertyEntry(PropertyEntryImpl.java:54)
            at com.sap.engine.core.configuration.impl.addons.PropertySheetImpl.<init>(PropertySheetImpl.java:63)
            at com.sap.engine.core.configuration.impl.ConfigurationImpl.getPropertySheetExtensionInterface(ConfigurationImpl.java:198)
            at com.sap.engine.core.configuration.impl.ConfigurationImpl.getPropertySheetInterface(ConfigurationImpl.java:132)
            at com.sap.security.core.server.ume.service.SAPJ2EEConfiguration.readPropertiesFromStorage(SAPJ2EEConfiguration.java:228)
            at com.sap.security.core.util.config.UMConfigurationBase.refreshProperties(UMConfigurationBase.java:1043)
    Edited by: Arun Pathak on Feb 28, 2010 10:59 PM

  • Argument Error: One or more parameters are null.

    I am getting "javax.servlet.jsp.JspException: Argument Error: One or more parameters are null". Following are first two lines of the exception
    javax.servlet.jsp.JspException: Argument Error: One or more parameters are null.     at com.sun.faces.taglib.html_basic.PanelGridTag.doEndTag(PanelGridTag.java:470)     at empEditById.jspService(_empEditById.java:290)
    Can anyone help me out with this.

    I don't know which part of jsp code is giving problem. Here is the complete listing
    <f:view>
      <html>
        <head>
          <meta http-equiv="Content-Type"
                content="text/html; charset=windows-1252"/>
          <title>Main</title>
        </head>
        <body><h:form>
            <p>
              <strong>Employee Edit</strong>
            </p>
            <p>
              <h:messages/>
            </p>
            <p><h:panelGrid columns="3">
                  <h:outputLabel value="Employee Id:"/>
                  <h:inputText id="empId" disabled="true"
                               value="#{b_empEditById.empId}"/>
                  <h:panelGroup/>
                  <h:outputLabel value="First Name:"/>
                  <h:inputText id="firstName" required="true"
                               value="#{b_empEditById.firstName}"/>
                  <h:message for="firstName"/>
                  <h:outputLabel value="Last Name:"/>
                  <h:inputText id="lastName" required="true"
                               value="#{b_empEditById.lastName}"/>
                  <h:message for="lastName"/>
                  <h:outputLabel value="Hire Date:"/>
                  <h:inputText id="hireDate" value="#{b_empEditById.hireDate}">
                    <f:convertDateTime pattern="dd-MM-yyyy"/>
                  </h:inputText>
                  <h:message for="hireDate"/>
                  <h:outputLabel value="Reports To:"/>
                  <h:selectOneMenu id="reportsTo"
                                    value="#{b_empEditById.reportsTo}">
                    <f:selectItems value="#{requestScope.b_empEditById.selectAllEmployees}"/>
                  </h:selectOneMenu>
                  <h:message for="reportsTo"/>
                  <h:commandButton value="Confirm" id="edit"
                                   action="#{b_empEditById.confirm}"/>
                  <h:commandButton value="Back" type="submit" immediate="true"
                                   action="back"/>
                </h:panelGrid>
            </p>
          </h:form></body>
      </html>
    </f:view>I am using Oracle jdeveloper 10g but I don't which version of JSF I am using.

Maybe you are looking for

  • 3110c 2.5mm to 3.5mm connector

    Is it 2.5 to 3.5 mm connector is in a box with phone or no??? please answer

  • Mac Update

    I originally started out on a regular white Macbook and now my business is kicking off a little, is there a way to upgrade to a macbook pro so i can operate with a faster processor?

  • I created a website using MobilMe and now I cannot access it. What do I do to recover it?

    I built a website using Apple software and now that MobileMe does not exist I cannot access it. What can I do to retrieve it?

  • Possible ethernet can corrupt OS/X?

    I've had THREE (3) hard drive issues with brand new Macbook Pro. Only seem to occur when boot up connected to cable internet (Motorola router model SB5100, ethernet cable info:35 OHMZ type CM 24AWG ETL verifiedTIA/EIA-568-B.2 CAT .5e UTP 4PR) When Ma

  • Problems updating to 10.10.2

    I have been running public versions of OS X, 10.10.2.   Today Apple advised that the final version of 10.2.2 was available and I found the update in software update.   I noticed that it took a longer time to download.    I assumed that the problem wa