Problem Description:
In C #. NET calls Java developed WebService, the object with the INT attribute is first encapsulated in the client, and when the object is uploaded to the server side, the server side can get the value of String Type property, but cannot get int type, Values for double and datetime types (NULL is obtained on the server side)
Cause of the problem:
vs encapsulates WebService reference, if WebService publishes an object consisting of a base data type, it generates two properties for the object's non-string property, typically such as "attribute XX", "Property xxspecified". The property name specified is a bool type, and the value of "attribute xx" is serialized into XML when only this property is set to True
Workaround:
1. First ensure that the date field of the bean in the webservice must be of type java.util.date, not the java.sql.date type,
2. In. NET, after the proxy class is generated, for the date type property, in addition to setting the value of the "Property xx", also set the value of "property xxspecified" to true.
. NET call Java WebService Save a workaround for null datetime type data