开发者

How to call web service from excel Macro

I need to call an webservice method from my excel macro. can any on suggest me how can i do that. I don't want to use soap related thing durin calling the webse开发者_Python百科rvice in macro code.

Thanks in advance.

Eshwer Nayudu


If you don't wish to use the SOAP type library, you could use MSXML instead and create the SOAP request manually in code and then post it to the web service.

Please take a look at http://www.freevbcode.com/ShowCode.asp?ID=7611 for a nice example. It's for VB6, but I am sure it would need little adjustment for VBA.


The best way to do this is to create a simple class which acts as a WCF client to the service. Then, with just a little more work, you can turn this class into a COM object. Excel can easily access COM objects.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜