一、接口样例
1、打开服务管理平台

2、创建接口写上相关代码


/********************
this.entityManager
this.applications
this.requestText//请求正文
this.request//请求
this.currentPerson//当前用户
this.response//响应对象。通过this.response.setBody(data)设置响应内容
this.organization
this.org
this.service
********************/
try{
var result = {
}
var wsdl = "http://172.16.1.235:8009/hello?wsdl"
var method = "sayHello"
var ws = this.service
var parameter = "wwx"
var res = ws.jaxws(wsdl, method, parameter)
print(res[0])
result.state = "NMT0001"
result.message = "成功"
}catch(e){
e.printStackTrace()
result.state = "NMT0002"
result.message = "失败"
result.data = e.name + ": " + e.message
}
//JSON.stringify(result)
this.response.setBody(result,"application/json")