Reputation: 2748
I have inherited a NUnit test project and the code has the SOAP URL without ?wsdl
so the URL ends with ../soap.svc
.
Authenticate is also missing ?wsdl
so the URL ends with ../WebServices/Authentication/Service.asmx
Is the ?wsdl
added by default when the connection is being made?
Upvotes: 0
Views: 593
Reputation: 28338
The wsdl
parameter is used when you want to get the actual WSDL definition file for the service, but not when you actually want to make service calls to the service. e.g.:
// GET or POST requests to call service functions.
http://localhost/Service/Service.asmx
// GET the WSDL XML file for this service
http://localhost/Service/Service.asmx?wsdl
In general you probably should not have ?wsdl
on the end of the URL if you are expecting to interact with the service itself.
Upvotes: 3
Reputation: 44600
Service.asmx - it is your endpoint
Service.asmx?wsdl - is documentation of your services.
If you are implementing client on .NET with "Create Web Reference" or "Create Service Reference" it accesses wsdl to collect necessary info about service and generate classes.
Upvotes: 1