WAS v8.5 > Reference > Developer best practices

XML schema definition for JMS stream messages

This is the XML schema definition for transcoding JMS stream messages to message types.

The following XML schema definition uses the target namespace http://www.ibm.com/xmlns/prod/websphere/messaging/jms/ to express JMS stream messages in XML. Use this definition to transcode between a byte array and a message payload.

<xsd:schema elementFormDefault="qualified" xml:lang="EN"
  targetNamespace="http://www.ibm.com/xmlns/prod/websphere/messaging/jms"
  xmlns="http://www.ibm.com/xmlns/prod/websphere/messaging/jms"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"> 
  <xsd:element name="data" type="StreamBody"/> 
  <xsd:complexType name="StreamBody">     <xsd:sequence>       <xsd:element name="value"
        type="streamTypes"
        minOccurs="0"
        maxOccurs="unbounded"
        nillable="true"/>     </xsd:sequence>   </xsd:complexType>   
  <xsd:simpleType name="character">     <xsd:restriction base="xsd:string">       <xsd:minLength value="1"/>       <xsd:maxLength value="1"/>     </xsd:restriction>   </xsd:simpleType>   
  <xsd:simpleType name="streamTypes">    <xsd:union memberTypes="xsd:long xsd:int xsd:short xsd:byte xsd:boolean
            xsd:float xsd:double xsd:string xsd:hexBinary character"/>   </xsd:simpleType> </xsd:schema>


+

Search Tips   |   Advanced Search