Reputation: 318
Im new in WCF. I've been trying to do this but no success yet.
I have to expose a service but I'm having some troubles trying to change the name of the port in the WSDL.
This is my Webconfig
Sorry about my english and I'll realy appreciate the help.
Upvotes: 0
Views: 1211
Reputation: 318
I did it. If you need to solve this problem all you have to do is this:
This is how the system.serviceModel tag of the webconfig looks like.
This is the class PortNameWsdlBehaviorExtension that inherit from BehaviorExtensionElement. This class is specified in the webconfig
I most add that my service and the PortNameWsdlBehaviorExtension class are in the name space myNameSpace.
Upvotes: 1