Solved

.net xml

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

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
crm development 2 39
Round a string to two digits 12 25
c# if statement weird reaction 3 30
Birthdays 3 22
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
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…
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now