【问题标题】:Workday SOAP client Unsupported endpoint addressWorkday SOAP 客户端 不支持的端点地址
【发布时间】:2016-08-30 09:28:39
【问题描述】:

我正在尝试连接到工作日 HR 网络服务。但我得到:

WebServiceException:不支持的端点地址:Human_Resources。

public static void main(String[] args){
    HumanResourcesService hrservice=new HumanResourcesService();
    HumanResourcesPort hrport=hrservice.getHumanResources();
    //further code
}

来自 HumanResourcesService 类的 WebEndpoint Snippet:

@WebEndpoint(name = "Human_Resources")
public HumanResourcesPort getHumanResources() {
    return super.getPort(new QName("urn:com.workday/bsvc/Human_Resources", "Human_Resources"),
            HumanResourcesPort.class);
}

感谢任何帮助。

【问题讨论】:

    标签: web-services soap workday-api


    【解决方案1】:

    在定义 Workday API 端点时,您需要在 urn 末尾包含版本号。

    例如你有:

    urn:com.workday/bsvc/Human_Resources
    

    它应该是(如果你使用 v28)

    urn:com.workday/bsvc/Human_Resources/v28.0
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-05-25
      • 1970-01-01
      • 2018-06-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多