[Mono-dev] [Mono-Dev] [Patch] System.Web.Services: ensure conformant WebSevice fails to generate its wsdl
Atsushi Eno
atsushi at ximian.com
Wed Jan 31 11:11:32 EST 2007
This patch from Kosta is not applied yet. What is the details? There is
nothing we can do without any information.
Atsushi Eno
Miguel de Icaza wrote:
> Hello,
>
> Some developers are stating that the new changes to web services
> break "all web services". Anything we should be watching out for?
>
>> Hi Kosta,
>>
>> Thanks for the patch !
>>
>>> The attached patch ensures that a webservice attributed with
>>> [WebServiceBinding (ConformsTo = WsiProfiles.BasicProfile1_1)] throws in
>>> case it does not conform to that profile.
>> I guess the purpose of this patch is not only about it. After this
>> patch it rejects WebService classes that do not have
>> WebServiceBindingAttribute. Is it correct?
>>
>> If yes, then the BindingInfo changes make it nicer.
>> In that case we could simply reuse the attribute for Name,
>> Namespace and Location too (i.e. no need to have those fields anymore).
>>
>>> +#if NET_2_0
>>> + if (binfo.WebServiceBindingAttribute != null && binfo.We
>>> bServiceBindingAttribute.ConformsTo != WsiProfiles.None && String.IsNullOrEmpty
>>> (binfo.WebServiceBindingAttribute.Name)) {
>>> + BasicProfileViolationCollection violations = new
>>> BasicProfileViolationCollection ();
>>> + if (!WebServicesInteroperability.CheckConformanc
>>> e (binfo.WebServiceBindingAttribute.ConformsTo, desc, violations))
>>> + throw new InvalidOperationException (vio
>>> lations [0].ToString ());
>>> + }
>>> +#endif
>> Do we need to check WebServiceBindingAttribute.Name here?
>>
>> Atsushi Eno
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
More information about the Mono-devel-list
mailing list