WSDLOperation.java revision 6
c25356d5978632df6203437e1953bcb29e0c736fTimo Sirainen// The MIT License
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8Timo Sirainen// Copyright (c) 2004 Evren Sirin
1299f2c3723ca9ccf8f9e563ec23ee1a1721fe4cTimo Sirainen// Permission is hereby granted, free of charge, to any person obtaining a copy
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8Timo Sirainen// of this software and associated documentation files (the "Software"), to
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8Timo Sirainen// deal in the Software without restriction, including without limitation the
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8Timo Sirainen// sell copies of the Software, and to permit persons to whom the Software is
73bfdbe28c2ce6d143eadf0bab8ccfbe4cab0faeTimo Sirainen// furnished to do so, subject to the following conditions:
d8702d15ee7721ed1fcfc8f00a589970bd6b3598Timo Sirainen// The above copyright notice and this permission notice shall be included in
d8702d15ee7721ed1fcfc8f00a589970bd6b3598Timo Sirainen// all copies or substantial portions of the Software.
38505846b6d083e19f0a7d1373761bdda5d9a5a9Timo Sirainen// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2087543679f0b35a8f70e1277b234e66ffdf96edTimo Sirainen// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2087543679f0b35a8f70e1277b234e66ffdf96edTimo Sirainen// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
ff2f20bbc039ad8e362ead199366e21bc41f18edAki Tuomi// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
ff2f20bbc039ad8e362ead199366e21bc41f18edAki Tuomi// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
ff2f20bbc039ad8e362ead199366e21bc41f18edAki Tuomi// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
73bfdbe28c2ce6d143eadf0bab8ccfbe4cab0faeTimo Sirainen// IN THE SOFTWARE.
d1414c09cf0d58ac983054e2f4e1a1f329272dcfTimo Sirainenimport org.apache.axis.message.SOAPBodyElement;
87cc5e9025e7fb6408f0de64c48d2d2897773ba5Timo Sirainen public static boolean DEBUG = false;
73bfdbe28c2ce6d143eadf0bab8ccfbe4cab0faeTimo Sirainen return (WSDLParameter) getInputs().elementAt(i);
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8Timo Sirainen WSDLParameter in = (WSDLParameter) inputs.get(i);
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen if(paramName.equals(name) || URIUtils.getLocalName(paramName).equals(name))
6ef7e31619edfaa17ed044b45861d106a86191efTimo Sirainen return (WSDLParameter) getOutputs().elementAt(i);
a10ed8c47534b4c6b6bf2711ccfe577e720a47b4Timo Sirainen WSDLParameter out = (WSDLParameter) outputs.get(i);
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen public Vector getOutputs() { return outputs; }
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen void addInput(String name, QName type) { inputs.add(new WSDLParameter(name, type)); }
8eea67470c1bd8562a62e7445d930bb2079b1a43Timo Sirainen void addOutput(String name, QName type) { outputs.add(new WSDLParameter(name, type)); }
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen public String getName() { return call.getOperationName().getLocalPart(); }
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen public String getOperationName() { return operationName; }
64e244defe74f513ce94f33d000a048ddbe2ea23Timo Sirainen public void setOperationName(String s) { operationName = s; }
a10ed8c47534b4c6b6bf2711ccfe577e720a47b4Timo Sirainen public String getPortName() { return portName; }
a10ed8c47534b4c6b6bf2711ccfe577e720a47b4Timo Sirainen public void setPortName(String s) { portName = s; }
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8Timo Sirainen public String getInputMessageName() { return inputMessageName; }
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8Timo Sirainen public void setInputMessageName(String s) { inputMessageName = s; }
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen public String getOutputMessageName() { return outputMessageName; }
73bfdbe28c2ce6d143eadf0bab8ccfbe4cab0faeTimo Sirainen public void setOutputMessageName(String s) { outputMessageName = s; }
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8Timo Sirainen public WSDLService getService() { return service; }
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen public void setService(WSDLService s) { service = s; }
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8Timo Sirainen public String getDocumentation() { return documentation; }
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen public void setDocumentation(String s) { documentation = s; }
3b8d05391336c0e4d24c8ddcc962f350409ffbd3Timo Sirainen for(Iterator i = inputs./*values().*/iterator(); i.hasNext(); ) {
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8Timo Sirainen WSDLParameter param = (WSDLParameter) i.next();
if(DEBUG) {
if(DEBUG)
if(DEBUG) {
if(DEBUG) {
if(DEBUG)
if(DEBUG)
return envelope;
if(DEBUG)
if(DEBUG)
if(DEBUG)