@ Override public Object invoke ( Object proxy , final Method method , final Object [ ] args ) throws Throwable { try { return getClass ( ) . getMethod ( method . getName ( ) , method . getParameterTypes ( ) ) . invoke ( this , args ) ; } catch ( NoSuchMethodException e ) { // Ignore and let the SOAP client handler take over. } setHeaders ( ) ; RemoteCallReturn remoteCallReturn = callSoapClient ( createSoapCall ( soapClientHandler . getSoapClientMethod ( soapClient , method ) , args ) ) ; logSoapCall ( remoteCallReturn ) ; return unwrapRemoteCallReturn ( remoteCallReturn ) ; }
Wraps the underlying SOAP RPC such that first the method by its name is applied to the runtime class . If no such method exists it is assumed that the call is meant for the SOAP client . In this case the SOAP client handler will invoke the SOAP client method with provided arguments .