![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Anyone using Access/VBA to interface with web services who has used a) WSDL.exe to generate a .NET client and then added the necessary "wrapper" and whatever else is necessary to enable it to be called from VBA code in Access? or b) Used Visual Studio to generate a similar .net client (there is an automated tool in VS that does a similar job in generating the .net client) and successfully specified the COM access capability such that you could call it from Access/VBA? Either of the above approaches would appear to be the most current and recommended - just I can't figure out how to do so and make it callable from Access/VBA. Currently I am using pre-assembled SOAP commands in a table that I send using XMLHTTP. As I recall, this is the method used by and recommended to me by Albert Kallal. This works well although to modify parameters I have had to set dummy strings (ex. XXXXX or YYYYY) in the SOAP and then use find/replace to set the current date or other changeable parameter. I have tried using the Web services toolkit in Access/VBA but it does not allow me to add fields to the SOAP header that are required by my web service. My web service, built by a third party, requires authentication data to be submitted in the SOAP header.(I have read that it is possible to utilize custom IHeaderHandler and related classes to achieve this but so far I have been unsuccessful. I have also tried using PocketSoap which is a nice toolkit, free. I am almost there with PocketSoap - I can create the custom SOAP header I need as well as the complex data consisting of 6 fields in a structure. SO far I can send and receive so I know I am talking to the web service. I have not resolved all the issues in getting it to understand the SOAP message I am sending. I am using Fiddler 2 which is a very nice free tool to watch the soap messages to and from. Fiddler 2 now handles HTTPS messages which is what I am required to use. surely someone out there has been successful with one of these methods that have so far eluded me. bob |
#3
| |||
| |||
|
|
Sorry Bob - I don't have an answer. I need to figure out how to get credit card verification working with Access 2010 and web services. I certainly hope I will be successful. From what I remember the vendor telling me, it sounds so much like what you are trying to do! Anyone using Access/VBA to interface with web services who has used a) WSDL.exe to generate a .NET client and then added the necessary "wrapper" and whatever else is necessary to enable it to be called from VBA code in Access? or b) Used Visual Studio to generate a similar .net client (there is an automated tool in VS that does a similar job in generating the .net client) and successfully specified the COM access capability such that you could call it from Access/VBA? Either of the above approaches would appear to be the most current and recommended - just I can't figure out how to do so and make it callable from Access/VBA. Currently I am using pre-assembled SOAP commands in a table that I send using XMLHTTP. As I recall, this is the method used by and recommended to me by Albert Kallal. This works well although to modify parameters I have had to set dummy strings (ex. XXXXX or YYYYY) in the SOAP and then use find/replace to set the current date or other changeable parameter. I have tried using the Web services toolkit in Access/VBA but it does not allow me to add fields to the SOAP header that are required by my web service. My web service, built by a third party, requires authentication data to be submitted in the SOAP header.(I have read that it is possible to utilize custom IHeaderHandler and related classes to achieve this but so far I have been unsuccessful. I have also tried using PocketSoap which is a nice toolkit, free. I am almost there with PocketSoap - I can create the custom SOAP header I need as well as the complex data consisting of 6 fields in a structure. SO far I can send and receive so I know I am talking to the web service. I have not resolved all the issues in getting it to understand the SOAP message I am sending. I am using Fiddler 2 which is a very nice free tool to watch the soap messages to and from. Fiddler 2 now handles HTTPS messages which is what I am required to use. surely someone out there has been successful with one of these methods that have so far eluded me. bob If you don't have to use authentication in the SOAP message header, you |
#4
| |||
| |||
|
|
a) WSDL.exe to generate a .NET client and then added the necessary "wrapper" and whatever else is necessary to enable it to be called from VBA code in Access? |
|
As I recall, this is the method used by and recommended to me by Albert Kallal. This works well although to modify parameters I have had to set dummy strings (ex. XXXXX or YYYYY) in the SOAP and then use find/replace to set the current date or other changeable parameter. |
#5
| |||
| |||
|
|
"BobAlston" wrote in message news:jf9u5m$uk7$1 (AT) dont-email (DOT) me... a) WSDL.exe to generate a .NET client and then added the necessary "wrapper" and whatever else is necessary to enable it to be called from VBA code in Access? Break this down into steps: #1) Are you comfortable using .net and consuming web services now? There is tons and tons of examples. ......... Once again Albert - many thanks!!! |
#6
| |||
| |||
|
|
On 1/21/2012 8:16 PM, Albert D. Kallal wrote:> "BobAlston" wrote in messagenews:jf9u5m$uk7$1 (AT) dont-email (DOT) me... a) WSDL.exe to generate a .NET client and then added the necessary "wrapper" and whatever else is necessary to enable it to be called from VBA code in Access? Break this down into steps: #1) Are you comfortable using .net and consuming web services now? There is tons and tons of examples. ......... Once again Albert - many thanks!!! It will take me a while to digest all that you have written. However, I am pleased to report that I have been able to use Visual Studio 2010 and created a web services client proxy dll and got it registered to COM. *I am able to see the method and the structures including the soap header custom authentication header structure. The key seems to be to use VS 2010 and not VS 2003 which I had been using.. I am getting an error when I try to set an instance of the SOAP header object but I read that applying all Office updates can cure that (I am running this on a laptop I recently inherited from my daughter and just installed Office 2003 and a 30 day trial of VS 2010). Regards, Bob |
![]() |
| Thread Tools | |
| Display Modes | |
| |