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 / April 2005

Tip: Looking for answers? Try searching our database.

XML document as input parameter ot WS ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kingski - 15 Apr 2005 07:56 GMT
Hei,

I have to create web service which accepts xml document as parameter:

<CATALOG>

           <PLANT>

                       <COMMON>Bloodroot</COMMON>

                       <BOTANICAL>Sanguinaria canadensis</BOTANICAL>

                       <ZONE>4</ZONE>

                       <LIGHT>Mostly Shady</LIGHT>

                       <PRICE>$2.44</PRICE>

                       <AVAILABILITY>031599</AVAILABILITY>

           </PLANT>

           <PLANT>

                       <COMMON>Columbine</COMMON>

                       <BOTANICAL>Aquilegia canadensis</BOTANICAL>

                       <ZONE>3</ZONE>

                       <LIGHT>Mostly Shady</LIGHT>

                       <PRICE>$9.37</PRICE>

                       <AVAILABILITY>030699</AVAILABILITY>

           </PLANT>

           <PLANT>

                       <COMMON>Marsh Marigold</COMMON>

                       <BOTANICAL>Caltha palustris</BOTANICAL>

                       <ZONE>4</ZONE>

                       <LIGHT>Mostly Sunny</LIGHT>

                       <PRICE>$6.81</PRICE>

                       <AVAILABILITY>051799</AVAILABILITY>

           </PLANT>

           <PLANT>

                       <COMMON>Cowslip</COMMON>

                       <BOTANICAL>Caltha palustris</BOTANICAL>

                       <ZONE>4</ZONE>

                       <LIGHT>Mostly Shady</LIGHT>

                       <PRICE>$9.90</PRICE>

                       <AVAILABILITY>030699</AVAILABILITY>

           </PLANT>

           <PLANT>

                       <COMMON>Dutchman's-Breeches</COMMON>

                       <BOTANICAL>Dicentra cucullaria</BOTANICAL>

                       <ZONE>3</ZONE>

                       <LIGHT>Mostly Shady</LIGHT>

                       <PRICE>$6.44</PRICE>

                       <AVAILABILITY>012099</AVAILABILITY>

           </PLANT>

</ CATALOG >

Update database and return Boolean result.

Is it possible WS to accept such type of data as parameter? How? Can you
point me to example /article/ which explain such behavior.

thanks
Jason James - 15 Apr 2005 13:52 GMT
Hi,

Could you read the XML into a dataset and then send the
dataset to the WS and a parameter of your function?

ds.ReadXml(myfilename, XmlReadMode.InferSchema)

Not sure if this is the most efficient way, but since datasets are
serialized from a WS it should be easy to serialize one to
the WS.

Good luck, and let us knowhow you got on.

Jason.

>Hei,
>
[quoted text clipped - 90 lines]
>
>thanks
ee - 29 Apr 2005 12:25 GMT
of course

[WebMethod]

public void SomeFunction(XmlDocument _Transaction)

{

// do somthing
}
> Hei,
>
[quoted text clipped - 90 lines]
>
> 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.