1. Oscar Rios
  2. PowerBuilder
  3. Thursday, 2 November 2017 17:17 PM UTC

When calling a webservice, it returns the following message:

---------------------------

Web Service Error

---------------------------

Operation: Retrieve

Buffer: Primary

Method: getDatosPrincipales

Error message: The client found the answer content type 'text / plain', but 'text / xml' was expected.

Error of the request with the error message:

http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://service.consultaruc.registro.servicio2.sunat.gob.pe">http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:BeanDdp" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="urn:ConsultaRuc">070701020701721010007/08/200402/02/19960001-   -      RIOS RAMIREZ ARMANDO OSCAR PEDRO                                                                    OCONFECCIONES MILITARES-  

Marco Meoni Accepted Answer Pending Moderation
  1. Friday, 3 November 2017 14:44 PM UTC
  2. PowerBuilder
  3. # 1

Hi,

the problem seems to be at the server side and not at your side.

You can try to find out what header you get using the soapUI utility, write a SOAP XML request and send it to the web service.

When you get the response, look for Content-Type header. 

Cheers,

Marco

Comment
  1. Oscar Rios
  2. Tuesday, 7 November 2017 20:52 PM UTC
Hi



You will have some code that uses the SOAP XML call from PowerBuilder, I have tried several codes that I found on the web but I can not get it to work.

  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.