Solve. NET invoke Java WebService Access denied scheme

Source: Internet
Author: User
A strange problem arises when the WebService is recently written with. NET invoke Java: The WebService service is deployed on this machine, and the Web reference for the outside machine can be added correctly, but when debugging runs, the target machine actively rejects (target machine Actively refused) "wrong!" said the Stranger.

A strange problem arises when the WebService is recently written with. NET invoke Java: The WebService service is deployed on this machine, and the Web reference for the outside machine can be added correctly, but when debugging runs, the target machine actively rejects (target machine Actively refused) "wrong!" said the Stranger. And in this machine can be normal operation. Check the Internet, most of them are said to be a firewall or port problems, but the firewall is not open, the port is open, how can still appear access denied error?

Study for a long time, finally found the problem is: the original in the generated WSDL file address is localhost, so that the external machine to resolve, the natural will be from the localhost to find, but the service deployed in my place, they can find from the local? ? Of course it can't be accessed. I'm running locally and I'm sure I can access it. OK, the localhost to the local intranet or extranet IP, try again, success!

The answer to the online search question is not necessarily the answer to your question, including this article, perhaps just kind, maybe just a similar situation, but also need the user to detect.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.