PortalcouponSoapBindingStub.java 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. /**
  2. * PortalcouponSoapBindingStub.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.shulead.datasync.portalcoupon;
  8. public class PortalcouponSoapBindingStub extends org.apache.axis.client.Stub implements PortalCouponWS {
  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("createPortalCoupon");
  23. param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "params"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://webservice.sales.cos.rise.com/", "portalCouponParams"), PortalCouponParams.class, false, false);
  24. param.setOmittable(true);
  25. oper.addParameter(param);
  26. oper.setReturnType(new javax.xml.namespace.QName("http://webservice.sales.cos.rise.com/", "result"));
  27. oper.setReturnClass(Result.class);
  28. oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
  29. oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
  30. oper.setUse(org.apache.axis.constants.Use.LITERAL);
  31. _operations[0] = oper;
  32. }
  33. public PortalcouponSoapBindingStub() throws org.apache.axis.AxisFault {
  34. this(null);
  35. }
  36. public PortalcouponSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
  37. this(service);
  38. super.cachedEndpoint = endpointURL;
  39. }
  40. public PortalcouponSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
  41. if (service == null) {
  42. super.service = new org.apache.axis.client.Service();
  43. } else {
  44. super.service = service;
  45. }
  46. ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
  47. Class cls;
  48. javax.xml.namespace.QName qName;
  49. javax.xml.namespace.QName qName2;
  50. Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
  51. Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
  52. Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
  53. Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
  54. Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
  55. Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
  56. Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
  57. Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
  58. Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
  59. Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
  60. qName = new javax.xml.namespace.QName("http://webservice.sales.cos.rise.com/", "createPortalCoupon");
  61. cachedSerQNames.add(qName);
  62. cls = CreatePortalCoupon.class;
  63. cachedSerClasses.add(cls);
  64. cachedSerFactories.add(beansf);
  65. cachedDeserFactories.add(beandf);
  66. qName = new javax.xml.namespace.QName("http://webservice.sales.cos.rise.com/", "createPortalCouponResponse");
  67. cachedSerQNames.add(qName);
  68. cls = CreatePortalCouponResponse.class;
  69. cachedSerClasses.add(cls);
  70. cachedSerFactories.add(beansf);
  71. cachedDeserFactories.add(beandf);
  72. qName = new javax.xml.namespace.QName("http://webservice.sales.cos.rise.com/", "portalCouponParams");
  73. cachedSerQNames.add(qName);
  74. cls = PortalCouponParams.class;
  75. cachedSerClasses.add(cls);
  76. cachedSerFactories.add(beansf);
  77. cachedDeserFactories.add(beandf);
  78. qName = new javax.xml.namespace.QName("http://webservice.sales.cos.rise.com/", "result");
  79. cachedSerQNames.add(qName);
  80. cls = Result.class;
  81. cachedSerClasses.add(cls);
  82. cachedSerFactories.add(beansf);
  83. cachedDeserFactories.add(beandf);
  84. }
  85. protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
  86. try {
  87. org.apache.axis.client.Call _call = super._createCall();
  88. if (super.maintainSessionSet) {
  89. _call.setMaintainSession(super.maintainSession);
  90. }
  91. if (super.cachedUsername != null) {
  92. _call.setUsername(super.cachedUsername);
  93. }
  94. if (super.cachedPassword != null) {
  95. _call.setPassword(super.cachedPassword);
  96. }
  97. if (super.cachedEndpoint != null) {
  98. _call.setTargetEndpointAddress(super.cachedEndpoint);
  99. }
  100. if (super.cachedTimeout != null) {
  101. _call.setTimeout(super.cachedTimeout);
  102. }
  103. if (super.cachedPortName != null) {
  104. _call.setPortName(super.cachedPortName);
  105. }
  106. java.util.Enumeration keys = super.cachedProperties.keys();
  107. while (keys.hasMoreElements()) {
  108. String key = (String) keys.nextElement();
  109. _call.setProperty(key, super.cachedProperties.get(key));
  110. }
  111. // All the type mapping information is registered
  112. // when the first call is made.
  113. // The type mapping information is actually registered in
  114. // the TypeMappingRegistry of the service, which
  115. // is the reason why registration is only needed for the first call.
  116. synchronized (this) {
  117. if (firstCall()) {
  118. // must set encoding style before registering serializers
  119. _call.setEncodingStyle(null);
  120. for (int i = 0; i < cachedSerFactories.size(); ++i) {
  121. Class cls = (Class) cachedSerClasses.get(i);
  122. javax.xml.namespace.QName qName =
  123. (javax.xml.namespace.QName) cachedSerQNames.get(i);
  124. Object x = cachedSerFactories.get(i);
  125. if (x instanceof Class) {
  126. Class sf = (Class)
  127. cachedSerFactories.get(i);
  128. Class df = (Class)
  129. cachedDeserFactories.get(i);
  130. _call.registerTypeMapping(cls, qName, sf, df, false);
  131. }
  132. else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
  133. org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
  134. cachedSerFactories.get(i);
  135. org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
  136. cachedDeserFactories.get(i);
  137. _call.registerTypeMapping(cls, qName, sf, df, false);
  138. }
  139. }
  140. }
  141. }
  142. return _call;
  143. }
  144. catch (Throwable _t) {
  145. throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
  146. }
  147. }
  148. public Result createPortalCoupon(PortalCouponParams params) throws java.rmi.RemoteException {
  149. if (super.cachedEndpoint == null) {
  150. throw new org.apache.axis.NoEndPointException();
  151. }
  152. org.apache.axis.client.Call _call = createCall();
  153. _call.setOperation(_operations[0]);
  154. _call.setUseSOAPAction(true);
  155. _call.setSOAPActionURI("");
  156. _call.setEncodingStyle(null);
  157. _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
  158. _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
  159. _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  160. _call.setOperationName(new javax.xml.namespace.QName("http://webservice.sales.cos.rise.com/", "createPortalCoupon"));
  161. setRequestHeaders(_call);
  162. setAttachments(_call);
  163. try { Object _resp = _call.invoke(new Object[] {params});
  164. if (_resp instanceof java.rmi.RemoteException) {
  165. throw (java.rmi.RemoteException)_resp;
  166. }
  167. else {
  168. extractAttachments(_call);
  169. try {
  170. return (Result) _resp;
  171. } catch (Exception _exception) {
  172. return (Result) org.apache.axis.utils.JavaUtils.convert(_resp, Result.class);
  173. }
  174. }
  175. } catch (org.apache.axis.AxisFault axisFaultException) {
  176. throw axisFaultException;
  177. }
  178. }
  179. }