C
Claudio
Hi,
I'm using the Office 2003 Web Services Toolkit to invoke a web service
(named "Profiling") from Excel VBA. I've done the following steps:
1) I've started the toolkit, and I've imported the WSDL specifing the URL.
2) The step 1 generated a class named "clsws_Profiling" with two methods
corresponding to the operations of the WSDL.
3) Then, I write the following code to use this proxy class:
Dim AutObj As clsws_Profiling
Dim Result as Boolean
Set AutObj = New clsws_Profiling
Result = AutObj.wsm_getAuthorization(Username, Service, Porttype, Operation)
Set AutObj = Nothing
where Username, Service, Porttype and Operation are strings (as requested by
the WSDL).
4) When I start executing the code, I get the error "Run-time error:438
Object doesn't support this property or method" on the following line:
wsm_getAuthorization = sc_Profiling.getAuthorization(str_Username,
str_Service, str_InterfaceName, str_Operation)
but this line has been written by the toolkit! Not by me!
The toolkit creates the proxy class with the method "wsm_getAuthorization":
this method invokes "sc_Profiling.getAuthorization"... but sc_Profiling is a
SoapClient30 object that does not have the "getAuthorization" method...
What's wrong?
Claudio.
I'm using the Office 2003 Web Services Toolkit to invoke a web service
(named "Profiling") from Excel VBA. I've done the following steps:
1) I've started the toolkit, and I've imported the WSDL specifing the URL.
2) The step 1 generated a class named "clsws_Profiling" with two methods
corresponding to the operations of the WSDL.
3) Then, I write the following code to use this proxy class:
Dim AutObj As clsws_Profiling
Dim Result as Boolean
Set AutObj = New clsws_Profiling
Result = AutObj.wsm_getAuthorization(Username, Service, Porttype, Operation)
Set AutObj = Nothing
where Username, Service, Porttype and Operation are strings (as requested by
the WSDL).
4) When I start executing the code, I get the error "Run-time error:438
Object doesn't support this property or method" on the following line:
wsm_getAuthorization = sc_Profiling.getAuthorization(str_Username,
str_Service, str_InterfaceName, str_Operation)
but this line has been written by the toolkit! Not by me!
The toolkit creates the proxy class with the method "wsm_getAuthorization":
this method invokes "sc_Profiling.getAuthorization"... but sc_Profiling is a
SoapClient30 object that does not have the "getAuthorization" method...
What's wrong?
Claudio.