Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: interop/wsifserviceWrapped/InteropDocSvcLocator.java


1   /**
2    * InteropDocSvcLocator.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis WSDL2Java emitter.
6    */
7   
8   package interop.wsifserviceWrapped;
9   
10  public class InteropDocSvcLocator extends org.apache.axis.client.Service implements interop.wsifserviceWrapped.InteropDocSvc {
11  
12      // Use to get a proxy class for interopDocPort
13      private final java.lang.String interopDocPort_address = "http://www.whitemesa.net/interopdoc";
14  
15      public java.lang.String getinteropDocPortAddress() {
16          return interopDocPort_address;
17      }
18  
19      // The WSDD service name defaults to the port name.
20      private java.lang.String interopDocPortWSDDServiceName = "interopDocPort";
21  
22      public java.lang.String getinteropDocPortWSDDServiceName() {
23          return interopDocPortWSDDServiceName;
24      }
25  
26      public void setinteropDocPortWSDDServiceName(java.lang.String name) {
27          interopDocPortWSDDServiceName = name;
28      }
29  
30      public interop.wsifserviceWrapped.Doc_TestPortType getinteropDocPort() throws javax.xml.rpc.ServiceException {
31         java.net.URL endpoint;
32          try {
33              endpoint = new java.net.URL(interopDocPort_address);
34          }
35          catch (java.net.MalformedURLException e) {
36              return null; // unlikely as URL was validated in WSDL2Java
37          }
38          return getinteropDocPort(endpoint);
39      }
40  
41      public interop.wsifserviceWrapped.Doc_TestPortType getinteropDocPort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
42          try {
43              interop.wsifserviceWrapped.Doc_Test_BindingStub _stub = new interop.wsifserviceWrapped.Doc_Test_BindingStub(portAddress, this);
44              _stub.setPortName(getinteropDocPortWSDDServiceName());
45              return _stub;
46          }
47          catch (org.apache.axis.AxisFault e) {
48              return null;
49          }
50      }
51  
52      /**
53       * For the given interface, get the stub implementation.
54       * If this service has no port for the given interface,
55       * then ServiceException is thrown.
56       */
57      public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
58          try {
59              if (interop.wsifserviceWrapped.Doc_TestPortType.class.isAssignableFrom(serviceEndpointInterface)) {
60                  interop.wsifserviceWrapped.Doc_Test_BindingStub _stub = new interop.wsifserviceWrapped.Doc_Test_BindingStub(new java.net.URL(interopDocPort_address), this);
61                  _stub.setPortName(getinteropDocPortWSDDServiceName());
62                  return _stub;
63              }
64          }
65          catch (java.lang.Throwable t) {
66              throw new javax.xml.rpc.ServiceException(t);
67          }
68          throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface:  " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
69      }
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          java.rmi.Remote _stub = getPort(serviceEndpointInterface);
78          ((org.apache.axis.client.Stub) _stub).setPortName(portName);
79          return _stub;
80      }
81  
82      public javax.xml.namespace.QName getServiceName() {
83          return new javax.xml.namespace.QName("http://soapinterop.org/", "interopDocSvc");
84      }
85  
86      private java.util.HashSet ports = null;
87  
88      public java.util.Iterator getPorts() {
89          if (ports == null) {
90              ports = new java.util.HashSet();
91              ports.add(new javax.xml.namespace.QName("interopDocPort"));
92          }
93          return ports.iterator();
94      }
95  
96  }