/[projects]/dao/JavaPumpClient/src/org/tempuri/RemoteControlLocator.java
ViewVC logotype

Diff of /dao/JavaPumpClient/src/org/tempuri/RemoteControlLocator.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2058 by torben, Tue Jul 9 19:37:14 2013 UTC revision 2059 by torben, Wed Aug 28 06:55:13 2013 UTC
# Line 1  Line 1 
1  /**  /**
2   * RemoteControlLocator.java   * RemoteControlLocator.java
3   *   *
4   * This file was auto-generated from WSDL   * This file was auto-generated from WSDL
5   * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.   * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
6   */   */
7    
8  package org.tempuri;  package org.tempuri;
9    
10  public class RemoteControlLocator extends org.apache.axis.client.Service implements org.tempuri.RemoteControl {  public class RemoteControlLocator extends org.apache.axis.client.Service implements org.tempuri.RemoteControl {
11    
12      public RemoteControlLocator() {      public RemoteControlLocator() {
13      }      }
14    
15    
16      public RemoteControlLocator(org.apache.axis.EngineConfiguration config) {      public RemoteControlLocator(org.apache.axis.EngineConfiguration config) {
17          super(config);          super(config);
18      }      }
19    
20      public RemoteControlLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {      public RemoteControlLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
21          super(wsdlLoc, sName);          super(wsdlLoc, sName);
22      }      }
23    
24      // Use to get a proxy class for BasicHttpBinding_IRemoteControl      // Use to get a proxy class for BasicHttpBinding_IRemoteControl
25      private java.lang.String BasicHttpBinding_IRemoteControl_address = "http://dao-srv-03:8000/RemoteControl/RemoteControl";      private java.lang.String BasicHttpBinding_IRemoteControl_address = "http://dao-srv-03:8000/RemoteControl/RemoteControl";
26    
27      public java.lang.String getBasicHttpBinding_IRemoteControlAddress() {      public java.lang.String getBasicHttpBinding_IRemoteControlAddress() {
28          return BasicHttpBinding_IRemoteControl_address;          return BasicHttpBinding_IRemoteControl_address;
29      }      }
30    
31      // The WSDD service name defaults to the port name.      // The WSDD service name defaults to the port name.
32      private java.lang.String BasicHttpBinding_IRemoteControlWSDDServiceName = "BasicHttpBinding_IRemoteControl";      private java.lang.String BasicHttpBinding_IRemoteControlWSDDServiceName = "BasicHttpBinding_IRemoteControl";
33    
34      public java.lang.String getBasicHttpBinding_IRemoteControlWSDDServiceName() {      public java.lang.String getBasicHttpBinding_IRemoteControlWSDDServiceName() {
35          return BasicHttpBinding_IRemoteControlWSDDServiceName;          return BasicHttpBinding_IRemoteControlWSDDServiceName;
36      }      }
37    
38      public void setBasicHttpBinding_IRemoteControlWSDDServiceName(java.lang.String name) {      public void setBasicHttpBinding_IRemoteControlWSDDServiceName(java.lang.String name) {
39          BasicHttpBinding_IRemoteControlWSDDServiceName = name;          BasicHttpBinding_IRemoteControlWSDDServiceName = name;
40      }      }
41    
42      public Samples.ServiceModel.Microsoft.IRemoteControl getBasicHttpBinding_IRemoteControl() throws javax.xml.rpc.ServiceException {      public Samples.ServiceModel.Microsoft.IRemoteControl getBasicHttpBinding_IRemoteControl() throws javax.xml.rpc.ServiceException {
43         java.net.URL endpoint;         java.net.URL endpoint;
44          try {          try {
45              endpoint = new java.net.URL(BasicHttpBinding_IRemoteControl_address);              endpoint = new java.net.URL(BasicHttpBinding_IRemoteControl_address);
46          }          }
47          catch (java.net.MalformedURLException e) {          catch (java.net.MalformedURLException e) {
48              throw new javax.xml.rpc.ServiceException(e);              throw new javax.xml.rpc.ServiceException(e);
49          }          }
50          return getBasicHttpBinding_IRemoteControl(endpoint);          return getBasicHttpBinding_IRemoteControl(endpoint);
51      }      }
52    
53      public Samples.ServiceModel.Microsoft.IRemoteControl getBasicHttpBinding_IRemoteControl(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {      public Samples.ServiceModel.Microsoft.IRemoteControl getBasicHttpBinding_IRemoteControl(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
54          try {          try {
55              org.tempuri.BasicHttpBinding_IRemoteControlStub _stub = new org.tempuri.BasicHttpBinding_IRemoteControlStub(portAddress, this);              org.tempuri.BasicHttpBinding_IRemoteControlStub _stub = new org.tempuri.BasicHttpBinding_IRemoteControlStub(portAddress, this);
56              _stub.setPortName(getBasicHttpBinding_IRemoteControlWSDDServiceName());              _stub.setPortName(getBasicHttpBinding_IRemoteControlWSDDServiceName());
57              return _stub;              return _stub;
58          }          }
59          catch (org.apache.axis.AxisFault e) {          catch (org.apache.axis.AxisFault e) {
60              return null;              return null;
61          }          }
62      }      }
63    
64      public void setBasicHttpBinding_IRemoteControlEndpointAddress(java.lang.String address) {      public void setBasicHttpBinding_IRemoteControlEndpointAddress(java.lang.String address) {
65          BasicHttpBinding_IRemoteControl_address = address;          BasicHttpBinding_IRemoteControl_address = address;
66      }      }
67    
68      /**      /**
69       * For the given interface, get the stub implementation.       * For the given interface, get the stub implementation.
70       * If this service has no port for the given interface,       * If this service has no port for the given interface,
71       * then ServiceException is thrown.       * then ServiceException is thrown.
72       */       */
73      public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {      public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
74          try {          try {
75              if (Samples.ServiceModel.Microsoft.IRemoteControl.class.isAssignableFrom(serviceEndpointInterface)) {              if (Samples.ServiceModel.Microsoft.IRemoteControl.class.isAssignableFrom(serviceEndpointInterface)) {
76                  org.tempuri.BasicHttpBinding_IRemoteControlStub _stub = new org.tempuri.BasicHttpBinding_IRemoteControlStub(new java.net.URL(BasicHttpBinding_IRemoteControl_address), this);                  org.tempuri.BasicHttpBinding_IRemoteControlStub _stub = new org.tempuri.BasicHttpBinding_IRemoteControlStub(new java.net.URL(BasicHttpBinding_IRemoteControl_address), this);
77                  _stub.setPortName(getBasicHttpBinding_IRemoteControlWSDDServiceName());                  _stub.setPortName(getBasicHttpBinding_IRemoteControlWSDDServiceName());
78                  return _stub;                  return _stub;
79              }              }
80          }          }
81          catch (java.lang.Throwable t) {          catch (java.lang.Throwable t) {
82              throw new javax.xml.rpc.ServiceException(t);              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()));          throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface:  " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
85      }      }
86    
87      /**      /**
88       * For the given interface, get the stub implementation.       * For the given interface, get the stub implementation.
89       * If this service has no port for the given interface,       * If this service has no port for the given interface,
90       * then ServiceException is thrown.       * then ServiceException is thrown.
91       */       */
92      public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {      public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
93          if (portName == null) {          if (portName == null) {
94              return getPort(serviceEndpointInterface);              return getPort(serviceEndpointInterface);
95          }          }
96          java.lang.String inputPortName = portName.getLocalPart();          java.lang.String inputPortName = portName.getLocalPart();
97          if ("BasicHttpBinding_IRemoteControl".equals(inputPortName)) {          if ("BasicHttpBinding_IRemoteControl".equals(inputPortName)) {
98              return getBasicHttpBinding_IRemoteControl();              return getBasicHttpBinding_IRemoteControl();
99          }          }
100          else  {          else  {
101              java.rmi.Remote _stub = getPort(serviceEndpointInterface);              java.rmi.Remote _stub = getPort(serviceEndpointInterface);
102              ((org.apache.axis.client.Stub) _stub).setPortName(portName);              ((org.apache.axis.client.Stub) _stub).setPortName(portName);
103              return _stub;              return _stub;
104          }          }
105      }      }
106    
107      public javax.xml.namespace.QName getServiceName() {      public javax.xml.namespace.QName getServiceName() {
108          return new javax.xml.namespace.QName("http://tempuri.org/", "RemoteControl");          return new javax.xml.namespace.QName("http://tempuri.org/", "RemoteControl");
109      }      }
110    
111      private java.util.HashSet ports = null;      private java.util.HashSet ports = null;
112    
113      public java.util.Iterator getPorts() {      public java.util.Iterator getPorts() {
114          if (ports == null) {          if (ports == null) {
115              ports = new java.util.HashSet();              ports = new java.util.HashSet();
116              ports.add(new javax.xml.namespace.QName("http://tempuri.org/", "BasicHttpBinding_IRemoteControl"));              ports.add(new javax.xml.namespace.QName("http://tempuri.org/", "BasicHttpBinding_IRemoteControl"));
117          }          }
118          return ports.iterator();          return ports.iterator();
119      }      }
120    
121      /**      /**
122      * Set the endpoint address for the specified port name.      * Set the endpoint address for the specified port name.
123      */      */
124      public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {      public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
125                    
126  if ("BasicHttpBinding_IRemoteControl".equals(portName)) {  if ("BasicHttpBinding_IRemoteControl".equals(portName)) {
127              setBasicHttpBinding_IRemoteControlEndpointAddress(address);              setBasicHttpBinding_IRemoteControlEndpointAddress(address);
128          }          }
129          else          else
130  { // Unknown Port Name  { // Unknown Port Name
131              throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);              throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
132          }          }
133      }      }
134    
135      /**      /**
136      * Set the endpoint address for the specified port name.      * Set the endpoint address for the specified port name.
137      */      */
138      public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {      public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
139          setEndpointAddress(portName.getLocalPart(), address);          setEndpointAddress(portName.getLocalPart(), address);
140      }      }
141    
142  }  }

Legend:
Removed from v.2058  
changed lines
  Added in v.2059

  ViewVC Help
Powered by ViewVC 1.1.20