Can anyone provide me the solution for accessing the complex data types in Java from .NET client through Web services? I am using Apache Axis.
I suggest you ask this question on the Axis and .NET discussion lists. The basic guidelines for interoperability are:
- Use Document/Literal. Do not use RPC/Encoded or RPC/Literal. (.NET and Axis do not support RPC/Literal anyway). For best result use the Axis WRAPPED style. (There's lots of discussion of the WRAPPED style in the axis-user discussion list archives.)
- Do not expose language-specific collections (.NET Dataset, Java Hashmap, etc.,) through your WSDL interface. Convert all collections to arrays.
- Do not define your array as an extension of soapenc:Array. Define the array as an element as a sequence that contains a repeating element (using the minOccurs and maxOccurs attributes).
- As long as the complex type is a basic structure for simple types or an array of simple types or structures, .NET should be able to consume it automatically. If you don't follow the above guidelines, then you will need to develop a custom deserializer that maps the Axis-generated complex type to a .NET object.
Dig Deeper on Topics Archive
Related Q&A from Anne Thomas Manes
Anne Thomas Manes explains the differences between open source clients and open source implementations. Continue Reading
Anne Thomas Manes discusses the best way to go about creating an enterprise data dictionary and why the systems works well. Continue Reading
Anne Thomas Manes explains the difference between 'hard' real time and 'live' real time systems. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.