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!

.NET Typed DataSet in Java clients

843833Oct 26 2006
HI,

I have a webmethod returning a type - "TypeA" containing typed DataSet - "TypedDataSet" . And I want to be able to consume it form a Java client. The problem comes from the generated wsdl becouse it contains the <any > wildcard.

<s:complexType name=TypeA>
............
<s:complexType>
<s:sequence>
<s:any namespace="http://test.com/TypedDataSet" />
</s:sequence>
</s:complexType>
..............
</s:complexType>

The Java client generates appropriate class for the TypedDataSet, but it is not used in the generated class for TypeA. instead it uses MessageElemnt class there.The problem comes from the <any > wildcard in the wsdl. If I change the wsdl manually to reference the type in the xsd schema provided for the TypedDataSet the Java client works fine.

Is there any way to deal with that problem without loosing the capability of automatic generation of the wsdl.



Thanks,

Kostadin
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 23 2006
Added on Oct 26 2006
0 comments
108 views