Pete Robbins wrote:
In your example below the <complexType> is anonymous (does not specify
name=) therefore the SDO Type takes the name of the enclosing element. So
the SDO Type will have Uri=http://www.bigbank.com/AccountService and
Name=getAccountReportResponse
Cheers,
On 05/08/06, Jean-Sebastien Delfino <[EMAIL PROTECTED]> wrote:
Most Web Services describe their inputs and outputs with XSD elements,
so I'm trying to understand how to create an SDO DataObject for such a
Web Service... (I'm using the BigBank scenario to experiment with that).
Here's the XSD defining the output of my Web Service:
<xsd:schema
targetNamespace="http://www.bigbank.com/AccountService"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="getAccountReportResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="checking" type="tns:CheckingAccount"
maxOccurs="unbounded"/>
<xsd:element name="savings" type="tns:SavingsAccount"
maxOccurs="unbounded"/>
<xsd:element name="stocks" type="tns:StockAccount"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
How can I create a DataObject representing the getAccountReportResponse
element using the SDO C++ API? Can DataFactory take an element name?
Is there a method on XSDHelper or another helper that will give me the
name of the type of the getAccountReportResponse element?
Thanks,
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
OK, that works, as per the SDO spec. What does the SDO runtime do if you
have a complex type with the same name as an element containing an
anonymous complex type?
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]