The soap version may not match: Solve the unexpected envelope namespace error.

Source: Internet
Author: User

Original error description:

Soap version mismatch: Unexpected envelope namespace http://schemas.xmlsoap.org/wsdl /. It should be http://schemas.xmlsoap.org/soap/envelope /.

 

Scenario:

Generally, WebService written in Java is called by. net.

 

Solution:

If the address is: http: // 127.0.0.1: 8080/W/services/FI/wwww/1.0? WSDL

So: Write the following address for reference.

HoweverProgramWhen dynamically changing the internal address? Remove the WSDL as follows:

Servicereference. wwww service = new servicereference. wwww ();

Service. url = http: // 127.0.0.1: 8080/W/services/FI/wwww/1.0

This is normal.

 

Postscript:

I have been checking this problem for a long time. Does the online saying I want to remove it? WSDL, but in one sentence, I thought it would be removed when referencing, and the result cannot be referenced. no one has made the problem completely clear. therefore, we hope to provide a one-stop solution to the problem.

 

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.