I am creating some code that runs in Excel using VSTO. I am trying to get
some xml from a webservice, using the following code:
GBWPipeline.Pip elineService pipeline = new GBWPipeline.Pip elineService();
string xml = pipeline.GetOff erSale(OfferShe etId, CustomerId).Get Xml();
I get a "There is an error in XML document. (1, 220)" message. If I execute
the same method from WebServiceStudi o, it works fine (using the same values
for the parameters) and returns the xml that I expect (and doesn't complain
about any errors). It also works in a normal WinForms application. It is
only inside Excel that it fails.
I have other Excel workbooks that also retrieve xml from webservices and
they work. Thanks for any suggestions.
Colin
some xml from a webservice, using the following code:
GBWPipeline.Pip elineService pipeline = new GBWPipeline.Pip elineService();
string xml = pipeline.GetOff erSale(OfferShe etId, CustomerId).Get Xml();
I get a "There is an error in XML document. (1, 220)" message. If I execute
the same method from WebServiceStudi o, it works fine (using the same values
for the parameters) and returns the xml that I expect (and doesn't complain
about any errors). It also works in a normal WinForms application. It is
only inside Excel that it fails.
I have other Excel workbooks that also retrieve xml from webservices and
they work. Thanks for any suggestions.
Colin
Comment