The client code is generated according to the wsdl connection, and an error is reported when calling the interface: the server sent HTTP status code 401: Unauthorized. The reason for querying this error is that there is no access right. It is thought that the customer provided the user name and password when providing the interface wsdl access connection.
Solution:
Add this class
and add this code segment before the interface runs
to successfully access the interface!
The server sent HTTP status code 401: Unauthorized
Guess you like
Origin blog.csdn.net/weixin_44812604/article/details/126542877
Recommended
Ranking