codeUnit.Namespaces.Add (proxyCode);\r
\r
WebReferenceCollection references = new WebReferenceCollection ();\r
+\r
+ DiscoveryClientProtocol dcc = CreateClient ();\r
+\r
foreach (string murl in urls) \r
{\r
- DiscoveryClientProtocol dcc = CreateClient ();\r
\r
string url = murl;\r
if (!url.StartsWith ("http://") && !url.StartsWith ("https://") && !url.StartsWith ("file://"))\r
dcc.DiscoverAny (url);\r
dcc.ResolveAll ();\r
\r
- WebReference reference = new WebReference (dcc.Documents, proxyCode, protocol, appSettingURLKey, appSettingBaseURL);\r
- references.Add (reference);\r
- \r
- if (sampleSoap != null)\r
- ConsoleSampleGenerator.Generate (descriptions, schemas, sampleSoap, protocol);\r
}\r
\r
+ WebReference reference = new WebReference (dcc.Documents, proxyCode, protocol, appSettingURLKey, appSettingBaseURL);\r
+ references.Add (reference);\r
+ \r
+ if (sampleSoap != null)\r
+ ConsoleSampleGenerator.Generate (descriptions, schemas, sampleSoap, protocol);\r
+ \r
if (sampleSoap != null)\r
return 0;\r
\r
WebReference wr = references [n];\r
\r
BasicProfileViolationCollection violations = new BasicProfileViolationCollection ();\r
- if (!WebServicesInteroperability.CheckConformance (WsiProfiles.BasicProfile1_1, wr, violations)) {\r
+ if (String.Compare (protocol, "SOAP", StringComparison.OrdinalIgnoreCase) == 0 && !WebServicesInteroperability.CheckConformance (WsiProfiles.BasicProfile1_1, wr, violations)) {\r
wr.Warnings |= ServiceDescriptionImportWarnings.WsiConformance;\r
}\r
\r
{\r
if (!hasWarnings) {\r
WriteText ("", 0, 0);\r
- WriteText ("There where some warnings while generating the code:", 0, 0);\r
+ WriteText ("There were some warnings while generating the code:", 0, 0);\r
}\r
\r
WriteText ("", 0, 0);\r