创建Web服务以将消息发送到Peoplesoft [英] Creating Webservices to send Messages to Peoplesoft

查看:126
本文介绍了创建Web服务以将消息发送到Peoplesoft的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我们的要求是创建一个.NET Web服务,并在PeopleSoft Intergration Broker中将其用作消息.您能否与我们分享有关如何在.NET中创建Web服务并将其作为消息发送到PeopleSoft Intergration Broker的详细信息.

Hi,

Our requirement is to create a .NET Webservice and use it in PeopleSoft Intergration Broker as a Message. Could you please share us with detailed information on how to go about in creating the web service in .NET and sending it to PeopleSoft Intergration Broker as a Message.

推荐答案

消息是包含重要信息的数据包. WCF使用这些消息将信息从源传输到目标.

可以使用MessageContract属性将消息协定应用于类型.可以使用"MessageHeader"和"MessageBodyMember"属性将自定义标题和正文包含到消息中.让我们将示例消息合同视为:
Message is the packet of data which contains important information. WCF uses these messages to transfer information from Source to destination.

Message contract can be applied to type using MessageContract attribute. Custom Header and Body can be included to message using ''MessageHeader'' and ''MessageBodyMember''atttribute. Let us see the sample message contract as:
[MessageContract]
public class EmployeeDetails
{
    [MessageHeader]
    public string EmpID;
}



使用消息协定类型作为参数时,在服务操作中只能使用一个参数,如下所示:



When using Message contract type as parameter, you can use only one parameter in service operation as:

[OperationContract]
void PeopleSoftSave(EmployeeDetails emp);


这篇关于创建Web服务以将消息发送到Peoplesoft的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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