1 7 8 package com.sun.j2ee.blueprints.supplier.webservice.opcclient; 9 10 public class OPCWebServiceSoapBindingStub extends org.apache.axis.client.Stub implements com.sun.j2ee.blueprints.supplier.webservice.opcclient.OPCServiceImpl { 11 private java.util.Vector cachedSerClasses = new java.util.Vector(); 12 private java.util.Vector cachedSerQNames = new java.util.Vector(); 13 private java.util.Vector cachedSerFactories = new java.util.Vector(); 14 private java.util.Vector cachedDeserFactories = new java.util.Vector(); 15 16 static org.apache.axis.description.OperationDesc [] _operations; 17 18 static { 19 _operations = new org.apache.axis.description.OperationDesc[1]; 20 org.apache.axis.description.OperationDesc oper; 21 oper = new org.apache.axis.description.OperationDesc(); 22 oper.setName("submitInvoice"); 23 oper.addParameter(new javax.xml.namespace.QName("", "in0"), new javax.xml.namespace.QName("http://xml.apache.org/xml-soap", "Source"), javax.xml.transform.Source.class, org.apache.axis.description.ParameterDesc.IN, false, false); 24 oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID); 25 oper.addFault(new org.apache.axis.description.FaultDesc( 26 new javax.xml.namespace.QName("http://localhost:8080/opc/services/OPCWebService", "fault"), 27 "com.sun.j2ee.blueprints.supplier.webservice.opcclient.InvalidInvoiceException", 28 new javax.xml.namespace.QName("http://webservice.opc.blueprints.j2ee.sun.com", "InvalidInvoiceException"), 29 true 30 )); 31 _operations[0] = oper; 32 33 } 34 35 public OPCWebServiceSoapBindingStub() throws org.apache.axis.AxisFault { 36 this(null); 37 } 38 39 public OPCWebServiceSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault { 40 this(service); 41 super.cachedEndpoint = endpointURL; 42 } 43 44 public OPCWebServiceSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault { 45 if (service == null) { 46 super.service = new org.apache.axis.client.Service(); 47 } else { 48 super.service = service; 49 } 50 java.lang.Class cls; 51 javax.xml.namespace.QName qName; 52 java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class; 53 java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class; 54 java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class; 55 java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class; 56 java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class; 57 java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class; 58 java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class; 59 java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class; 60 java.lang.Class mimesf = org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory.class; 61 java.lang.Class mimedf = org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory.class; 62 63 qName = new javax.xml.namespace.QName("http://localhost:8080/opc/services/OPCWebService", "DataHandler"); 64 cachedSerQNames.add(qName); 65 cls = javax.activation.DataHandler.class; 66 cachedSerClasses.add(cls); 67 cachedSerFactories.add(mimesf); 68 cachedDeserFactories.add(mimedf); 69 70 qName = new javax.xml.namespace.QName("http://webservice.opc.blueprints.j2ee.sun.com", "InvalidInvoiceException"); 71 cachedSerQNames.add(qName); 72 cls = com.sun.j2ee.blueprints.supplier.webservice.opcclient.InvalidInvoiceException.class; 73 cachedSerClasses.add(cls); 74 cachedSerFactories.add(beansf); 75 cachedDeserFactories.add(beandf); 76 77 } 78 79 private org.apache.axis.client.Call createCall() throws java.rmi.RemoteException { 80 try { 81 org.apache.axis.client.Call _call = 82 (org.apache.axis.client.Call) super.service.createCall(); 83 if (super.maintainSessionSet) { 84 _call.setMaintainSession(super.maintainSession); 85 } 86 if (super.cachedUsername != null) { 87 _call.setUsername(super.cachedUsername); 88 } 89 if (super.cachedPassword != null) { 90 _call.setPassword(super.cachedPassword); 91 } 92 if (super.cachedEndpoint != null) { 93 _call.setTargetEndpointAddress(super.cachedEndpoint); 94 } 95 if (super.cachedTimeout != null) { 96 _call.setTimeout(super.cachedTimeout); 97 } 98 if (super.cachedPortName != null) { 99 _call.setPortName(super.cachedPortName); 100 } 101 java.util.Enumeration keys = super.cachedProperties.keys(); 102 while (keys.hasMoreElements()) { 103 java.lang.String key = (java.lang.String) keys.nextElement(); 104 _call.setProperty(key, super.cachedProperties.get(key)); 105 } 106 synchronized (this) { 112 if (firstCall()) { 113 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); 115 _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC); 116 for (int i = 0; i < cachedSerFactories.size(); ++i) { 117 java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i); 118 javax.xml.namespace.QName qName = 119 (javax.xml.namespace.QName) cachedSerQNames.get(i); 120 java.lang.Class sf = (java.lang.Class) 121 cachedSerFactories.get(i); 122 java.lang.Class df = (java.lang.Class) 123 cachedDeserFactories.get(i); 124 _call.registerTypeMapping(cls, qName, sf, df, false); 125 } 126 } 127 } 128 return _call; 129 } 130 catch (java.lang.Throwable t) { 131 throw new org.apache.axis.AxisFault("Failure trying to get the Call object", t); 132 } 133 } 134 135 public void submitInvoice(javax.xml.transform.Source in0) throws java.rmi.RemoteException, com.sun.j2ee.blueprints.supplier.webservice.opcclient.InvalidInvoiceException { 136 if (super.cachedEndpoint == null) { 137 throw new org.apache.axis.NoEndPointException(); 138 } 139 org.apache.axis.client.Call _call = createCall(); 140 _call.setOperation(_operations[0]); 141 _call.setUseSOAPAction(true); 142 _call.setSOAPActionURI(""); 143 _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); 144 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); 145 _call.setOperationName(new javax.xml.namespace.QName("http://webservice.opc.blueprints.j2ee.sun.com", "submitInvoice")); 146 147 setRequestHeaders(_call); 148 setAttachments(_call); 149 java.lang.Object _resp = _call.invoke(new java.lang.Object[] {in0}); 150 if (_resp instanceof java.rmi.RemoteException) { 151 throw (java.rmi.RemoteException)_resp; 152 } 153 extractAttachments(_call); 154 } 155 156 } 157 | Popular Tags |