ContainsRpcLiteralBindings() public method

public ContainsRpcLiteralBindings ( ) : bool
return bool
Beispiel #1
0
        private static void TryTranslateRpc2DocumentLiteral(MetadataResolverOptions options)
        {
            // TODO: This will not work properly for file names like this my.wsdl.wsdl.
            string translatedWsdlFilename = options.MetadataLocation.Replace(".wsdl", "_transformed.wsdl");

            try
            {
                if (Rpc2DocumentLiteralTranslator.ContainsRpcLiteralBindings(options.MetadataLocation))
                {
                    // Execute the translation.
                    Rpc2DocumentLiteralTranslator r2d = Rpc2DocumentLiteralTranslator.Translate(options.MetadataLocation, translatedWsdlFilename);
                    options.MetadataLocation = translatedWsdlFilename;
                }
            }
            catch (Rpc2DocumentLiteralTranslationException)
            {
                // TODO: Log the exception details.c
            }
        }
 public static bool ContainsRpcLiteralBindings(XmlDocument wsdl)
 {
     Rpc2DocumentLiteralTranslator translator = new Rpc2DocumentLiteralTranslator(wsdl);
     return translator.ContainsRpcLiteralBindings();
 }
        public static bool ContainsRpcLiteralBindings(XmlDocument wsdl)
        {
            Rpc2DocumentLiteralTranslator translator = new Rpc2DocumentLiteralTranslator(wsdl);

            return(translator.ContainsRpcLiteralBindings());
        }