调用以下适配器返回Ecma Error: TypeError: Cannot read property \"Body\" from undefined.
我已经阅读了类似的主题并且有
-Dorg.xml.sax.driver = com.sun.org.apache.xerces.internal.parsers.SAXParser
到 eclipse.ini 但没有解决问题。
function getStateDetails(idstate) {
var request='<?xml version="1.0" encoding="utf-8"?>'+
'<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">'
+'<soap:Body>'
+ '<test_demo><in0>{idstate}</in0></test_demo>'
+'</soap:Body>'
+'</soap:Envelope>';
var input = {
method : 'post',
returnedContentType : 'xml',
path : '/axis2/services/ws_demo/test_demo.wsdl',
body : {
content: request.toString(),
contentType: 'text/xml; charset=utf-8'
}
};
var result = WL.Server.invokeHttp(input);
return result.Envelope.Body;
}