Ask a Question related to ASP.NET Web Services, Design and Development.
-
Dino Chiesa [Microsoft] #1
Re: String Restriction
Mauricio,
you have a couple of options.
You can do the validation and checking on the client side,
or you can do it on the server (Receiver) side.
For #1, the class generated from wsdl.exe or xsd.exe or "Add Web Reference"
does not enforce string length restrictions, or other restrictions. You
can manually augment the generated classes with such intelligence, if you
wish.
For #2, you can validate a message against a given schema. This article
tells how:
[url]http://msdn.microsoft.com/msdnmag/issues/03/07/XMLSchemaValidation/default.aspx[/url]
You can use one or the other, or both options.
-Dino
"Mauricio Arroyo" <arroyocm@bccr.fi.cr> wrote in message
news:OpWeISOREHA.628@TK2MSFTNGP11.phx.gbl...length> Hi,
> I am trying to generate a WebService Stub based on a xsd as explained in
> "Place XML Message Design Ahead of Schema Planning to Improve WebService
> Interoperability"
> ([url]http://msdn.microsoft.com/msdnmag/issues/02/12/WebServicesDesign[/url]).
> Every thing works fine, but if I try to restrict the length of a string
> parameter, it doesn't work, the client is able to send string of any> without restriction. Any idea?
>
> I am attaching the xsd and WSDL of my WebService. Thanks in advance.
>
>
> Mauricio
>
>
>
Dino Chiesa [Microsoft] Guest
-
IP Restriction
Hey guys We are looking to implement client IP restriction for certain applications running from FCS. I have the "programming flash... -
IP Restriction Administration
I understand there is a one IP restriction when using the Developer Edition but is there a way to administer which IP gets to be allowed rather than... -
URL Referral Restriction
I have some Flash videos that I would like to stream. I only want people to be able to view these streaming Flash videos if they click on a URL on... -
No. of dirs restriction in JFS?
Hi, I seem to have been hit by a restriction regarding the number of subdirectories within a JFS filesystem. Currently a directory within a... -
system restriction message where no restriction implemented
First of all: I am the sole-administrator of my computer (which is running WinXP Pro) and, therefore, have full administrative rights over it and... -
Mauricio Arroyo #2
Re: String Restriction
Dino,
I'll check the #2 (because I don't have control over the client), and I let
you know. Thank you so much.
Mauricio
"Dino Chiesa [Microsoft]" <dinoch@online.microsoft.com> wrote in message
news:u%23dKFYBSEHA.1160@TK2MSFTNGP09.phx.gbl...Reference"> Mauricio,
> you have a couple of options.
> You can do the validation and checking on the client side,
> or you can do it on the server (Receiver) side.
>
> For #1, the class generated from wsdl.exe or xsd.exe or "Add Web[url]http://msdn.microsoft.com/msdnmag/issues/03/07/XMLSchemaValidation/default.aspx[/url]> does not enforce string length restrictions, or other restrictions. You
> can manually augment the generated classes with such intelligence, if you
> wish.
>
> For #2, you can validate a message against a given schema. This article
> tells how:
>>
> You can use one or the other, or both options.
>
> -Dino
>
>
>
> "Mauricio Arroyo" <arroyocm@bccr.fi.cr> wrote in message
> news:OpWeISOREHA.628@TK2MSFTNGP11.phx.gbl...> length> > Hi,
> > I am trying to generate a WebService Stub based on a xsd as explained in
> > "Place XML Message Design Ahead of Schema Planning to Improve WebService
> > Interoperability"
> > ([url]http://msdn.microsoft.com/msdnmag/issues/02/12/WebServicesDesign[/url]).
> > Every thing works fine, but if I try to restrict the length of a string
> > parameter, it doesn't work, the client is able to send string of any>> > without restriction. Any idea?
> >
> > I am attaching the xsd and WSDL of my WebService. Thanks in advance.
> >
> >
> > Mauricio
> >
> >
> >
>
Mauricio Arroyo Guest



Reply With Quote

