LO_HTTP_CLIENT->PROPERTYTYPE_LOGON_POPUP = LO_HTTP_CLIENT->CO_DISABLED."设定传输请求内容格式以及编码格式LO_HTTP_CLIENT->REQUEST->SET_CONTENT_TYPE( CONTENT_TYPE='application/json; charset=utf-8').CALLMETHODLO_HTTP_CLIENT->REQUEST->SET_HEADER_FIELDEXPORTINGNAME='Authorization'VALUE=LV_AUTHORIZATION...
public class HttpConnSap { public static void main(String[] args) throws IOException { // 创建指定链接的url对象 URL url = new URL("http://xxx.xxx.xxx.xxx:xxxx/XISOAPAdapter/MessageServlet?senderParty=&senderService=xxxxxx&receiverParty=&receiverService=&interface=xxxxxxx&interfaceNamespace=urn:...
* CALL METHOD LO_HTTP_CLIENT->AUTHENTICATE * EXPORTING * USERNAME = Lv_USERNAME * PASSWORD = Lv_PASSWORD. "设置http method 为POST LO_HTTP_CLIENT->REQUEST->SET_METHOD( IF_HTTP_REQUEST=>CO_REQUEST_METHOD_POST ). "IF_HTTP_ENTITY~CO_REQUEST_METHOD_GET "发送 CALL METHOD LO_HTTP_CLIENT->SE...
gv_string= gv_string+116(lv_len).CONCATENATE'<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:''soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:crm="http://crmsoap.trs.com">'gv_stringINTOgv_stri...
2.2具体接口 当获取TOKEN成功之后,就可以继续执行后续的某个业务功能接口了 仍然根据访问的接口URL创建HTTP客户端 设置传输格式,校验权限,访问方式 根据传入JSON,定义内表,并转换为JSON格式 同理,调用发送和接收函数,之后用相同方式获取返回的JSON数据,并将其转换为内表,做后续操作,方法和认证接口处理一致,不再赘述。