Hi Ashish,
I'm not sure what you tried, but something like this should work:
body.setDataObject(typeHelper.getOpenContentProperty("the target
namespace???", "ServiceInput"), value);
Frank.
"Ashish Panchal" <[EMAIL PROTECTED]> wrote on 04/11/2007 12:00:50 PM:
> Hi,
>
> Iam trying to create a dataobject of xsd which has one of the
> element as <xsd:any> type. Sample is -
>
> <xsd:element name="ServiceInput" type="ServiceInputType"/>
>
> <xsd:complexType name="ServiceInputType">
> <xsd:sequence>
> <xsd:element minOccurs="0" ref="header"/>
> <xsd:element minOccurs="0" ref="body"/>
> </xsd:sequence>
> </xsd:complexType>
>
> <xsd:element name="body">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:any maxOccurs="1" minOccurs="1" processContents="lax"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
>
>
> The <xsd:any> is used to allow different xml under the 'body'
> element, as the incoming xml structure is not fixed.
> Data object for this xsd is created, but Iam not able to set the
> dataobject of the variable xml structure under the 'body' element.
>
> I would appreciate any help.
>
> Thanks
> Ashish
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]