Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Wed, 2 Jul 2008 02:32:31 -0700 (PDT),    group: microsoft.public.dotnet.framework.webservices        back       


Calling WCF from Excel   
hi,

I am trying to call a WCF service from Excel VBA. I do not want to
rely on anything installed on client machine apart from my Excel
spreadsheet so I wanted to use the MEX method of invoking as explained
here: http://msdn.microsoft.com/en-us/library/ms752245.aspx

This works fine if all parameters and return values are basic types
but it is not obvious to me what needs to be done if I want to use a
custom type. I currently get a 80131509 error when calling a service
which has a custom type. I have marked the custom type as a
DataContract with its properties as DataMember. Just the inclusion of
this in the contract means that a call to the service (even a method
that does not involve the custom type) results is the aforementioned
error. Do I need to put something else in the config file with regard
to the data contract?

I am hoping I do not have to put anything else on the client side
other than the vba code.....

thanks
Phil
date: Wed, 2 Jul 2008 02:32:31 -0700 (PDT)   author:   unknown

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us