Skip to content

Instantly share code, notes, and snippets.

@ivanionut
Forked from adinapoli/request.md
Created October 5, 2020 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivanionut/817a1a1b214ea4069e2edc4f64c58516 to your computer and use it in GitHub Desktop.
Save ivanionut/817a1a1b214ea4069e2edc4f64c58516 to your computer and use it in GitHub Desktop.

URL: https://collaudo-wsrest.sda.it/WS-RITIRI-WEB/InserisciRitiroWSService Headers: Authorization: Basic REVNMjAxNzk1Okdlbm5haW8xMCE= (il solito encoding base64 di user + pwd di prova, come da docs) Content-Type: application/json

{
   "mittente":{
      "cap":"",
      "citofono":"",
      "codiceCliente":"",
      "email":"",
      "indirizzo":"",
      "interno":"",
      "localita":"",
      "nominativoContatto":"",
      "oraAperturaMattino":"",
      "oraAperturaPomeriggio":"",
      "palazzina":"",
      "partitaIva":"",
      "provincia":"",
      "ragioneSociale":"",
      "ritiroPressoPortineria":"true",
      "scala":"A",
      "telefono":"1",
      "ufficio":"SEGRETERIA"
   },
   "destinatario":{
      "cap":"00118",
      "citofono":"1234",
      "codiceCliente":"000000000012",
      "email":"prova @sda.it",
      "indirizzo":"via prova",
      "interno":"9",
      "localita":"Roma",
      "nominativoContatto":"1 1",
      "oraAperturaMattino":"11:21",
      "oraAperturaPomeriggio":"14:21",
      "palazzina":"1",
      "partitaIva":"02010250658",
      "provincia":"RM",
      "ragioneSociale":" ",
      "ritiroPressoPortineria":"false",
      "scala":"A",
      "telefono":"1",
      "ufficio":"SEGRETERIA"
   },
   "ritiro":{
      "dataRichiesta":"2016-01-22T10:13:23+01:00",
      "note1":"aaaa",
      "dataRitiro":"2016-01-24T10:13:23+01:00",
      "tiporitiro":{
         "buste":{
            "numeroColli":"1",
            "peso":"1"
         },
         "servizio":"PF"
      }
   },
   "idSemeLdv":"65643",
   "codCliPagante":"000000003058"
}

Ottengo risposta 200 con body:

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
    <soapenv:Body>
        <soapenv:Fault>
            <soapenv:Code>
                <soapenv:Value>soapenv:Receiver</soapenv:Value>
            </soapenv:Code>
            <soapenv:Reason>
                <soapenv:Text xml:lang="en-US">javax.xml.stream.XMLStreamException: An invalid XML character (Unicode: 0x7b) was found in the prolog of the document.</soapenv:Text>
            </soapenv:Reason>
            <soapenv:Detail></soapenv:Detail>
        </soapenv:Fault>
    </soapenv:Body>
</soapenv:Envelope>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment