1
2
3
4
5
6
7
8 package org.ogf.srm11.service;
9
10 public class SRMServerV1Locator extends org.apache.axis.client.Service implements org.ogf.srm11.service.SRMServerV1 {
11
12
13
14
15
16 public SRMServerV1Locator() {
17 }
18
19
20 public SRMServerV1Locator(org.apache.axis.EngineConfiguration config) {
21 super(config);
22 }
23
24 public SRMServerV1Locator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
25 super(wsdlLoc, sName);
26 }
27
28
29 private java.lang.String ISRM_address = "http://131.225.13.36:24333/srm/managerv1";
30
31 public java.lang.String getISRMAddress() {
32 return ISRM_address;
33 }
34
35
36 private java.lang.String ISRMWSDDServiceName = "ISRM";
37
38 public java.lang.String getISRMWSDDServiceName() {
39 return ISRMWSDDServiceName;
40 }
41
42 public void setISRMWSDDServiceName(java.lang.String name) {
43 ISRMWSDDServiceName = name;
44 }
45
46 public org.ogf.srm11.service.ISRM getISRM() throws javax.xml.rpc.ServiceException {
47 java.net.URL endpoint;
48 try {
49 endpoint = new java.net.URL(ISRM_address);
50 }
51 catch (java.net.MalformedURLException e) {
52 throw new javax.xml.rpc.ServiceException(e);
53 }
54 return getISRM(endpoint);
55 }
56
57 public org.ogf.srm11.service.ISRM getISRM(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
58 try {
59 org.ogf.srm11.service.ISRMStub _stub = new org.ogf.srm11.service.ISRMStub(portAddress, this);
60 _stub.setPortName(getISRMWSDDServiceName());
61 return _stub;
62 }
63 catch (org.apache.axis.AxisFault e) {
64 return null;
65 }
66 }
67
68 public void setISRMEndpointAddress(java.lang.String address) {
69 ISRM_address = address;
70 }
71
72
73
74
75
76
77 public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
78 try {
79 if (org.ogf.srm11.service.ISRM.class.isAssignableFrom(serviceEndpointInterface)) {
80 org.ogf.srm11.service.ISRMStub _stub = new org.ogf.srm11.service.ISRMStub(new java.net.URL(ISRM_address), this);
81 _stub.setPortName(getISRMWSDDServiceName());
82 return _stub;
83 }
84 }
85 catch (java.lang.Throwable t) {
86 throw new javax.xml.rpc.ServiceException(t);
87 }
88 throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
89 }
90
91
92
93
94
95
96 public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
97 if (portName == null) {
98 return getPort(serviceEndpointInterface);
99 }
100 java.lang.String inputPortName = portName.getLocalPart();
101 if ("ISRM".equals(inputPortName)) {
102 return getISRM();
103 }
104 else {
105 java.rmi.Remote _stub = getPort(serviceEndpointInterface);
106 ((org.apache.axis.client.Stub) _stub).setPortName(portName);
107 return _stub;
108 }
109 }
110
111 public javax.xml.namespace.QName getServiceName() {
112 return new javax.xml.namespace.QName("http://srm.1.0.ns", "SRMServerV1");
113 }
114
115 private java.util.HashSet ports = null;
116
117 public java.util.Iterator getPorts() {
118 if (ports == null) {
119 ports = new java.util.HashSet();
120 ports.add(new javax.xml.namespace.QName("http://srm.1.0.ns", "ISRM"));
121 }
122 return ports.iterator();
123 }
124
125
126
127
128 public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
129
130 if ("ISRM".equals(portName)) {
131 setISRMEndpointAddress(address);
132 }
133 else
134 {
135 throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
136 }
137 }
138
139
140
141
142 public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
143 setEndpointAddress(portName.getLocalPart(), address);
144 }
145
146 }