473,382 Members | 1,349 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Accessing a webservice from Access 2007..

My goal is to populate some fields in my table using a webservice that was created by other programmers in the company, and i have been told that i need SOAP to call it. I have tried using the SOAP toolkit and i keep getting "Access denied error", even after I supplied the user name and password....my code is as below:

Private Sub button1_Click()

Dim client As MSOSOAPLib30.SoapClient30

Set client = New SoapClient30


Call client.MSSoapInit(par_Wsdlfile:="http://wsdl.address")

client.ConnectorProperty("AuthUser") = "user"
client.ConnectorProperty("AuthPassword") = "pss"
client.ConnectorProperty("RequestHTTPHeader") = 1

'call method
client.populate


End Sub



please tell me why i keep getting access denied error, and is there any other code or way to call a webservice into Access?..Thanks..
Aug 23 '09 #1
6 11030
ADezii
8,834 Expert 8TB
@totomalas
Try:
Expand|Select|Wrap|Line Numbers
  1. Dim client As MSOSOAPLib30.SoapClient30
  2.  
  3. Set client = New SoapClient30
  4.  
  5. client.ClientProperty("ServerHTTPRequest") = True
  6. client.ClientProperty("AuthUser") = "user"
  7. client.ClientProperty("AuthPassword") = "pss"
  8. client.ClientProperty("RequestHTTPHeader") = True
  9.  
  10. client.MSSoapInit "http://wsdl.address"
Aug 23 '09 #2
Thank you,I have tried your code, but now i am getting a new error which say

The property "AuthUser" is not recognized... :(...although I have the SOAP toolkit referenced....
Aug 24 '09 #3
Can anyone please help......... my whole project depends on this... :(
Aug 26 '09 #4
ADezii
8,834 Expert 8TB
@totomalas
Reference the Object Browser to set what the valid Objects, Properties, and Methods are for the Class Library. I no Reference to refer to at this end.
Aug 26 '09 #5
Im sorry but I dont understand what you mean..
Aug 29 '09 #6
ADezii
8,834 Expert 8TB
@totomalas
In any Code Window, press F2 which will Open the Object Browser. Select the SOAP Library in the upper left hand corner. Now, all the valid Properties, Methods, and Events for this Class Library will be exposed in the lower panes. This will greatly help you with syntax to see if you are using the correct one such as ClientProperty vs. ConnectorProperty, etc.
Aug 29 '09 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

27
by: Wayne | last post by:
I've been clicking around Access 2007 Beta 2 and can't see the custom menu bar designer. Is it in the beta? Maybe I'm blind. The question that comes to mind is: Will custom menu bars be the same...
1
prn
by: prn | last post by:
Hi folks, I'm relatively new to Access, but I seem to have drawn the short straw, so I have the assignment for my workplace of looking for problems/inconsistencies in migrating applications to...
4
by: =?Utf-8?B?U3RldmVU?= | last post by:
I am trying to write an application using VS 2005 that accesses an Access database. Unfortunately, VS 2005 doesn't seem to understand the new Access 2007 file extention. Can VS 2005 use the new...
5
by: ARC | last post by:
Hello, A user posted a reply to a post of mine regarding the fact that Access 2007 would be free, or maybe I misunderstood? All I could find on Microsoft's site was information regarding the...
17
by: Neil | last post by:
A client of mine likes some of the new bells and whistles in Access 2007, and is thinking about converting our A03 format MDB to an A07 format file. However, while some of the users have A07, many...
9
by: prakashwadhwani | last post by:
Hi !! I'm about to develop a new project for a client. Should I go about it in Access 2003 or 2007 ? Purchasing it either for me or for my client is not a major consideration here ... what I'd...
1
by: ARC | last post by:
I think I made a major blunder, and now Access 2007 no longer opens. I made the mistake yesterday of using the "test" option in wise installer for my Access 2007 runtime app. It actually installed...
10
by: Snoopy33 | last post by:
I have a DB that I developed on access XP (2002) and deployed over a year ago. No one has had problems printing any of the reports within the DB until we started loading 2007 on new computers. ...
0
by: dbdream | last post by:
Hi, I'm having major performance issues in testing with Access 2007 after Access 97 applications are converted (.mdb) format. Loading of forms or reports are 2-3 times slower in Access 2007 than in...
1
by: Karoly | last post by:
I have a strange problem with Access 2007 which I cant figure out in the design mode. I have form2 which uses a field field1 in form1 in its load event using the notation field2 =...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.