Solved

Passing parameters as XMLNodeList

Posted on 2004-04-26
2
949 Views
Last Modified: 2007-12-19
I needed to create a web service that had several optional parameters and resolved to implement this by accepting an xmldocument or nodelist as the input parameter. The problem is that I am not sure how to create a document in the consuming VB.Net client.

The client needs to pass
parameter 1: Unquie Id of item
parameter 2: Image file as byte array
parameter 3: next process stage id
parameter 4: urgency id
parameter 5: user id
parameter 6: station id
parameter 7-X: categories associated with the item including related information associated with the category: reviewed id, reviewed date time, reviewed bit, verified id, verified date time, verified bit.

here is a sample

<Task>
       <TaskID>123</TaskID>
       <WorkflowID>Prescription</WorkflowID>
       <StageID>OMR</StageID>
       <UnitID>ER</UnitID>
       <StationID>PP-01</StationID>
       <UserID>Pharm1</UserID>
       <ProcessCenterID>Primary Pharmacy</ProcessCenterID>
       <UrgencyID>STAT</UrgencyID>
       <StatusID>NEW</StatusID>
       <PatientID>000002589</PatientID>
       <PatientName>Hillary Clinton</PatientName>
       <TaskMemo />
       <TaskFile />
       <FileExtensionID />
       <ReturnReasonID />
       <InProcess />
       <SubmitDT />
       <CompleteDT />
       <Category>
            <CategoryID>1</CategoryID>
            <ReviewedUserID>24</ReviewedUserID>
            <Reviewed>1</Reviewed>
            <VerifiedUserID />
            <Verified>0</Verified>
         </Category>
     <Category>
            <CategoryID>2</CategoryID>
            <ReviewedUserID>144</ReviewedUserID>
            <Reviewed>1</Reviewed>
            <VerifiedUserID>26</VerifiedUserID>
            <Verified>1</Verified>
       </Category>
</Task>

The question is how would I create such a document, the only condition is that I do not want to load any xmldocument as a base, I only want to create it in memory on the client and pass it to the web service.

0
Comment
Question by:rehand
2 Comments
 
LVL 7

Accepted Solution

by:
ramesh12 earned 250 total points
ID: 10919865
0
 
LVL 4

Author Comment

by:rehand
ID: 10929077
Ramesh12

That did the trick

Thanks

Ron
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now