Skip to content

Instantly share code, notes, and snippets.

@adinapoli
Created September 14, 2015 16:08
Show Gist options
  • Save adinapoli/57130af54fff2d490780 to your computer and use it in GitHub Desktop.
Save adinapoli/57130af54fff2d490780 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