文档中心 > API类目 > 新制造API

taobao.rhino.gateway.hsfproxy (新制造HSF服务转HTTP)

将财务平台的HSF接口转成HTTP接口提供给部署在集团内网的SAP系统调用

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
interface_name String 必须 com.alibaba.rhino.scpproxy.center.service.hsf.provider.TestService 接口名称,只允许调用约定好的几个接口
target_method String 必须 test 接口方法,只允许调用约定好的方法
parameter_datas String 可选 ["[{\"bizType\":\"bt\",\"debit\":false,\"extInfo\":{\"k1\":\"v1\",\"k2\":2,\"k3\":false},\"taxRates\":[{\"taxAmount\":1.1100000000000000976996261670137755572795867919921875,\"taxType\":\"taxType1\"},{\"taxAmount\":2.220000000000000195399252334027551114559173583984375,\"taxType\":\"taxType2\"}],\"withTaxAmount\":12.235}]"] 接口参数数据列表
parameter_types String 可选 ["java.util.List<com.alibaba.financial.smartpay.api.dto.expense.BizExpenseDetailDTO>"] 接口参数类型列表

响应参数

名称 类型 示例值 描述
result_data String a 返回数据
result_code String -1 返回code
result_msg String exception happened 返回msg
result_success Boolean true 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
RhinoGatewayHsfproxyRequest req = new RhinoGatewayHsfproxyRequest();
req.setInterfaceName("com.alibaba.rhino.scpproxy.center.service.hsf.provider.TestService");
req.setTargetMethod("test");
req.setParameterDatas("[\"[{\\"bizType\\":\\"bt\\",\\"debit\\":false,\\"extInfo\\":{\\"k1\\":\\"v1\\",\\"k2\\":2,\\"k3\\":false},\\"taxRates\\":[{\\"taxAmount\\":1.1100000000000000976996261670137755572795867919921875,\\"taxType\\":\\"taxType1\\"},{\\"taxAmount\\":2.220000000000000195399252334027551114559173583984375,\\"taxType\\":\\"taxType2\\"}],\\"withTaxAmount\\":12.235}]\"]");
req.setParameterTypes("[\"java.util.List<com.alibaba.financial.smartpay.api.dto.expense.BizExpenseDetailDTO>\"]");
RhinoGatewayHsfproxyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<rhino_gateway_hsfproxy_response>
    <result_data>a</result_data>
    <result_code>-1</result_code>
    <result_msg>exception happened</result_msg>
    <result_success>true</result_success>
</rhino_gateway_hsfproxy_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部