?
Solved

.net xml

Posted on 2014-12-01
1
Medium Priority
?
148 Views
Last Modified: 2014-12-12
What wrong below codes?
I just want to pass qtyList

   public string GetPrice(string qtyList)
        {
            #region procedures
                       
            string body = @"<SOAP:Envelope><SOAP:Header></SOAP:Header>
            <SOAP:Body>
            <m:Retrieve>
            <itemid>            
            <Quantity>{0}</Quantity>
            </m:Retrieve>
            </SOAP:Body>
            </SOAP:Envelope>";            
            #endregion
        }
0
Comment
Question by:ITsolutionWizard
[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
1 Comment
 
LVL 34

Accepted Solution

by:
it_saige earned 2000 total points
ID: 40475162
Then you are probably looking for something like:
public string GetPrice(string qtyList)
{
	#region procedures
	return string.Format(@"<SOAP:Envelope>
				<SOAP:Header></SOAP:Header>
				<SOAP:Body>
					<m:Retrieve>
						<itemid>
							<Quantity>{0}</Quantity>
						</itemid>
					</m:Retrieve>
				</SOAP:Body>
			       </SOAP:Envelope>", qtyList);
	#endregion
}

Open in new window


-saige-
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month12 days, 9 hours left to enroll

777 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