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 IndexWebSphere Message Broker (ACE) SupportProblem in XSD Creation

Post new topicReply to topic
Problem in XSD Creation View previous topic :: View next topic
Author Message
samchenchu
PostPosted: Thu Dec 05, 2013 9:53 pm Post subject: Problem in XSD Creation Reply with quote

Novice

Joined: 13 Aug 2013
Posts: 22

Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--W3C Schema generated by XMLSpy v2005 rel. 3 U (http://www.altova.com)-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://soap.sforce.com/2005/09/outbound"
xmlns="http://soap.sforce.com/2005/09/outbound" elementFormDefault="qualified">
   <xs:element name="Envelope">
      <xs:complexType>
         <xs:sequence>
            <xs:element name="Body" type="BodyType"/>
         </xs:sequence>
      </xs:complexType>
   </xs:element>
   <xs:complexType name="BodyType">
      <xs:sequence>
         <xs:element name="notifications" type="notificationsType"/>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="notificationsType">
      <xs:sequence>
         <xs:element ref="OrganizationId"/>
         <xs:element ref="ActionId"/>
         <xs:element ref="SessionId"/>
         <xs:element ref="EnterpriseUrl"/>
         <xs:element ref="Partnerurl"/>
         <xs:element name="Notification" type="NotificationType"/>
      </xs:sequence>
   </xs:complexType>
   <xs:element name="OrganizationId" type="xs:string" />      
   <xs:element name="ActionId" type="xs:string" />      
   <xs:element name="SessionId" type="xs:string" />      
   <xs:element name="EnterpriseUrl" type="xs:string" />   
   <xs:element name="Partnerurl" type="xs:string" />      
   <xs:complexType name="NotificationType">
      <xs:sequence>
         <xs:element ref="Id"/>
         <xs:element name="sObject" type="sObjectType"/>
      </xs:sequence>
   </xs:complexType>
   <xs:element name="Id" type="xs:string" />      
   <xs:complexType name="sObjectType">
      <xs:sequence>
         <xs:element ref="Id1"/>
      </xs:sequence>
   </xs:complexType>
   <xs:element name="Id1" type="xs:string" />
</xs:schema>

Code:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<notifications xmlns="http://soap.sforce.com/2005/09/outbound">
<OrganizationId>00D90000000q6HXEAI</OrganizationId>
<ActionId>04k900000005NXZAAM</ActionId>
<SessionId>00D9000</SessionId>
<EnterpriseUrl>https://ap1.salesforce.com/services/Soap/u/29.0/00D90000000q6HX</EnterpriseUrl>
<Partnerurl>https://ap1.salesforce.com/services/Soap/u/29.0/00D90000000q6HX</Partnerurl>

<Notification>
<Id>04l900</Id>
<sObject xsi:type="sf:SVMXC__Service_Order__c" xmlns:sf="urn:sobject.enterprise.soap.sforce.com">
<sf:Id>a0s900</sf:Id>
</sObject>
</Notification>

<Notification>
<Id>04l900123</Id>
<sObject xsi:type="sf:SVMXC__Service_Order__c" xmlns:sf="urn:sobject.enterprise.soap.sforce.com">
<sf:Id>a0s9001</sf:Id>
</sObject>
</Notification>
<Notification>
<Id>04l900456</Id>
<sObject xsi:type="sf:SVMXC__Service_Order__c" xmlns:sf="urn:sobject.enterprise.soap.sforce.com">
<sf:Id>a0s9002</sf:Id>
</sObject>
</Notification>

</notifications>
</soapenv:Body>

</soapenv:Envelope>



I have removed the namespace “urn:sobject.enterprise.soap.sforce.com” in sObject and changed the field “sf:Id” to “Id1” as it is throwing namespace exception. But i want to accomadate the mentioned namespace with "id" field...Can anyone please help me on this.
Back to top
View user's profile Send private message
kimbert
PostPosted: Fri Dec 06, 2013 8:57 am Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Hard to say, based on the very limited information that you have provided. If you want to accommodate *either* id or Id1 then you need a choice group in your xsd.
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker (ACE) SupportProblem in XSD Creation
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.