I generated proxy and interface for above webservice using wsdl.exe (i dont want to use svcutil) which is as follows and I included this proxy in wcf client.

Code Block

//------------------------------------------------------------------------------// // This code was generated by a tool.// Runtime Version:2.0.50727.312//------------------------------------------------------------------------------

Answers

All replies

It appears that we have a misunderstanding about how System.ServiceModel interacts with attributes from System.Web.Services. In short-- it doesn't interact, look at, respect these attributes. I don't understand your desire to not create the client side using svcutil-- SvcUtil would generate an appropriate contract for you that used attributes that the System.ServiceModel.ChannelFactory (and associated System.ServiceModel.Description.* classes) knew to look for.

Your OperationContract currently specifies no namespace or action name, which is why you are getting the failure you are seeing. The attribution you gave said 'Use WCF Defaults' which was read by the underlying classes.

Again-- WCF does not read System.Web.Services.* attributes. That's why this is happening. Please use SvcUtil instead, or explain why you won't/can't so that we can better understand your limitations and give you an appropriate answer.