Reputation: 3251
I have a an XSD schema which contains both xsd types and elements of that types.
Like this:
TargetNamespace: http://mycorp.com/ws
Type: PaymentType
Element: PaymentElement
I need to create a commonj.sdo.DataObject representing the PaymentElement. All I can do with the Tuscany API is create commonj.sdo.DataObject of type PaymentType, which is not suitable.
I created it like so:
DataFactory factory = scope.getDataFactory();
DataObject req = factory.create("http://mycorp.com/ws", "PaymentType");
How can I create commonj.sdo.DataObject elements?
Upvotes: 0
Views: 134