JAVA调用.net 写ASMX是偶尔报错,原因WSDL中有些对象的顺序随机的变了。解决方法:在对象的公共属性上加排序
[XmlElement("MiddleName", Order = 2,IsNullable=true)]
public string Middle
{
get { return _middle; }
set { _middle = value; }
}
http://blogs.msdn.com/b/kaevans/archive/2007/05/22/some-xmlserializer-control-in-asmx.aspx