SOAP: Creating a polymorphic Data Type

A

andy.wagg

I have a set of generated java classes from a supplied web service
definition. One of these classes represents a complex type which has an
attribute defined as a javax.xml.soap.SOAPElement. This is intended to
be polymorphic so different data types can be passed.

public class ItemValue {
protected java.lang.String diagnosticInfo;
protected javax.xml.soap.SOAPElement value;

public ItemValue() {
}

public javax.xml.soap.SOAPElement getValue() {
return value;
}

public void setValue(javax.xml.soap.SOAPElement value) {
this.value = value;
}
};

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

Any help appreciated,

Andy
 

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

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,170
Latest member
Andrew1609
Top