I have connected .wsdl file to my project (by adding service reference). Wcf described by .wsdl has had configurations without which it can’t be ised in my project.
What should I do to set up these configurations?
Any comments, please.
I have connected .wsdl file to my project (by adding service reference ). Wcf
Share
If you look in the project where you did the
add web referenceit should have added app.config entries automatically. All you would need to do is copy them from that config to the config file of the WCF app that is consuming it.If it did not you can also use Svcutil to generate the classes and the configuration. If you have a local copy of the WSDL you can run this command:
svcutil *.wsdl *.xsd /language:C#or if you importing via a http hosted endpoint this would worksvcutil http://service/metadataEndpoint.