Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / December 2005

Tip: Looking for answers? Try searching our database.

VBA access to WSE web service?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bradley Plett - 12 Dec 2005 16:48 GMT
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.
Steven Cheng[MSFT] - 13 Dec 2005 02:31 GMT
Hi Bradley,

Welcome to webservice newsgroup.
Regarding on the calling WSE protected XML Webservice through Office
WebService toolkit question, based on my understanding, this is not
supported due to the limitation of the Office webservice toolkit ....    
First, the Tcp tranport channel is specific to the WSE components while
most of the webservice components only support HTTP as the transport
layer......
Also, even office toolkit support HTTP, since the WSE component protect the
xml webservice's SOAP message by apply encryping/signing policy, this is
also what office toolkit can not do so far.  So I think we can only call
normal xml webservice over http directly through office webservice toolkit
currently...

Thanks,

Steven Cheng
Microsoft Online Support

Signature

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
From: Bradley Plett <plettb@newsgroup.nospam>
Subject: VBA access to WSE web service?
Date: Mon, 12 Dec 2005 09:48:34 -0700
Message-ID: <vo9rp1tqtsv0pm1ep54tg9tp92s2gu5mi1@4ax.com>
X-Newsreader: Forte Agent 3.1/32.783
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Newsgroups: microsoft.public.dotnet.framework.webservices.enhancements
NNTP-Posting-Host: s010600062595c433.cg.shawcable.net 68.144.91.204
Lines: 1        
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP15.phx.gbl
microsoft.public.dotnet.framework.webservices.enhancements:7916
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices.enhancements

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/"

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.