Paul

I have updated the JMS transport to support POX, Text and Binary JMS messages without requiring any additional headers. A service could optionally provide the QName for the operation to invoke on such messages where the operation cannot be determined (i.e. pure text/binary messages with non-xml content), and this could be then specified with a parameter named "transport.jms.Operation"; this will default to urn:mediate. A service could optionally provide a QName for an element that will act as the holder of such content, and this could be specified with a parameter named "transport.jms.Wrapper" and will default to "jmsMessage" in the axis2 namespace.

Hence a simple JMS text message with the content "hello world" would be transformed into the form

<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Header/><soapenv:Body><axis2ns1:jmsMessage xmlns:axis2ns1="axis2"><![CDATA[hello world]]></axis2ns1:jmsMessage></soapenv:Body></soapenv:Envelope>

and a simple JMS binary message containing a byte array will be as shown below

asankha

POST /axis2/services/SimpleStockQuoteService HTTP/1.1
SOAPAction: "urn:__DYNAMIC_OPERATION__"
User-Agent: Axis2
Host: testb.wso2.com:9000
Content-Length: 905
Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_2E8CC8B0B017204A1A11611743285462; type="application/xop+xml"; start="<0.urn:uuid:[EMAIL PROTECTED]>"; start-info="text/xml"; charset=UTF-8--MIMEBoundaryurn_uuid_2E8CC8B0B017204A1A11611743285462content-type:application/xop+xml; charset=UTF-8; type="text/xml";content-transfer-encoding:binarycontent-id:
  <0.urn:uuid:[EMAIL PROTECTED]>
     <?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
           <soapenv:Header />
           <soapenv:Body>
<axis2ns1:jmsMessage xmlns:axis2ns1="http://ws.apache.org/namespaces/axis2";> <xop:Include href="cid:1.urn:uuid:[EMAIL PROTECTED]" xmlns:xop="http://www.w3.org/2004/08/xop/include"; />
              </axis2ns1:jmsMessage>
           </soapenv:Body>
</soapenv:Envelope>--MIMEBoundaryurn_uuid_2E8CC8B0B017204A1A11611743285462content-id: <1.urn:uuid:[EMAIL PROTECTED]>content-type:application/octet-streamcontent-transfer-encoding:binary[[actual bytes here]]--MIMEBoundaryurn_uuid_2E8CC8B0B017204A1A11611743285462--


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to