Hi Rashmi,
If you want to use external web service then you need to create a consumer proxy class, while creating this service class you will get an option to either use WSDL file from local system or Web service URL.
Refer below documents to get more information.
Consume an External Web Service
Create an SAP Web Service Consumer
Regards,
Shobhit