Reading an ebXML message from a JAXMServlet

I have the following servlet in Tomcat 4.1.18, using the contents of java_xml_pack-summer02_01:
public class Consume extends JAXMServlet implements OnewayListener
private ProviderConnectionFactory pcf;
private ProviderConnection pc;
private static final String providerURI = "http://java.sun.com/xml/jaxm/provider";
//private MessageFactory messageFactory;
public void init(ServletConfig servletConfig) throws ServletException
super.init(servletConfig);
try
pcf = ProviderConnectionFactory.newInstance();
pc = pcf.createConnection();
setMessageFactory(new EbXMLMessageFactoryImpl());
catch (Exception e)
e.printStackTrace();
throw new ServletException("Couldn't initialize " + this.getClass().getName() + " servlet: " + e.getMessage());
public void onMessage(SOAPMessage message)
EbXMLMessageImpl ebXML = null;
try
System.out.println("== messagetype=" + message.getClass().getName());
System.out.println("== constructing EbXMLMessage");
ebXML = (EbXMLMessageImpl)message;
System.out.println("== got EbXMLMessage " + ebXML.toString());
catch(Exception e)
System.out.println("== Couldn't create ebXML message from SOAP message: " + e);
if(ebXML!=null)
System.out.println("EbXML: From " + ebXML.getFrom().toString());
System.out.println("EbXML: To " + ebXML.getTo().toString());
System.out.println("EbXML: Sender " + ebXML.getSender().toString());
System.out.println("EbXML: Receiver " + ebXML.getReceiver().toString());
System.out.println("EbXML: CPAId " + ebXML.getCPAId());
System.out.println("EbXML: Conversation " + ebXML.getConversationId());
System.out.println("EbXML: Action " + ebXML.getAction());
System.out.println("EbXML: MessageId " + ebXML.getMessageId());
Manifest manifest = ebXML.getManifest();
Reference[] refs = manifest.getReferences();
for(int i=0; i<refs.length; i++)
System.out.println("EbXML ref " + refs.getId() + ": " + refs[i].getDescription());
...etc
However, after the "ebXML = (EbXMLMessageImpl)message;" line, all of the ebXML.get*() calls return null. If I use "ebXML = new EbXMLMessageImpl(message);", I get the same null results.
I can continue on successfully deal with the SOAPMessage, but how do I correctly interpret the SOAPMessage as an EbXMLMessageImpl?
Thanks.
PJDM

After investigating this, the problem seems to be that com.sun.xml.messaging.jaxm.ebxml.EbXMLMessageImpl is using the namespace
NS_URI = "http://www.ebxml.org/namespaces/messageHeader";
instead of
NS_URI = "http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd";
Subsequently, the same class attempts to parse timeStamp as a long, instead of an ISO8601 string.

Similar Messages

  • How to stop reading foreign queue message from MDB using weblogic 6.1? thanks,

    Hi, I am using weblogic 6.1 to communicate with IBM MQseries foreign
    queue. I use the asychronous way "onMessage()"(properly the only
    known way) to listen the messages from the queue. I like to stop
    receiving messages if my south bound stream has problems and not able
    to process the message, I would like to stop fetching the message with
    my MDB(message driven bean) untill the down stream problem is cleared.
    As weblogic uses container to create the multiple session and
    connections internally, how can I efficiently stop the message
    delivery, do I have to locate all the connections and issue
    connection.stop()for each one, or there is better way to do this.
    Thanks in advance.

    If you never use FaceTime on your Mac, open the FaceTime app on it and sign out. Also, the following instructions are from Connect your iPhone, iPad, iPod touch, and Mac using Continuity - Apple Support
    Turn off iPhone cellular calls
    To turn off iPhone cellular calls on your iPad or iPod touch, go to Settings > FaceTime and turn off iPhone Cellular Calls.
    On your Mac, open the FaceTime app and go to FaceTime > Preferences. Click Settings and deselect the iPhone Cellular Calls option.

  • How to read Java Object message from JMS Queue using JMS Adapter .

    Dear All,
    In my scenario i have to read a java object message from JMS Queue . I tried by using the JMS Adaper ,but i am not getting any Payload . Can any one tell me is there any special settings for JMS Adapter to read the Java Object message .
    I am able to read the Message successfully thru JMS Adapter but in SXMB_MONI it is not showing any payload .
    I also went in Message monitoring but i am getting this type of message in Sender JMS Adapter  in Audit Log.
    JMS Message ID XXXXX Message Type Null unknown.Payload can not be read and will be empty.
    JMS Message ID XXXXX Payload Empty can not read.
    Please Help.
    Lateef

    Hi,
    As far as i know, JMS Object Messages is not supported by XI JMS adapter.
    you need to have the JMS provider to transform the message to bytes messages.
    (Refer to SAP note 856346)

  • Voice over reading only the message from notices

    I want voice over to read recieved sms and emails. the thing is I want it done automaticly (wich works) but I dont want it to read any info like headlines, sender, wich app the notice is from etc, I want it to read ONLY the message. is this possible? the purpose is an art installation.

    I want voice over to read recieved sms and emails. the thing is I want it done automaticly (wich works) but I dont want it to read any info like headlines, sender, wich app the notice is from etc, I want it to read ONLY the message. is this possible? the purpose is an art installation.

  • Create ebXML message from a InputStream

    I am using the Java XML summerpack 02.
    I have the complete ebXML file as a InputStream and I
    want to construct an EbXMLMessageImpl (or SOAPMessage - speaking generically) from this input stream.
    A sample ebXML file I have is as follows:
    Host: www.example.com
    SOAPAction: "ebXML"
    Content-type: multipart/related; boundary="BoundarY"; type="text/xml";start="<[email protected]>"
    --BoundarY
    Content-ID: <[email protected]>
    Content-Type: text/xml
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP:Envelope xmlns:xlink="http://www.w3.org/1999/xlink"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:eb="http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd"
    xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/
    http://www.oasis-open.org/committees/ebxml-msg/schema/envelope.xsd
    http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd
    http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd">
    <SOAP:Header>
    <eb:MessageHeader SOAP:mustUnderstand="1" eb:version="2.0">
    <eb:From>
    <eb:PartyId>urn:duns:123456789</eb:PartyId>
    </eb:From>
    <eb:To>
    <eb:PartyId>urn:duns:912345678</eb:PartyId>
    </eb:To>
    <eb:CPAId>20001209-133003-28572</eb:CPAId>
    <eb:ConversationId>20001209-133003-28572</eb:ConversationId>
    <eb:Service>urn:services:SupplierOrderProcessing</eb:Service>
    <eb:Action>NewOrder</eb:Action>
    <eb:MessageData>
    <eb:MessageId>[email protected]</eb:MessageId>
    <eb:Timestamp>2001-02-15T11:12:12</eb:Timestamp>
    </eb:MessageData>
    </eb:MessageHeader>
    </SOAP:Header>
    <SOAP:Body>
    <eb:Manifest eb:version="2.0">
    <eb:Reference xlink:href="cid:[email protected]"
    xlink:role="XLinkRole" xlink:type="simple">
    <eb:Description xml:lang="en-US">Purchase Order 1</eb:Description>
    </eb:Reference>
    </eb:Manifest>
    </SOAP:Body>
    </SOAP:Envelope>
    --BoundarY
    Content-ID: <[email protected]>
    Content-Type: text/xml
    <?xml version="1.0" encoding="UTF-8"?>
    <purchase_order>
    <po_number>1</po_number>
    <part_number>123</part_number>
    <price currency="USD">500.00</price>
    </purchase_order>
    BoundarY
    Is there a straight forward way of creating a SOAP message object from an input stream ?
    Any information relating to this would be very helpful.
    Thanks,
    Anant.

    While trying to create an ebXMLMessageImpl object using
    EbXMLMessageImpl(javax.xml.soap.MimeHeaders headers, java.io.InputStream in)
    I am getting an exception:
    Warning: Error occurred using JAXP to load a SAXParser. Will use Aelfred instead
    Exception in thread "main" java.lang.ClassCastException: com.sun.xml.messaging.saaj.soap.dom4j.TextImpl
    at com.sun.xml.messaging.jaxm.ebxml.EbXMLMessageImpl.fillInHeaders(EbXML
    MessageImpl.java:137)
    at com.sun.xml.messaging.jaxm.ebxml.EbXMLMessageImpl.<init>(EbXMLMessageImpl.java:117)
    My code has created the following MimeHeaders :
    Mime Header name : Host , MimeHeader Value : www.example2.com
    Mime Header name : SOAPAction , MimeHeader Value : "ebXML"
    Mime Header name : Content-type ,
    and its corresponding MimeHeader Value is : multipart/related; boundary="BoundarY"; type="text/xml";start="<[email protected]>"
    and I used the inputstream along with it to create the object.
    Pls. reply if you have any info on this or how to create an ebXMLMessage object from an inputstream.
    Thanks,
    Anant.

  • Creating ebXML message from InputStream.

    I am using the Java XML summerpack 02.
    I have the complete ebXML file as a InputStream and I
    want to construct an EbXMLMessageImpl object from this input stream.
    A sample ebXML file I have is as follows:
    Host: www.example.com
    SOAPAction: "ebXML"
    Content-type: multipart/related; boundary="BoundarY"; type="text/xml";start="<[email protected]>"
    --BoundarY
    Content-ID: <[email protected]>
    Content-Type: text/xml
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP:Envelope xmlns:xlink="http://www.w3.org/1999/xlink"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:eb="http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd"
    xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/
    http://www.oasis-open.org/committees/ebxml-msg/schema/envelope.xsd
    http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd
    http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd">
    <SOAP:Header>
    <eb:MessageHeader SOAP:mustUnderstand="1" eb:version="2.0">
    <eb:From>
    <eb:PartyId>urn:duns:123456789</eb:PartyId>
    </eb:From>
    <eb:To>
    <eb:PartyId>urn:duns:912345678</eb:PartyId>
    </eb:To>
    <eb:CPAId>20001209-133003-28572</eb:CPAId>
    <eb:ConversationId>20001209-133003-28572</eb:ConversationId>
    <eb:Service>urn:services:SupplierOrderProcessing</eb:Service>
    <eb:Action>NewOrder</eb:Action>
    <eb:MessageData>
    <eb:MessageId>[email protected]</eb:MessageId>
    <eb:Timestamp>2001-02-15T11:12:12</eb:Timestamp>
    </eb:MessageData>
    </eb:MessageHeader>
    </SOAP:Header>
    <SOAP:Body>
    <eb:Manifest eb:version="2.0">
    <eb:Reference xlink:href="cid:[email protected]"
    xlink:role="XLinkRole" xlink:type="simple">
    <eb:Description xml:lang="en-US">Purchase Order 1</eb:Description>
    </eb:Reference>
    </eb:Manifest>
    </SOAP:Body>
    </SOAP:Envelope>
    --BoundarY
    Content-ID: <[email protected]>
    Content-Type: text/xml
    <?xml version="1.0" encoding="UTF-8"?>
    <purchase_order>
    <po_number>1</po_number>
    <part_number>123</part_number>
    <price currency="USD">500.00</price>
    </purchase_order>
    BoundarY
    Is there a straight forward way of creating a SOAP message object from an input stream ?
    Any information relating to this would be very helpful.
    Thanks,
    Anant.

    easy: MimeHeaders mh = new MimeHeaders();
    mh.addHeader("Content-Type", "text/xml");
    message = MessageFactory.newInstance().createMessage(mh, myInputStream)i use it to rebuild SOAP messages received on a socket!

  • Reading the XML message from Xi stored in XML format from a abap program.

    Hi Gurus,
    My requirement here is to read the data that will be coming from Xi from my custom abap program and updating 2 data base tables. The method is after the data mapping is done a class is generated in abap proxy in which a method is available. Inside the method i am writing the code for getting the Xi data stored as a payload message which can be seen in the transaction SXMB_MONI. My code is given below.
    ***begin code***
    method ZII_PAYROLL_HEADER_IN~PAYROLL_HEADER_IN.
    **** INSERT IMPLEMENTATION HERE **** ***
    data: ln type i.
    DATA: i_items TYPE TABLE OF ZPAYLOAD_WRAPPER_EMPLOYEE_REC3.
    *DATA: wa_items type ZPAYLOAD_WRAPPER_EMPLOYEE_TAB5.
    data: wa_items type ZPAYLOAD_WRAPPER_EMPLOYEE_REC3.
    DATA:PERNR TYPE STRING.
    *data: it_ZPAYLOAD_WRAPPER16  TYPE ZPAYLOAD_WRAPPER16.
    I_ITEMS[] = INPUT-PAYLOAD_WRAPPER-BODY-XMLDOC-PAYROLL_PERIOD_OVERVIEW-EMPLOYEE_RECORD[].
    *I_ITEMS = INPUT-payloadWrapper-Body-XMLDOC-PayrollPeriodOverview-EmployeeRecord.
    describe table i_items[] lines ln.
    endmethod.
    **End code***
    As per the logic the data stored in the XML message should be avaialble in INPUT-payloadWrapper-Body-XMLDOC-PayrollPeriodOverview-EmployeeRecord which i am assigning to a local internal table in the class.
    But in my case there is no data coming in
    INPUT-payloadWrapper-Body-XMLDOC-PayrollPeriodOverview-EmployeeRecord.
    But i can see the data transffered from XI in the transaction SXMB_MONI->XML message->inbound message->payload.
    Is there any way to read the data stored in the XML message in the transaction SXMB_MONI.
    Also why the data is not coming in
    INPUT-payloadWrapper-Body-XMLDOC-PayrollPeriodOverview-EmployeeRecord inside the class.
    If there is any solution for this problem please post it.

    You can use function module SXMB_GET_MESSAGE_PAYLOAD.
    Code snippet:
    DATA: ls_mast      TYPE sxmspmast,
          ls_msgkey    TYPE sxmsmkey,
          lv_bin_xml   TYPE xstring,
          lv_str_xml   TYPE string.
    * select sxmspmast into ls_mast
      ls_msgkey-msgid  = ls_mast-msgguid.
      ls_msgkey-pid    = 'RECEIVER'.
      CALL FUNCTION 'SXMB_GET_MESSAGE_PAYLOAD'
        EXPORTING
          im_msgkey      = ls_msgkey
          im_archive     = ' '
          im_version     = ls_mast-vers
        IMPORTING
          ex_msg_bytes   = lv_bin_xml
        EXCEPTIONS
          not_authorized = 1
          no_message     = 2
          internal_error = 3
          no_payload     = 4
          OTHERS         = 5.
      IF sy-subrc EQ 0.
          lv_str_xml = cl_soap_moni_helper=>convert_xstring_to_string( xstring_in = lv_bin_xml ).
      ENDIF.

  • HT5622 my friend believes her phone has been hacked as her ex partner has read all her messages from people for the last week how is this possible?

    my friend has an iphone 4 and believes her messages on her phone have been hacked as and ex boyfriend has contacted her telling her who she has spoken to and read the message she has for the past week, is this possible and how can she stop this?
    Thanks

    You're welcome.
    Ask her if they shared an Apple ID to download iTunes Store content such as apps and music?
    If not, he knows the password for her Apple ID email address.
    She can create a new Apple ID with this link.
    https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/wa/createAppleIdForIK B?localang=en_US&path=
    She needs to create a new email address first as well.
    Tell her not to use any security questions that her ex knows or may know.
    After she has created a new Apple ID, on her iPhone go to Settings > Messages > Send & Receive > Apple ID.
    Select the Apple ID and at the menu window that appears, select Sign Out.
    She signs back in at the same location with her new Apple ID to register her iPhone phone number with her new Apple ID and this will prevent her ex from having access to all iMessages that she sends and receives.

  • Need  to read messages from the log instead of displaying

    Hi,
    I need to read all the messages from the log with a particular log no..
    i was able to display it using FM  BAL_DSP_LOG_DISPLAY..But i want to collect the messages instead of displaying..To display according to my requirement..
    Thanks in advance

    Use this for reading :
    BAL_LOG_MSG_READ
    Regards
    Neha

  • File Adapter and reading all XML files from direcotry

    Problem occurs on PI 7.1
    I defined sender file adapter. File name mask is: "*.xml" to read all XML messages from directory.
    Quality of service is: Exactly One.
    Poll Interval: 30
    Retry interval: 30
    Processing mode: Archive with option "Add Timestamp".
    Processing sequence: by name.
    I though that with above configuration my File Adapter will be reading folder for all coming XML files. But  somehow it is reading XMLs only when I'm activating it in Integration Builder.
    Any idea what can cause such strange problem?

    Hi Tomasz,
    As per my understanding, you need to activate the file adapter for reading the XML files on your directory. Right?
    If that is the case, then the issue might be with the Cache.
    1. Clear the cache from the Integration Builder.
    2. Check in SXI_CACHE whether there are any issues. Click on Delta Cache refresh to find out if there are any cache related issues.
    Thanks,

  • Dequeuing a Map message from AQ using Java/JMS

    I have a queue in Oracle AQ, created from a queue table with queue_payload_type of SYS.AQ$_JMS_MAP_MESSAGE. I can successfully enqueue a Map message using PL/SQL, but when I try to read a message from the queue using the JMS API (with the Oracle AQ JMS provider JARs) in a standalone Java program, the message is not successfully read. However, the RETRY_COUNT in the queue table is incremented each time I try to read from the queue. I do not receive any error messages on the client side.
    If I change the queue_payload_type of the queue table to SYS.AQ$_JMS_TEXT_MESSAGE instead and enqueue a text message using PL/SQL, I can read the text message successfully in the standalone Java program using JMS. The message is removed from the queue and everything works fine.
    Most Oracle AQ/JMS examples I've found on the web involve text messages. Has anyone been able to read a Map message from an Oracle AQ queue using JMS, or is there a known issue with Map messages?
    I'm running Oracle 10g Standard Edition version 10.2.0.1.0 on Windows XP.
    Thanks for your help,
    Marty

    While you are awaiting an answer you might want to consider applying the 10.2.0.4 patch. Your version is several years old and patches are free.

  • How can I prevent Mail from applying actions (moving/copying/flagging/marking read) to duplicate messages?

    I use Mail to check multiple accounts. When I receive the same e-mail in multiple accounts, actions applied to an e-mail in one account often (though not always) affect duplicate messages in other accounts.
    Example 1
    Someone sends an e-mail to both me and my wife. Mail is set up to check both accounts. If I open the message in my Inbox, it marks it as read in my Inbox as well as in my wife's Inbox.
    Example 2
    For historical reasons, I have chosen to have all my e-mail forwarded (by the server) to a second account, to be used essentially as an un-touched archive of all incoming mail. If I manually move a message from my main account Inbox to another mailbox, the destination mailbox will end up with 2 copies, one from my main account Inbox and the other from the "un-touched archive" Inbox (which has obviously now been altered unintentionally).
    Does anyone know of a way to prevent this behavior. I can manage my own duplicates. I don't want Mail to do it for me.
    (Btw, I already have the "AlwaysShowDuplicates" option set using "defaults delete com.apple.mail AlwaysShowDuplicates")

    There are certainly many ways of organizing things so that Mail never has to deal with multiple accounts and duplicate messages (separate user accounts, separate computers, separate mail clients, etc., etc). That's just not what I was asking. I'd like to know how to fix Mail's behavior when it does have to deal with multiple accounts and duplicate messages.
    I was hoping there might be another hidden preference or something (and by the way my original post should have said "defaults write com.apple.mail AlwaysShowDuplicates -bool true", instead of the "defaults delete ...")

  • Is there a way to read text messages from the past in a thread that has been ongoing for months?

    Is there a way to view/recover messages from months ago in a thread that has been ongoing? The messages are not deleted. If i just keep "loading new messages" a) it will take all day, I've tried, and b) it freezes on me.

    Try the computer apps PhoneView (Mac) or TouchCopy (Mac & PC):
    http://www.ecamm.com/mac/phoneview/
    http://www.wideanglesoftware.com/touchcopy/index.php
    Both will allow you to archive your text messages to your computer and read them easily.

  • I am unable to print PDF's using either Adobe Reader or Safari. In Adobe Reader, I get an error message from my Cannon printer that says, "/usr.libexec/cups/filter/pstocupsraster failed". In Safari, I can only print the first page of a PDF.

    To try to resolve this problem, I have done the following actions.
    1 - I have run Disk Warrior.
    2 - I have repaired permissions.
    3 - I have deleted all plist that are either Cannon or Adobe.
    4 - I have downloaded and installed the lastest versions of Adobe Reader and the Cannon printer drivers.
    I am still unable to print PDF's.
    In Safari, I can print only the first page. In a multipage PDF, Safari only seems to recognize the first page.
    In Adobe Reader, I get an error message from my printer: "/usr/libexec/cups/filter/pstocupsraster failed".
    Any help would be greatly appreicated!

    Quit Safari.
    Open the Library folder in your home folder as follows:
    ☞ If running OS X 10.7 or later, hold down the option key and select Go ▹ Library from the Finder menu bar.
    ☞ If running an older version of OS X, select Go ▹ Go to Folder… from the Finder menu bar and copy the line below into the text box that opens:
    ~/Library
    Delete the following items from the Library folder:
    Caches/com.apple.Safari/Cache.db
    Preferences/com.apple.quicktime.plugin.preferences.plist
    Preferences/QuickTime Preferences
    Relaunch Safari and test.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ If you’re running OS X 10.7 or later, open LaunchPad. Click Utilities, then Console in the page that opens.
    Select "/var/log/cups/error_log" from the file list. Post the messages from the time of the last printing attempt.
    Post the log text, please, not a screenshot. If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.

  • Would like to know how to read SOAP Messages from SOAP Client

    Hello,
    I am new to Webservices. Here is what I want to do.
    I need to develop a Web Service provider application.
    Here are the tools I am using to develop this application.
    a) WSAD 5.1.2
    b) Axis 1.0 built within WebSphere.
    I do have a WSDL file and I generated the code by using WSAD ==>WebService ==> Generate Java bean skeleton option. I want to know, how I can read the SOAP request message from the generated code and to add new SOAP header element.
    Any help you can provide would be greatly appreciated.

    Depending on the version of WebSphere you are using, there should be a menu option to create a dynamic web project. This will set up the basic structure of the application for you. Also, right-click on the newly created web application and there should be a context menu something like Web Services -> Deploy Web Service. This will do some more under-the-covers work for you.
    The webservices.xml deployment descriptor is only created when you generate your Java interfaces and helper classes. For example, if you are starting with a WSDL, you would right-click on the document, select Web Services -> Generate Java Bean Skeleton, and then follow the couple of dialog boxes afterwards. The webservices.xml document will then be created under the WEB-INF directory.
    I�d be wary of introducing any external web service software into a WebSphere environment. On my last project we ran into a few tricky SOAP API conflicts so we decided to stick with pure IBM implementations wherever possible. That said, this is some sample code that I've recycled from the Monson-Haefel book I've mentioned before:
    package sandbox;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.handler.MessageContext;
    import javax.xml.rpc.handler.soap.SOAPMessageContext;
    import javax.xml.soap.*;
    public class MessageHandlerID extends javax.xml.rpc.handler.GenericHandler{
      QName [] headerNames = null;
      public QName [] getHeaders(){
        if(headerNames == null){
          QName myHeader = new QName("http://speck.net.au/message-id", "message-id");
          headerNames = new QName[] { myHeader };
        return headerNames;
      public boolean handleRequest(MessageContext context){
        String messageID = new java.rmi.dgc.VMID().toString();
        try{
          SOAPMessageContext soapCntxt = (SOAPMessageContext)context;
          SOAPMessage message = soapCntxt.getMessage();
          SOAPHeader header = message.getSOAPPart().getEnvelope().getHeader();
          Name blockName = SOAPFactory.newInstance().createName("message-id","mi","http://speck.net.au/message-id");
          SOAPHeaderElement headerBlock = header.addHeaderElement(blockName);
          headerBlock.setActor("http://speck.net.au/message-id/logger");
          headerBlock.addTextNode( messageID );
          return true;
        } catch(javax.xml.soap.SOAPException se){
              throw new javax.xml.rpc.JAXRPCException(se);
    }It doesn't do much but might give you some ideas.
    You may have already come across this, but I found the following RedBook invaluable:
    Wahli, U., Garcia, G. O., Cocasse, S. and Muetschard, M. (2004). WebSphere Version 5.1 Application Developer 5.1.1 Web Services Handbook. IBM.

Maybe you are looking for