done. How does one do it?
Steven Cheng[MSFT] wrote:
> Hi Mike,
>
> Any further questions on this issue? If there're anything else we can hel=
p,
> pleas feel free to post here.
> Thanks ,
>
> Steven Cheng
> Microsoft Online Support
>
> Get Secure!
www.microsoft.com/security > (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
> --------------------
> X-Tomcat-ID: 38917779
> References: <00AB6074-D71E-4525-BE00-4D113F631907@microsoft.com>
> <HYIKmlp2FHA.2904@TK2MSFTNGXA01.phx.gbl>
> <u9aM0xr2FHA.3876@TK2MSFTNGP09.phx.gbl>
> <5421m1dc2gfmfps5370e16bsgr7o72dfm8@4ax.com>
> <BD772E91-E908-41CF-A223-108C888D1B61@microsoft.com>
> MIME-Version: 1.0
> Content-Type: multipart/alternative; boundary=3D"----=3D_NextPart_0001_4E=
822A8D"
> Content-Transfer-Encoding: 7bit
> From: stcheng@online.microsoft.com (Steven Cheng[MSFT])
> Organization: Microsoft
> Date: Fri, 28 Oct 2005 02:15:50 GMT
> Subject: Re: Best place to use AND how to validate a Version
> X-Tomcat-NG: microsoft.public.dotnet.framework.webservices
> Message-ID: <z5$KMW22FHA.1172@TK2MSFTNGXA01.phx.gbl>
> Newsgroups: microsoft.public.dotnet.framework.webservices
> Lines: 325
> Path: TK2MSFTNGXA01.phx.gbl
> Xref: TK2MSFTNGXA01.phx.gbl
> microsoft.public.dotnet.framework.webservices:8396
> NNTP-Posting-Host: tomcatimport2.phx.gbl 10.201.218.182
>
> Hi Mike,
>
> Of course, we can defining datatypes and messages in the same schema.
> Actually there is no definite rules on this. If you need to adopt some be=
st
> practice, you may try searching some existing webservice contracts/types
> schema on the net and get some ideas from them.
>
> Thanks,
>
> Steven Cheng
> Microsoft Online Support
>
> Get Secure!
www.microsoft.com/security > (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
>
>
>
>
> --------------------
> Thread-Topic: Best place to use AND how to validate a Version
> thread-index: AcXa5HfN7e4LdWiCSDyZuPNob21Ngg=3D=3D
> X-WBNR-Posting-Host: 165.176.240.10
> From: "=3D?Utf-8?B?TWlrZSBMb2dhbg=3D=3D?=3D" <MikeLogan@community.nospam>
> References: <00AB6074-D71E-4525-BE00-4D113F631907@microsoft.com>
> <HYIKmlp2FHA.2904@TK2MSFTNGXA01.phx.gbl>
> <u9aM0xr2FHA.3876@TK2MSFTNGP09.phx.gbl>
> <5421m1dc2gfmfps5370e16bsgr7o72dfm8@4ax.com>
> Subject: Re: Best place to use AND how to validate a Version
> Date: Thu, 27 Oct 2005 03:52:04 -0700
> Lines: 128
> Message-ID: <BD772E91-E908-41CF-A223-108C888D1B61@microsoft.com>
> MIME-Version: 1.0
> Content-Type: text/plain;
> charset=3D"Utf-8"
> Content-Transfer-Encoding: 8bit
> X-Newsreader: Microsoft CDO for Windows 2000
> Content-Class: urn:content-classes:message
> Importance: normal
> Priority: normal
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> Newsgroups: microsoft.public.dotnet.framework.webservices
> NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
> Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
> Xref: TK2MSFTNGXA01.phx.gbl
> microsoft.public.dotnet.framework.webservices:8381
> X-Tomcat-NG: microsoft.public.dotnet.framework.webservices
>
> Just a followup:
>
> I like the idea of using versions in the namespace. However, Steven, in
> your example, the datatypes schema was seperate from the message schema.
> If
> you are on say:
>
> "http://mywebservice/datatypes/2005/10/27", and
> "http://mywebservice/contract/2005/10/27"
>
> then change to
>
> "http://mywebservice/datatypes/2005/12/5". If this happens I should also
> have to change my contract/message schema, correct?
>
> Is there a place that documents "Best Practices" for this? I was initial=
ly
> defining datatypes and messages in the same schema. I would assume that =
is
> alright for a small system?
>
> Thanks for the help.
> --
> Mike Logan
>
>
> "Marvin Smit" wrote:
>
> > Hi Guys,
> >
> > This is such a nice topic i couldn't resist putting my 2ct. in ;-)
> >
> > The versioning scheme suggested by Henrik is a very common one. You
> > essentially have the following options;
> >
> > - Modify your namespace-uri for different versions (*the example
> > below)
> > This is a very strict way of versioning. The problem is that for each
> > new version your clients will have to "update reference & recompile".
> >
> > - include version attribute in your schema
> > This is how it was intended, but i no of NONE XML-XSD parser that will
> > actually read/use the version attribute and be able to have multiple
> > versions of the same schema.
> >
> > Please be aware that when you are developing a WebService with .Net
> > (same goes for Axis AFAIK) that;
> >
> > - XSD Validation on the incomming message is NOT THERE by default.
> > - The deserialization happens with "Defaults" (i.e. an element that is
> > not found will be filled with ; 0 for numbers, "" for strings, etc)
> > - The .Net types representing the XSD complextypes are not 100% XSD
> > equivilant. (You loose the facets in the .Net type, like
> > 'maxInclusive', maxLength, etc)
> >
> > Hope this helps,
> >
> > Marvin Smit.
> >
> >
> > On Thu, 27 Oct 2005 08:03:46 +0200, Henrik G=F8ttig <hg@websolver.dk>
> > wrote:
> >
> > >Hi Steven and Mike
> > >
> > >Sorry for inteferring your thread but..
> > >
> > >I don't know if it is considered "bad practice", but one could also
> > >embed versioninfo in the XML namespace as:
> > >
> > >http://myservice/datatypes/customer/10
> > >for version 1.0 of the customer datatype
> > >
> > >and http://myservice/datatypes/customer/11
> > >for the version 1.1 of the customer datatype
> > >
> > >Similar approach could be taken with the contracts.
> > >
> > >Anyway. Are there any drawbacks with this approach?
> > >One thing maybe.. A 1.0 client proxy will no be able to "talk" to a 1.1
> > >Webservice, will it?
> > >
> > >Isn't it right that Indigo deal with this, as there can be many
> > >"contracts" assigned to a single service?
> > >
> > >Looking forward to hear your insights.
> > >
> > >Regards
> > >
> > >Henrik
> > >
> > >Steven Cheng[MSFT] wrote:
> > >> Hi Mike,
> > >>
> > >> For the Xml Types we defined in Xml schemas for webservice's data ty=
pe
> or
> > >> WSDL's message element type, they're all identified and scoped by xml
> > >> namespace. So generally, for the xml data types and message element
> types,
> > >> we will scope them under the sample namespace(or same root
> namespace....)