WSUpDaxingMeteringSystemFacadeSrvProxyServiceLocator.java 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. /**
  2. * WSUpDaxingMeteringSystemFacadeSrvProxyServiceLocator.java
  3. *
  4. * This file was auto-generated from WSDL
  5. * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
  6. */
  7. package com.steerinfo.dil.wsdl;
  8. public class WSUpDaxingMeteringSystemFacadeSrvProxyServiceLocator extends org.apache.axis.client.Service implements WSUpDaxingMeteringSystemFacadeSrvProxyService {
  9. public WSUpDaxingMeteringSystemFacadeSrvProxyServiceLocator() {
  10. }
  11. public WSUpDaxingMeteringSystemFacadeSrvProxyServiceLocator(org.apache.axis.EngineConfiguration config) {
  12. super(config);
  13. }
  14. public WSUpDaxingMeteringSystemFacadeSrvProxyServiceLocator(String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
  15. super(wsdlLoc, sName);
  16. }
  17. // Use to get a proxy class for WSUpDaxingMeteringSystemFacade
  18. private String WSUpDaxingMeteringSystemFacade_address = "http://172.16.33.111:8888/ormrpc/services/WSUpDaxingMeteringSystemFacade";
  19. public String getWSUpDaxingMeteringSystemFacadeAddress() {
  20. return WSUpDaxingMeteringSystemFacade_address;
  21. }
  22. // The WSDD service name defaults to the port name.
  23. private String WSUpDaxingMeteringSystemFacadeWSDDServiceName = "WSUpDaxingMeteringSystemFacade";
  24. public String getWSUpDaxingMeteringSystemFacadeWSDDServiceName() {
  25. return WSUpDaxingMeteringSystemFacadeWSDDServiceName;
  26. }
  27. public void setWSUpDaxingMeteringSystemFacadeWSDDServiceName(String name) {
  28. WSUpDaxingMeteringSystemFacadeWSDDServiceName = name;
  29. }
  30. public WSUpDaxingMeteringSystemFacadeSrvProxy getWSUpDaxingMeteringSystemFacade() throws javax.xml.rpc.ServiceException {
  31. java.net.URL endpoint;
  32. try {
  33. endpoint = new java.net.URL(WSUpDaxingMeteringSystemFacade_address);
  34. }
  35. catch (java.net.MalformedURLException e) {
  36. throw new javax.xml.rpc.ServiceException(e);
  37. }
  38. return getWSUpDaxingMeteringSystemFacade(endpoint);
  39. }
  40. public WSUpDaxingMeteringSystemFacadeSrvProxy getWSUpDaxingMeteringSystemFacade(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
  41. try {
  42. WSUpDaxingMeteringSystemFacadeSoapBindingStub _stub = new WSUpDaxingMeteringSystemFacadeSoapBindingStub(portAddress, this);
  43. _stub.setPortName(getWSUpDaxingMeteringSystemFacadeWSDDServiceName());
  44. return _stub;
  45. }
  46. catch (org.apache.axis.AxisFault e) {
  47. return null;
  48. }
  49. }
  50. public void setWSUpDaxingMeteringSystemFacadeEndpointAddress(String address) {
  51. WSUpDaxingMeteringSystemFacade_address = address;
  52. }
  53. /**
  54. * For the given interface, get the stub implementation.
  55. * If this service has no port for the given interface,
  56. * then ServiceException is thrown.
  57. */
  58. public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
  59. try {
  60. if (WSUpDaxingMeteringSystemFacadeSrvProxy.class.isAssignableFrom(serviceEndpointInterface)) {
  61. WSUpDaxingMeteringSystemFacadeSoapBindingStub _stub = new WSUpDaxingMeteringSystemFacadeSoapBindingStub(new java.net.URL(WSUpDaxingMeteringSystemFacade_address), this);
  62. _stub.setPortName(getWSUpDaxingMeteringSystemFacadeWSDDServiceName());
  63. return _stub;
  64. }
  65. }
  66. catch (Throwable t) {
  67. throw new javax.xml.rpc.ServiceException(t);
  68. }
  69. throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
  70. }
  71. /**
  72. * For the given interface, get the stub implementation.
  73. * If this service has no port for the given interface,
  74. * then ServiceException is thrown.
  75. */
  76. public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
  77. if (portName == null) {
  78. return getPort(serviceEndpointInterface);
  79. }
  80. String inputPortName = portName.getLocalPart();
  81. if ("WSUpDaxingMeteringSystemFacade".equals(inputPortName)) {
  82. return getWSUpDaxingMeteringSystemFacade();
  83. }
  84. else {
  85. java.rmi.Remote _stub = getPort(serviceEndpointInterface);
  86. ((org.apache.axis.client.Stub) _stub).setPortName(portName);
  87. return _stub;
  88. }
  89. }
  90. public javax.xml.namespace.QName getServiceName() {
  91. return new javax.xml.namespace.QName("http://172.16.33.111:8888/ormrpc/services/WSUpDaxingMeteringSystemFacade", "WSUpDaxingMeteringSystemFacadeSrvProxyService");
  92. }
  93. private java.util.HashSet ports = null;
  94. public java.util.Iterator getPorts() {
  95. if (ports == null) {
  96. ports = new java.util.HashSet();
  97. ports.add(new javax.xml.namespace.QName("http://172.16.33.111:8888/ormrpc/services/WSUpDaxingMeteringSystemFacade", "WSUpDaxingMeteringSystemFacade"));
  98. }
  99. return ports.iterator();
  100. }
  101. /**
  102. * Set the endpoint address for the specified port name.
  103. */
  104. public void setEndpointAddress(String portName, String address) throws javax.xml.rpc.ServiceException {
  105. if ("WSUpDaxingMeteringSystemFacade".equals(portName)) {
  106. setWSUpDaxingMeteringSystemFacadeEndpointAddress(address);
  107. }
  108. else
  109. { // Unknown Port Name
  110. throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
  111. }
  112. }
  113. /**
  114. * Set the endpoint address for the specified port name.
  115. */
  116. public void setEndpointAddress(javax.xml.namespace.QName portName, String address) throws javax.xml.rpc.ServiceException {
  117. setEndpointAddress(portName.getLocalPart(), address);
  118. }
  119. }