You need to sign in to do that
Don't have an account?
Juan Romero
XML-RPC with vb
Hi there,
Im trying to connect to SalesForce using an XML-RPC client from VB 6.0. However, when I issue requests, I get a response "404 - Document not found" from the server, which probably means that either the port is not 80, or the address to the RPC API is not correct. This is what I am using:
http://www.salesforce.com/servlet/servlet.api
Port = 80
How can I correct this?
Thank you in advance
Hi Juan,
What XML-RPC client are you using? It sounds like you are doing an page request to the url instead of a post. Make sure your code does something like this:
Private xmlhttp As MSXML2.xmlhttp
Dim server as string
server = https://www.salesforce.com/servlet/servlet.Api
xmlhttp.Open "POST", server, False
xmlhttp.setRequestHeader "user-agent", "sForce Test"
xmlhttp.Send "<?xml version=""1.0""?>" & data
The data variable is the xml-rpc request message that you created for the specific call.
If you click the link above you will get a 404. It's an RPC endpoint and will not deliver content to a browser.
Thank you for your prompt response. You helped me figure out what was wrong (silly mistake). I was typing the extension "Api" in the URL as "api" (case sensitive).
Thanks again!