VBA access to WSE web service?
- From: Bradley Plett <plettb@xxxxxxxxxxxxxxxx>
- Date: Mon, 12 Dec 2005 09:48:34 -0700
I have built a web service using WSE that uses "soap.tcp" as the
transport. Is it possible to access this web service from VBA using
the standard soap client (SoapClient30) (i.e. the stuff that's
included with the "Web Service References Tool")? If so, how?
When I use the "Web Service References Tool" to generate the code to
access the web service, it generates the following:
--------------------------------------------------
Private sc_ClientComponentServic As SoapClient30
Private Const c_WSDL_URL As String = "http://localhost/myapp.wsdl"
Private Const c_SERVICE As String = "ServiceName"
Private Const c_PORT As String = "ServicePort"
Private Const c_SERVICE_NAMESPACE As String = "http://tempuri.org/"
..
..
..
Set sc_ClientComponentServic = New SoapClient30
sc_ClientComponentServic.MSSoapInit2 c_WSDL_URL, str_WSML, c_SERVICE,
c_PORT, c_SERVICE_NAMESPACE
--------------------------------------------------
My web service is at "soap.tcp://localhost:8081/myapp", and that
endponit works just fine when calling from a WSE client. However, I
can't get VBA (in this case hosted in Access) to talk to it. I've
tried changing the c_WSDL_URL to "soap.tcp", but then I get an error
saying "the specified protocol is unknown."
Any help would be appreciated!
Thanks!
Brad.
.
- Follow-Ups:
- RE: VBA access to WSE web service?
- From: Steven Cheng[MSFT]
- RE: VBA access to WSE web service?
- Prev by Date: RE: System.InvalidOperationException
- Next by Date: WSE 3.0 problems with BeginMethod EndMethod calls.
- Previous by thread: Re: Can i cache a WSE X509Certificate ? Is it threadsafe?
- Next by thread: RE: VBA access to WSE web service?
- Index(es):
Relevant Pages
|