Esempio n. 1
0
        public static RETURN_TYPE CallWebMethod <RETURN_TYPE, INTERFACE_TYPE>(CSHTML5_ClientBase <INTERFACE_TYPE> clientBase, string methodName, Dictionary <string, Tuple <Type, object> > requestParameters) where INTERFACE_TYPE : class
        {
#if !FOR_DESIGN_TIME
            var webMethodsCaller = new CSHTML5_ClientBase <INTERFACE_TYPE> .WebMethodsCaller(clientBase.INTERNAL_RemoteAddressAsString);

            return((RETURN_TYPE)webMethodsCaller.CallWebMethod(methodName, typeof(INTERFACE_TYPE), typeof(RETURN_TYPE), requestParameters));
#else
            return(default(RETURN_TYPE));
#endif
        }
Esempio n. 2
0
        public static RETURN_TYPE CallWebMethod <RETURN_TYPE, INTERFACE_TYPE>(string endpointAddress, string methodName, Dictionary <string, Tuple <Type, object> > requestParameters, string soapVersion) where INTERFACE_TYPE : class
        {
#if !FOR_DESIGN_TIME
            var webMethodsCaller = new CSHTML5_ClientBase <INTERFACE_TYPE> .WebMethodsCaller(endpointAddress);

            return((RETURN_TYPE)webMethodsCaller.CallWebMethod(methodName, typeof(INTERFACE_TYPE), typeof(RETURN_TYPE), requestParameters, soapVersion));
#else
            return(default(RETURN_TYPE));
#endif
        }
Esempio n. 3
0
        public static RETURN_TYPE CallWebMethod <RETURN_TYPE, INTERFACE_TYPE>(
            string endpointAddress,
            string webMethodName,
            IDictionary <string, object> requestParameters,
            string soapVersion) where INTERFACE_TYPE : class
        {
            var webMethodsCaller = new CSHTML5_ClientBase <INTERFACE_TYPE> .WebMethodsCaller(endpointAddress);

            return((RETURN_TYPE)webMethodsCaller.CallWebMethod(
                       webMethodName,
                       typeof(INTERFACE_TYPE),
                       typeof(RETURN_TYPE),
                       requestParameters,
                       soapVersion));
        }
Esempio n. 4
0
        public static (RETURN_TYPE, Channels.MessageHeaders) CallWebMethod <RETURN_TYPE, INTERFACE_TYPE>(
            string endpointAddress,
            string webMethodName,
            IEnumerable <Channels.MessageHeader> outgoingMessageHeaders,
            IDictionary <string, object> requestParameters,
            string soapVersion) where INTERFACE_TYPE : class
        {
            var webMethodsCaller = new CSHTML5_ClientBase <INTERFACE_TYPE> .WebMethodsCaller(endpointAddress);

            var(typedResponseBody, incommingMessageHeaders) = webMethodsCaller.CallWebMethod(
                webMethodName,
                typeof(INTERFACE_TYPE),
                typeof(RETURN_TYPE),
                outgoingMessageHeaders,
                requestParameters,
                soapVersion);

            return((RETURN_TYPE)typedResponseBody, incommingMessageHeaders);
        }