Esempio n. 1
0
		public override WebServiceDiscoveryResult Load (WebReferenceItem item)
		{
			// Read the map file into the discovery client protocol and setup the code generator
			var protocol = new DiscoveryProtocol ();
			protocol.ReadAllUseBasePath (item.MapFile.FilePath);
			return new WebServiceDiscoveryResultWS (protocol, item);
		}
Esempio n. 2
0
        static string GetUrl(FilePath mapPath)
        {
            var protocol = new DiscoveryProtocol();

            protocol.ReadAllUseBasePath(mapPath);

            // Refresh the disco and wsdl from the server
            foreach (object doc in protocol.References.Values)
            {
                string url = null;
                var    discoveryDocumentReference = doc as DiscoveryDocumentReference;
                if (discoveryDocumentReference != null)
                {
                    url = discoveryDocumentReference.Url;
                }
                else
                {
                    var contractReference = doc as ContractReference;
                    if (contractReference != null)
                    {
                        url = contractReference.Url;
                    }
                }

                if (!string.IsNullOrEmpty(url))
                {
                    return(url);
                }
            }
            return(null);
        }
        string GetUrl(FilePath mapPath)
        {
            DiscoveryProtocol protocol = new DiscoveryProtocol();

            protocol.ReadAllUseBasePath(mapPath);

            // Refresh the disco and wsdl from the server
            foreach (object doc in protocol.References.Values)
            {
                string url = null;
                if (doc is DiscoveryDocumentReference)
                {
                    url = ((DiscoveryDocumentReference)doc).Url;
                }
                else if (doc is ContractReference)
                {
                    url = ((ContractReference)doc).Url;
                }

                if (!string.IsNullOrEmpty(url))
                {
                    return(url);
                }
            }
            return(null);
        }
Esempio n. 4
0
        public override WebServiceDiscoveryResult Load(WebReferenceItem item)
        {
            // Read the map file into the discovery client protocol and setup the code generator
            var protocol = new DiscoveryProtocol();

            protocol.ReadAllUseBasePath(item.MapFile.FilePath);
            return(new WebServiceDiscoveryResultWS(protocol, item));
        }
Esempio n. 5
0
		static string GetUrl (FilePath mapPath)
		{
			var protocol = new DiscoveryProtocol ();
			protocol.ReadAllUseBasePath (mapPath);
			
			// Refresh the disco and wsdl from the server
			foreach (object doc in protocol.References.Values) {
				string url = null;
				var discoveryDocumentReference = doc as DiscoveryDocumentReference;
				if (discoveryDocumentReference != null) {
					url = discoveryDocumentReference.Url;
				} else {
					var contractReference = doc as ContractReference;
					if (contractReference != null)
						url = contractReference.Url;
				}
				
				if (!string.IsNullOrEmpty (url))
					return url;
			}
			return null;
		}
		string GetUrl (FilePath mapPath)
		{
			DiscoveryProtocol protocol = new DiscoveryProtocol ();
			protocol.ReadAllUseBasePath (mapPath);
			
			// Refresh the disco and wsdl from the server
			foreach (object doc in protocol.References.Values) {
				string url = null;
				if (doc is DiscoveryDocumentReference) {
					url = ((DiscoveryDocumentReference)doc).Url;
				} else if (doc is ContractReference) {
					url = ((ContractReference)doc).Url;
				}
				
				if (!string.IsNullOrEmpty (url))
					return url;
			}
			return null;
		}