Solved

.net xml

Posted on 2014-12-01
1
145 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

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

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.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

679 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