CA SDM Webservice error::. org.xml.sax.SAXParseException; Premature end of file.
updateobject method webservice fails when it is launched from Service Desk, The responsebody logs show the error bellow:
Erro ao tentar utilizar o método de updateobject no webservice
ERROR / Issue:
org.xml.sax.SAXParseException; Premature end of file.
Environment:
CA SM 17
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>org.xml.sax.SAXParseException; Premature end of file.</faultstring><detail>
<ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">XXXXXXXXXXXXX</ns1:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
Resolution:
Your post is tagging something like XML, for example on the description field.
<string>description<string>
<string>
Insert my description with XML c:\<here>\directory\new\
</string>
<string>description<string>
<string>
Insert my description with XML c:\<here>\directory\new\
</string>
You could to take off these TAGs, for example:
<string>description<string>
<string>
Insert my description with XML c:\(here)\directory\new\
</string>