Author: atsushi
Date: 2007-11-01 02:56:40 -0500 (Thu, 01 Nov 2007)
New Revision: 88627

Modified:
   trunk/mcs/tools/wsdl/ChangeLog
   trunk/mcs/tools/wsdl/MonoWSDL2.cs
Log:
2007-11-01  Atsushi Enomoto  <[EMAIL PROTECTED]>

        * MonoWSDL2.cs : it should be able to handle xml schemas that are
          passed as arguments, and those schemas could be used by *.wsdl.
          So, just use one WebReference to resolve everything at a time.
          (Part of #336739 fix.)



Modified: trunk/mcs/tools/wsdl/ChangeLog
===================================================================
--- trunk/mcs/tools/wsdl/ChangeLog      2007-11-01 07:37:18 UTC (rev 88626)
+++ trunk/mcs/tools/wsdl/ChangeLog      2007-11-01 07:56:40 UTC (rev 88627)
@@ -1,3 +1,10 @@
+2007-11-01  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * MonoWSDL2.cs : it should be able to handle xml schemas that are
+         passed as arguments, and those schemas could be used by *.wsdl.
+         So, just use one WebReference to resolve everything at a time.
+         (Part of #336739 fix.)
+
 2006-12-22  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
        * MonoWSDL2.cs : check BasicProfile conformance only for SOAP 1.1.

Modified: trunk/mcs/tools/wsdl/MonoWSDL2.cs
===================================================================
--- trunk/mcs/tools/wsdl/MonoWSDL2.cs   2007-11-01 07:37:18 UTC (rev 88626)
+++ trunk/mcs/tools/wsdl/MonoWSDL2.cs   2007-11-01 07:56:40 UTC (rev 88627)
@@ -127,9 +127,11 @@
                                codeUnit.Namespaces.Add (proxyCode);
                                
                                WebReferenceCollection references = new 
WebReferenceCollection ();
+
+                               DiscoveryClientProtocol dcc = CreateClient ();
+
                                foreach (string murl in urls) 
                                {
-                                       DiscoveryClientProtocol dcc = 
CreateClient ();
 
                                        string url = murl;
                                        if (!url.StartsWith ("http://";) && 
!url.StartsWith ("https://";) && !url.StartsWith ("file://"))
@@ -138,14 +140,15 @@
                                        dcc.DiscoverAny (url);
                                        dcc.ResolveAll ();
                                        
-                                       WebReference reference = new 
WebReference (dcc.Documents, proxyCode, protocol, appSettingURLKey, 
appSettingBaseURL);
-                                       references.Add (reference);
-                                       
-                                       if (sampleSoap != null)
-                                               ConsoleSampleGenerator.Generate 
(descriptions, schemas, sampleSoap, protocol);
                                }
                                
+                               WebReference reference = new WebReference 
(dcc.Documents, proxyCode, protocol, appSettingURLKey, appSettingBaseURL);
+                               references.Add (reference);
+                               
                                if (sampleSoap != null)
+                                       ConsoleSampleGenerator.Generate 
(descriptions, schemas, sampleSoap, protocol);
+                               
+                               if (sampleSoap != null)
                                        return 0;
                                        
                                // generate the code

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to