001: /**
002: * FeedsMetaDataServiceServiceLocator.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
006: */package org.openi.feeds.client;
007:
008: public class FeedsMetaDataServiceServiceLocator extends
009: org.apache.axis.client.Service implements
010: org.openi.feeds.client.FeedsMetaDataServiceService {
011:
012: public FeedsMetaDataServiceServiceLocator() {
013: }
014:
015: public FeedsMetaDataServiceServiceLocator(
016: org.apache.axis.EngineConfiguration config) {
017: super (config);
018: }
019:
020: public FeedsMetaDataServiceServiceLocator(java.lang.String wsdlLoc,
021: javax.xml.namespace.QName sName)
022: throws javax.xml.rpc.ServiceException {
023: super (wsdlLoc, sName);
024: }
025:
026: // Use to get a proxy class for FeedsMetaDataService
027: private java.lang.String FeedsMetaDataService_address = "http://localhost:8080/feeds/FeedsMetaDataService.jws";
028:
029: public java.lang.String getFeedsMetaDataServiceAddress() {
030: return FeedsMetaDataService_address;
031: }
032:
033: // The WSDD service name defaults to the port name.
034: private java.lang.String FeedsMetaDataServiceWSDDServiceName = "FeedsMetaDataService";
035:
036: public java.lang.String getFeedsMetaDataServiceWSDDServiceName() {
037: return FeedsMetaDataServiceWSDDServiceName;
038: }
039:
040: public void setFeedsMetaDataServiceWSDDServiceName(
041: java.lang.String name) {
042: FeedsMetaDataServiceWSDDServiceName = name;
043: }
044:
045: public org.openi.feeds.client.FeedsMetaDataService getFeedsMetaDataService()
046: throws javax.xml.rpc.ServiceException {
047: java.net.URL endpoint;
048: try {
049: endpoint = new java.net.URL(FeedsMetaDataService_address);
050: } catch (java.net.MalformedURLException e) {
051: throw new javax.xml.rpc.ServiceException(e);
052: }
053: return getFeedsMetaDataService(endpoint);
054: }
055:
056: public org.openi.feeds.client.FeedsMetaDataService getFeedsMetaDataService(
057: java.net.URL portAddress)
058: throws javax.xml.rpc.ServiceException {
059: try {
060: org.openi.feeds.client.FeedsMetaDataServiceSoapBindingStub _stub = new org.openi.feeds.client.FeedsMetaDataServiceSoapBindingStub(
061: portAddress, this );
062: _stub.setPortName(getFeedsMetaDataServiceWSDDServiceName());
063: return _stub;
064: } catch (org.apache.axis.AxisFault e) {
065: return null;
066: }
067: }
068:
069: public void setFeedsMetaDataServiceEndpointAddress(
070: java.lang.String address) {
071: FeedsMetaDataService_address = address;
072: }
073:
074: /**
075: * For the given interface, get the stub implementation.
076: * If this service has no port for the given interface,
077: * then ServiceException is thrown.
078: */
079: public java.rmi.Remote getPort(Class serviceEndpointInterface)
080: throws javax.xml.rpc.ServiceException {
081: try {
082: if (org.openi.feeds.client.FeedsMetaDataService.class
083: .isAssignableFrom(serviceEndpointInterface)) {
084: org.openi.feeds.client.FeedsMetaDataServiceSoapBindingStub _stub = new org.openi.feeds.client.FeedsMetaDataServiceSoapBindingStub(
085: new java.net.URL(FeedsMetaDataService_address),
086: this );
087: _stub
088: .setPortName(getFeedsMetaDataServiceWSDDServiceName());
089: return _stub;
090: }
091: } catch (java.lang.Throwable t) {
092: throw new javax.xml.rpc.ServiceException(t);
093: }
094: throw new javax.xml.rpc.ServiceException(
095: "There is no stub implementation for the interface: "
096: + (serviceEndpointInterface == null ? "null"
097: : serviceEndpointInterface.getName()));
098: }
099:
100: /**
101: * For the given interface, get the stub implementation.
102: * If this service has no port for the given interface,
103: * then ServiceException is thrown.
104: */
105: public java.rmi.Remote getPort(javax.xml.namespace.QName portName,
106: Class serviceEndpointInterface)
107: throws javax.xml.rpc.ServiceException {
108: if (portName == null) {
109: return getPort(serviceEndpointInterface);
110: }
111: java.lang.String inputPortName = portName.getLocalPart();
112: if ("FeedsMetaDataService".equals(inputPortName)) {
113: return getFeedsMetaDataService();
114: } else {
115: java.rmi.Remote _stub = getPort(serviceEndpointInterface);
116: ((org.apache.axis.client.Stub) _stub).setPortName(portName);
117: return _stub;
118: }
119: }
120:
121: public javax.xml.namespace.QName getServiceName() {
122: return new javax.xml.namespace.QName(
123: "http://localhost:8080/feeds/FeedsMetaDataService.jws",
124: "FeedsMetaDataServiceService");
125: }
126:
127: private java.util.HashSet ports = null;
128:
129: public java.util.Iterator getPorts() {
130: if (ports == null) {
131: ports = new java.util.HashSet();
132: ports
133: .add(new javax.xml.namespace.QName(
134: "http://localhost:8080/feeds/FeedsMetaDataService.jws",
135: "FeedsMetaDataService"));
136: }
137: return ports.iterator();
138: }
139:
140: /**
141: * Set the endpoint address for the specified port name.
142: */
143: public void setEndpointAddress(java.lang.String portName,
144: java.lang.String address)
145: throws javax.xml.rpc.ServiceException {
146:
147: if ("FeedsMetaDataService".equals(portName)) {
148: setFeedsMetaDataServiceEndpointAddress(address);
149: } else { // Unknown Port Name
150: throw new javax.xml.rpc.ServiceException(
151: " Cannot set Endpoint Address for Unknown Port"
152: + portName);
153: }
154: }
155:
156: /**
157: * Set the endpoint address for the specified port name.
158: */
159: public void setEndpointAddress(javax.xml.namespace.QName portName,
160: java.lang.String address)
161: throws javax.xml.rpc.ServiceException {
162: setEndpointAddress(portName.getLocalPart(), address);
163: }
164:
165: }
|