001: /**
002: * TravelServiceSoapBindingStub.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis WSDL2Java emitter.
006: */package net.sourceforge.bexee.Travel;
007:
008:public class TravelServiceSoapBindingStub extends org.apache.axis.client.Stub implements net.sourceforge.bexee.Travel.TravelService {
009: private java.util.Vector cachedSerClasses = new java.util.Vector();
010: private java.util.Vector cachedSerQNames = new java.util.Vector();
011: private java.util.Vector cachedSerFactories = new java.util.Vector();
012: private java.util.Vector cachedDeserFactories = new java.util.Vector();
013:
014: static org.apache.axis.description.OperationDesc [] _operations;
015:
016: static {
017: _operations = new org.apache.axis.description.OperationDesc[2];
018: org.apache.axis.description.OperationDesc oper;
019: oper = new org.apache.axis.description.OperationDesc();
020: oper.setName("book");
021: oper.addParameter(new javax.xml.namespace.QName("", "input"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, org.apache.axis.description.ParameterDesc.IN, false, false);
022: oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
023: oper.setReturnClass(java.lang.String.class);
024: oper.setReturnQName(new javax.xml.namespace.QName("", "bookReturn"));
025: oper.setStyle(org.apache.axis.enum.Style.RPC);
026: oper.setUse(org.apache.axis.enum.Use.ENCODED);
027: _operations[0] = oper;
028:
029: oper = new org.apache.axis.description.OperationDesc();
030: oper.setName("getOffer");
031: oper.addParameter(new javax.xml.namespace.QName("", "input"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, org.apache.axis.description.ParameterDesc.IN, false, false);
032: oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
033: oper.setReturnClass(java.lang.String.class);
034: oper.setReturnQName(new javax.xml.namespace.QName("", "getOfferReturn"));
035: oper.setStyle(org.apache.axis.enum.Style.RPC);
036: oper.setUse(org.apache.axis.enum.Use.ENCODED);
037: _operations[1] = oper;
038:
039: }
040:
041: public TravelServiceSoapBindingStub() throws org.apache.axis.AxisFault {
042: this (null);
043: }
044:
045: public TravelServiceSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
046: this (service);
047: super .cachedEndpoint = endpointURL;
048: }
049:
050: public TravelServiceSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
051: if (service == null) {
052: super .service = new org.apache.axis.client.Service();
053: } else {
054: super .service = service;
055: }
056: }
057:
058: private org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
059: try {
060: org.apache.axis.client.Call _call =
061: (org.apache.axis.client.Call) super .service.createCall();
062: if (super .maintainSessionSet) {
063: _call.setMaintainSession(super .maintainSession);
064: }
065: if (super .cachedUsername != null) {
066: _call.setUsername(super .cachedUsername);
067: }
068: if (super .cachedPassword != null) {
069: _call.setPassword(super .cachedPassword);
070: }
071: if (super .cachedEndpoint != null) {
072: _call.setTargetEndpointAddress(super .cachedEndpoint);
073: }
074: if (super .cachedTimeout != null) {
075: _call.setTimeout(super .cachedTimeout);
076: }
077: if (super .cachedPortName != null) {
078: _call.setPortName(super .cachedPortName);
079: }
080: java.util.Enumeration keys = super .cachedProperties.keys();
081: while (keys.hasMoreElements()) {
082: java.lang.String key = (java.lang.String) keys.nextElement();
083: _call.setProperty(key, super .cachedProperties.get(key));
084: }
085: return _call;
086: }
087: catch (java.lang.Throwable t) {
088: throw new org.apache.axis.AxisFault("Failure trying to get the Call object", t);
089: }
090: }
091:
092: public java.lang.String book(java.lang.String input) throws java.rmi.RemoteException {
093: if (super .cachedEndpoint == null) {
094: throw new org.apache.axis.NoEndPointException();
095: }
096: org.apache.axis.client.Call _call = createCall();
097: _call.setOperation(_operations[0]);
098: _call.setUseSOAPAction(true);
099: _call.setSOAPActionURI("");
100: _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
101: _call.setOperationName(new javax.xml.namespace.QName("http://bexee.sourceforge.net/Travel", "book"));
102:
103: setRequestHeaders(_call);
104: setAttachments(_call);
105: java.lang.Object _resp = _call.invoke(new java.lang.Object[] {input});
106:
107: if (_resp instanceof java.rmi.RemoteException) {
108: throw (java.rmi.RemoteException)_resp;
109: }
110: else {
111: extractAttachments(_call);
112: try {
113: return (java.lang.String) _resp;
114: } catch (java.lang.Exception _exception) {
115: return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String.class);
116: }
117: }
118: }
119:
120: public java.lang.String getOffer(java.lang.String input) throws java.rmi.RemoteException {
121: if (super .cachedEndpoint == null) {
122: throw new org.apache.axis.NoEndPointException();
123: }
124: org.apache.axis.client.Call _call = createCall();
125: _call.setOperation(_operations[1]);
126: _call.setUseSOAPAction(true);
127: _call.setSOAPActionURI("");
128: _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
129: _call.setOperationName(new javax.xml.namespace.QName("http://bexee.sourceforge.net/Travel", "getOffer"));
130:
131: setRequestHeaders(_call);
132: setAttachments(_call);
133: java.lang.Object _resp = _call.invoke(new java.lang.Object[] {input});
134:
135: if (_resp instanceof java.rmi.RemoteException) {
136: throw (java.rmi.RemoteException)_resp;
137: }
138: else {
139: extractAttachments(_call);
140: try {
141: return (java.lang.String) _resp;
142: } catch (java.lang.Exception _exception) {
143: return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String.class);
144: }
145: }
146: }
147:
148:}
|