473,499 Members | 1,774 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XML errors in webservice call

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.PipelineService pipeline = new GBWPipeline.PipelineService();
string xml = pipeline.GetOfferSale(OfferSheetId, CustomerId).GetXml();

I get a "There is an error in XML document. (1, 220)" message. If I execute
the same method from WebServiceStudio, 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
Nov 21 '05 #1
2 3728
Hello Colin,

I actually have not used vsto - but I faced a similar
problem using MSXML (using vb6) accessing a .net
WebService .

A .Net TestClient Application has been able to call the
WebService without any problems, but MSXML failed with
an "invalid unicode character"-error.

I assume there are some "differences" handling unicode
(invalid or not) between MSXML and others (like IE, .Net,
XMLSpy,...) - is it possible, that vsto is based on MSXML?

I finally ended up (workaround solution due to lack of
time) decoding the "problematic" fields as base64...

Hope this helps

Regards,

Tom


-----Original Message-----
I am creating some code that runs in Excel using VSTO. I am trying to getsome xml from a webservice, using the following code:

GBWPipeline.PipelineService pipeline = new GBWPipeline.PipelineService();string xml = pipeline.GetOfferSale(OfferSheetId, CustomerId).GetXml();
I get a "There is an error in XML document. (1, 220)" message. If I executethe same method from WebServiceStudio, it works fine (using the same valuesfor the parameters) and returns the xml that I expect (and doesn't complainabout any errors). It also works in a normal WinForms application. It isonly inside Excel that it fails.

I have other Excel workbooks that also retrieve xml from webservices andthey work. Thanks for any suggestions.

Colin
.

Nov 21 '05 #2
Thanks. I'll keep that in mind, but right now there is nothing in the
problem XML that isn't also in other XML that is working in different Excel
solutions (at least as far as I can tell). I'll be doing some more testing
today to see if I can turn up any clues, so maybe this tip will help there.

Colin

"Tom Egginger" <to*********@ggmmxx.net> wrote in message
news:25*****************************@phx.gbl...
Hello Colin,

I actually have not used vsto - but I faced a similar
problem using MSXML (using vb6) accessing a .net
WebService .

A .Net TestClient Application has been able to call the
WebService without any problems, but MSXML failed with
an "invalid unicode character"-error.

I assume there are some "differences" handling unicode
(invalid or not) between MSXML and others (like IE, .Net,
XMLSpy,...) - is it possible, that vsto is based on MSXML?

I finally ended up (workaround solution due to lack of
time) decoding the "problematic" fields as base64...

Hope this helps

Regards,

Tom


-----Original Message-----
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.PipelineService pipeline = new

GBWPipeline.PipelineService();
string xml = pipeline.GetOfferSale(OfferSheetId,

CustomerId).GetXml();

I get a "There is an error in XML document. (1, 220)"

message. If I execute
the same method from WebServiceStudio, 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
.

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
2480
by: Russ | last post by:
Hello. My new dev machine is running XP Pro. In the past all equipment has only used Windows 2000. I have had a lot of problems getting my projects up and running on the new machine. The current...
6
1179
by: Colin Young | last post by:
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.PipelineService pipeline = new...
1
2095
by: Nalaka | last post by:
Hi, I am testing with Visual studio 2005, web projects. Situation: I have one solution with two web projects, created as file system projects. (I am tesing using the built in server, not IIS)...
11
3927
by: Andy | last post by:
Make the story short, I have a VB.NET client interface calling .NET webservice, written in VB.NET as well. I am trying to make the client as thin as possible so I let the webservice part to...
4
3298
by: Tim Gallivan | last post by:
Hello group, I'm trying to develop a proof of concept webservice which asynchronously calls a function in a DLL. The function raises an event when it is finished, and works when used as part of...
7
2146
by: Amirallia | last post by:
Hi, I consume my webservice with the IE browser and all is ok when I call it with one browser. But when I call it a the same time with two browsers, the IE page tells me that the apllication...
0
7007
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7220
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6894
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7388
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5470
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4919
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3099
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
297
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.