WSDL元数据不可用于创建代理 [英] WSDL Metadata not available to create the proxy

查看:130
本文介绍了WSDL元数据不可用于创建代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨:

我只是试图从 bing   ads api获取一些数据,我正在尝试使用该示例代码在这里:

i'm just trying to get some data from bing ads api and I'm trying to use the sample code here:

我得到以下例外情况:

and I'm getting the following exceptions:

异常在线程"主"中 javax.xml.ws.WebServiceException :WSDL元数据不可用于创建代理,Service实例或ServiceEndpointInterface com.microsoft.bingads.customermanagement.ICustomerManagementService应该
具有WSDL信息

Exception in thread "main" javax.xml.ws.WebServiceException: WSDL Metadata not available to create the proxy, either Service instance or ServiceEndpointInterface com.microsoft.bingads.customermanagement.ICustomerManagementService should have WSDL information

at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort( WSServiceDelegate.java:450

at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:450)

at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort( WSServiceDelegate.java:463

at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:463)

在javax.xml.ws.Service.getPort( Service.java:188

at javax.xml.ws.Service.getPort(Service.java:188)

at com.microsoft.bingads.internal.ServiceFactoryImpl.createProxyFromService( ServiceFactoryImpl.java:117

at com.microsoft.bingads.internal.ServiceFactoryImpl.createProxyFromService(ServiceFactoryImpl.java:117)

at com.microsoft .bingads.ServiceClient.getService( ServiceClient.java:94

at com.microsoft.bingads.ServiceClient.getService(ServiceClient.java:94)

at com.glh.importer.spenddata.bing.BingImporter com.glh.imp中的.getUser( BingImporter.java:72

at com.glh.importer.spenddata.bing.BingImporter.getUser(BingImporter.java:72)

orter.spenddata.bing.BingImporter.main( BingImporter.java:104

at com.glh.importer.spenddata.bing.BingImporter.main(BingImporter.java:104)

这是异常来自的函数:

static 用户getUser(java.lang.Long userId 抛出 RemoteException,

static User getUser(java.lang.Long userId) throws RemoteException,

例外{

GetUserRequest request = new GetUserRequest();

GetUserRequest request = new GetUserRequest();

request .setUserId( userId );

request.setUserId(userId);

返回 CustomerService .getService()。getUser ( request )。getUser();

return CustomerService.getService().getUser(request).getUser();

}

我理解可能我在服务调用中缺少相关的WSDL,但在哪里可以添加它?谢谢。

I understand probably I'm missing the relevant WSDL in the service call, but where can I add it? Thanks.

推荐答案

您好。

您使用的是哪个版本的Java SDK?我从未见过这个问题,现在也无法重复。是一致还是间歇?你在尝试沙箱还是生产?您可以尝试抓取最新的SDK以防万一:

Which version of the Java SDK are you using? I have never seen this issue, and can't repro it now. Is it consistent or intermittent? Are you trying sandbox or production? You might try grabbing the latest SDK in case it helps:
https://msdn.microsoft.com/en-US/library/bing-ads-client-libraries.aspx

最好的问候,

Eric

Best regards,
Eric


这篇关于WSDL元数据不可用于创建代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆