LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Calling a Webservice from Excel.

Excel 2003 with the Web Services Reference tool 2.0 installed.

My vba project can happily see my webservice, and connect. WHen I do it
creates the Proxy classes, stubs and the request objects quite happily.

If I call a webservice method similar to a Hello world, or a simple maths
one, then the system works fine and returns my data.

If I call a more complex method, that returns a nested piece of data (My
schema / wsdl is huge, so Im hoping I can avoid posting it here. But I'll
summarise it)

<Response
<DataPoint
<DataPointName
<DataPointDateItem
<Date
<MeasuredLocation
<Results
<24 hourly measurements here in an array
</Results
</DataPointItem
<.. Next Data Point Item
</DataPoint
<.. Next Data Point
....
</Response

I get the message SoapMapper: restoring the data into SoapMapper <type
failed.

If I attach a Http utility such as fiddler to the call and run it, I can see
that the response is being returned from the webservice, and it looks ok. So
The error is being caused at the vba end of the call, when the data is
returned.

I have tried assigning the return value to a variant, a variant() and an
object, but I always get the same response.

I have also tried doing htis the hard way, constructing the soap envelope
and sending it via the connections input stream / attaching a reader to the
output stream. In that case I get an 'Object Required' Error.

So, is there a workround to this, or do I just tell my customer that all I
can give him is csv files, and he has to import the data manually?


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
calling a webservice Jörgen Excel Discussion (Misc queries) 0 January 1st 08 06:44 PM
error calling webservice from excel tom Excel Programming 0 September 6th 07 10:18 AM
Excel 2003: Grabbing a dataset from a webservice and then sending to a webservice? gjn Excel Programming 1 October 7th 05 04:00 PM
ASP.NET Vb calling webservice Larry[_17_] Excel Programming 1 March 16th 05 05:04 AM
Calling Webservice from Excel sshah Excel Programming 1 January 22nd 04 03:20 PM


All times are GMT +1. The time now is 12:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"