1 7 8 package org.objectweb.jonas.jtests.hello; 9 10 public class HelloPortComponentSoapBindingStub extends org.apache.axis.client.Stub implements org.objectweb.jonas.jtests.hello.HelloWs { 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("sayHello"); 23 oper.addParameter(new javax.xml.namespace.QName("", "in0"), new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"), java.lang.String.class, org.apache.axis.description.ParameterDesc.IN, false, false); 24 oper.setReturnType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string")); 25 oper.setReturnClass(java.lang.String.class); 26 oper.setReturnQName(new javax.xml.namespace.QName("", "return")); 27 oper.setStyle(org.apache.axis.enum.Style.RPC); 28 oper.setUse(org.apache.axis.enum.Use.ENCODED); 29 _operations[0] = oper; 30 31 } 32 33 public HelloPortComponentSoapBindingStub() throws org.apache.axis.AxisFault { 34 this(null); 35 } 36 37 public HelloPortComponentSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault { 38 this(service); 39 super.cachedEndpoint = endpointURL; 40 } 41 42 public HelloPortComponentSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault { 43 if (service == null) { 44 super.service = new org.apache.axis.client.Service(); 45 } else { 46 super.service = service; 47 } 48 } 49 50 private org.apache.axis.client.Call createCall() throws java.rmi.RemoteException { 51 try { 52 org.apache.axis.client.Call _call = 53 (org.apache.axis.client.Call) super.service.createCall(); 54 if (super.maintainSessionSet) { 55 _call.setMaintainSession(super.maintainSession); 56 } 57 if (super.cachedUsername != null) { 58 _call.setUsername(super.cachedUsername); 59 } 60 if (super.cachedPassword != null) { 61 _call.setPassword(super.cachedPassword); 62 } 63 if (super.cachedEndpoint != null) { 64 _call.setTargetEndpointAddress(super.cachedEndpoint); 65 } 66 if (super.cachedTimeout != null) { 67 _call.setTimeout(super.cachedTimeout); 68 } 69 if (super.cachedPortName != null) { 70 _call.setPortName(super.cachedPortName); 71 } 72 java.util.Enumeration keys = super.cachedProperties.keys(); 73 while (keys.hasMoreElements()) { 74 java.lang.String key = (java.lang.String) keys.nextElement(); 75 _call.setProperty(key, super.cachedProperties.get(key)); 76 } 77 return _call; 78 } 79 catch (java.lang.Throwable t) { 80 throw new org.apache.axis.AxisFault("Failure trying to get the Call object", t); 81 } 82 } 83 84 public java.lang.String sayHello(java.lang.String in0) throws java.rmi.RemoteException { 85 if (super.cachedEndpoint == null) { 86 throw new org.apache.axis.NoEndPointException(); 87 } 88 org.apache.axis.client.Call _call = createCall(); 89 _call.setOperation(_operations[0]); 90 _call.setUseSOAPAction(true); 91 _call.setSOAPActionURI(""); 92 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); 93 _call.setOperationName(new javax.xml.namespace.QName("http://hello.simple", "sayHello")); 94 95 setRequestHeaders(_call); 96 setAttachments(_call); 97 java.lang.Object _resp = _call.invoke(new java.lang.Object[] {in0}); 98 99 if (_resp instanceof java.rmi.RemoteException) { 100 throw (java.rmi.RemoteException)_resp; 101 } 102 else { 103 extractAttachments(_call); 104 try { 105 return (java.lang.String) _resp; 106 } catch (java.lang.Exception _exception) { 107 return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String.class); 108 } 109 } 110 } 111 112 } 113 | Popular Tags |