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
Solved

.net xml

Posted on 2014-12-01
1
144 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
1 Comment
 
LVL 33

Accepted Solution

by:
it_saige earned 500 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

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.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

856 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