| 20640 |
amit.gupta |
1 |
/**
|
|
|
2 |
* WayBillGenerationLocator.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 |
|
|
|
8 |
package com.bluedart.stub;
|
|
|
9 |
|
|
|
10 |
public class WayBillGenerationLocator extends org.apache.axis.client.Service implements com.bluedart.stub.WayBillGeneration {
|
|
|
11 |
|
|
|
12 |
public WayBillGenerationLocator() {
|
|
|
13 |
}
|
|
|
14 |
|
|
|
15 |
|
|
|
16 |
public WayBillGenerationLocator(org.apache.axis.EngineConfiguration config) {
|
|
|
17 |
super(config);
|
|
|
18 |
}
|
|
|
19 |
|
|
|
20 |
public WayBillGenerationLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
|
|
|
21 |
super(wsdlLoc, sName);
|
|
|
22 |
}
|
|
|
23 |
|
|
|
24 |
// Use to get a proxy class for WSHttpBinding_IWayBillGeneration
|
|
|
25 |
private java.lang.String WSHttpBinding_IWayBillGeneration_address = "http://netconnect.bluedart.com/Ver1.7/Demo/ShippingAPI/WayBill/WayBillGeneration.svc";
|
|
|
26 |
|
|
|
27 |
public java.lang.String getWSHttpBinding_IWayBillGenerationAddress() {
|
|
|
28 |
return WSHttpBinding_IWayBillGeneration_address;
|
|
|
29 |
}
|
|
|
30 |
|
|
|
31 |
// The WSDD service name defaults to the port name.
|
|
|
32 |
private java.lang.String WSHttpBinding_IWayBillGenerationWSDDServiceName = "WSHttpBinding_IWayBillGeneration";
|
|
|
33 |
|
|
|
34 |
public java.lang.String getWSHttpBinding_IWayBillGenerationWSDDServiceName() {
|
|
|
35 |
return WSHttpBinding_IWayBillGenerationWSDDServiceName;
|
|
|
36 |
}
|
|
|
37 |
|
|
|
38 |
public void setWSHttpBinding_IWayBillGenerationWSDDServiceName(java.lang.String name) {
|
|
|
39 |
WSHttpBinding_IWayBillGenerationWSDDServiceName = name;
|
|
|
40 |
}
|
|
|
41 |
|
|
|
42 |
public com.bluedart.stub.IWayBillGeneration getWSHttpBinding_IWayBillGeneration() throws javax.xml.rpc.ServiceException {
|
|
|
43 |
java.net.URL endpoint;
|
|
|
44 |
try {
|
|
|
45 |
endpoint = new java.net.URL(WSHttpBinding_IWayBillGeneration_address);
|
|
|
46 |
}
|
|
|
47 |
catch (java.net.MalformedURLException e) {
|
|
|
48 |
throw new javax.xml.rpc.ServiceException(e);
|
|
|
49 |
}
|
|
|
50 |
return getWSHttpBinding_IWayBillGeneration(endpoint);
|
|
|
51 |
}
|
|
|
52 |
|
|
|
53 |
public com.bluedart.stub.IWayBillGeneration getWSHttpBinding_IWayBillGeneration(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
|
|
|
54 |
try {
|
|
|
55 |
com.bluedart.stub.WSHttpBinding_IWayBillGenerationStub _stub = new com.bluedart.stub.WSHttpBinding_IWayBillGenerationStub(portAddress, this);
|
|
|
56 |
_stub.setPortName(getWSHttpBinding_IWayBillGenerationWSDDServiceName());
|
|
|
57 |
return _stub;
|
|
|
58 |
}
|
|
|
59 |
catch (org.apache.axis.AxisFault e) {
|
|
|
60 |
return null;
|
|
|
61 |
}
|
|
|
62 |
}
|
|
|
63 |
|
|
|
64 |
public void setWSHttpBinding_IWayBillGenerationEndpointAddress(java.lang.String address) {
|
|
|
65 |
WSHttpBinding_IWayBillGeneration_address = address;
|
|
|
66 |
}
|
|
|
67 |
|
|
|
68 |
|
|
|
69 |
// Use to get a proxy class for BasicHttpBinding_IWayBillGeneration
|
|
|
70 |
private java.lang.String BasicHttpBinding_IWayBillGeneration_address = "http://netconnect.bluedart.com/Ver1.7/Demo/ShippingAPI/WayBill/WayBillGeneration.svc/Basic";
|
|
|
71 |
|
|
|
72 |
public java.lang.String getBasicHttpBinding_IWayBillGenerationAddress() {
|
|
|
73 |
return BasicHttpBinding_IWayBillGeneration_address;
|
|
|
74 |
}
|
|
|
75 |
|
|
|
76 |
// The WSDD service name defaults to the port name.
|
|
|
77 |
private java.lang.String BasicHttpBinding_IWayBillGenerationWSDDServiceName = "BasicHttpBinding_IWayBillGeneration";
|
|
|
78 |
|
|
|
79 |
public java.lang.String getBasicHttpBinding_IWayBillGenerationWSDDServiceName() {
|
|
|
80 |
return BasicHttpBinding_IWayBillGenerationWSDDServiceName;
|
|
|
81 |
}
|
|
|
82 |
|
|
|
83 |
public void setBasicHttpBinding_IWayBillGenerationWSDDServiceName(java.lang.String name) {
|
|
|
84 |
BasicHttpBinding_IWayBillGenerationWSDDServiceName = name;
|
|
|
85 |
}
|
|
|
86 |
|
|
|
87 |
public com.bluedart.stub.IWayBillGeneration getBasicHttpBinding_IWayBillGeneration() throws javax.xml.rpc.ServiceException {
|
|
|
88 |
java.net.URL endpoint;
|
|
|
89 |
try {
|
|
|
90 |
endpoint = new java.net.URL(BasicHttpBinding_IWayBillGeneration_address);
|
|
|
91 |
}
|
|
|
92 |
catch (java.net.MalformedURLException e) {
|
|
|
93 |
throw new javax.xml.rpc.ServiceException(e);
|
|
|
94 |
}
|
|
|
95 |
return getBasicHttpBinding_IWayBillGeneration(endpoint);
|
|
|
96 |
}
|
|
|
97 |
|
|
|
98 |
public com.bluedart.stub.IWayBillGeneration getBasicHttpBinding_IWayBillGeneration(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
|
|
|
99 |
try {
|
|
|
100 |
com.bluedart.stub.BasicHttpBinding_IWayBillGenerationStub _stub = new com.bluedart.stub.BasicHttpBinding_IWayBillGenerationStub(portAddress, this);
|
|
|
101 |
_stub.setPortName(getBasicHttpBinding_IWayBillGenerationWSDDServiceName());
|
|
|
102 |
return _stub;
|
|
|
103 |
}
|
|
|
104 |
catch (org.apache.axis.AxisFault e) {
|
|
|
105 |
return null;
|
|
|
106 |
}
|
|
|
107 |
}
|
|
|
108 |
|
|
|
109 |
public void setBasicHttpBinding_IWayBillGenerationEndpointAddress(java.lang.String address) {
|
|
|
110 |
BasicHttpBinding_IWayBillGeneration_address = address;
|
|
|
111 |
}
|
|
|
112 |
|
|
|
113 |
/**
|
|
|
114 |
* For the given interface, get the stub implementation.
|
|
|
115 |
* If this service has no port for the given interface,
|
|
|
116 |
* then ServiceException is thrown.
|
|
|
117 |
* This service has multiple ports for a given interface;
|
|
|
118 |
* the proxy implementation returned may be indeterminate.
|
|
|
119 |
*/
|
|
|
120 |
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
|
|
|
121 |
try {
|
|
|
122 |
if (com.bluedart.stub.IWayBillGeneration.class.isAssignableFrom(serviceEndpointInterface)) {
|
|
|
123 |
com.bluedart.stub.WSHttpBinding_IWayBillGenerationStub _stub = new com.bluedart.stub.WSHttpBinding_IWayBillGenerationStub(new java.net.URL(WSHttpBinding_IWayBillGeneration_address), this);
|
|
|
124 |
_stub.setPortName(getWSHttpBinding_IWayBillGenerationWSDDServiceName());
|
|
|
125 |
return _stub;
|
|
|
126 |
}
|
|
|
127 |
if (com.bluedart.stub.IWayBillGeneration.class.isAssignableFrom(serviceEndpointInterface)) {
|
|
|
128 |
com.bluedart.stub.BasicHttpBinding_IWayBillGenerationStub _stub = new com.bluedart.stub.BasicHttpBinding_IWayBillGenerationStub(new java.net.URL(BasicHttpBinding_IWayBillGeneration_address), this);
|
|
|
129 |
_stub.setPortName(getBasicHttpBinding_IWayBillGenerationWSDDServiceName());
|
|
|
130 |
return _stub;
|
|
|
131 |
}
|
|
|
132 |
}
|
|
|
133 |
catch (java.lang.Throwable t) {
|
|
|
134 |
throw new javax.xml.rpc.ServiceException(t);
|
|
|
135 |
}
|
|
|
136 |
throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
|
|
|
137 |
}
|
|
|
138 |
|
|
|
139 |
/**
|
|
|
140 |
* For the given interface, get the stub implementation.
|
|
|
141 |
* If this service has no port for the given interface,
|
|
|
142 |
* then ServiceException is thrown.
|
|
|
143 |
*/
|
|
|
144 |
public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
|
|
|
145 |
if (portName == null) {
|
|
|
146 |
return getPort(serviceEndpointInterface);
|
|
|
147 |
}
|
|
|
148 |
java.lang.String inputPortName = portName.getLocalPart();
|
|
|
149 |
if ("WSHttpBinding_IWayBillGeneration".equals(inputPortName)) {
|
|
|
150 |
return getWSHttpBinding_IWayBillGeneration();
|
|
|
151 |
}
|
|
|
152 |
else if ("BasicHttpBinding_IWayBillGeneration".equals(inputPortName)) {
|
|
|
153 |
return getBasicHttpBinding_IWayBillGeneration();
|
|
|
154 |
}
|
|
|
155 |
else {
|
|
|
156 |
java.rmi.Remote _stub = getPort(serviceEndpointInterface);
|
|
|
157 |
((org.apache.axis.client.Stub) _stub).setPortName(portName);
|
|
|
158 |
return _stub;
|
|
|
159 |
}
|
|
|
160 |
}
|
|
|
161 |
|
|
|
162 |
public javax.xml.namespace.QName getServiceName() {
|
|
|
163 |
return new javax.xml.namespace.QName("http://tempuri.org/", "WayBillGeneration");
|
|
|
164 |
}
|
|
|
165 |
|
|
|
166 |
private java.util.HashSet ports = null;
|
|
|
167 |
|
|
|
168 |
public java.util.Iterator getPorts() {
|
|
|
169 |
if (ports == null) {
|
|
|
170 |
ports = new java.util.HashSet();
|
|
|
171 |
ports.add(new javax.xml.namespace.QName("http://tempuri.org/", "WSHttpBinding_IWayBillGeneration"));
|
|
|
172 |
ports.add(new javax.xml.namespace.QName("http://tempuri.org/", "BasicHttpBinding_IWayBillGeneration"));
|
|
|
173 |
}
|
|
|
174 |
return ports.iterator();
|
|
|
175 |
}
|
|
|
176 |
|
|
|
177 |
/**
|
|
|
178 |
* Set the endpoint address for the specified port name.
|
|
|
179 |
*/
|
|
|
180 |
public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
|
|
|
181 |
|
|
|
182 |
if ("WSHttpBinding_IWayBillGeneration".equals(portName)) {
|
|
|
183 |
setWSHttpBinding_IWayBillGenerationEndpointAddress(address);
|
|
|
184 |
}
|
|
|
185 |
else
|
|
|
186 |
if ("BasicHttpBinding_IWayBillGeneration".equals(portName)) {
|
|
|
187 |
setBasicHttpBinding_IWayBillGenerationEndpointAddress(address);
|
|
|
188 |
}
|
|
|
189 |
else
|
|
|
190 |
{ // Unknown Port Name
|
|
|
191 |
throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
|
|
|
192 |
}
|
|
|
193 |
}
|
|
|
194 |
|
|
|
195 |
/**
|
|
|
196 |
* Set the endpoint address for the specified port name.
|
|
|
197 |
*/
|
|
|
198 |
public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
|
|
|
199 |
setEndpointAddress(portName.getLocalPart(), address);
|
|
|
200 |
}
|
|
|
201 |
|
|
|
202 |
}
|