Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Passing parameters as XMLNodeList

Posted on 2004-04-26
2
Medium Priority
?
965 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 1000 total points
ID: 10919865
0
 
LVL 4

Author Comment

by:rehand
ID: 10929077
Ramesh12

That did the trick

Thanks

Ron
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

810 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