Solved

Passing parameters as XMLNodeList

Posted on 2004-04-26
2
961 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 250 total points
ID: 10919865
0
 
LVL 4

Author Comment

by:rehand
ID: 10929077
Ramesh12

That did the trick

Thanks

Ron
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

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…
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

724 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