java - Error while invoking client for soap webservice -
i have created soap web service , generated client. when invoked it, got below error
two classes have same xml type name "http://webservice.soap.com/}getkeyrequest". use @xmltype.name , @xmltype.namespace assign different names them.
generated code client looks below
getkeyrequest.java
@xmlaccessortype(xmlaccesstype.field) @xmltype(name = "getkeyrequest", proporder = { //line 1 "arg0" }) public class getkeyrequest { protected string arg0;
getkeyrequestresponse.java
@xmlaccessortype(xmlaccesstype.field) @xmltype(name = "getkeyrequestresponse", proporder = { //line 2 "_return" }) public class getkeyrequestresponse { @xmlelement(name = "return") protected string _return;
after tries, reached conclusion if make following changes working fine. notice getkeyrequest1
, getkeyrequestresponse1
in changes.
- line1
@xmltype(name = "getkeyrequest1", proporder = {...
- line2
@xmltype(name = "getkeyrequestresponse1", proporder = ....
Comments
Post a Comment