Polymorphic data type

A

andy.wagg

I have a .NET web service that defines a complex type in the wsdl. One
element of this wsdl does not define a type, but expects different
simple data types to be handled polymorphically.

<s:complexType name="ItemValue">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="DiagnosticInfo"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Value" />
<s:element minOccurs="0" maxOccurs="1" name="Quality"
type="s0:OPCQuality" />
</s:sequence>
</s:complexType>

The generated java class for this complex type defines the Value
attribute as a
javax.xml.soap.SOAPElement.

What I can't find is how do I create a SOAPElement to represent a
simple data type, eg. xsd:int

Any help appreciatted, Andy
 
M

Martin Honnen

I have a .NET web service that defines a complex type in the wsdl. One
element of this wsdl does not define a type, but expects different
simple data types to be handled polymorphically.

<s:complexType name="ItemValue">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="DiagnosticInfo"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Value" />
<s:element minOccurs="0" maxOccurs="1" name="Quality"
type="s0:OPCQuality" />
</s:sequence>
</s:complexType>

The generated java class for this complex type defines the Value
attribute as a
javax.xml.soap.SOAPElement.

What I can't find is how do I create a SOAPElement to represent a
simple data type, eg. xsd:int

You might want to ask or at least crosspost in a Java group if the
question as I understand it is mainly about using a specific Java API
for SOAP.
 
A

Andy

Thanks, but I have already tried comp.lang.java.programmer and
microsoft.public.xml.soap with no success. I didn't crosspost as that
usually seems to upset people.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,999
Messages
2,570,244
Members
46,838
Latest member
KandiceChi

Latest Threads

Top