473,626 Members | 3,291 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.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
Nov 21 '05 #1
2 3753
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 "difference s" 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 "problemati c" 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.Pi pelineService 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 executethe same method from WebServiceStudi o, 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*********@gg mmxx.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 "difference s" 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 "problemati c" 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.Pi pelineService 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
.

Nov 21 '05 #3

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

Similar topics

12
2512
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 one is a permission error. The project is a VC++ Web Service. It works fine when the service is hosted on the old W2K dev machine, but on the new XP machine I get a permission error when the service tries to open a text file on the Windows...
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 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...
1
2101
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) First project is a webService. Second consumes the webservices by the first.
11
3948
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 handle most of the things. Currently I have a class called "Product" sitting my webserivce like the following: Code:
4
3315
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 a windows form. When I try to hook up the webservice to the event and call the WS, the CPU goes to 100% and I have to restart the WWW service. Does anyone have an idea as to how this can be done ... and if not, directions to a tall bridge would...
7
2160
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 server is not available!! Any idea ?
0
8262
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8637
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8364
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6122
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4090
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4196
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2623
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 we have to send another system
1
1807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1507
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.