Bing CampaignManagementService从V9到V10请求 [英] Bing CampaignManagementService from V9 to V10 request

查看:65
本文介绍了Bing CampaignManagementService从V9到V10请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将V9迁移到V10,而不使用仅使用C#SOAP调用的SDK。

I am trying to migrate our V9 to V10 without using the SDK just using C# SOAP call.

之后我升级服务引用我得到了很多编译错误,看起来很多方法的签名已经改变了。例如,

After I upgrade the service reference I got a lot compile error that looks like a lot method's signature has changed. 

我能够实例化  GetCampaignsByAccountIdResponse  低于
in v9。

for example I was able to instantiate the GetCampaignsByAccountIdResponse as below in v9.

var service = new CampaignManagementServiceClient("BasicHttpBinding_ICampaignManagementService");
GetCampaignsByAccountIdRequest request= new GetCampaignsByAccountIdRequest();
GetCampaignsByAccountIdResponse response = service.GetCampaignsByAccountId(request);

现在进入V10,编译器错误"& nbsp; GetCampaignsByAccountId有11  参数但使用1参数调用"

Now in V10, the compiler error with "The GetCampaignsByAccountId has 11 parameters but invoke with 1 argument"

我的问题是我现在必须用V10而不是请求对象传递11个参数吗?谢谢!  

My question is that do I have to pass 11 parameters now with V10 instead of request object? Thanks! 

推荐答案

您好。

我们没有以这种方式更改邮件合同。请务必选中"始终生成邮件合同"框。添加或配置服务引用时。这应该可以解决问题。 

We have not changed the message contracts in such a way. Be sure to check the box "Always generate message contracts" when adding or configuring the service reference. This should resolve the issue. 

我希望这有帮助!


这篇关于Bing CampaignManagementService从V9到V10请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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