Advertisement
Guest User

Untitled

a guest
Oct 19th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.18 KB | None | 0 0
  1. public class TdkWSTester {
  2.  
  3. private static final Logger log = Logger.getLogger (TdkWSTester.class);
  4.  
  5. public static void main(String args[]) {
  6.  
  7. System.out.println("Start TdkWS Test");
  8.  
  9. PropertyConfigurator.configure(ClassLoader.getSystemResource("TdkWSTester.properties"));
  10.  
  11. try {
  12.  
  13. TdkWSBindingStub stub = new TdkWSBindingStub(new URL("http://atos.com/TdkWSPort"),null);
  14.  
  15. stub._setProperty(org.apache.axis.client.Call.SESSION_MAINTAIN_PROPERTY, new Boolean(true));
  16.  
  17. boolean isLogged = stub.login("Tdk","TEST1");
  18.  
  19. System.out.println("login returns "+isLogged);
  20.  
  21. isLogged = stub.isConnected();
  22. System.out.println("isConnected() returns "+isLogged);
  23.  
  24. if (isLogged) {
  25.  
  26. TdkPerson list[] = stub.listPerson();
  27. System.out.println("listPerson() returns array of "+list.length+" elements");
  28. for ( int i=0;i<list.length;i++) {
  29. display(list[i]);
  30. }
  31.  
  32.  
  33.  
  34. }
  35. } catch (Exception ex) {
  36. ex.printStackTrace();
  37. }
  38. System.out.println("End TdkWS Test");
  39.  
  40. }
  41.  
  42. public static void display(TdkPerson p) {
  43. System.out.print("personId '"+p.getPersonId()+"' ");
  44. System.out.print("companyName '"+p.getCompanyName()+"' ");
  45. System.out.print("categoryName '"+p.getCategoryName()+"' ");
  46. System.out.print("companyNr '"+p.getCompanyNr()+"' ");
  47. System.out.print("firstName '"+p.getFirstName()+"' ");
  48. System.out.print("lastName '"+p.getLastName()+"' ");
  49. System.out.print("groupName '"+p.getGroupName()+"' ");
  50. System.out.print("keyCode '"+p.getKeyCode()+"' ");
  51. System.out.print("lmDate '"+p.getLmDate()+"' ");
  52. System.out.print("comments '"+p.getComments()+"' ");
  53. System.out.print("statusId '"+p.getStatusId()+"' ");
  54. System.out.print("streetName '"+p.getStreetName()+"' ");
  55. System.out.print("streetNum '"+p.getStreetNum()+"' ");
  56. System.out.print("postCode '"+p.getPostCode()+"' ");
  57. System.out.print("location '"+p.getLocation()+"' ");
  58. System.out.print("countryCode '"+p.getCountryCode()+"' ");
  59. System.out.print("latitude '"+p.getLatitude()+"' ");
  60. System.out.print("longitude '"+p.getLongitude()+"' ");
  61. System.out.println("");
  62. }
  63. }
  64.  
  65. public class TdkWSBindingStub2 extends org.apache.axis.client.Stub implements com.ecolab.geohotels.webservice.tdkWS_PortType {
  66. private java.util.Vector cachedSerClasses = new java.util.Vector();
  67. private java.util.Vector cachedSerQNames = new java.util.Vector();
  68. private java.util.Vector cachedSerFactories = new java.util.Vector();
  69. private java.util.Vector cachedDeserFactories = new java.util.Vector();
  70.  
  71. static org.apache.axis.description.OperationDesc [] _operations;
  72.  
  73. static {
  74. _operations = new org.apache.axis.description.OperationDesc[7];
  75. _initOperationDesc1();
  76. }
  77.  
  78. private static void _initOperationDesc1(){
  79. org.apache.axis.description.OperationDesc oper;
  80. org.apache.axis.description.ParameterDesc param;
  81. oper = new org.apache.axis.description.OperationDesc();
  82. oper.setName("createPerson");
  83. param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "arg0"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://webservice.geohotels.ecolab.com/", "tdkPerson"), com.ecolab.geohotels.webservice.tdkPerson.class, false, false);
  84. param.setOmittable(true);
  85. oper.addParameter(param);
  86. oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
  87. oper.setReturnClass(int.class);
  88. oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
  89. oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
  90. oper.setUse(org.apache.axis.constants.Use.LITERAL);
  91. _operations[0] = oper;
  92.  
  93. oper = new org.apache.axis.description.OperationDesc();
  94. oper.setName("findPerson");
  95. param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "arg0"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  96. param.setOmittable(true);
  97. oper.addParameter(param);
  98. oper.setReturnType(new javax.xml.namespace.QName("http://webservice.geohotels.ecolab.com/", "tdkPerson"));
  99. oper.setReturnClass(com.ecolab.geohotels.webservice.tdkPerson.class);
  100. oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
  101. oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
  102. oper.setUse(org.apache.axis.constants.Use.LITERAL);
  103. _operations[1] = oper;
  104.  
  105. oper = new org.apache.axis.description.OperationDesc();
  106. oper.setName("getPerson");
  107. param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "arg0"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  108. param.setOmittable(true);
  109. oper.addParameter(param);
  110. oper.setReturnType(new javax.xml.namespace.QName("http://webservice.geohotels.ecolab.com/", "tdkPerson"));
  111. oper.setReturnClass(com.ecolab.geohotels.webservice.tdkPerson.class);
  112. oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
  113. oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
  114. oper.setUse(org.apache.axis.constants.Use.LITERAL);
  115. _operations[2] = oper;
  116.  
  117. oper = new org.apache.axis.description.OperationDesc();
  118. oper.setName("isConnected");
  119. oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
  120. oper.setReturnClass(boolean.class);
  121. oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
  122. oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
  123. oper.setUse(org.apache.axis.constants.Use.LITERAL);
  124. _operations[3] = oper;
  125.  
  126. oper = new org.apache.axis.description.OperationDesc();
  127. oper.setName("listPerson");
  128. oper.setReturnType(new javax.xml.namespace.QName("http://webservice.geohotels.ecolab.com/", "tdkPerson"));
  129. oper.setReturnClass(com.ecolab.geohotels.webservice.tdkPerson[].class);
  130. oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
  131. oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
  132. oper.setUse(org.apache.axis.constants.Use.LITERAL);
  133. _operations[4] = oper;
  134.  
  135. oper = new org.apache.axis.description.OperationDesc();
  136. oper.setName("login");
  137. param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "arg0"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  138. param.setOmittable(true);
  139. oper.addParameter(param);
  140. param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "arg1"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
  141. param.setOmittable(true);
  142. oper.addParameter(param);
  143. oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
  144. oper.setReturnClass(boolean.class);
  145. oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
  146. oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
  147. oper.setUse(org.apache.axis.constants.Use.LITERAL);
  148. _operations[5] = oper;
  149.  
  150. oper = new org.apache.axis.description.OperationDesc();
  151. oper.setName("updatePerson");
  152. param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "arg0"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://webservice.geohotels.ecolab.com/", "tdkPerson"), com.ecolab.geohotels.webservice.tdkPerson.class, false, false);
  153. param.setOmittable(true);
  154. oper.addParameter(param);
  155. oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
  156. oper.setReturnClass(int.class);
  157. oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
  158. oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
  159. oper.setUse(org.apache.axis.constants.Use.LITERAL);
  160. _operations[6] = oper;
  161.  
  162. }
  163.  
  164. public TdkWSBindingStub2() throws org.apache.axis.AxisFault {
  165. this(null);
  166. }
  167.  
  168. public TdkWSBindingStub2(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
  169. this(service);
  170. super.cachedEndpoint = endpointURL;
  171. }
  172.  
  173. public TdkWSBindingStub2(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
  174. if (service == null) {
  175. super.service = new org.apache.axis.client.Service();
  176. } else {
  177. super.service = service;
  178. }
  179. ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
  180. java.lang.Class cls;
  181. javax.xml.namespace.QName qName;
  182. javax.xml.namespace.QName qName2;
  183. java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
  184. java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
  185. java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
  186. java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
  187. java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
  188. java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
  189. java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
  190. java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
  191. java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
  192. java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
  193. qName = new javax.xml.namespace.QName("http://webservice.geohotels.ecolab.com/", "tdkPerson");
  194. cachedSerQNames.add(qName);
  195. cls = com.ecolab.geohotels.webservice.tdkPerson.class;
  196. cachedSerClasses.add(cls);
  197. cachedSerFactories.add(beansf);
  198. cachedDeserFactories.add(beandf);
  199.  
  200. }
  201.  
  202. protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
  203. try {
  204. org.apache.axis.client.Call _call = super._createCall();
  205. if (super.maintainSessionSet) {
  206. _call.setMaintainSession(super.maintainSession);
  207. }
  208. if (super.cachedUsername != null) {
  209. _call.setUsername(super.cachedUsername);
  210. }
  211. if (super.cachedPassword != null) {
  212. _call.setPassword(super.cachedPassword);
  213. }
  214. if (super.cachedEndpoint != null) {
  215. _call.setTargetEndpointAddress(super.cachedEndpoint);
  216. }
  217. if (super.cachedTimeout != null) {
  218. _call.setTimeout(super.cachedTimeout);
  219. }
  220. if (super.cachedPortName != null) {
  221. _call.setPortName(super.cachedPortName);
  222. }
  223. java.util.Enumeration keys = super.cachedProperties.keys();
  224. while (keys.hasMoreElements()) {
  225. java.lang.String key = (java.lang.String) keys.nextElement();
  226. _call.setProperty(key, super.cachedProperties.get(key));
  227. }
  228. // All the type mapping information is registered
  229. // when the first call is made.
  230. // The type mapping information is actually registered in
  231. // the TypeMappingRegistry of the service, which
  232. // is the reason why registration is only needed for the first call.
  233. synchronized (this) {
  234. if (firstCall()) {
  235. // must set encoding style before registering serializers
  236. _call.setEncodingStyle(null);
  237. for (int i = 0; i < cachedSerFactories.size(); ++i) {
  238. java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
  239. javax.xml.namespace.QName qName =
  240. (javax.xml.namespace.QName) cachedSerQNames.get(i);
  241. java.lang.Object x = cachedSerFactories.get(i);
  242. if (x instanceof Class) {
  243. java.lang.Class sf = (java.lang.Class)
  244. cachedSerFactories.get(i);
  245. java.lang.Class df = (java.lang.Class)
  246. cachedDeserFactories.get(i);
  247. _call.registerTypeMapping(cls, qName, sf, df, false);
  248. }
  249. else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
  250. org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
  251. cachedSerFactories.get(i);
  252. org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
  253. cachedDeserFactories.get(i);
  254. _call.registerTypeMapping(cls, qName, sf, df, false);
  255. }
  256. }
  257. }
  258. }
  259. return _call;
  260. }
  261. catch (java.lang.Throwable _t) {
  262. throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
  263. }
  264. }
  265.  
  266. public int createPerson(com.ecolab.geohotels.webservice.tdkPerson arg0) throws java.rmi.RemoteException {
  267. if (super.cachedEndpoint == null) {
  268. throw new org.apache.axis.NoEndPointException();
  269. }
  270. org.apache.axis.client.Call _call = createCall();
  271. _call.setOperation(_operations[0]);
  272. _call.setUseSOAPAction(true);
  273. _call.setSOAPActionURI("");
  274. _call.setEncodingStyle(null);
  275. _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
  276. _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
  277. _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  278. _call.setOperationName(new javax.xml.namespace.QName("http://webservice.geohotels.ecolab.com/", "createPerson"));
  279.  
  280. setRequestHeaders(_call);
  281. setAttachments(_call);
  282. try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {arg0});
  283.  
  284. if (_resp instanceof java.rmi.RemoteException) {
  285. throw (java.rmi.RemoteException)_resp;
  286. }
  287. else {
  288. extractAttachments(_call);
  289. try {
  290. return ((java.lang.Integer) _resp).intValue();
  291. } catch (java.lang.Exception _exception) {
  292. return ((java.lang.Integer) org.apache.axis.utils.JavaUtils.convert(_resp, int.class)).intValue();
  293. }
  294. }
  295. } catch (org.apache.axis.AxisFault axisFaultException) {
  296. throw axisFaultException;
  297. }
  298. }
  299.  
  300. public com.ecolab.geohotels.webservice.tdkPerson findPerson(java.lang.String arg0) throws java.rmi.RemoteException {
  301. if (super.cachedEndpoint == null) {
  302. throw new org.apache.axis.NoEndPointException();
  303. }
  304. org.apache.axis.client.Call _call = createCall();
  305. _call.setOperation(_operations[1]);
  306. _call.setUseSOAPAction(true);
  307. _call.setSOAPActionURI("");
  308. _call.setEncodingStyle(null);
  309. _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
  310. _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
  311. _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  312. _call.setOperationName(new javax.xml.namespace.QName("http://webservice.geohotels.ecolab.com/", "findPerson"));
  313.  
  314. setRequestHeaders(_call);
  315. setAttachments(_call);
  316. try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {arg0});
  317.  
  318. if (_resp instanceof java.rmi.RemoteException) {
  319. throw (java.rmi.RemoteException)_resp;
  320. }
  321. else {
  322. extractAttachments(_call);
  323. try {
  324. return (com.ecolab.geohotels.webservice.tdkPerson) _resp;
  325. } catch (java.lang.Exception _exception) {
  326. return (com.ecolab.geohotels.webservice.tdkPerson) org.apache.axis.utils.JavaUtils.convert(_resp, com.ecolab.geohotels.webservice.tdkPerson.class);
  327. }
  328. }
  329. } catch (org.apache.axis.AxisFault axisFaultException) {
  330. throw axisFaultException;
  331. }
  332. }
  333.  
  334. public com.ecolab.geohotels.webservice.tdkPerson getPerson(java.lang.String arg0) throws java.rmi.RemoteException {
  335. if (super.cachedEndpoint == null) {
  336. throw new org.apache.axis.NoEndPointException();
  337. }
  338. org.apache.axis.client.Call _call = createCall();
  339. _call.setOperation(_operations[2]);
  340. _call.setUseSOAPAction(true);
  341. _call.setSOAPActionURI("");
  342. _call.setEncodingStyle(null);
  343. _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
  344. _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
  345. _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  346. _call.setOperationName(new javax.xml.namespace.QName("http://webservice.geohotels.ecolab.com/", "getPerson"));
  347.  
  348. setRequestHeaders(_call);
  349. setAttachments(_call);
  350. try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {arg0});
  351.  
  352. if (_resp instanceof java.rmi.RemoteException) {
  353. throw (java.rmi.RemoteException)_resp;
  354. }
  355. else {
  356. extractAttachments(_call);
  357. try {
  358. return (com.ecolab.geohotels.webservice.tdkPerson) _resp;
  359. } catch (java.lang.Exception _exception) {
  360. return (com.ecolab.geohotels.webservice.tdkPerson) org.apache.axis.utils.JavaUtils.convert(_resp, com.ecolab.geohotels.webservice.tdkPerson.class);
  361. }
  362. }
  363. } catch (org.apache.axis.AxisFault axisFaultException) {
  364. throw axisFaultException;
  365. }
  366. }
  367.  
  368. public boolean isConnected() throws java.rmi.RemoteException {
  369. if (super.cachedEndpoint == null) {
  370. throw new org.apache.axis.NoEndPointException();
  371. }
  372. org.apache.axis.client.Call _call = createCall();
  373. _call.setOperation(_operations[3]);
  374. _call.setUseSOAPAction(true);
  375. _call.setSOAPActionURI("");
  376. _call.setEncodingStyle(null);
  377. _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
  378. _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
  379. _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  380. _call.setOperationName(new javax.xml.namespace.QName("http://webservice.geohotels.ecolab.com/", "isConnected"));
  381.  
  382. setRequestHeaders(_call);
  383. setAttachments(_call);
  384. try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {});
  385.  
  386. if (_resp instanceof java.rmi.RemoteException) {
  387. throw (java.rmi.RemoteException)_resp;
  388. }
  389. else {
  390. extractAttachments(_call);
  391. try {
  392. return ((java.lang.Boolean) _resp).booleanValue();
  393. } catch (java.lang.Exception _exception) {
  394. return ((java.lang.Boolean) org.apache.axis.utils.JavaUtils.convert(_resp, boolean.class)).booleanValue();
  395. }
  396. }
  397. } catch (org.apache.axis.AxisFault axisFaultException) {
  398. throw axisFaultException;
  399. }
  400. }
  401.  
  402. public com.ecolab.geohotels.webservice.tdkPerson[] listPerson() throws java.rmi.RemoteException {
  403. if (super.cachedEndpoint == null) {
  404. throw new org.apache.axis.NoEndPointException();
  405. }
  406. org.apache.axis.client.Call _call = createCall();
  407. _call.setOperation(_operations[4]);
  408. _call.setUseSOAPAction(true);
  409. _call.setSOAPActionURI("");
  410. _call.setEncodingStyle(null);
  411. _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
  412. _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
  413. _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  414. _call.setOperationName(new javax.xml.namespace.QName("http://webservice.geohotels.ecolab.com/", "listPerson"));
  415.  
  416. setRequestHeaders(_call);
  417. setAttachments(_call);
  418. try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {});
  419.  
  420. if (_resp instanceof java.rmi.RemoteException) {
  421. throw (java.rmi.RemoteException)_resp;
  422. }
  423. else {
  424. extractAttachments(_call);
  425. try {
  426. return (com.ecolab.geohotels.webservice.tdkPerson[]) _resp;
  427. } catch (java.lang.Exception _exception) {
  428. return (com.ecolab.geohotels.webservice.tdkPerson[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.ecolab.geohotels.webservice.tdkPerson[].class);
  429. }
  430. }
  431. } catch (org.apache.axis.AxisFault axisFaultException) {
  432. throw axisFaultException;
  433. }
  434. }
  435.  
  436. public boolean login(java.lang.String arg0, java.lang.String arg1) throws java.rmi.RemoteException {
  437. if (super.cachedEndpoint == null) {
  438. throw new org.apache.axis.NoEndPointException();
  439. }
  440. org.apache.axis.client.Call _call = createCall();
  441. _call.setOperation(_operations[5]);
  442. _call.setUseSOAPAction(true);
  443. _call.setSOAPActionURI("");
  444. _call.setEncodingStyle(null);
  445. _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
  446. _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
  447. _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  448. _call.setOperationName(new javax.xml.namespace.QName("http://webservice.geohotels.ecolab.com/", "login"));
  449.  
  450. setRequestHeaders(_call);
  451. setAttachments(_call);
  452. try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {arg0, arg1});
  453.  
  454. if (_resp instanceof java.rmi.RemoteException) {
  455. throw (java.rmi.RemoteException)_resp;
  456. }
  457. else {
  458. extractAttachments(_call);
  459. try {
  460. return ((java.lang.Boolean) _resp).booleanValue();
  461. } catch (java.lang.Exception _exception) {
  462. return ((java.lang.Boolean) org.apache.axis.utils.JavaUtils.convert(_resp, boolean.class)).booleanValue();
  463. }
  464. }
  465. } catch (org.apache.axis.AxisFault axisFaultException) {
  466. throw axisFaultException;
  467. }
  468. }
  469.  
  470. public int updatePerson(com.ecolab.geohotels.webservice.tdkPerson arg0) throws java.rmi.RemoteException {
  471. if (super.cachedEndpoint == null) {
  472. throw new org.apache.axis.NoEndPointException();
  473. }
  474. org.apache.axis.client.Call _call = createCall();
  475. _call.setOperation(_operations[6]);
  476. _call.setUseSOAPAction(true);
  477. _call.setSOAPActionURI("");
  478. _call.setEncodingStyle(null);
  479. _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
  480. _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
  481. _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  482. _call.setOperationName(new javax.xml.namespace.QName("http://webservice.geohotels.ecolab.com/", "updatePerson"));
  483.  
  484. setRequestHeaders(_call);
  485. setAttachments(_call);
  486. try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {arg0});
  487.  
  488. if (_resp instanceof java.rmi.RemoteException) {
  489. throw (java.rmi.RemoteException)_resp;
  490. }
  491. else {
  492. extractAttachments(_call);
  493. try {
  494. return ((java.lang.Integer) _resp).intValue();
  495. } catch (java.lang.Exception _exception) {
  496. return ((java.lang.Integer) org.apache.axis.utils.JavaUtils.convert(_resp, int.class)).intValue();
  497. }
  498. }
  499. } catch (org.apache.axis.AxisFault axisFaultException) {
  500. throw axisFaultException;
  501. }
  502. }
  503.  
  504. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement