1
7
8 package com.liferay.client.soap.portlet.announcements.service.http;
9
10 public class AnnouncementsEntryServiceSoapServiceLocator extends org.apache.axis.client.Service implements com.liferay.client.soap.portlet.announcements.service.http.AnnouncementsEntryServiceSoapService {
11
12 public AnnouncementsEntryServiceSoapServiceLocator() {
13 }
14
15
16 public AnnouncementsEntryServiceSoapServiceLocator(org.apache.axis.EngineConfiguration config) {
17 super(config);
18 }
19
20 public AnnouncementsEntryServiceSoapServiceLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
21 super(wsdlLoc, sName);
22 }
23
24 private java.lang.String Portlet_Announcements_AnnouncementsEntryService_address = "http://localhost:8080/tunnel-web/axis/Portlet_Announcements_AnnouncementsEntryService";
26
27 public java.lang.String getPortlet_Announcements_AnnouncementsEntryServiceAddress() {
28 return Portlet_Announcements_AnnouncementsEntryService_address;
29 }
30
31 private java.lang.String Portlet_Announcements_AnnouncementsEntryServiceWSDDServiceName = "Portlet_Announcements_AnnouncementsEntryService";
33
34 public java.lang.String getPortlet_Announcements_AnnouncementsEntryServiceWSDDServiceName() {
35 return Portlet_Announcements_AnnouncementsEntryServiceWSDDServiceName;
36 }
37
38 public void setPortlet_Announcements_AnnouncementsEntryServiceWSDDServiceName(java.lang.String name) {
39 Portlet_Announcements_AnnouncementsEntryServiceWSDDServiceName = name;
40 }
41
42 public com.liferay.client.soap.portlet.announcements.service.http.AnnouncementsEntryServiceSoap getPortlet_Announcements_AnnouncementsEntryService() throws javax.xml.rpc.ServiceException {
43 java.net.URL endpoint;
44 try {
45 endpoint = new java.net.URL(Portlet_Announcements_AnnouncementsEntryService_address);
46 }
47 catch (java.net.MalformedURLException e) {
48 throw new javax.xml.rpc.ServiceException(e);
49 }
50 return getPortlet_Announcements_AnnouncementsEntryService(endpoint);
51 }
52
53 public com.liferay.client.soap.portlet.announcements.service.http.AnnouncementsEntryServiceSoap getPortlet_Announcements_AnnouncementsEntryService(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
54 try {
55 com.liferay.client.soap.portlet.announcements.service.http.Portlet_Announcements_AnnouncementsEntryServiceSoapBindingStub _stub = new com.liferay.client.soap.portlet.announcements.service.http.Portlet_Announcements_AnnouncementsEntryServiceSoapBindingStub(portAddress, this);
56 _stub.setPortName(getPortlet_Announcements_AnnouncementsEntryServiceWSDDServiceName());
57 return _stub;
58 }
59 catch (org.apache.axis.AxisFault e) {
60 return null;
61 }
62 }
63
64 public void setPortlet_Announcements_AnnouncementsEntryServiceEndpointAddress(java.lang.String address) {
65 Portlet_Announcements_AnnouncementsEntryService_address = address;
66 }
67
68
73 public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
74 try {
75 if (com.liferay.client.soap.portlet.announcements.service.http.AnnouncementsEntryServiceSoap.class.isAssignableFrom(serviceEndpointInterface)) {
76 com.liferay.client.soap.portlet.announcements.service.http.Portlet_Announcements_AnnouncementsEntryServiceSoapBindingStub _stub = new com.liferay.client.soap.portlet.announcements.service.http.Portlet_Announcements_AnnouncementsEntryServiceSoapBindingStub(new java.net.URL(Portlet_Announcements_AnnouncementsEntryService_address), this);
77 _stub.setPortName(getPortlet_Announcements_AnnouncementsEntryServiceWSDDServiceName());
78 return _stub;
79 }
80 }
81 catch (java.lang.Throwable t) {
82 throw new javax.xml.rpc.ServiceException(t);
83 }
84 throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
85 }
86
87
92 public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
93 if (portName == null) {
94 return getPort(serviceEndpointInterface);
95 }
96 java.lang.String inputPortName = portName.getLocalPart();
97 if ("Portlet_Announcements_AnnouncementsEntryService".equals(inputPortName)) {
98 return getPortlet_Announcements_AnnouncementsEntryService();
99 }
100 else {
101 java.rmi.Remote _stub = getPort(serviceEndpointInterface);
102 ((org.apache.axis.client.Stub) _stub).setPortName(portName);
103 return _stub;
104 }
105 }
106
107 public javax.xml.namespace.QName getServiceName() {
108 return new javax.xml.namespace.QName("urn:http.service.announcements.portlet.liferay.com", "AnnouncementsEntryServiceSoapService");
109 }
110
111 private java.util.HashSet ports = null;
112
113 public java.util.Iterator getPorts() {
114 if (ports == null) {
115 ports = new java.util.HashSet();
116 ports.add(new javax.xml.namespace.QName("urn:http.service.announcements.portlet.liferay.com", "Portlet_Announcements_AnnouncementsEntryService"));
117 }
118 return ports.iterator();
119 }
120
121
124 public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
125
126 if ("Portlet_Announcements_AnnouncementsEntryService".equals(portName)) {
127 setPortlet_Announcements_AnnouncementsEntryServiceEndpointAddress(address);
128 }
129 else
130 { throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
132 }
133 }
134
135
138 public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
139 setEndpointAddress(portName.getLocalPart(), address);
140 }
141
142 }
143