开发者

Can Java Axis Client ignore the newly added WSDL fields?

I have a webservice in Java and client both using Axis. I changed my Service (WSDL) and added a new field in the response message. Do we need to recompile the client? Or the existing client can work with the new service interface without recompiling it? It appears the client is throwing a SAXException on seei开发者_StackOverflow社区ng the new field in the response message.


Yes, you need to recompile the client.

When parsing the XML, the SAX will look for the corresponding field to store the value and will not find it, then it will throw the Exception. The XML may be versatile and easy to modify, but the classes that it is translated into are not.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜