Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Passing parameters as XMLNodeList

Posted on 2004-04-26
2
Medium Priority
?
964 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

609 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