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 / November 2004

Tip: Looking for answers? Try searching our database.

web client design

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mimi - 10 Nov 2004 16:35 GMT
we are supposed to send to a web service a request object in xml
formatted by industry standard.  We have xml dtd.  We can either send
xml string or I can create a web reference to the web service and call
their objects to populate the request and send out.  My thought is
sending xml document based on xml dtd file must be a better choice
because if we switch to different web services with the same code.
I'm thinking of generating objects base on xml file so if they change
or update the xml.dtd, we just need to re-generate those objects
again.  Has anyone done that or do you have any suggestion or
examples?  Thanks
Dan Rogers - 11 Nov 2004 23:35 GMT
Hi Mimi,

The best course for you is to upgrade your DTD to XML Schema, and use one
of the tools that help you generate clases from the schema, such as XSD.exe
or XsdObjectGen.exe.  Unfortunately, if you are starting with a DTD, you'll
have to do a conversion, and then fill in any appropriate type information,
since DTD didn't have data types.

I agree with you that sending a string that has what appears to be XML is a
fragile approach.  Better to have strongly typed classes to work with so
you get the benefits of type checking.  

Regards

Dan Rogers (danro)
Microsoft Corporation
--------------------
>From: mh2521@hotmail.com (Mimi)
>Newsgroups: microsoft.public.dotnet.framework.aspnet.webservices
[quoted text clipped - 7 lines]
>Content-Transfer-Encoding: 8bit
>X-Trace: posting.google.com 1100104545 26468 127.0.0.1 (10 Nov 2004
16:35:45 GMT)
>X-Complaints-To: groups-abuse@google.com
>NNTP-Posting-Date: Wed, 10 Nov 2004 16:35:45 +0000 (UTC)
>Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!tornado.fastwebnet.it!tiscali!new
sfeed1.ip.tiscali.net!news.glorb.com!postnews.google.com!not-for-mail
>Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservices:26438
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
>
[quoted text clipped - 8 lines]
>again.  Has anyone done that or do you have any suggestion or
>examples?  Thanks
mimi - 12 Nov 2004 17:26 GMT
Thanks Dan.

> Hi Mimi,
>
[quoted text clipped - 28 lines]
> >NNTP-Posting-Date: Wed, 10 Nov 2004 16:35:45 +0000 (UTC)
> >Path:

cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!tornado.fastwebnet.it!tiscali!new
> sfeed1.ip.tiscali.net!news.glorb.com!postnews.google.com!not-for-mail
> >Xref: cpmsftngxa10.phx.gbl
[quoted text clipped - 11 lines]
> >again.  Has anyone done that or do you have any suggestion or
> >examples?  Thanks

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.