views:

40

answers:

0

Hi. I trying to create WCF via NserviceBus. Create contract:

[ServiceContract] 
public interface INotifyBusService
{
    [OperationContract(Action = "http://tempuri.org/IWcfServiceOf_RequestMessage_ResultType/Process", ReplyAction = "http://tempuri.org/IWcfServiceOf_RequestMessage_ResultType/ProcessResponse")]
    ResultType Notify(RequestMessage request);
}

The problem: When i create a clinet it can't handle this service because expected node with name "Process" in "http://tempuri.org/" namespace.

if I do like that

    [OperationContract(Name = "Process", Action = "http://tempuri.org/IWcfServiceOf_RequestMessage_ResultType/Process", ReplyAction = "http://tempuri.org/IWcfServiceOf_RequestMessage_ResultType/ProcessResponse")]
    ResultType Notify(RequestMessage request);

Everything works fine.

Name = "Process" - it's a NServiceBus hardcode, like Enum return type in service method ?