1 7 8 package test.wsdl.interop4.groupi; 9 10 import org.apache.axis.Message; 11 import org.apache.axis.MessageContext; 12 import org.apache.axis.message.SOAPHeaderElement; 13 14 import java.util.Vector ; 15 16 public class Round4XSDTestSoapImpl implements test.wsdl.interop4.groupi.Round4XSDTestSoap{ 17 public void echoVoid() throws java.rmi.RemoteException { 18 return; 19 } 20 21 public int echoInteger(int inputInteger) throws java.rmi.RemoteException { 22 return inputInteger; 23 } 24 25 public float echoFloat(float inputFloat) throws java.rmi.RemoteException { 26 return inputFloat; 27 } 28 29 public java.lang.String echoString(java.lang.String inputString) throws java.rmi.RemoteException { 30 return inputString; 31 } 32 33 public byte[] echoBase64(byte[] inputBase64) throws java.rmi.RemoteException { 34 return inputBase64; 35 } 36 37 public java.util.Calendar echoDate(java.util.Calendar inputDate) throws java.rmi.RemoteException { 38 return inputDate; 39 } 40 41 public test.wsdl.interop4.groupi.xsd.SOAPComplexType echoComplexType(test.wsdl.interop4.groupi.xsd.SOAPComplexType inputComplexType) throws java.rmi.RemoteException { 42 return inputComplexType; 43 } 44 45 public int[] echoIntegerMultiOccurs(test.wsdl.interop4.groupi.ArrayOfInt inputIntegerMultiOccurs) throws java.rmi.RemoteException { 46 return inputIntegerMultiOccurs.get_int(); 47 } 48 49 public float[] echoFloatMultiOccurs(test.wsdl.interop4.groupi.ArrayOfFloat inputFloatMultiOccurs) throws java.rmi.RemoteException { 50 return inputFloatMultiOccurs.get_float(); 51 } 52 53 public java.lang.String [] echoStringMultiOccurs(test.wsdl.interop4.groupi.ArrayOfString inputStringMultiOccurs) throws java.rmi.RemoteException { 54 return inputStringMultiOccurs.getString(); 55 } 56 57 public test.wsdl.interop4.groupi.xsd.SOAPComplexType[] echoComplexTypeMultiOccurs(test.wsdl.interop4.groupi.xsd.ArrayOfSOAPComplexType inputComplexTypeMultiOccurs) throws java.rmi.RemoteException { 58 return inputComplexTypeMultiOccurs.getSOAPComplexType(); 59 } 60 61 public java.math.BigDecimal echoDecimal(java.math.BigDecimal inputDecimal) throws java.rmi.RemoteException { 62 return inputDecimal; 63 } 64 65 public boolean echoBoolean(boolean inputBoolean) throws java.rmi.RemoteException { 66 return inputBoolean; 67 } 68 69 public byte[] echoHexBinary(byte[] inputHexBinary) throws java.rmi.RemoteException { 70 return inputHexBinary; 71 } 72 73 public void echoComplexTypeAsSimpleTypes(test.wsdl.interop4.groupi.xsd.SOAPComplexType inputComplexType, javax.xml.rpc.holders.StringHolder outputString, javax.xml.rpc.holders.IntHolder outputInteger, javax.xml.rpc.holders.FloatHolder outputFloat) throws java.rmi.RemoteException { 74 outputString.value = new java.lang.String (inputComplexType.getVarString()); 75 outputInteger.value = inputComplexType.getVarInt(); 76 outputFloat.value = inputComplexType.getVarFloat(); 77 } 78 79 public test.wsdl.interop4.groupi.xsd.SOAPComplexType echoSimpleTypesAsComplexType(java.lang.String inputString, int inputInteger, float inputFloat) throws java.rmi.RemoteException { 80 test.wsdl.interop4.groupi.xsd.SOAPComplexType output = new test.wsdl.interop4.groupi.xsd.SOAPComplexType(); 81 output.setVarFloat(inputFloat); 82 output.setVarInt(inputInteger); 83 output.setVarString(inputString); 84 return output; 85 } 86 87 public test.wsdl.interop4.groupi.xsd.SOAPComplexTypeComplexType echoNestedComplexType(test.wsdl.interop4.groupi.xsd.SOAPComplexTypeComplexType inputComplexType) throws java.rmi.RemoteException { 88 return inputComplexType; 89 } 90 91 public test.wsdl.interop4.groupi.xsd.SOAPMultiOccursComplexType echoNestedMultiOccurs(test.wsdl.interop4.groupi.xsd.SOAPMultiOccursComplexType inputComplexType) throws java.rmi.RemoteException { 92 return inputComplexType; 93 } 94 95 public test.wsdl.interop4.groupi.xsd.ChoiceComplexType echoChoice(test.wsdl.interop4.groupi.xsd.ChoiceComplexType inputChoice) throws java.rmi.RemoteException { 96 return inputChoice; 97 } 98 99 public test.wsdl.interop4.groupi.xsd.Enum echoEnum(test.wsdl.interop4.groupi.xsd.Enum inputEnum) throws java.rmi.RemoteException { 100 return inputEnum; 101 } 102 103 public java.lang.Object echoAnyType(java.lang.Object inputAnyType) throws java.rmi.RemoteException { 104 return inputAnyType; 105 } 106 107 public test.wsdl.interop4.groupi.EchoAnyElementResponseReturn echoAnyElement(test.wsdl.interop4.groupi.EchoAnyElementInputAny inputAny) throws java.rmi.RemoteException { 108 test.wsdl.interop4.groupi.EchoAnyElementResponseReturn output = new test.wsdl.interop4.groupi.EchoAnyElementResponseReturn(); 109 output.set_any(inputAny.get_any()); 110 return output; 111 } 112 113 public void echoVoidSoapHeader() throws java.rmi.RemoteException { 114 MessageContext context = MessageContext.getCurrentContext(); 115 Message request = context.getRequestMessage(); 116 Message response = context.getResponseMessage(); 117 Vector headers = request.getSOAPEnvelope().getHeaders(); 118 for (int i=0;i<headers.size();i++) { 119 SOAPHeaderElement header = (SOAPHeaderElement)headers.get(i); 120 response.getSOAPEnvelope().addHeader(header); 121 } 122 } 123 } 124 | Popular Tags |