WSFaceFacadeSrvProxyServiceLocator.java 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. /**
  2. * WSFaceFacadeSrvProxyServiceLocator.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 WSFaceFacadeSrvProxyServiceLocator extends org.apache.axis.client.Service implements com.steerinfo.dil.wsdl.WSFaceFacadeSrvProxyService {
  9. public WSFaceFacadeSrvProxyServiceLocator() {
  10. }
  11. public WSFaceFacadeSrvProxyServiceLocator(org.apache.axis.EngineConfiguration config) {
  12. super(config);
  13. }
  14. public WSFaceFacadeSrvProxyServiceLocator(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 WSFaceFacade
  18. private String WSFaceFacade_address = "http://172.16.62.243:56898/ormrpc/services/WSFaceFacade";
  19. public String getWSFaceFacadeAddress() {
  20. return WSFaceFacade_address;
  21. }
  22. // The WSDD service name defaults to the port name.
  23. private String WSFaceFacadeWSDDServiceName = "WSFaceFacade";
  24. public String getWSFaceFacadeWSDDServiceName() {
  25. return WSFaceFacadeWSDDServiceName;
  26. }
  27. public void setWSFaceFacadeWSDDServiceName(String name) {
  28. WSFaceFacadeWSDDServiceName = name;
  29. }
  30. public com.steerinfo.dil.wsdl.WSFaceFacadeSrvProxy getWSFaceFacade() throws javax.xml.rpc.ServiceException {
  31. java.net.URL endpoint;
  32. try {
  33. endpoint = new java.net.URL(WSFaceFacade_address);
  34. }
  35. catch (java.net.MalformedURLException e) {
  36. throw new javax.xml.rpc.ServiceException(e);
  37. }
  38. return getWSFaceFacade(endpoint);
  39. }
  40. public com.steerinfo.dil.wsdl.WSFaceFacadeSrvProxy getWSFaceFacade(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
  41. try {
  42. com.steerinfo.dil.wsdl.WSFaceFacadeSoapBindingStub _stub = new com.steerinfo.dil.wsdl.WSFaceFacadeSoapBindingStub(portAddress, this);
  43. _stub.setPortName(getWSFaceFacadeWSDDServiceName());
  44. return _stub;
  45. }
  46. catch (org.apache.axis.AxisFault e) {
  47. return null;
  48. }
  49. }
  50. public void setWSFaceFacadeEndpointAddress(String address) {
  51. WSFaceFacade_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 (com.steerinfo.dil.wsdl.WSFaceFacadeSrvProxy.class.isAssignableFrom(serviceEndpointInterface)) {
  61. com.steerinfo.dil.wsdl.WSFaceFacadeSoapBindingStub _stub = new com.steerinfo.dil.wsdl.WSFaceFacadeSoapBindingStub(new java.net.URL(WSFaceFacade_address), this);
  62. _stub.setPortName(getWSFaceFacadeWSDDServiceName());
  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 ("WSFaceFacade".equals(inputPortName)) {
  82. return getWSFaceFacade();
  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.62.243:56898/ormrpc/services/WSFaceFacade", "WSFaceFacadeSrvProxyService");
  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.62.243:56898/ormrpc/services/WSFaceFacade", "WSFaceFacade"));
  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 ("WSFaceFacade".equals(portName)) {
  106. setWSFaceFacadeEndpointAddress(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. }