PC Review


Reply
Thread Tools Rate Thread

Calling a Webservice from Excel.

 
 
Me 1971
Guest
Posts: n/a
 
      6th Mar 2008
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?


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
error calling webservice from excel =?Utf-8?B?dG9t?= Microsoft Excel Programming 0 6th Sep 2007 10:18 AM
Problem! webservice.htc calling nonsecure webservice from a secured ssl https webpage batista Microsoft ASP .NET 1 26th Jan 2006 12:05 PM
Problem! webservice.htc calling nonsecure webservice from a secured ssl https webpage batista Microsoft ASP .NET 0 26th Jan 2006 08:13 AM
Problem! webservice.htc calling nonsecure webservice from a secured ssl https webpage batista Microsoft Dot NET 0 26th Jan 2006 08:12 AM
Calling Webservice from Excel sshah Microsoft Excel Programming 1 22nd Jan 2004 03:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:43 PM.