FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FWHX and Web Services
Posts: 1279
Joined: Mon Feb 06, 2006 04:28 PM
FWHX and Web Services
Posted: Thu Jul 17, 2008 01:14 PM
I need to send to a web server:



Request:

POST /inacapi/cargartablas.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://Server/inacapi/cargartablas/Producer"
<?xml version="1.0" encoding="utf-8"?> 
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> 
  <soap:Body> 
    <Producer xmlns="http://Server/inacapi/cargartablas"> 
      <Producers> 
        <Producer> 
          <ProducerCode>int</ProducerCode> 
          <ProducerName>string</ProducerName> 
          <ProducerRUC>long</ProducerRUC> 
          <DepartmentCode>int</DepartmentCode> 
          <RegType>int</RegType> 
        </Producer> 
        <Producer> 
          <ProducerCode>int</ProducerCode> 
          <ProducerName>string</ProducerName> 
          <ProducerRUC>long</ProducerRUC> 
          <DepartmentCode>int</DepartmentCode> 
          <RegType>int</RegType> 
        </Producer> 
      </Producers> 
    </Producer> 
  </soap:Body> 
</soap:Envelope>


To recieve this:


Código:

Respuesta:

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?> 
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> 
  <soap:Body> 
    <ProducerResponse xmlns="http://Server/inacapi/cargartablas"> 
      <ProducerResult>int</ProducerResult> 
    </ProducerResponse> 
  </soap:Body> 
</soap:Envelope>



I will really appreciate any help on this topic.
Thanks in advance.
Saludos/Regards,

José Murugosa

"Los errores en programación, siempre están entre la silla, el teclado y la IA!!"

Continue the discussion