| 1 |
/** |
| 2 |
* Implementation of simple RPC encoded fault services for interop4 tests |
| 3 |
* |
| 4 |
* This file was auto-generated from WSDL |
| 5 |
* by the Apache Axis WSDL2Java emitter. |
| 6 |
* |
| 7 |
* @author Glen Daniels ([email protected]) |
| 8 |
*/ |
| 9 |
|
| 10 |
package test.wsdl.interop4.groupH.simpleRPCenc; |
| 11 |
|
| 12 |
public class SimpleRpcEncBindingImpl implements test.wsdl.interop4.groupH.simpleRPCenc.SimpleRpcEncPortType{ |
| 13 |
public void echoEmptyFault() throws java.rmi.RemoteException, test.wsdl.interop4.groupH.simpleRPCenc.EmptyFault { |
| 14 |
throw new EmptyFault(); |
| 15 |
} |
| 16 |
|
| 17 |
public void echoStringFault(java.lang.String param) throws java.rmi.RemoteException, test.wsdl.interop4.groupH.simpleRPCenc.StringFault { |
| 18 |
StringFault fault = new StringFault(param); |
| 19 |
throw fault; |
| 20 |
} |
| 21 |
|
| 22 |
public void echoIntArrayFault(int[] param) throws java.rmi.RemoteException, test.wsdl.interop4.groupH.simpleRPCenc.IntArrayFault { |
| 23 |
throw new IntArrayFault(param); |
| 24 |
} |
| 25 |
|
| 26 |
public void echoMultipleFaults1(int whichFault, java.lang.String param1, float[] param2) throws java.rmi.RemoteException, test.wsdl.interop4.groupH.simpleRPCenc.FloatArrayFault, test.wsdl.interop4.groupH.simpleRPCenc.StringFault, test.wsdl.interop4.groupH.simpleRPCenc.EmptyFault { |
| 27 |
switch (whichFault) { |
| 28 |
case 2: |
| 29 |
throw new StringFault(param1); |
| 30 |
case 3: |
| 31 |
throw new FloatArrayFault(param2); |
| 32 |
default: |
| 33 |
throw new EmptyFault(); |
| 34 |
} |
| 35 |
} |
| 36 |
|
| 37 |
public void echoMultipleFaults2(int whichFault, java.lang.String param1, float param2, java.lang.String[] param3) throws java.rmi.RemoteException, test.wsdl.interop4.groupH.simpleRPCenc.StringArrayFault, test.wsdl.interop4.groupH.simpleRPCenc.FloatFault, test.wsdl.interop4.groupH.simpleRPCenc.StringFault { |
| 38 |
switch (whichFault) { |
| 39 |
case 2: |
| 40 |
throw new StringFault(param1); |
| 41 |
case 3: |
| 42 |
throw new StringArrayFault(param3); |
| 43 |
default: |
| 44 |
throw new FloatFault(param2); |
| 45 |
} |
| 46 |
} |
| 47 |
|
| 48 |
public void echoMultipleFaults3(int whichFault, java.lang.String param1, java.lang.String param2) throws java.rmi.RemoteException, test.wsdl.interop4.groupH.simpleRPCenc.String2Fault, test.wsdl.interop4.groupH.simpleRPCenc.StringFault { |
| 49 |
switch (whichFault) { |
| 50 |
case 2: |
| 51 |
throw new String2Fault(param2); |
| 52 |
default: |
| 53 |
throw new StringFault(param1); |
| 54 |
} |
| 55 |
} |
| 56 |
|
| 57 |
public void echoMultipleFaults4(int whichFault, int param1, test.wsdl.interop4.groupH.simpleRPCenc.Enum param2) throws java.rmi.RemoteException, test.wsdl.interop4.groupH.simpleRPCenc.EnumFault, test.wsdl.interop4.groupH.simpleRPCenc.IntFault { |
| 58 |
switch (whichFault) { |
| 59 |
case 2: |
| 60 |
throw new EnumFault(param2); |
| 61 |
default: |
| 62 |
throw new IntFault(param1); |
| 63 |
} |
| 64 |
} |
| 65 |
} |