Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HttpPost to WebService

Status
Not open for further replies.

xcaliber2222

Programmer
Apr 10, 2008
70
US
Hello,

I am testing a ASP.NET 2.0 webservice and I can't figure out why when I hit the url and use the test harness it tests fine, but passing the xml to it causes an error. Here is the xml error:

System.InvalidOperationException: There is an error in XML document (16, 34). ---> System.FormatException: Input string was not in a correct format. at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseUInt32(String value, NumberStyles options, NumberFormatInfo numfmt) at System.UInt16.Parse(String s, NumberStyles style, NumberFormatInfo info) at System.Xml.Serialization.XmlSerializationReader.ToChar(String value) at...

So, I guess my question is, why when I test the operation using the HTTP POST protocol and click the 'Invoke' button it is successful and when I pass the values directly to the url it is complaining.

Any help would be greatly appreciated.

Thanks,
Alejandro
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top