Páginas filhas
  • Taxas Arrendamento Parceria (PUT)

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

Bloco de código
languagexml
titleFamily_Envio
linenumberstrue
collapsetrue
POST /CONTRATOS_WS/CONTRATOS_WS.asmx HTTP/1.1
Host: 10.173.1711.68161
Content-Type: textapplication/soap+xml; charset=utf-8
Content-Length: length
SOAPAction: "CONTRATOS_WS/apiHTTP_POST_ACERTOFDO"

<?xml version="1.0" encoding="utf-8"?>
<soap<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapsoap12="http://schemaswww.xmlsoapw3.org/2003/05/soap/-envelope/">
  <soap<soap12:Body>
    <apiHTTP_PUT_POSTHIST_TX_ACERTOFDOCTCANA xmlns="CONTRATOS_WS">
      <oACERTOFDO><oACERTOPROV>
        <instancia>string</instancia>
        <cdUnidInd><tpRegistro>string</tpRegistro>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </cdUnidInd>
        <deUnidInd>string</deUnidInd>
        <cdFazenda>string</cdFazenda>
        <deFazenda>string</deFazenda>
        <amAcerto>
          <Value>dateTime</Value>
          <IsNull>boolean</IsNull>
        </amAcerto>
        <fgTpProc>string</fgTpProc>
        <pcAcerto>
          <cdUnidInd>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </pcAcerto>cdUnidInd>
        <cdTpCalc>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull><deUnidInd>string</deUnidInd>
        <<cdFazenda>string</cdTpCalc>cdFazenda>
        <deTpCalc>string<<deFazenda>string</deTpCalc>deFazenda>
        <cdFornec><amAcerto>
          <Value>decimal<<Value>dateTime</Value>
          <IsNull>boolean</IsNull>
        </cdFornec>amAcerto>
        <deFornec>string</deFornec><pcAcerto>
        <dtBaseATR>
          <Value>dateTime<<Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </dtBaseATR>pcAcerto>
        <cdSafra><cdTpCalc>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </cdSafra>cdTpCalc>
        <deTpCalc>string</deTpCalc>
        <cdTpPropr><cdFornec>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </cdTpPropr>cdFornec>
        <deTpPropr>string<<deFornec>string</deTpPropr>deFornec>
        <vlATR><dtBaseATR>
          <Value>decimal<<Value>dateTime</Value>
          <IsNull>boolean</IsNull>
        </vlATR>dtBaseATR>
        <vlTonCana><cdSafra>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlTonCana>cdSafra>
        <qtCanaEnt><vlATR>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </qtCanaEnt>vlATR>
        <vlCanaBruto><vlTonCana>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlCanaBruto>vlTonCana>
        <vlCanaLiq><qtCanaEnt>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlCanaLiq>qtCanaEnt>
        <vlFatorK><vlCanaBruto>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlFatorK>vlCanaBruto>
        <vlPg100><vlCanaLiq>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlPg100>vlCanaLiq>
        <vlAcertoATR><vlFatorK>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlAcertoATR>vlFatorK>
        <vltotServ><vlPg100>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vltotServ>
        <fgAcertoFinal>string</fgAcertoFinal>
        <fgIndividual>string</fgIndividual>/vlPg100>
        <vlAcAtrReceb><vlAcertoATR>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlAcAtrReceb>vlAcertoATR>
        <vlKgATR><cdTpPropr>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlKgATR>/cdTpPropr>
        <deTpPropr>string</deTpPropr>
        <vlTotBonus><vlTotServ>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlTotBonus>vlTotServ>
        <fgAcertoFinal>string</fgAcertoFinal>
        <fgIndividual>string</fgIndividual>
        <vlRecPgTot><vlAcAtrReceb>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlRecPgTot>vlAcAtrReceb>
        <fatorReducao><vlKgATR>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </fatorReducao>vlKgATR>
        <acTotNf><vlTotBonus>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </acTotNf>vlTotBonus>
        <vlTotServCorr>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlTotServCorr>
        <fgCalcAcerto>string</fgCalcAcerto>
        <fgAcertoAnual>string</fgAcertoAnual>
        <fgContrRescind>string</fgContrRescind>
        <instContr>string</instContr>
        <cdEmpContr>string</cdEmpContr>
        <noContrCana>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </noContrCana>
        <vlRefAno>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlRefAno>
        <fgProvMensal>string</fgProvMensal>
    <vlICMS>    <fgTpProc>string</fgTpProc>
        <vlIcms>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlICMS>vlIcms>
        <vlDescGeocana>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </vlDescGeocana>
        <qtATRSemPremio><qtAtrSemPremio>
          <Value>decimal</Value>
          <IsNull>boolean</IsNull>
        </qtATRSemPremio>qtAtrSemPremio>
      </oACERTOFDO>oACERTOPROV>
    </apiHTTP_PUT_HIST_POSTTX_ACERTOFDO>CTCANA>
  </soapsoap12:Body>
</soapsoap12:Envelope>
Bloco de código
languagexml
titleFamily_Retorno
linenumberstrue
collapsetrue
HTTP/1.1 200 OK
Content-Type: textapplication/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapsoap12="http://schemaswww.xmlsoapw3.org/2003/05/soap/-envelope/">
  <soap<soap12:Body>
    <apiHTTP_POST_ACERTOFDOResponsePUT_HIST_TX_CTCANAResponse xmlns="CONTRATOS_WS">
      <apiHTTP_PUT_HIST_POSTTX_ACERTOFDOResult>string<CTCANAResult>string</apiHTTP_PUT_POSTHIST_TX_ACERTOFDOResult>CTCANAResult>
    </apiHTTP_PUT_POSTHIST_TX_ACERTOFDOResponse>CTCANAResponse>
  </soapsoap12:Body>
</soapsoap12:Envelope>

Mensagem JSON

Bloco de código
languagejs
titleFamily_Envio
linenumberstrue
collapsetrue
{
	"TOTVSMessage" : {
		"MessageInformation" : {
			"@version" : "2.002",
			"BranchId" : "D MG 01 ",
			"CompanyId" : "T1",
			"DeliveryType" : "Sync",
			"GeneratedOn" : "2018-03-21T19:27:54Z",
			"Product" : {
				"@name" : "ERP",
				"@version" : "12"
			},
			"SourceApplication" : "P12_DEV_SERVERT1",
			"StandardVersion" : "1.000",
			"Transaction" : "FAMILY",
			"Type" : "BusinessMessage",
			"UUID" : "01da1810-a305-6677-bdaf-cda337c8a412"
		},
		"BusinessMessage" : {
			"BusinessEvent" : {
				"Entity" : "FAMILY",
				"Event" : "upsert",
				"Identification" : {
					"key" : {
						"@name" : "InternalId",
						"$" : "T1|D MG 01|456"
					}
				}
			},
			"BusinessContent" : {
				"CompanyId" : "T1",
				"BranchId" : "D MG 01 ",
				"CompanyInternalId" : "T1|D MG 01 ",
				"Code" : "456 ",
				"InternalId" : "T1|D MG 01|456",
				"Description" : "Peças Automotivas",
				"FamilyClassificationCode" : "2"
			}
		}
	}
}

...