Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default 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...
    > 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
    length
    > without restriction. Any idea?
    >
    > I am attaching the xsd and WSDL of my WebService. Thanks in advance.
    >
    >
    > Mauricio
    >
    >
    >

    Dino Chiesa [Microsoft] Guest

  2. Similar Questions and Discussions

    1. IP Restriction
      Hey guys We are looking to implement client IP restriction for certain applications running from FCS. I have the "programming flash...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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...
    > 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...
    > > 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
    > length
    > > without restriction. Any idea?
    > >
    > > I am attaching the xsd and WSDL of my WebService. Thanks in advance.
    > >
    > >
    > > Mauricio
    > >
    > >
    > >
    >
    >

    Mauricio Arroyo Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139