Interaction between Enum objects in Java and DOTNET heterogeneous platform WebService

Source: Internet
Author: User

When I encountered this problem, my first thought was: Enum? Isn't it enumeration? It is actually a simple value object (such as int, long). The value object WebService certainly supports very well. However, after several days of hard work, I found the problem was not that simple. Today, I put my conclusion here. I hope that my friends who have encountered this problem will not be able to spend any time on research (or if they know how to solve this problem better, share it with me ). The specific reasons are as follows:

1. The most widely used Java platform is the WebService provided by the axis component, which has been officially mentioned that Enum is the object to be avoided in WebService. Please refer to http://wiki.apache.org/ws/FrontPage/Axis/DotNetInterop for explanations

2. for Enum objects, if we view the WSDL of WebService, we can find that only the string description is available, in DOTNET, the default int value starting from 0 is not stored in the WSDL (as if W3C has not specified this object in WebService on the Internet,ProgramDepends onCodeLogic (or logic that depends on the enum member sequence) cannot be correctly executed.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.