WSFaceFacadeSoapBindingStub.java 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585
  1. /**
  2. * WSFaceFacadeSoapBindingStub.java
  3. *
  4. * This file was auto-generated from com.steerinfo.dil.wsdl
  5. * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) com.steerinfo.dil.wsdl2Java emitter.
  6. */
  7. package com.steerinfo.dil.wsdl;
  8. public class WSFaceFacadeSoapBindingStub extends org.apache.axis.client.Stub implements com.steerinfo.dil.wsdl.WSFaceFacadeSrvProxy {
  9. private java.util.Vector cachedSerClasses = new java.util.Vector();
  10. private java.util.Vector cachedSerQNames = new java.util.Vector();
  11. private java.util.Vector cachedSerFactories = new java.util.Vector();
  12. private java.util.Vector cachedDeserFactories = new java.util.Vector();
  13. static org.apache.axis.description.OperationDesc [] _operations;
  14. static {
  15. _operations = new org.apache.axis.description.OperationDesc[8];
  16. _initOperationDesc1();
  17. }
  18. private static void _initOperationDesc1(){
  19. org.apache.axis.description.OperationDesc oper;
  20. org.apache.axis.description.ParameterDesc param;
  21. oper = new org.apache.axis.description.OperationDesc();
  22. oper.setName("invokeJson");
  23. param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "strRequest"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  24. oper.addParameter(param);
  25. oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  26. oper.setReturnClass(String.class);
  27. oper.setReturnQName(new javax.xml.namespace.QName("", "invokeJsonReturn"));
  28. oper.setStyle(org.apache.axis.constants.Style.RPC);
  29. oper.setUse(org.apache.axis.constants.Use.ENCODED);
  30. oper.addFault(new org.apache.axis.description.FaultDesc(
  31. new javax.xml.namespace.QName("http://172.16.62.243:56898/ormrpc/services/WSFaceFacade", "fault"),
  32. "com.steerinfo.dil.wsdl.WSInvokeException",
  33. new javax.xml.namespace.QName("urn:client.facefacade", "WSInvokeException"),
  34. true
  35. ));
  36. _operations[0] = oper;
  37. oper = new org.apache.axis.description.OperationDesc();
  38. oper.setName("invokeXML");
  39. param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "strRequest"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  40. oper.addParameter(param);
  41. oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  42. oper.setReturnClass(String.class);
  43. oper.setReturnQName(new javax.xml.namespace.QName("", "invokeXMLReturn"));
  44. oper.setStyle(org.apache.axis.constants.Style.RPC);
  45. oper.setUse(org.apache.axis.constants.Use.ENCODED);
  46. oper.addFault(new org.apache.axis.description.FaultDesc(
  47. new javax.xml.namespace.QName("http://172.16.62.243:56898/ormrpc/services/WSFaceFacade", "fault"),
  48. "com.steerinfo.dil.wsdl.WSInvokeException",
  49. new javax.xml.namespace.QName("urn:client.facefacade", "WSInvokeException"),
  50. true
  51. ));
  52. _operations[1] = oper;
  53. oper = new org.apache.axis.description.OperationDesc();
  54. oper.setName("thirdJson");
  55. param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "strRequest"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  56. oper.addParameter(param);
  57. oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  58. oper.setReturnClass(String.class);
  59. oper.setReturnQName(new javax.xml.namespace.QName("", "thirdJsonReturn"));
  60. oper.setStyle(org.apache.axis.constants.Style.RPC);
  61. oper.setUse(org.apache.axis.constants.Use.ENCODED);
  62. oper.addFault(new org.apache.axis.description.FaultDesc(
  63. new javax.xml.namespace.QName("http://172.16.62.243:56898/ormrpc/services/WSFaceFacade", "fault"),
  64. "com.steerinfo.dil.wsdl.WSInvokeException",
  65. new javax.xml.namespace.QName("urn:client.facefacade", "WSInvokeException"),
  66. true
  67. ));
  68. _operations[2] = oper;
  69. oper = new org.apache.axis.description.OperationDesc();
  70. oper.setName("thirdXML");
  71. param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "strRequest"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  72. oper.addParameter(param);
  73. oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  74. oper.setReturnClass(String.class);
  75. oper.setReturnQName(new javax.xml.namespace.QName("", "thirdXMLReturn"));
  76. oper.setStyle(org.apache.axis.constants.Style.RPC);
  77. oper.setUse(org.apache.axis.constants.Use.ENCODED);
  78. oper.addFault(new org.apache.axis.description.FaultDesc(
  79. new javax.xml.namespace.QName("http://172.16.62.243:56898/ormrpc/services/WSFaceFacade", "fault"),
  80. "com.steerinfo.dil.wsdl.WSInvokeException",
  81. new javax.xml.namespace.QName("urn:client.facefacade", "WSInvokeException"),
  82. true
  83. ));
  84. _operations[3] = oper;
  85. oper = new org.apache.axis.description.OperationDesc();
  86. oper.setName("writeFileJson");
  87. param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "request"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  88. oper.addParameter(param);
  89. param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "fileData"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "base64Binary"), byte[].class, false, false);
  90. oper.addParameter(param);
  91. oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  92. oper.setReturnClass(String.class);
  93. oper.setReturnQName(new javax.xml.namespace.QName("", "writeFileJsonReturn"));
  94. oper.setStyle(org.apache.axis.constants.Style.RPC);
  95. oper.setUse(org.apache.axis.constants.Use.ENCODED);
  96. oper.addFault(new org.apache.axis.description.FaultDesc(
  97. new javax.xml.namespace.QName("http://172.16.62.243:56898/ormrpc/services/WSFaceFacade", "fault"),
  98. "com.steerinfo.dil.wsdl.WSInvokeException",
  99. new javax.xml.namespace.QName("urn:client.facefacade", "WSInvokeException"),
  100. true
  101. ));
  102. _operations[4] = oper;
  103. oper = new org.apache.axis.description.OperationDesc();
  104. oper.setName("readFileJson");
  105. param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "request"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  106. oper.addParameter(param);
  107. oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "base64Binary"));
  108. oper.setReturnClass(byte[].class);
  109. oper.setReturnQName(new javax.xml.namespace.QName("", "readFileJsonReturn"));
  110. oper.setStyle(org.apache.axis.constants.Style.RPC);
  111. oper.setUse(org.apache.axis.constants.Use.ENCODED);
  112. oper.addFault(new org.apache.axis.description.FaultDesc(
  113. new javax.xml.namespace.QName("http://172.16.62.243:56898/ormrpc/services/WSFaceFacade", "fault"),
  114. "com.steerinfo.dil.wsdl.WSInvokeException",
  115. new javax.xml.namespace.QName("urn:client.facefacade", "WSInvokeException"),
  116. true
  117. ));
  118. _operations[5] = oper;
  119. oper = new org.apache.axis.description.OperationDesc();
  120. oper.setName("writeFileXml");
  121. param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "request"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  122. oper.addParameter(param);
  123. param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "fileData"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "base64Binary"), byte[].class, false, false);
  124. oper.addParameter(param);
  125. oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  126. oper.setReturnClass(String.class);
  127. oper.setReturnQName(new javax.xml.namespace.QName("", "writeFileXmlReturn"));
  128. oper.setStyle(org.apache.axis.constants.Style.RPC);
  129. oper.setUse(org.apache.axis.constants.Use.ENCODED);
  130. oper.addFault(new org.apache.axis.description.FaultDesc(
  131. new javax.xml.namespace.QName("http://172.16.62.243:56898/ormrpc/services/WSFaceFacade", "fault"),
  132. "com.steerinfo.dil.wsdl.WSInvokeException",
  133. new javax.xml.namespace.QName("urn:client.facefacade", "WSInvokeException"),
  134. true
  135. ));
  136. _operations[6] = oper;
  137. oper = new org.apache.axis.description.OperationDesc();
  138. oper.setName("readFileXml");
  139. param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "request"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  140. oper.addParameter(param);
  141. oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "base64Binary"));
  142. oper.setReturnClass(byte[].class);
  143. oper.setReturnQName(new javax.xml.namespace.QName("", "readFileXmlReturn"));
  144. oper.setStyle(org.apache.axis.constants.Style.RPC);
  145. oper.setUse(org.apache.axis.constants.Use.ENCODED);
  146. oper.addFault(new org.apache.axis.description.FaultDesc(
  147. new javax.xml.namespace.QName("http://172.16.62.243:56898/ormrpc/services/WSFaceFacade", "fault"),
  148. "com.steerinfo.dil.wsdl.WSInvokeException",
  149. new javax.xml.namespace.QName("urn:client.facefacade", "WSInvokeException"),
  150. true
  151. ));
  152. _operations[7] = oper;
  153. }
  154. public WSFaceFacadeSoapBindingStub() throws org.apache.axis.AxisFault {
  155. this(null);
  156. }
  157. public WSFaceFacadeSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
  158. this(service);
  159. super.cachedEndpoint = endpointURL;
  160. }
  161. public WSFaceFacadeSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
  162. if (service == null) {
  163. super.service = new org.apache.axis.client.Service();
  164. } else {
  165. super.service = service;
  166. }
  167. ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.1");
  168. Class cls;
  169. javax.xml.namespace.QName qName;
  170. javax.xml.namespace.QName qName2;
  171. Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
  172. Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
  173. Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
  174. Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
  175. Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
  176. Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
  177. Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
  178. Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
  179. Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
  180. Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
  181. qName = new javax.xml.namespace.QName("urn:client.facefacade", "WSInvokeException");
  182. cachedSerQNames.add(qName);
  183. cls = com.steerinfo.dil.wsdl.WSInvokeException.class;
  184. cachedSerClasses.add(cls);
  185. cachedSerFactories.add(beansf);
  186. cachedDeserFactories.add(beandf);
  187. }
  188. protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
  189. try {
  190. org.apache.axis.client.Call _call = super._createCall();
  191. if (super.maintainSessionSet) {
  192. _call.setMaintainSession(super.maintainSession);
  193. }
  194. if (super.cachedUsername != null) {
  195. _call.setUsername(super.cachedUsername);
  196. }
  197. if (super.cachedPassword != null) {
  198. _call.setPassword(super.cachedPassword);
  199. }
  200. if (super.cachedEndpoint != null) {
  201. _call.setTargetEndpointAddress(super.cachedEndpoint);
  202. }
  203. if (super.cachedTimeout != null) {
  204. _call.setTimeout(super.cachedTimeout);
  205. }
  206. if (super.cachedPortName != null) {
  207. _call.setPortName(super.cachedPortName);
  208. }
  209. java.util.Enumeration keys = super.cachedProperties.keys();
  210. while (keys.hasMoreElements()) {
  211. String key = (String) keys.nextElement();
  212. _call.setProperty(key, super.cachedProperties.get(key));
  213. }
  214. // All the type mapping information is registered
  215. // when the first call is made.
  216. // The type mapping information is actually registered in
  217. // the TypeMappingRegistry of the service, which
  218. // is the reason why registration is only needed for the first call.
  219. synchronized (this) {
  220. if (firstCall()) {
  221. // must set encoding style before registering serializers
  222. _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  223. _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
  224. for (int i = 0; i < cachedSerFactories.size(); ++i) {
  225. Class cls = (Class) cachedSerClasses.get(i);
  226. javax.xml.namespace.QName qName =
  227. (javax.xml.namespace.QName) cachedSerQNames.get(i);
  228. Object x = cachedSerFactories.get(i);
  229. if (x instanceof Class) {
  230. Class sf = (Class)
  231. cachedSerFactories.get(i);
  232. Class df = (Class)
  233. cachedDeserFactories.get(i);
  234. _call.registerTypeMapping(cls, qName, sf, df, false);
  235. }
  236. else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
  237. org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
  238. cachedSerFactories.get(i);
  239. org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
  240. cachedDeserFactories.get(i);
  241. _call.registerTypeMapping(cls, qName, sf, df, false);
  242. }
  243. }
  244. }
  245. }
  246. return _call;
  247. }
  248. catch (Throwable _t) {
  249. throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
  250. }
  251. }
  252. public String invokeJson(String strRequest) throws java.rmi.RemoteException, com.steerinfo.dil.wsdl.WSInvokeException {
  253. if (super.cachedEndpoint == null) {
  254. throw new org.apache.axis.NoEndPointException();
  255. }
  256. org.apache.axis.client.Call _call = createCall();
  257. _call.setOperation(_operations[0]);
  258. _call.setUseSOAPAction(true);
  259. _call.setSOAPActionURI("");
  260. _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  261. _call.setOperationName(new javax.xml.namespace.QName("http://webservice.app.face.cd.eas.kingdee.com", "invokeJson"));
  262. setRequestHeaders(_call);
  263. setAttachments(_call);
  264. try { Object _resp = _call.invoke(new Object[] {strRequest});
  265. if (_resp instanceof java.rmi.RemoteException) {
  266. throw (java.rmi.RemoteException)_resp;
  267. }
  268. else {
  269. extractAttachments(_call);
  270. try {
  271. return (String) _resp;
  272. } catch (Exception _exception) {
  273. return (String) org.apache.axis.utils.JavaUtils.convert(_resp, String.class);
  274. }
  275. }
  276. } catch (org.apache.axis.AxisFault axisFaultException) {
  277. if (axisFaultException.detail != null) {
  278. if (axisFaultException.detail instanceof java.rmi.RemoteException) {
  279. throw (java.rmi.RemoteException) axisFaultException.detail;
  280. }
  281. if (axisFaultException.detail instanceof com.steerinfo.dil.wsdl.WSInvokeException) {
  282. throw (com.steerinfo.dil.wsdl.WSInvokeException) axisFaultException.detail;
  283. }
  284. }
  285. throw axisFaultException;
  286. }
  287. }
  288. public String invokeXML(String strRequest) throws java.rmi.RemoteException, com.steerinfo.dil.wsdl.WSInvokeException {
  289. if (super.cachedEndpoint == null) {
  290. throw new org.apache.axis.NoEndPointException();
  291. }
  292. org.apache.axis.client.Call _call = createCall();
  293. _call.setOperation(_operations[1]);
  294. _call.setUseSOAPAction(true);
  295. _call.setSOAPActionURI("");
  296. _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  297. _call.setOperationName(new javax.xml.namespace.QName("http://webservice.app.face.cd.eas.kingdee.com", "invokeXML"));
  298. setRequestHeaders(_call);
  299. setAttachments(_call);
  300. try { Object _resp = _call.invoke(new Object[] {strRequest});
  301. if (_resp instanceof java.rmi.RemoteException) {
  302. throw (java.rmi.RemoteException)_resp;
  303. }
  304. else {
  305. extractAttachments(_call);
  306. try {
  307. return (String) _resp;
  308. } catch (Exception _exception) {
  309. return (String) org.apache.axis.utils.JavaUtils.convert(_resp, String.class);
  310. }
  311. }
  312. } catch (org.apache.axis.AxisFault axisFaultException) {
  313. if (axisFaultException.detail != null) {
  314. if (axisFaultException.detail instanceof java.rmi.RemoteException) {
  315. throw (java.rmi.RemoteException) axisFaultException.detail;
  316. }
  317. if (axisFaultException.detail instanceof com.steerinfo.dil.wsdl.WSInvokeException) {
  318. throw (com.steerinfo.dil.wsdl.WSInvokeException) axisFaultException.detail;
  319. }
  320. }
  321. throw axisFaultException;
  322. }
  323. }
  324. public String thirdJson(String strRequest) throws java.rmi.RemoteException, com.steerinfo.dil.wsdl.WSInvokeException {
  325. if (super.cachedEndpoint == null) {
  326. throw new org.apache.axis.NoEndPointException();
  327. }
  328. org.apache.axis.client.Call _call = createCall();
  329. _call.setOperation(_operations[2]);
  330. _call.setUseSOAPAction(true);
  331. _call.setSOAPActionURI("");
  332. _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  333. _call.setOperationName(new javax.xml.namespace.QName("http://webservice.app.face.cd.eas.kingdee.com", "thirdJson"));
  334. setRequestHeaders(_call);
  335. setAttachments(_call);
  336. try { Object _resp = _call.invoke(new Object[] {strRequest});
  337. if (_resp instanceof java.rmi.RemoteException) {
  338. throw (java.rmi.RemoteException)_resp;
  339. }
  340. else {
  341. extractAttachments(_call);
  342. try {
  343. return (String) _resp;
  344. } catch (Exception _exception) {
  345. return (String) org.apache.axis.utils.JavaUtils.convert(_resp, String.class);
  346. }
  347. }
  348. } catch (org.apache.axis.AxisFault axisFaultException) {
  349. if (axisFaultException.detail != null) {
  350. if (axisFaultException.detail instanceof java.rmi.RemoteException) {
  351. throw (java.rmi.RemoteException) axisFaultException.detail;
  352. }
  353. if (axisFaultException.detail instanceof com.steerinfo.dil.wsdl.WSInvokeException) {
  354. throw (com.steerinfo.dil.wsdl.WSInvokeException) axisFaultException.detail;
  355. }
  356. }
  357. throw axisFaultException;
  358. }
  359. }
  360. public String thirdXML(String strRequest) throws java.rmi.RemoteException, com.steerinfo.dil.wsdl.WSInvokeException {
  361. if (super.cachedEndpoint == null) {
  362. throw new org.apache.axis.NoEndPointException();
  363. }
  364. org.apache.axis.client.Call _call = createCall();
  365. _call.setOperation(_operations[3]);
  366. _call.setUseSOAPAction(true);
  367. _call.setSOAPActionURI("");
  368. _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  369. _call.setOperationName(new javax.xml.namespace.QName("http://webservice.app.face.cd.eas.kingdee.com", "thirdXML"));
  370. setRequestHeaders(_call);
  371. setAttachments(_call);
  372. try { Object _resp = _call.invoke(new Object[] {strRequest});
  373. if (_resp instanceof java.rmi.RemoteException) {
  374. throw (java.rmi.RemoteException)_resp;
  375. }
  376. else {
  377. extractAttachments(_call);
  378. try {
  379. return (String) _resp;
  380. } catch (Exception _exception) {
  381. return (String) org.apache.axis.utils.JavaUtils.convert(_resp, String.class);
  382. }
  383. }
  384. } catch (org.apache.axis.AxisFault axisFaultException) {
  385. if (axisFaultException.detail != null) {
  386. if (axisFaultException.detail instanceof java.rmi.RemoteException) {
  387. throw (java.rmi.RemoteException) axisFaultException.detail;
  388. }
  389. if (axisFaultException.detail instanceof com.steerinfo.dil.wsdl.WSInvokeException) {
  390. throw (com.steerinfo.dil.wsdl.WSInvokeException) axisFaultException.detail;
  391. }
  392. }
  393. throw axisFaultException;
  394. }
  395. }
  396. public String writeFileJson(String request, byte[] fileData) throws java.rmi.RemoteException, com.steerinfo.dil.wsdl.WSInvokeException {
  397. if (super.cachedEndpoint == null) {
  398. throw new org.apache.axis.NoEndPointException();
  399. }
  400. org.apache.axis.client.Call _call = createCall();
  401. _call.setOperation(_operations[4]);
  402. _call.setUseSOAPAction(true);
  403. _call.setSOAPActionURI("");
  404. _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  405. _call.setOperationName(new javax.xml.namespace.QName("http://webservice.app.face.cd.eas.kingdee.com", "writeFileJson"));
  406. setRequestHeaders(_call);
  407. setAttachments(_call);
  408. try { Object _resp = _call.invoke(new Object[] {request, fileData});
  409. if (_resp instanceof java.rmi.RemoteException) {
  410. throw (java.rmi.RemoteException)_resp;
  411. }
  412. else {
  413. extractAttachments(_call);
  414. try {
  415. return (String) _resp;
  416. } catch (Exception _exception) {
  417. return (String) org.apache.axis.utils.JavaUtils.convert(_resp, String.class);
  418. }
  419. }
  420. } catch (org.apache.axis.AxisFault axisFaultException) {
  421. if (axisFaultException.detail != null) {
  422. if (axisFaultException.detail instanceof java.rmi.RemoteException) {
  423. throw (java.rmi.RemoteException) axisFaultException.detail;
  424. }
  425. if (axisFaultException.detail instanceof com.steerinfo.dil.wsdl.WSInvokeException) {
  426. throw (com.steerinfo.dil.wsdl.WSInvokeException) axisFaultException.detail;
  427. }
  428. }
  429. throw axisFaultException;
  430. }
  431. }
  432. public byte[] readFileJson(String request) throws java.rmi.RemoteException, com.steerinfo.dil.wsdl.WSInvokeException {
  433. if (super.cachedEndpoint == null) {
  434. throw new org.apache.axis.NoEndPointException();
  435. }
  436. org.apache.axis.client.Call _call = createCall();
  437. _call.setOperation(_operations[5]);
  438. _call.setUseSOAPAction(true);
  439. _call.setSOAPActionURI("");
  440. _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  441. _call.setOperationName(new javax.xml.namespace.QName("http://webservice.app.face.cd.eas.kingdee.com", "readFileJson"));
  442. setRequestHeaders(_call);
  443. setAttachments(_call);
  444. try { Object _resp = _call.invoke(new Object[] {request});
  445. if (_resp instanceof java.rmi.RemoteException) {
  446. throw (java.rmi.RemoteException)_resp;
  447. }
  448. else {
  449. extractAttachments(_call);
  450. try {
  451. return (byte[]) _resp;
  452. } catch (Exception _exception) {
  453. return (byte[]) org.apache.axis.utils.JavaUtils.convert(_resp, byte[].class);
  454. }
  455. }
  456. } catch (org.apache.axis.AxisFault axisFaultException) {
  457. if (axisFaultException.detail != null) {
  458. if (axisFaultException.detail instanceof java.rmi.RemoteException) {
  459. throw (java.rmi.RemoteException) axisFaultException.detail;
  460. }
  461. if (axisFaultException.detail instanceof com.steerinfo.dil.wsdl.WSInvokeException) {
  462. throw (com.steerinfo.dil.wsdl.WSInvokeException) axisFaultException.detail;
  463. }
  464. }
  465. throw axisFaultException;
  466. }
  467. }
  468. public String writeFileXml(String request, byte[] fileData) throws java.rmi.RemoteException, com.steerinfo.dil.wsdl.WSInvokeException {
  469. if (super.cachedEndpoint == null) {
  470. throw new org.apache.axis.NoEndPointException();
  471. }
  472. org.apache.axis.client.Call _call = createCall();
  473. _call.setOperation(_operations[6]);
  474. _call.setUseSOAPAction(true);
  475. _call.setSOAPActionURI("");
  476. _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  477. _call.setOperationName(new javax.xml.namespace.QName("http://webservice.app.face.cd.eas.kingdee.com", "writeFileXml"));
  478. setRequestHeaders(_call);
  479. setAttachments(_call);
  480. try { Object _resp = _call.invoke(new Object[] {request, fileData});
  481. if (_resp instanceof java.rmi.RemoteException) {
  482. throw (java.rmi.RemoteException)_resp;
  483. }
  484. else {
  485. extractAttachments(_call);
  486. try {
  487. return (String) _resp;
  488. } catch (Exception _exception) {
  489. return (String) org.apache.axis.utils.JavaUtils.convert(_resp, String.class);
  490. }
  491. }
  492. } catch (org.apache.axis.AxisFault axisFaultException) {
  493. if (axisFaultException.detail != null) {
  494. if (axisFaultException.detail instanceof java.rmi.RemoteException) {
  495. throw (java.rmi.RemoteException) axisFaultException.detail;
  496. }
  497. if (axisFaultException.detail instanceof com.steerinfo.dil.wsdl.WSInvokeException) {
  498. throw (com.steerinfo.dil.wsdl.WSInvokeException) axisFaultException.detail;
  499. }
  500. }
  501. throw axisFaultException;
  502. }
  503. }
  504. public byte[] readFileXml(String request) throws java.rmi.RemoteException, com.steerinfo.dil.wsdl.WSInvokeException {
  505. if (super.cachedEndpoint == null) {
  506. throw new org.apache.axis.NoEndPointException();
  507. }
  508. org.apache.axis.client.Call _call = createCall();
  509. _call.setOperation(_operations[7]);
  510. _call.setUseSOAPAction(true);
  511. _call.setSOAPActionURI("");
  512. _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  513. _call.setOperationName(new javax.xml.namespace.QName("http://webservice.app.face.cd.eas.kingdee.com", "readFileXml"));
  514. setRequestHeaders(_call);
  515. setAttachments(_call);
  516. try { Object _resp = _call.invoke(new Object[] {request});
  517. if (_resp instanceof java.rmi.RemoteException) {
  518. throw (java.rmi.RemoteException)_resp;
  519. }
  520. else {
  521. extractAttachments(_call);
  522. try {
  523. return (byte[]) _resp;
  524. } catch (Exception _exception) {
  525. return (byte[]) org.apache.axis.utils.JavaUtils.convert(_resp, byte[].class);
  526. }
  527. }
  528. } catch (org.apache.axis.AxisFault axisFaultException) {
  529. if (axisFaultException.detail != null) {
  530. if (axisFaultException.detail instanceof java.rmi.RemoteException) {
  531. throw (java.rmi.RemoteException) axisFaultException.detail;
  532. }
  533. if (axisFaultException.detail instanceof com.steerinfo.dil.wsdl.WSInvokeException) {
  534. throw (com.steerinfo.dil.wsdl.WSInvokeException) axisFaultException.detail;
  535. }
  536. }
  537. throw axisFaultException;
  538. }
  539. }
  540. }