Solved

.net xml

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

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…

822 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