users@glassfish.java.net

OpenESB - how to get ibm mq message header

From: <glassfish_at_javadesktop.org>
Date: Thu, 11 Oct 2007 08:03:48 PDT

I'm sorry for cross-posting too, like James (jpgrogan) the Open-ESB forum does not allow me to post a message!

I'm using openesb-installer-windows-20070927 wich contaisn NetBeans 6, Glassfish and almost all bindings.

I'm using MQ binding, when a process puts a new message to Mq queue, my process needs to get this message and execute something. My process needs to capture de Mq Header (messageID), but when i try to validate the generated XML document (after add MQHeader in the binding section of my WSDL Document) Netbeans show me the message "Error: cvc-complex-type.2.4.a: Invalid content was found starting with element 'mq:correlationId'"!

generated xml:

    <binding name="MQPutIptvFacadeBinding" type="tns:MQPutIptvFacadePortType">
        <mq:binding/>
        <operation name="MQPutIptvFacadeOperation">
            <mq:operation queueName="OPENESB.LOCAL.OUT" queueOpenOptions="0" pollingInterval="0"/>
            <input name="input1">
                <mq:body use="literal" MessageBody="part1" MessageType="TextMessage" SyncPoint="true"/>
                <mq:header>
                    <mq:correlationId parts="part2"/>
                    <mq:messageId parts="part3"/>
                </mq:header>
            </input>
        </operation>
    </binding>

Can anyone helps me with this problem, i don't know how to solve it!!!!

Thanks for any kind of help!

Marcelo.
[Message sent by forum member 'e106800' (e106800)]

http://forums.java.net/jive/thread.jspa?messageID=239542