NetTalk Central

Author Topic: URGENT! Web Service Problem  (Read 4348 times)

ralonso2001

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
    • Qúbigo ERP
    • Email
URGENT! Web Service Problem
« 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!!!!
« Last Edit: November 20, 2015, 05:22:02 AM by ralonso2001 »
Regards,
Rodrigo Alonso
Mendoza - Argentina

urayoan

  • Full Member
  • ***
  • Posts: 222
    • View Profile
    • AZ Rock Radio
Re: URGENT! Web Service Problem
« Reply #1 on: November 20, 2015, 05:58:21 AM »
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"'

ralonso2001

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
    • Qúbigo ERP
    • Email
Re: URGENT! Web Service Problem
« Reply #2 on: November 20, 2015, 07:36:47 AM »
Thank you Urayoan!!!!
Regards,
Rodrigo Alonso
Mendoza - Argentina