KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > wsdl > wrapped_inout > WrappedInOutSoapImpl


1 /**
2  * WrappedInOutSoapImpl.java
3  *
4  * Tests .NET WSDL and functional signatures generated by WSDL2Java
5  */

6
7 package test.wsdl.wrapped_inout;
8
9 public class WrappedInOutSoapImpl implements test.wsdl.wrapped_inout.WrappedInOutInterface{
10     public java.lang.String JavaDoc echoString(java.lang.String JavaDoc inarg) throws java.rmi.RemoteException JavaDoc {
11         return inarg;
12     }
13
14     public java.lang.String JavaDoc echoStringIO(java.lang.String JavaDoc ioarg) throws java.rmi.RemoteException JavaDoc {
15         return ioarg;
16     }
17
18     public java.lang.String JavaDoc echoStringIOret(javax.xml.rpc.holders.StringHolder JavaDoc ioarg) throws java.rmi.RemoteException JavaDoc {
19         if (!ioarg.value.equals("in1")) {
20             throw new java.rmi.RemoteException JavaDoc("Input argument didn't match expected 'in1', got: " + ioarg.value);
21         }
22         ioarg.value = "out1";
23         return "return";
24     }
25
26     public void echoStringInIO(java.lang.String JavaDoc inarg, javax.xml.rpc.holders.StringHolder JavaDoc ioarg) throws java.rmi.RemoteException JavaDoc {
27         ioarg.value = inarg;
28     }
29
30     public java.lang.String JavaDoc echoStringBig(java.lang.String JavaDoc inarg, javax.xml.rpc.holders.StringHolder JavaDoc ioarg1, javax.xml.rpc.holders.StringHolder JavaDoc ioarg2) throws java.rmi.RemoteException JavaDoc {
31         ioarg1.value = "out1";
32         ioarg2.value = "out2";
33         return inarg;
34     }
35
36     public void helloInOut(javax.xml.rpc.holders.StringHolder JavaDoc inout1, javax.xml.rpc.holders.StringHolder JavaDoc inout2, javax.xml.rpc.holders.StringHolder JavaDoc inout3, javax.xml.rpc.holders.StringHolder JavaDoc inout4, java.lang.String JavaDoc inonly) throws java.rmi.RemoteException JavaDoc {
37         inout1.value = "out1";
38         inout2.value = "out2";
39         inout3.value = "out3";
40         inout4.value = "out4";
41         if (!inonly.equals("onlyInput")) {
42             throw new java.rmi.RemoteException JavaDoc("Input argument didn't match expected 'onlyInput', got: " + inonly);
43         }
44     }
45
46     public test.wsdl.wrapped_inout.Phone echoPhone(test.wsdl.wrapped_inout.Phone input) throws java.rmi.RemoteException JavaDoc {
47         return input;
48     }
49
50 }
51
Popular Tags