I had been using a default contructor (parameterless constructor) in whole project when there was no need of image uploading (or second endpoint with Mtom/Streamed binding).
It has tought me a lesson now that one should always pass the endpoint name while instatiating a service, does not matter if there is only one endpoint.
To avoid code break, I have removed the old endpoint now and using the same Mtom/Streamed binding endpoint for all my service calls. Is it fine?
ramankashyap
Member
178 Points
43 Posts
Re: How to configure default endpoint?
Mar 20, 2012 10:08 AM|LINK
Thanks Guys.
But, it will break my existing code.
I had been using a default contructor (parameterless constructor) in whole project when there was no need of image uploading (or second endpoint with Mtom/Streamed binding).
It has tought me a lesson now that one should always pass the endpoint name while instatiating a service, does not matter if there is only one endpoint.
To avoid code break, I have removed the old endpoint now and using the same Mtom/Streamed binding endpoint for all my service calls. Is it fine?
~Raman