Reputation: 4209
I have a new project whereas i need to consume a webservice from the following address: http://opensearch.addi.dk/1.1/ The service is a library service for querying books etc. When i feed my visual studio the wsdl (shown in bottom of page) i cannot consume it or Call it. Shouldnt this be this simple or am i missing something. I would hate to be forced to write All the soap XML myself and to parse the request.
Anyone know if im missing something?
EDIT It seems VS cannot resolve this xsd
<xs:redefine schemaLocation="dcterms.xsd">
<xs:group name="elementsAndRefinementsGroup">
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:group ref="elementsAndRefinementsGroup"/>
<xs:element ref="anyElements"/>
</xs:choice>
</xs:sequence>
</xs:group>
</xs:redefine>
because it has a self-reference within a group. This is legal according to the xsd specification, but VS doesnt seem to agree...
Upvotes: 0
Views: 5673
Reputation: 3380
Just run wsdl.exe
and pass in the file and the final URL, namespace, etc. in the commandline.
Be sure to use a "Visual Studio Command Prompt", not the regular one.
Upvotes: 1