Hello again!!!
I keep getting this error:
<errormessage xmlns="http://www.ebay.com/marketplace/search/v1/services"><error>
<errorid>(11002)</errorid>
<domain>(Security)</domain>
<severity>(Error)</severity>
<category>(System)</category>
<message>(Authentication failed : Missing required credential for authn method)</message>
<subdomain>(Authentication)</subdomain>
(Missing required credential for authn method)
</error>
</errormessage>
After I run this code:
Sub VBAeBayPostAPICall()
Dim xmlHtp As New MSXML2.XMLHTTP
Dim sURL As String
Dim sEnv As String
Dim XMLDOC As New DOMDocument
<soap:envelope><soap:header>sURL = "http://svcs.ebay.com/services/search/FindingService/v1?OPERATION-NAME=findItemsByKeywords"
sEnv = "(?xml version =""1.0"" encoding=""utf-8""?)"
sEnv = sEnv & "(soap:Envelope xmlns:soap=""http://www.w3.org/2003/05/soap-envelope"" xmlns=""http://www.ebay.com/marketplace/search/v1/services"" )"
sEnv = sEnv & "(soap:Header)"
</soap:header></soap:envelope>sEnv = sEnv & "(/soap:Header)"
sEnv = sEnv & "(soap:Body)"
sEnv = sEnv & "(findItemsByKeywordsRequest)"
sEnv = sEnv & "(keywords)harry potter(/keywords)"
sEnv = sEnv & "(/findItemsByKeywordsRequest)"
sEnv = sEnv & "(/soap:Body)"
sEnv = sEnv & "(/soap:Envelope)"
With xmlHtp
.Open "POST", sURL, False
.setRequestHeader "HOST", ""
.setRequestHeader "SERVICE-NAME", "FindingService"
.setRequestHeader "OPERATION-NAME", "findItemsByKeywords"
.setRequestHeader "GLOBAL-ID", "EBAY-US"
.setRequestHeader "SERVICE-VERSION", "1.13.0"
.setRequestHeader "SECURITY-APPNAME", "MYAPPID" ' I put my APPID here in this field
.setRequestHeader "REQUEST-DATA-FORMAT", "XML"
.setRequestHeader "MESSAGE-PROTOCOL", "SOAP12"
.setRequestHeader "MESSAGE-ENCODING", "UTF-8"
.send sEnv
XMLDOC.LoadXML .responseText
XMLDOC.Save ActiveWorkbook.Path & "C:\Users\Desktop\WebQueryResult2.xml"
End With
End Sub
Why am I getting that error?
I keep getting this error:
<errormessage xmlns="http://www.ebay.com/marketplace/search/v1/services"><error>
<errorid>(11002)</errorid>
<domain>(Security)</domain>
<severity>(Error)</severity>
<category>(System)</category>
<message>(Authentication failed : Missing required credential for authn method)</message>
<subdomain>(Authentication)</subdomain>
(Missing required credential for authn method)
</error>
</errormessage>
After I run this code:
Sub VBAeBayPostAPICall()
Dim xmlHtp As New MSXML2.XMLHTTP
Dim sURL As String
Dim sEnv As String
Dim XMLDOC As New DOMDocument
<soap:envelope><soap:header>sURL = "http://svcs.ebay.com/services/search/FindingService/v1?OPERATION-NAME=findItemsByKeywords"
sEnv = "(?xml version =""1.0"" encoding=""utf-8""?)"
sEnv = sEnv & "(soap:Envelope xmlns:soap=""http://www.w3.org/2003/05/soap-envelope"" xmlns=""http://www.ebay.com/marketplace/search/v1/services"" )"
sEnv = sEnv & "(soap:Header)"
</soap:header></soap:envelope>sEnv = sEnv & "(/soap:Header)"
sEnv = sEnv & "(soap:Body)"
sEnv = sEnv & "(findItemsByKeywordsRequest)"
sEnv = sEnv & "(keywords)harry potter(/keywords)"
sEnv = sEnv & "(/findItemsByKeywordsRequest)"
sEnv = sEnv & "(/soap:Body)"
sEnv = sEnv & "(/soap:Envelope)"
With xmlHtp
.Open "POST", sURL, False
.setRequestHeader "HOST", ""
.setRequestHeader "SERVICE-NAME", "FindingService"
.setRequestHeader "OPERATION-NAME", "findItemsByKeywords"
.setRequestHeader "GLOBAL-ID", "EBAY-US"
.setRequestHeader "SERVICE-VERSION", "1.13.0"
.setRequestHeader "SECURITY-APPNAME", "MYAPPID" ' I put my APPID here in this field
.setRequestHeader "REQUEST-DATA-FORMAT", "XML"
.setRequestHeader "MESSAGE-PROTOCOL", "SOAP12"
.setRequestHeader "MESSAGE-ENCODING", "UTF-8"
.send sEnv
XMLDOC.LoadXML .responseText
XMLDOC.Save ActiveWorkbook.Path & "C:\Users\Desktop\WebQueryResult2.xml"
End With
End Sub
Why am I getting that error?
Last edited: