Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Web Service in Excel 2000

This code works fine in Excel 2007 but not in Excel 2000. I have the soap
toolkit installed.

I have tried changing ReturnValue for an Object but it doesn't work either.

Any Idea on how can I make this work ?

The Web service don't have parameters and only return a string.
Here's the function

Public Sub CallWebService()
On Error GoTo CallWebService_error

Dim adress As String
Dim ReturnValue As String
Dim soap As SoapClient30

Set soap = New SoapClient30

adress = "http://test.org/Service.asmx?WSDL"

soap.MSSoapInit adress

ReturnValue = soap.GetExcelInfo()

Set soap = Nothing

Exit Sub

CallWebService_error:
Debug.Print Err.Number
Debug.Print Err.Description
End Sub

Thanks In Advance

François Houde
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Web Service in Excel 2000

Forgot to say that I have this error message :

-2147467259
Attachment:Maximum retry on the connection exceeded. HRESULT=0x80004005:
Erreur non spécifiée
- Client:An unanticipated error occurred during the processing of this
request. HRESULT=0x80004005: Erreur non spécifiée
- Client:Sending the Soap message failed or no recognizable response was
received HRESULT=0x80004005: Erreur non spécifiée
- Client:Unspecified client error. HRESULT=0x80004005: Erreur non spécifiée


"Francois Houde" wrote:

This code works fine in Excel 2007 but not in Excel 2000. I have the soap
toolkit installed.

I have tried changing ReturnValue for an Object but it doesn't work either.

Any Idea on how can I make this work ?

The Web service don't have parameters and only return a string.
Here's the function

Public Sub CallWebService()
On Error GoTo CallWebService_error

Dim adress As String
Dim ReturnValue As String
Dim soap As SoapClient30

Set soap = New SoapClient30

adress = "http://test.org/Service.asmx?WSDL"

soap.MSSoapInit adress

ReturnValue = soap.GetExcelInfo()

Set soap = Nothing

Exit Sub

CallWebService_error:
Debug.Print Err.Number
Debug.Print Err.Description
End Sub

Thanks In Advance

François Houde

Reply
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
excel 2000 post service pack 3 hotfix - correct an issue with solver with VBA Graham Whitehead Excel Programming 0 November 10th 06 03:50 PM
what service pack do I have with my windows 2000? Crystal Excel Discussion (Misc queries) 2 April 18th 06 02:44 PM
calling web service from excel 2000 Steve Richter Excel Programming 1 April 15th 05 09:43 PM
Excel 2000 post-Service Pack 3 hotfix package Q841881 sjk Excel Discussion (Misc queries) 0 March 7th 05 01:09 PM
Excel 2000 Web service programming help Matt Mercier Excel Programming 0 May 5th 04 07:11 PM


All times are GMT +1. The time now is 03:09 AM.

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

About Us

"It's about Microsoft Excel"