WebService is published to the Internet through the ing port, and an error is reported.

Source: Internet
Author: User
Tags stack trace

Environment:

WebService deployment to the Intranet machine, address: http://aaa.bbb.ccc.ddd/xkzjk/LicensesService.asmx

Outbound IP address via port: http://eee.fff.ggg.hhh: 88/xkzjk/licensesservice. asmx

My colleague encountered the first problem:

When you reference WebService in Visual Studio, the following error is reported:

The following error is reported in Visual Studio 2008:

Unable to download following files from.

Http://eee.fff.ggg.hhh: 88/xkzjk/licensesservice. asmx? WSDL

Do you want to skip these files and continue?

The following error is reported in Visual Studio 2010:

An error (details) occurred while attempting to find services at 'HTTP: // Eee. fff. ggg. hhh: 88/xkzjk/licensesservice. asmx'

Metadata contains reference that cannot be parsed: "http://eee.fff.ggg.hhh: 88/xkzjk/licensesservice. asmx? WSDL ".
Download "http://eee.fff.ggg.hhh: 88/xkzjk/licensesservice. asmx? "WSDL" error.
Request failed due to HTTP status 503: service temporarily unavailable.
Metadata contains reference that cannot be parsed: "http://eee.fff.ggg.hhh: 88/xkzjk/licensesservice. asmx? WSDL ".
Metadata contains reference that cannot be parsed: "http://eee.fff.ggg.hhh: 88/xkzjk/licensesservice. asmx? WSDL ".
If the service is defined in the current solution, try building the solution and adding the service reference again.

Cause:

Developers do not understand WebService, WSDL does not know what to do, and the referenced address is missing? WSDL, the first problem is solved.

 

My colleague encountered the second problem:

The following error is reported when calling a specific WebService method:

Request failed due to HTTP status 503: service temporarily unavailable.

Note:An unhandled exception occurred during the execution of the current Web request. Check the stack trace information for details about the error and the source of the error in the code.
Exception details:System. net. webexception: The request failed due to HTTP status 503: service temporarily unavailable.

Analysis:

Check the internal error details:

Responseuri = {response.

Cause:

When WebService is referenced in Visual Studio 2008, the following section is automatically added to Web. config:

<Applicationsettings>
<Test. Web. properties. Settings>
<Setting name = "test_web_licservice_licensesservice" serializeas = "string">
<Value> http://eee.fff.ggg.hhh/xkzjk/LicensesService.asmx </value>
</Setting>
</Test. Web. properties. Settings>
</Applicationsettings>

The app settings are added to the settings. settings file of the project. The proxy class uses the variables for this setting.

When WebService is referenced in Visual Studio 2010, the following section is automatically added to Web. config:

Endpoint address = "http://eee.fff.ggg.hhh/xkzjk/LicensesService.asmx"
Binding = "basichttpbinding" bindingconfiguration = "licensesservicesoap"
Contract = "servicereference1.licensesservicesoap" name = "licensesservicesoap"/>

Defines some basic information about WebService.

 

Note that all Visual Studio ports are removed. Manually add Port 88 in Web. config to solve the problem.

 

Conclusion: The first problem is that you do not understand the principles of WebService. The second is unclear about how Visual Studio references WebService. It can only be used. Nowadays, many people do not understand some basic theoretical knowledge about WebService, that is, they reference WebService with Visual Studio, then call.

Related Article

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.