Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / February 2005

Tip: Looking for answers? Try searching our database.

XSD Schemas - Which Direction

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Modica82 - 21 Feb 2005 14:49 GMT
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
Dino Chiesa [Microsoft] - 22 Feb 2005 05:36 GMT
> 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

> Hi All,
>
[quoted text clipped - 20 lines]
>
> Rob
Modica82 - 22 Feb 2005 11:59 GMT
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

> > 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
[quoted text clipped - 40 lines]
> >
> > Rob
Dino Chiesa [Microsoft] - 22 Feb 2005 19:52 GMT
What you describe makes sense.  No problem with that.
-D

> Hi Dino,
>
[quoted text clipped - 73 lines]
>> >
>> > Rob

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.