XMLDocument problems

dan_cooper
Kilo Contributor

I'm working on a Web Serviced integration with ServiceNow and Pinnacle, and during testing, I've been using the Background Scripts module to test, and when I try to invoke Outbound SOAP messages that work properly in the "Test" feature, I receive this error.

org.xml.sax.SAXParseException: White spaces are required between publicId and systemId.
Evaluator: java.lang.NullPointerException
Caused by error in Script Include: 'XMLDocument' at line 16

13: this.xmlDoc = new Packages.com.glide.util.XMLDocument(); // it is a new XML document
14: }
15:
==> 16: this.setCurrent(this.xmlDoc.getDocumentElement());
17: },
18:
19: createElement : function(name, value) {


Does anyone know what causes this error? Any suggestions on remedying it?

3 REPLIES 3

john_andersen
Tera Guru

Can you post the script that you are running with the "Scripts - Background" module? Also, if possible, the "test" envelope and result could be helpful.


dan_cooper
Kilo Contributor

I'll attach the scripts, but there are three of them. The "workflow script" is the one that I run in the Background Scripts module, but I would imagine that the error could be coming from any of the three, as they're all connected.

The envelope for the "NEW" function of the PinnaclePreOrder Outbound SOAP Message is:



<SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="http://xmlns.oracle.com/orawsv/PS_API/PRE_ORDER_WS" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<m:SNUMBER-NEWInput>
<m:PRE_ORDER-PRE_ORDER_O-CIN>
<m:PRE_ORDER_O>
${RECORD_XML}
</m:PRE_ORDER_O>
</m:PRE_ORDER-PRE_ORDER_O-CIN>
</m:SNUMBER-NEWInput>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


with an example response being:


<?xml version="1.0" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<NEWOutput xmlns="http://xmlns.oracle.com/orawsv/PS_AP/PRE_ORDER_WS">
<RETURN>13706</RETURN>
</NEWOutput>
</soap:Body>
</soap:Envelope>


ddhaene
Kilo Contributor

BUMP
I am finding the same message in our logs. Has there been any further discussion about this topic?