Error ERR_CONNECTION_RESET when trying to consume webservice

0

I'm trying to consume in PHP a method of a web-service and when trying to open the page does not respond, I made the same request for SoapUI and the return comes quietly.

complexContent:

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:AGIntf-IAG" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
   <soapenv:Header/>
   <soapenv:Body>
      <urn:IncluiBaixaContasReceber soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <BaixaContasaReceber xsi:type="urn:TBaixaContasaReceber" xmlns:urn="urn:AGIntf">
            <CRE_Codigo xsi:type="xsd:string">20180409943</CRE_Codigo>
            <SequencialVencimento xsi:type="xsd:int">1</SequencialVencimento>
            <Sequencial xsi:type="xsd:int">1</Sequencial>
            <ExportaAC xsi:type="xsd:int">1</ExportaAC>
            <Data xsi:type="xsd:dateTime">2018-06-04</Data>
            <Valor xsi:type="xsd:double">757.00</Valor>
            <LAN_ContaFinanceira xsi:type="xsd:string">0001</LAN_ContaFinanceira>
           </BaixaContasaReceber>
      </urn:IncluiBaixaContasReceber>
   </soapenv:Body>
</soapenv:Envelope>

$client  = new SoapClient('http://localhost/cgi-bin/agws.exe/wsdl/IAG');
    $arguments = array(
                    "CRE_Codigo" => "20180301915",
                    "SequencialVencimento" => 1,
                    "Sequencial" => 0,
                    "Data" =>  "2018-06-03-06:00",
                    "Valor"=> 116309.12,
                    "LAN_ContaFinanceira" => "0001",
                    "ExportaAC" => 1
                );

No SoapUI:

$result = $client->__soapCall("IncluiBaixaContasReceber",array('BaixaContasaReceber' => $arguments));

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:AGIntf-IAG" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
   <soapenv:Header/>
   <soapenv:Body>
      <urn:IncluiBaixaContasReceber soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <BaixaContasaReceber xsi:type="urn:TBaixaContasaReceber" xmlns:urn="urn:AGIntf">
            <CRE_Codigo xsi:type="xsd:string">20180409943</CRE_Codigo>
            <SequencialVencimento xsi:type="xsd:int">1</SequencialVencimento>
            <Sequencial xsi:type="xsd:int">1</Sequencial>
            <ExportaAC xsi:type="xsd:int">1</ExportaAC>
            <Data xsi:type="xsd:dateTime">2018-06-04</Data>
            <Valor xsi:type="xsd:double">757.00</Valor>
            <LAN_ContaFinanceira xsi:type="xsd:string">0001</LAN_ContaFinanceira>
           </BaixaContasaReceber>
      </urn:IncluiBaixaContasReceber>
   </soapenv:Body>
</soapenv:Envelope>
    
asked by anonymous 04.06.2018 / 15:33

0 answers