Last post Oct 10, 2014 11:54 AM by Salpo123
Oct 09, 2014 11:57 AM|Salpo123|LINK
I am new to webservices.
I am trying to consumer a webservice in MS Access 2010. I am able to run and get response in SoapUI but when I try using MS Access, I get the following error.
The SOAP action specified on the message, '', does not match the HTTP SOAP Action
I assume this is due to ws-addressing not enabled. I want to know how do I enable the addressing in MS Access.
The code I am using to access the webservice is as below
Public Function http_Resp(ByVal sReq As String) As String
Dim str As String
Dim str1 As String
Dim xmlstr As String
Dim XMLHttp1 As New MSXML2.XMLHttp
xmlstr = ImportTextFile("<Path>Testupdated.xml")
str = "application/soap+xml;charset=UTF-8;action=" & Chr(34) & "<URL>" & Chr(34)
str1 = Chr(34) & "<URL>" & Chr(34)
.Open "Post", "<URL>", False
.setRequestHeader "Accept-Encoding", "gzip, deflate"
.setRequestHeader "Content-Type", str
.setRequestHeader "SoapAction", str1
.setRequestHeader "Content-Length", Len(xmlstr)
str = XMLHttp1.responseText
Set XMLHttp1 = Nothing
Oct 10, 2014 03:20 AM|Shawn - MSFT|LINK
Default message version is WS-Addressing 1.0 and SOAP 1.2. If the other party requires the messages to be encoded only in Soap1.1 and if it does not understand the “WS-Addressing” headers, the WS-Addressing headers can be disabled by modifying the messageVersion
in the message encoding element of the customBinding.
For more information, you could refer to:
Oct 10, 2014 11:54 AM|Salpo123|LINK
Thank you very much for your help. I will refer the links and let you know :-)