Using Axis Created Web Service from VS2008 Solution in C #

I am trying to add a web link to an external Axis-created web service for solving Visual Studio 2008. The URL I received points to the WSDL with which I can successfully access through the browser, and I see all the data from the WService service. The version of Axis used was 1.4.

But if I run wsdl.exe or when I add the link in VS2008, I see a list of methods on the left, but I get an error message:


The document at the URL http: // ............? Wsdl was not recognized as a known type of document.

An error message from every known type can help you fix the problem:

  • The report from the DISCO document is 'Discovery document by URL http: // .........? Wsdl not found.'.
    • The document format is not recognized.
  • Report from WSDL: "There is an error in the XML document (510, 62)."
    • The namespace prefix 'impl: urn' is undefined.
  • The report from the XML Schema is “The root element of the W3C XML Schema must be and its namespace must be“ http://www.w3.org/2001/XMLSchema '' ”.

And I can’t go on. I saw other posts here on SO, but they all refer to a situation where the web link has already been added.

Thank you very much in advance!

a.

EDIT: Thanks guys, I actually managed to solve the problem “manually”, it was somehow suggested by the pre-hook: I ran wsdl, saved it locally on the file system, and then modified it manually until wsdl.exe could generate the classes. Then I added the class to the project and was able to call the web service.

Ciao Andrea

+3
1

, 1.4. wsdl xsd , , - ...

wsdl , , , "". - :

<xs:simpleType name="MyType">
</xs:simpleType>

, wsdl ( , ?), , wsdl/xsd ... ,

<xs:simpleType name="IpAddress">
  <xs:restriction base="xs:string">
    <xs:pattern value="\d*"> (note this is not 'correct' i'm just 'for instancing')
  </xs:restriction>
</xs:simpleType>

( , xsd - ...:))

Axis , , ? wsdl, ""....

, - wsdl - "" ... java " ", #....

, , , ...

+3

Source: https://habr.com/ru/post/1718559/


All Articles