2
* Browser_x0020_ServiceLocator.java
4
* This file was auto-generated from WSDL
5
* by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
8
package com.novell.simias.browser;
10
public class Browser_x0020_ServiceLocator extends org.apache.axis.client.Service implements com.novell.simias.browser.Browser_x0020_Service {
13
* Web Service providing access to the simias database.
16
public Browser_x0020_ServiceLocator() {
20
public Browser_x0020_ServiceLocator(org.apache.axis.EngineConfiguration config) {
24
// Use to get a proxy class for Browser_x0020_ServiceSoap
25
private java.lang.String Browser_x0020_ServiceSoap_address = "http://localhost:8086/simias10/SimiasBrowser.asmx";
27
public java.lang.String getBrowser_x0020_ServiceSoapAddress() {
28
return Browser_x0020_ServiceSoap_address;
31
// The WSDD service name defaults to the port name.
32
private java.lang.String Browser_x0020_ServiceSoapWSDDServiceName = "Browser_x0020_ServiceSoap";
34
public java.lang.String getBrowser_x0020_ServiceSoapWSDDServiceName() {
35
return Browser_x0020_ServiceSoapWSDDServiceName;
38
public void setBrowser_x0020_ServiceSoapWSDDServiceName(java.lang.String name) {
39
Browser_x0020_ServiceSoapWSDDServiceName = name;
42
public com.novell.simias.browser.Browser_x0020_ServiceSoap getBrowser_x0020_ServiceSoap() throws javax.xml.rpc.ServiceException {
43
java.net.URL endpoint;
45
endpoint = new java.net.URL(Browser_x0020_ServiceSoap_address);
47
catch (java.net.MalformedURLException e) {
48
throw new javax.xml.rpc.ServiceException(e);
50
return getBrowser_x0020_ServiceSoap(endpoint);
53
public com.novell.simias.browser.Browser_x0020_ServiceSoap getBrowser_x0020_ServiceSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
55
com.novell.simias.browser.Browser_x0020_ServiceSoapStub _stub = new com.novell.simias.browser.Browser_x0020_ServiceSoapStub(portAddress, this);
56
_stub.setPortName(getBrowser_x0020_ServiceSoapWSDDServiceName());
59
catch (org.apache.axis.AxisFault e) {
64
public void setBrowser_x0020_ServiceSoapEndpointAddress(java.lang.String address) {
65
Browser_x0020_ServiceSoap_address = address;
69
* For the given interface, get the stub implementation.
70
* If this service has no port for the given interface,
71
* then ServiceException is thrown.
73
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
75
if (com.novell.simias.browser.Browser_x0020_ServiceSoap.class.isAssignableFrom(serviceEndpointInterface)) {
76
com.novell.simias.browser.Browser_x0020_ServiceSoapStub _stub = new com.novell.simias.browser.Browser_x0020_ServiceSoapStub(new java.net.URL(Browser_x0020_ServiceSoap_address), this);
77
_stub.setPortName(getBrowser_x0020_ServiceSoapWSDDServiceName());
81
catch (java.lang.Throwable t) {
82
throw new javax.xml.rpc.ServiceException(t);
84
throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
88
* For the given interface, get the stub implementation.
89
* If this service has no port for the given interface,
90
* then ServiceException is thrown.
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);
96
java.lang.String inputPortName = portName.getLocalPart();
97
if ("Browser_x0020_ServiceSoap".equals(inputPortName)) {
98
return getBrowser_x0020_ServiceSoap();
101
java.rmi.Remote _stub = getPort(serviceEndpointInterface);
102
((org.apache.axis.client.Stub) _stub).setPortName(portName);
107
public javax.xml.namespace.QName getServiceName() {
108
return new javax.xml.namespace.QName("http://novell.com/simias/browser", "Browser_x0020_Service");
111
private java.util.HashSet ports = null;
113
public java.util.Iterator getPorts() {
115
ports = new java.util.HashSet();
116
ports.add(new javax.xml.namespace.QName("http://novell.com/simias/browser", "Browser_x0020_ServiceSoap"));
118
return ports.iterator();
122
* Set the endpoint address for the specified port name.
124
public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
125
if ("Browser_x0020_ServiceSoap".equals(portName)) {
126
setBrowser_x0020_ServiceSoapEndpointAddress(address);
128
else { // Unknown Port Name
129
throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
134
* Set the endpoint address for the specified port name.
136
public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
137
setEndpointAddress(portName.getLocalPart(), address);