NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: ralonso2001 on November 20, 2015, 04:35:14 AM
-
Hi, I´ve been using a goverment web server for a few years for electronic invoices in Argentina.
Since last 4 days its not working.
I test the dummy method via browser and it responds perfect (https://serviciosjava.afip.gob.ar/wsmtxca/services/MTXCAService/dummy)
Here is my POST:
POST /wsmtxca/services/MTXCAService/dummy/ HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Accept-Language: en
Content-Type: text/xml;charset=utf-8
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16 ( .NET CLR 3.5.30729; .NET4.0C)
Host: serviciosjava.afip.gob.ar
Content-Length: 165
Connection: Close
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body/></soapenv:Envelope>
Here is my response:
HTTP/1.1 500 Internal Server Error
Date: Fri, 20 Nov 2015 13:16:15 GMT
X-Powered-By: Servlet/3.0; JBossAS-6
Connection: close
Content-Type: text/xml;charset=utf-8
Set-Cookie: TS01274670=01439f1ddf70259b94ad2d5231c91301d3567db78444fd0b916b66c1453419310f68f3061d; Path=/
<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault xmlns:axis2ns10249="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>axis2ns10249:Client</faultcode><faultstring>The endpoint reference (EPR) for the Operation not found is http://serviciosjava.afip.gob.ar/wsmtxca/services/MTXCAService/dummy/ and the WSA Action = null</faultstring><detail /></soapenv:Fault></soapenv:Body></soapenv:Envelope>
Here is a POST from SOAPUI that is working fine..
POST https://serviciosjava.afip.gob.ar/wsmtxca/services/MTXCAService HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "http://impl.service.wsmtxca.afip.gov.ar/service/dummy"
Content-Length: 115
Host: serviciosjava.afip.gob.ar
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.3.1 (java 1.5)
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body/>
</soapenv:Envelope>
Thank you!!!!
-
Rodrigo, Looking at your POST I can not locate the SOAP Action in your header
Try to add this before the post in your client and see what's happen.
net.customheader = 'SOAPAction: "http://impl.service.wsmtxca.afip.gov.ar/service/dummy"'
-
Thank you Urayoan!!!!