在WCF层中调用Web服务 [英] calling web service in WCF layer

查看:98
本文介绍了在WCF层中调用Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好:
我的项目涉及四个Web服务的实现:Web门户,Extranet,CRM和Billing,以及WCF层的实现,需要从这些服务中调用方法.

例如,WCF中的CreationCreater()方法将从CRM Web服务调用créationCustmerCRM()或从Web门户网站Web服务调用CreationCustomerPortailWeb().
我想要的是在创建客户时要在从CRM创建客户和从Web门户创建客户之间进行选择.


没有人有任何想法???????????:confused :: confused :: confused:

Hi:
My project involves the implementation of four Web services: Web portal, extranet, CRM and Billing, and the implementation of a WCF layer which need to call methods from these services.

For example, the method CreationCustomer () in WCF will call créationCustmerCRM() from CRM web service or CreationCustomerPortailWeb() from Web portal web service.
What I want is to have, when creating the customer, the choice between the creation of the customer from the CRM and its creation from the web portal.


does anyone have any idea ???????????:confused::confused::confused:

推荐答案

大概您有一个客户对象一种添加或创建方法.为什么两个服务都不能使用同一个对象?然后,您的客户对象可以具有可以设置的createdby属性.
Presumably you have a customer object that has a method Add or Create. Why can''t both services use the same object? Your customer object can then have a createdby property that you can set.


但是我在测试中做了什么才知道该创建是由CRM或Extranet或其他服务完成的???
but what I did in the test to know that the creation is made by CRM or extranet or other services????


这篇关于在WCF层中调用Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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