ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Creating message for SOAP web service using xsd:any

Post new topic  Reply to topic
 Creating message for SOAP web service using xsd:any « View previous topic :: View next topic » 
Author Message
Partha.Baidya
PostPosted: Mon Jul 10, 2017 8:42 am    Post subject: Creating message for SOAP web service using xsd:any Reply with quote

Voyager

Joined: 05 Nov 2009
Posts: 97

We need help on creating request message for a SOAP web service using xsd:any element.
I have given the snippet for the xsd and sample XML request message which should be sent ny IIB.

Xsd has the following definition in it for search field with xsd:any

Code:

<xsd:element maxOccurs="1" minOccurs="0" name="Search">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element ref="xsd:schema"/>
             [b] <xsd:any processContents="lax"/>[/b]
              </xsd:sequence>
    </xsd:complexType>
</xsd:element>


We need to prepare the XML request message similar to xml message below.

Code:

<dsd:Search>
<xs:schema id="NewDataSet" xmlns:xs="http://www.w3.org/2001/XMLSchema"
            xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" >
      <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
      <xs:element name="Table1">
         <xs:complexType>
                             <xs:sequence>
         <xs:element name="Mode" type="xs:int" minOccurs="0" />
         <xs:element name="ID" type="xs:string" minOccurs="0" />
         <xs:element name="FValue" type="xs:string" minOccurs="0" />
         <xs:element name="TValue" type="xs:string" minOccurs="0" />
         </xs:sequence>
         </xs:complexType>
       </xs:element>
       </xs:choice>
      </xs:complexType>
              </xs:element>
  </xs:schema>
    <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
               xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
  <NewDataSet>
      <Table1 diffgr:id="Table12" msdata:rowOrder="0" diffgr:hasChanges="inserted">
     <Mode>1</Mode><ID>9D527C4A</ID><FValue>= 64991378</FValue>
    </Table1>
    <Table1 diffgr:id="Table13" msdata:rowOrder="0" diffgr:hasChanges="inserted">
     <Mode>0</Mode><ID>WinC:4</ID>
     <FValue>&gt;= 2016-06-09T10:10:36.317</FValue>
     <TValue>&lt;= 2017-06-09T10:10:36.317</TValue>
     </Table1>
  </NewDataSet>
</diffgr:diffgram>
</dsd:Search>
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Creating message for SOAP web service using xsd:any
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.