Re: XSD Schemas - Which Direction

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Modica82 (Modica82_at_discussions.microsoft.com)
Date: 02/22/05


Date: Tue, 22 Feb 2005 03:59:03 -0800

Hi Dino,

Thanks for the response and the link, it spured me to look at an existing
document i passed over, the link is below if anyone is interested.

http://msdn.microsoft.com/msdnmag/issues/02/12/WebServicesDesign/

I have a question though, if i have several messages that say return a
boolean, can i generate a generic response and specify that all method
responses that return a boolean are controlled by my genericBooleanResponse
or genericIntegerResponse etc etc or would it be better to define a different
response for all methods??

Any input would be good,

Regards,

Rob

"Dino Chiesa [Microsoft]" wrote:

> > do i provide XSD schemas for the XML being passed into the
> > system, and the XML returned, or do i just do it for the XML being passed
> > in.
>
> Yes, both.
>
> You should think of your service interface as message-based. The service
> accepts a message and then (optionally) responds with a message. The schema
> should describe what the message looks like. If you want to send only an
> int, fine, but your design should wrap that in a message.
>
> You can use the XML Schema designer in VS2003 to help you build the schema.
> Other tools also work, of course. Or, if you're schema-savvy, you can use a
> text editor and write it by hand.
>
> check this out:
> http://weblogs.asp.net/klaus.aschenbrenner/archive/2004/10/25/247249.aspx
>
> -D
>
>
> "Modica82" <Modica82@discussions.microsoft.com> wrote in message
> news:5576D831-99C5-49CA-A2DB-69A072824ED7@microsoft.com...
> > Hi All,
> >
> > I am in the process of designing a web service for my company. It is my
> > first commercial web service, so i think my "Hello World" coding model
> > wont
> > quite cut it here :). Anyway, i am writing a design document for it, and
> > want to provide XSD Schema information for XML used.
> >
> > My question is, do i provide XSD schemas for the XML being passed into the
> > system, and the XML returned, or do i just do it for the XML being passed
> > in.
> > Also, how does this work? becuase if the types are serialized and
> > deserialized at both ends how do i provide a schema for this interaction,
> > i
> > mean if my method takes in an int, does the WDSL take care of that and the
> > XSD is only for pure XML being passed in? Sorry if this makes no sence, i
> > am
> > trying to get the story 100% so i know what i am doing.
> >
> > Any advice would be great.
> >
> > Thanks,
> >
> > Rob
>
>
>



Relevant Pages

  • Missing namespace in XML serialization
    ... We generated a VB wrapper class of this schema using the XSD.exe tool: ... Public Class Response ... Serializing an instance of Response class (defined as root element in the ... schema) we can obtain an XML document that correctly shows the namespace ...
    (microsoft.public.dotnet.xml)
  • [ANN] New XML Editor in Visual Studio 2005 Beta 1
    ... Full syntax coloring for all XML and DTD syntax. ... Intellisense based on any DTD, ... Schema picker dialog for overriding schemas used for validation, which is then remembered as a document property in your solution. ... Goto Definition command for navigating between elements and their associated DTD, XDR or XSD schema definitions. ...
    (microsoft.public.dotnet.xml)
  • Freeware XMLFox XML/XSD Editor 2.01
    ... RustemSoft presents Freeware XML editing and validation tool XMLFox is ... a freeware editor for creating valid well-formed XML documents and/or ... XSD Schema. ...
    (comp.software.shareware.announce)
  • Re: How to add prefix to root element?
    ... have string as an input and string as an output parameter ... request is actually response:) and this response node have two ... The schema, that you guys have agreed on for the response... ... They are sending XML that is illegal reagarding the aggredd upon ...
    (microsoft.public.biztalk.general)
  • Re: How to add prefix to root element?
    ... have string as an input and string as an output parameter ... request is actually response:) and this response node have two ... The schema, that you guys have agreed on for the response... ... They are sending XML that is illegal reagarding the aggredd upon ...
    (microsoft.public.biztalk.general)