0
hi there,
instead of creating / instanciating the end points and protocols in code, why dont you go for modifying the web.config file. you just replace/add the <servicemodel> to </servicemodel> section from the auto generated config file from the WSDL, into the web.config file in your application, where you have to use the service.
once you add/replace the <servicemodel> tab section to your web.config file, all parameters will be set automatically. and you can access the service functionalities in your application by creating the client object of your service.
make sure that your client application contains the autogenerated proxy file in to your client applicaiton, as well as the settings according to the autogenerated web.config file.
then simply compile the client application and then you will ready to go.
and yet if you find any problem then feel free to email me on smartkhilit@aol.co.uk or reply here.
Cheers,
smartkhilit