Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MSXML2.XMLHTTP Error 500
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Web Services
Title:
MSXML2.XMLHTTP Error 500
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01592218
Message ID:
01592218
Views:
60
Hello, I'm running this code:

loHttp = CREATEOBJECT('MSXML2.XMLHTTP')
m.URL = "https://celcer.sri.gob.ec/comprobantes-electronicos-ws/RecepcionComprobantes?wsdl"
loHttp.Open("POST",m.URL,.F.)
loHttp.Send(ALLTRIM(FILETOSTR("factura.xml")))

but after the SEND command I get loHTTP.status = 500
with the following response text

soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
soap:Body> soap:Fault>
faultcode>soap:VersionMismatch faultcode>
faultstring>No namespace on "factura" element. You must send a SOAP request. faultstring>
soap:Fault> soap:Body>
soap:Envelope>

the file factura XML that I'm sending does match the structure required by the web service, so I don't know whay I'm doing wrong.
Thank you for any help.
Next
Reply
Map
View

Click here to load this message in the networking platform