473,513 Members | 2,533 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access 2003 Web Service VBA Code to Consume Web Services

4 New Member
We developed a small test database that we are using to attempt to connect to a wsdl to consume web services. The database form contains 3 fields and a submit button on the form. At the bottom I've included the code behind the button on the form and the class module code that was generated by the Web Service Tool.

I've added a little bit of information that pertains to the Access Database and our process and expected results:

VBA for connection to wsdl has been generated using the Web Service Tool and is displayed in the Class Module called clsws_Service0
From the form the user will input Submission ID, Timestamp and Sequence.
Clicking Submit should run vba code to Call the Class Module, passing the field data values input into the form which will in turn call the wsdl document
The form field values should be cleared
The user should receive either an error message or success message
In the class module it states that we are to Dimension the class as a new Class which we have done. We have also added the fields in the form to the code. What we do not know how to do is to write the appropriate code to accomplish what we have outlined above.


We do not understand exactly what we should be putting in our Access 2003 application to make this work. Can anyone help us out with the code in VBA to do this!

From the form I click on a submit button. This is the code behind the button:

Expand|Select|Wrap|Line Numbers
  1. Private Sub Submit_Click()
  2.  
  3. Dim objNodeList As IXMLDOMNodeList
  4.  
  5. Dim SubLogTest As New clsws_Service0
  6. Dim strSubmissionID As String
  7. Dim strTimestamp As String
  8. Dim strSequence As String
  9. Dim strSeparator As String
  10. strSeparator = "<br />" + Chr$(10)
  11.  
  12. strSubmissionID = strSubmissionID
  13. strTimestamp = strTimestamp
  14. strSequence = strSequence
  15.  
  16. MsgBox ("Got this far")
  17.  
  18. Set SubLogTest = New clsws_Service0
  19.  
  20. Set objNodeList = SubLogTest.wsm_CorrectedAddressXml(txtSubmissionID, txtTimestamp, txtSequence)
  21.  
  22. End Sub
This is the code generated by using the Web Service Tool and connecting to the url given to us by our xml team
Sep 7 '06 #1
1 10294
DoctorV3774
4 New Member
In the past, I used IXMLDOMNodeList against complex data types returned from web services calls.The document is expecting XML as input and returns XML as output. I looked for documentation for sending XML as a complex data type to a web service but was unable to find any info.

For now this is the input XML format. There is an XSD for it.
Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <SHSQuoteDataReadReq
  4.  
  5. xmlns="http://www.gaic.com/SHSQuoteData"    
  6. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  7. xsi:schemaLocation="http://www.gaic.com/SHSQuoteData SHSQuoteData.xsd
  8. http://www.w3.org/XML/1998/namespace xml-ns.xsd">
  9.  
  10.   <MsgStatusCd/>
  11.  
  12.   <MsgStatusDesc/>
  13.  
  14.   <SubmissionID>3632</SubmissionID>
  15.  
  16.   <QuoteKey>
  17.  
  18.     <QuoteTxnTimestamp>2006-07-06-10.22.38.957176</QuoteTxnTimestamp>
  19.  
  20.     <QuoteTxnSeq>02</QuoteTxnSeq>
  21.  
  22.   </QuoteKey>
  23.  
  24.   </SHSQuoteDataReadReq>
Sep 8 '06 #2

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

Similar topics

4
422
by: John Bailo | last post by:
I wrote a .NET/c# webservice which I then needed to consume from java server pages. The simplest ( and best ) solution I found, was some code to open a socket, and send a SOAP message directly to it...constructing the SOAP message with a class that builds the string. Then I parse the return soap message for the result. Now I wonder,...
71
7849
by: Lauren Wilson | last post by:
Hello folks, Would love yo get all informed opinions and/or facts on the following: Over the last few weeks I have spent quite a bit of time reviewing all the Access and .NET stuff I could find on Microsoft.com. It's seems harder and harder to find much of anything about Access as a primary development platform. I am getting the...
64
5143
by: John | last post by:
Hi What future does access have after the release of vs 2005/sql 2005? MS doesn't seem to have done anything major with access lately and presumably hoping that everyone migrates to vs/sql. Any comments? Thanks
14
2913
by: el_sid | last post by:
Our developers have experienced a problem with updating Web References in Visual Studio.NET 2003. Normally, when a web service class (.asmx) is created, updating the Web Reference will utilise the disco file to update the Corresponding proxy file and reflect the changes made to the web service. However, the results of doing this with...
8
4645
by: Danny J. Lesandrini | last post by:
A while back (around mid September) I posted a message about how I'd configured my client apps to upload error messages to my web server. I really like the service, but David Fenton suggested that the IE factor was unsafe and ill advised. Since that time, I was tasked to figure out how to consume a Web Service from Access. Well, I worked up...
52
9917
by: Neil | last post by:
We are running an Access 2000 MDB with a SQL 7 back end. Our network guy is upgrading to Windows Server 2003 and wants to upgrade Office and SQL Server at the same time. We're moving to SQL Server 2005, and, since he already has licenses for Office Pro 2002, he wants to upgrade to that. I've been saying that we need to upgrade to Access...
2
6029
by: hharry | last post by:
hello all, trying to consume a simple web service using httpwebrequest instead of generating a proxy class. code for simple web service: Imports System.Web.Services <System.Web.Services.WebService(Namespace :=
3
6086
by: Jeremy Chapman | last post by:
I've writtin a very simple web service in axis which returns an array of classes. I consume it in a .net app. When receiving the response, my .net app generates an error "Cannot assign object of type System.Object to an object of type PersonWS.WorkGroupData.". I've included the wsdl of the consumed axis web service, the...
4
2795
by: Max2006 | last post by:
Hi, I am developing a web application on windows XP. A page within my application needs to access to SSRS running on the same machine. Once the web application tries to consume the SSRS web services, I receive the following error: System.Web.Services.Protocols.SoapException: The permissions granted to user DEV1\ASPNET' are insufficient...
0
7178
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7397
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7565
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7128
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5704
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5103
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4759
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3242
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
817
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.