473,320 Members | 1,969 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,320 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 11022
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
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.