WSJJBoomFacadeSoapBindingStub.java 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. /**
  2. * WSJJBoomFacadeSoapBindingStub.java
  3. *
  4. * This file was auto-generated from WSDL
  5. * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
  6. */
  7. package com.steerinfo.dil.wsdl;
  8. public class WSJJBoomFacadeSoapBindingStub extends org.apache.axis.client.Stub implements WSJJBoomFacadeSrvProxy {
  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[1];
  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("transferEASInterfaceMethod");
  23. param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "xml"), 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. param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "methodName"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
  26. oper.addParameter(param);
  27. oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  28. oper.setReturnClass(String.class);
  29. oper.setReturnQName(new javax.xml.namespace.QName("", "transferEASInterfaceMethodReturn"));
  30. oper.setStyle(org.apache.axis.constants.Style.RPC);
  31. oper.setUse(org.apache.axis.constants.Use.ENCODED);
  32. oper.addFault(new org.apache.axis.description.FaultDesc(
  33. new javax.xml.namespace.QName("http://172.16.62.243:8888/ormrpc/services/WSJJBoomFacade", "fault"),
  34. "WSInvokeException",
  35. new javax.xml.namespace.QName("urn:client.jjboomfacade", "WSInvokeException"),
  36. true
  37. ));
  38. _operations[0] = oper;
  39. }
  40. public WSJJBoomFacadeSoapBindingStub() throws org.apache.axis.AxisFault {
  41. this(null);
  42. }
  43. public WSJJBoomFacadeSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
  44. this(service);
  45. super.cachedEndpoint = endpointURL;
  46. }
  47. public WSJJBoomFacadeSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
  48. if (service == null) {
  49. super.service = new org.apache.axis.client.Service();
  50. } else {
  51. super.service = service;
  52. }
  53. ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.1");
  54. Class cls;
  55. javax.xml.namespace.QName qName;
  56. javax.xml.namespace.QName qName2;
  57. Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
  58. Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
  59. Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
  60. Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
  61. Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
  62. Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
  63. Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
  64. Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
  65. Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
  66. Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
  67. qName = new javax.xml.namespace.QName("urn:client.jjboomfacade", "WSInvokeException");
  68. cachedSerQNames.add(qName);
  69. cls = WSInvokeException.class;
  70. cachedSerClasses.add(cls);
  71. cachedSerFactories.add(beansf);
  72. cachedDeserFactories.add(beandf);
  73. }
  74. protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
  75. try {
  76. org.apache.axis.client.Call _call = super._createCall();
  77. if (super.maintainSessionSet) {
  78. _call.setMaintainSession(super.maintainSession);
  79. }
  80. if (super.cachedUsername != null) {
  81. _call.setUsername(super.cachedUsername);
  82. }
  83. if (super.cachedPassword != null) {
  84. _call.setPassword(super.cachedPassword);
  85. }
  86. if (super.cachedEndpoint != null) {
  87. _call.setTargetEndpointAddress(super.cachedEndpoint);
  88. }
  89. if (super.cachedTimeout != null) {
  90. _call.setTimeout(super.cachedTimeout);
  91. }
  92. if (super.cachedPortName != null) {
  93. _call.setPortName(super.cachedPortName);
  94. }
  95. java.util.Enumeration keys = super.cachedProperties.keys();
  96. while (keys.hasMoreElements()) {
  97. String key = (String) keys.nextElement();
  98. _call.setProperty(key, super.cachedProperties.get(key));
  99. }
  100. // All the type mapping information is registered
  101. // when the first call is made.
  102. // The type mapping information is actually registered in
  103. // the TypeMappingRegistry of the service, which
  104. // is the reason why registration is only needed for the first call.
  105. synchronized (this) {
  106. if (firstCall()) {
  107. // must set encoding style before registering serializers
  108. _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  109. _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
  110. for (int i = 0; i < cachedSerFactories.size(); ++i) {
  111. Class cls = (Class) cachedSerClasses.get(i);
  112. javax.xml.namespace.QName qName =
  113. (javax.xml.namespace.QName) cachedSerQNames.get(i);
  114. Object x = cachedSerFactories.get(i);
  115. if (x instanceof Class) {
  116. Class sf = (Class)
  117. cachedSerFactories.get(i);
  118. Class df = (Class)
  119. cachedDeserFactories.get(i);
  120. _call.registerTypeMapping(cls, qName, sf, df, false);
  121. }
  122. else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
  123. org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
  124. cachedSerFactories.get(i);
  125. org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
  126. cachedDeserFactories.get(i);
  127. _call.registerTypeMapping(cls, qName, sf, df, false);
  128. }
  129. }
  130. }
  131. }
  132. return _call;
  133. }
  134. catch (Throwable _t) {
  135. throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
  136. }
  137. }
  138. public String transferEASInterfaceMethod(String xml, String methodName) throws java.rmi.RemoteException, WSInvokeException {
  139. if (super.cachedEndpoint == null) {
  140. throw new org.apache.axis.NoEndPointException();
  141. }
  142. org.apache.axis.client.Call _call = createCall();
  143. _call.setOperation(_operations[0]);
  144. _call.setUseSOAPAction(true);
  145. _call.setSOAPActionURI("");
  146. _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  147. _call.setOperationName(new javax.xml.namespace.QName("http://webservice.app.facade.jjboom.custom.eas.kingdee.com", "transferEASInterfaceMethod"));
  148. setRequestHeaders(_call);
  149. setAttachments(_call);
  150. try { Object _resp = _call.invoke(new Object[] {xml, methodName});
  151. if (_resp instanceof java.rmi.RemoteException) {
  152. throw (java.rmi.RemoteException)_resp;
  153. }
  154. else {
  155. extractAttachments(_call);
  156. try {
  157. return (String) _resp;
  158. } catch (Exception _exception) {
  159. return (String) org.apache.axis.utils.JavaUtils.convert(_resp, String.class);
  160. }
  161. }
  162. } catch (org.apache.axis.AxisFault axisFaultException) {
  163. if (axisFaultException.detail != null) {
  164. if (axisFaultException.detail instanceof java.rmi.RemoteException) {
  165. throw (java.rmi.RemoteException) axisFaultException.detail;
  166. }
  167. if (axisFaultException.detail instanceof WSInvokeException) {
  168. throw (WSInvokeException) axisFaultException.detail;
  169. }
  170. }
  171. throw axisFaultException;
  172. }
  173. }
  174. }