Highlighted
Respected Contributor.
Respected Contributor.
475 views

SOAP request error

Hello experts

I do a consult with javascript in SM script library to a XML file located in a external server, in some cases I see the next error

"No se puede evaluar la expresión (display,show.rio)
Arg. erróneo (2) oper. = (display,show.rio)
No se puede evaluar la expresión jscall("JavaScript.functionname", "XXXXXXXXXXX") (display,show.rio)
Script 'JavaScriot' línea 20: ERROR TypeError: Respuesta has no properties en car. 1
Error calling method: doSoapRequest in class: com/hp/ov/sm/server/utility/SoapClient Exception (javax.xml.transform.TransformerException: org.xml.sax.SAXParseE
xception; lineNumber: 1; columnNumber: 521; Character reference "&#26" is an invalid XML character.)
Error deserializing response: TypeError: this.resultXML has no properties
Error calling method: doSoapRequest in class: com/hp/ov/sm/server/utility/SoapClient Exception (javax.xml.transform.TransformerException: org.xml.sax.SAXParseE
xception; lineNumber: 1; columnNumber: 521; Character reference "&#26" is an invalid XML character.)
<soap:Envelope xmlns:ns0="http://url" xmlns:ns1="http://www.w3.org/2006/05/addressing/wsdl" xmlns:ns2="http://schemas.xmlsoap.org/wsd
l/" xmlns:ns3="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ns4="http://ws-i.org/profiles/basic/1.1/xsd" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><ns0:function xmlns:ns0="http://url"><numeroCuenta xsi:type="xsd:string">XXXXXXXXXXX</numeroCuenta></ns0:function></soap:Body></soap:Envelope>"

Sometimes works properly

Do you have some idea to fix these? Please

Thank you in advance

Best regards

0 Likes
4 Replies
Highlighted
Outstanding Contributor.. Outstanding Contributor..
Outstanding Contributor..

Re: SOAP request error

You have an invalid character in the xml

 

xception; lineNumber: 1; columnNumber: 521; Character reference "&#26" is an invalid XML character.)

 

0 Likes
Highlighted
Respected Contributor.
Respected Contributor.

Re: SOAP request error

Hello Tommy

Is possible remove or quit that character from Service Manager before the javascript uses the XML file?

How I can to fix these?

Thank you

Best regards

0 Likes
Highlighted
Outstanding Contributor.. Outstanding Contributor..
Outstanding Contributor..

Re: SOAP request error

It has to be fixed at the source. This error occurs at a time where you have no control over the incoming data.

0 Likes
Highlighted
Regular Contributor.. Regular Contributor..
Regular Contributor..

Re: SOAP request error

a step back with SM, Service Center 6.1.3  can handle the strange character, I just do not know what to change to work in SM.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.