1
7
8 package com.liferay.client.soap.portal.service.http;
9
10 public class Portal_ResourceServiceSoapBindingStub extends org.apache.axis.client.Stub implements com.liferay.client.soap.portal.service.http.ResourceServiceSoap {
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 _initOperationDesc1();
21 }
22
23 private static void _initOperationDesc1(){
24 org.apache.axis.description.OperationDesc oper;
25 org.apache.axis.description.ParameterDesc param;
26 oper = new org.apache.axis.description.OperationDesc();
27 oper.setName("getResource");
28 param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "companyId"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"), long.class, false, false);
29 oper.addParameter(param);
30 param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "name"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
31 oper.addParameter(param);
32 param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "scope"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false);
33 oper.addParameter(param);
34 param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "primKey"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
35 oper.addParameter(param);
36 oper.setReturnType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "ResourceSoap"));
37 oper.setReturnClass(com.liferay.client.soap.portal.model.ResourceSoap.class);
38 oper.setReturnQName(new javax.xml.namespace.QName("", "getResourceReturn"));
39 oper.setStyle(org.apache.axis.constants.Style.RPC);
40 oper.setUse(org.apache.axis.constants.Use.ENCODED);
41 _operations[0] = oper;
42
43 }
44
45 public Portal_ResourceServiceSoapBindingStub() throws org.apache.axis.AxisFault {
46 this(null);
47 }
48
49 public Portal_ResourceServiceSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
50 this(service);
51 super.cachedEndpoint = endpointURL;
52 }
53
54 public Portal_ResourceServiceSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
55 if (service == null) {
56 super.service = new org.apache.axis.client.Service();
57 } else {
58 super.service = service;
59 }
60 ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
61 java.lang.Class cls;
62 javax.xml.namespace.QName qName;
63 javax.xml.namespace.QName qName2;
64 java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
65 java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
66 java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
67 java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
68 java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
69 java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
70 java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
71 java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
72 java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
73 java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
74 qName = new javax.xml.namespace.QName("http://model.portal.liferay.com", "ResourceSoap");
75 cachedSerQNames.add(qName);
76 cls = com.liferay.client.soap.portal.model.ResourceSoap.class;
77 cachedSerClasses.add(cls);
78 cachedSerFactories.add(beansf);
79 cachedDeserFactories.add(beandf);
80
81 }
82
83 protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
84 try {
85 org.apache.axis.client.Call _call = super._createCall();
86 if (super.maintainSessionSet) {
87 _call.setMaintainSession(super.maintainSession);
88 }
89 if (super.cachedUsername != null) {
90 _call.setUsername(super.cachedUsername);
91 }
92 if (super.cachedPassword != null) {
93 _call.setPassword(super.cachedPassword);
94 }
95 if (super.cachedEndpoint != null) {
96 _call.setTargetEndpointAddress(super.cachedEndpoint);
97 }
98 if (super.cachedTimeout != null) {
99 _call.setTimeout(super.cachedTimeout);
100 }
101 if (super.cachedPortName != null) {
102 _call.setPortName(super.cachedPortName);
103 }
104 java.util.Enumeration keys = super.cachedProperties.keys();
105 while (keys.hasMoreElements()) {
106 java.lang.String key = (java.lang.String) keys.nextElement();
107 _call.setProperty(key, super.cachedProperties.get(key));
108 }
109 synchronized (this) {
115 if (firstCall()) {
116 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
118 _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
119 for (int i = 0; i < cachedSerFactories.size(); ++i) {
120 java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
121 javax.xml.namespace.QName qName =
122 (javax.xml.namespace.QName) cachedSerQNames.get(i);
123 java.lang.Object x = cachedSerFactories.get(i);
124 if (x instanceof Class) {
125 java.lang.Class sf = (java.lang.Class)
126 cachedSerFactories.get(i);
127 java.lang.Class df = (java.lang.Class)
128 cachedDeserFactories.get(i);
129 _call.registerTypeMapping(cls, qName, sf, df, false);
130 }
131 else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
132 org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
133 cachedSerFactories.get(i);
134 org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
135 cachedDeserFactories.get(i);
136 _call.registerTypeMapping(cls, qName, sf, df, false);
137 }
138 }
139 }
140 }
141 return _call;
142 }
143 catch (java.lang.Throwable _t) {
144 throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
145 }
146 }
147
148 public com.liferay.client.soap.portal.model.ResourceSoap getResource(long companyId, java.lang.String name, int scope, java.lang.String primKey) 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.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
157 _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "getResource"));
158
159 setRequestHeaders(_call);
160 setAttachments(_call);
161 try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Long(companyId), name, new java.lang.Integer(scope), primKey});
162
163 if (_resp instanceof java.rmi.RemoteException) {
164 throw (java.rmi.RemoteException)_resp;
165 }
166 else {
167 extractAttachments(_call);
168 try {
169 return (com.liferay.client.soap.portal.model.ResourceSoap) _resp;
170 } catch (java.lang.Exception _exception) {
171 return (com.liferay.client.soap.portal.model.ResourceSoap) org.apache.axis.utils.JavaUtils.convert(_resp, com.liferay.client.soap.portal.model.ResourceSoap.class);
172 }
173 }
174 } catch (org.apache.axis.AxisFault axisFaultException) {
175 throw axisFaultException;
176 }
177 }
178
179 }
180