Let me describe my problem. I am trying to Add a Web Reference to Magento 2.x SOAP API.
In Magento 1.x we could just use the given soap service URL and generate the classes using the Visual Studio in-built UI tool "Add Service Reference > Advanced > Web Reference"
But in Magento 2.x the url needs a "Authorization" header to return the WSDL.
I tried hitting the API with the header using Postman and it returns the WSDL fine. But there are no option to include headers in the Visual Studio "Add Web Reference" dialog.
Can anyone point me in the right direction?
For those who stumbles upon this. I followed the comment by @Filburt and did the following.
Generated the Admin Token Using Rest with Postman GET (ref. Magento documentation)
Hit my required Individual Magento SOAP APIs with Postman GET Request.
Used Postman in-built Authorization > Bearer Token : got value from previous step
Then Saved the resulting XML locally with .wsdl extension
In Visual Studio used In-built "Add Service Reference" UI and imported the wsdl file.
All Services were generated successfully.