String username="test";
String password="123456";
Map header=["Authorization":"Basic " +Fx.crypto.base64.encode(Fx.utils.toUTF8Bytes(username+":"+password))
,"Content-Type":"text/xml; charset=utf-8"];
String requestUrl="";
//请求报文
String requestXml = "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:urn=\"urn:sap-
com:document:sap:rfc:functions\">\n" +
" <soapenv:Header/>\n" +
" <soapenv:Body>\n" +
" <urn:ZCRMFU_0008A>\n" +
" <I_INPUT></I_INPUT>\n" +
" </urn:ZCRMFU_0008A>\n" +
" </soapenv:Body>\n" +
"</soapenv:Envelope>";
//请求数据:执行调用ERP接口的WEB请求
def (Boolean error2,HttpResult result2,String errorMessage2) = Fx.http.post(requestUrl,header,requestXml,30000,false,0)