Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Handelling xs:any and xs:anyType in web services

843833Jul 1 2008 — edited Jul 1 2008
Hi All
im with Webservices for past few months. recently i encountered xs:any and xs:anyType while handelling a Webservice.
Can someone pls clarify the following points:

Q1.*Whats the difference between xs:any and xs:anyType.. when to use what?*
xs:any is getting mapped to SOAPElement and xs:anyType is getting mapped to java.lang.Object.
For now im trying to use xs:any (escaping from xs:anyType :-)). Im getting SOAP payload by doing
soapElement.toString()
.
And then marshalling the String XML to specified objects... BUT im not sure whether this is correct way (?).
Somewhere in forums i read that if we are using xs:anyType we need to create our own Serializers/deserializers for handelling it.
But Im not sure how to do that (?) :-((

Q2 How can i use my own Bindings instead of the tools bindings?.. Right now im using JDeveloper 10.1.3.3.0 to generate Web Services.

if somebody knows pls help or direct me to some aricles where i could get some answers.
thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 29 2008
Added on Jul 1 2008
0 comments
139 views