1
7
8 package com.liferay.client.soap.portal.service.http;
9
10 public class Portal_PortalServiceSoapBindingStub extends org.apache.axis.client.Stub implements com.liferay.client.soap.portal.service.http.PortalServiceSoap {
11
12 static org.apache.axis.description.OperationDesc [] _operations;
13
14 static {
15 _operations = new org.apache.axis.description.OperationDesc[2];
16 _initOperationDesc1();
17 }
18
19 private static void _initOperationDesc1(){
20 org.apache.axis.description.OperationDesc oper;
21 org.apache.axis.description.ParameterDesc param;
22 oper = new org.apache.axis.description.OperationDesc();
23 oper.setName("test");
24 oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
25 oper.setStyle(org.apache.axis.constants.Style.RPC);
26 oper.setUse(org.apache.axis.constants.Use.ENCODED);
27 _operations[0] = oper;
28
29 oper = new org.apache.axis.description.OperationDesc();
30 oper.setName("testCounterRollback");
31 oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
32 oper.setStyle(org.apache.axis.constants.Style.RPC);
33 oper.setUse(org.apache.axis.constants.Use.ENCODED);
34 _operations[1] = oper;
35
36 }
37
38 public Portal_PortalServiceSoapBindingStub() throws org.apache.axis.AxisFault {
39 this(null);
40 }
41
42 public Portal_PortalServiceSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
43 this(service);
44 super.cachedEndpoint = endpointURL;
45 }
46
47 public Portal_PortalServiceSoapBindingStub(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.2");
54 }
55
56 protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
57 try {
58 org.apache.axis.client.Call _call = super._createCall();
59 if (super.maintainSessionSet) {
60 _call.setMaintainSession(super.maintainSession);
61 }
62 if (super.cachedUsername != null) {
63 _call.setUsername(super.cachedUsername);
64 }
65 if (super.cachedPassword != null) {
66 _call.setPassword(super.cachedPassword);
67 }
68 if (super.cachedEndpoint != null) {
69 _call.setTargetEndpointAddress(super.cachedEndpoint);
70 }
71 if (super.cachedTimeout != null) {
72 _call.setTimeout(super.cachedTimeout);
73 }
74 if (super.cachedPortName != null) {
75 _call.setPortName(super.cachedPortName);
76 }
77 java.util.Enumeration keys = super.cachedProperties.keys();
78 while (keys.hasMoreElements()) {
79 java.lang.String key = (java.lang.String) keys.nextElement();
80 _call.setProperty(key, super.cachedProperties.get(key));
81 }
82 return _call;
83 }
84 catch (java.lang.Throwable _t) {
85 throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
86 }
87 }
88
89 public void test() throws java.rmi.RemoteException {
90 if (super.cachedEndpoint == null) {
91 throw new org.apache.axis.NoEndPointException();
92 }
93 org.apache.axis.client.Call _call = createCall();
94 _call.setOperation(_operations[0]);
95 _call.setUseSOAPAction(true);
96 _call.setSOAPActionURI("");
97 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
98 _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "test"));
99
100 setRequestHeaders(_call);
101 setAttachments(_call);
102 try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {});
103
104 if (_resp instanceof java.rmi.RemoteException) {
105 throw (java.rmi.RemoteException)_resp;
106 }
107 extractAttachments(_call);
108 } catch (org.apache.axis.AxisFault axisFaultException) {
109 throw axisFaultException;
110 }
111 }
112
113 public void testCounterRollback() throws java.rmi.RemoteException {
114 if (super.cachedEndpoint == null) {
115 throw new org.apache.axis.NoEndPointException();
116 }
117 org.apache.axis.client.Call _call = createCall();
118 _call.setOperation(_operations[1]);
119 _call.setUseSOAPAction(true);
120 _call.setSOAPActionURI("");
121 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
122 _call.setOperationName(new javax.xml.namespace.QName("urn:http.service.portal.liferay.com", "testCounterRollback"));
123
124 setRequestHeaders(_call);
125 setAttachments(_call);
126 try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {});
127
128 if (_resp instanceof java.rmi.RemoteException) {
129 throw (java.rmi.RemoteException)_resp;
130 }
131 extractAttachments(_call);
132 } catch (org.apache.axis.AxisFault axisFaultException) {
133 throw axisFaultException;
134 }
135 }
136
137 }
138