Hi,

I am trying to consume a webservice and getting following error. (I can not change the wsdl source as that is from third party). Please let me know how can I consume the webservice.

I am also copying WSDL for reference. Please let me know any way to consume this wsdl.

-------------------------------------------------------------------------------------------------------------------------------------------------------------

The document at the url https://10.98.241.163:9843/services/CLITunnelService.wsdl was not recognized as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'DISCO Document' is 'Discovery document at the URL https://10.98.241.163:9843/services/CLITunnelService.wsdl could not be found.'.
- The document format is not recognized.
- Report from 'WSDL Document' is 'There is an error in XML document (37, 5).'.
- The element was not expected in this context: <wsdl:documentation xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'>..</wsdl:documentation>. Expected elements: http://www.w3.org/2001/XMLSchema:include, http://www.w3.org/2001/XMLSchema:import, http://www.w3.org/2001/XMLSchema:redefine, http://www.w3.org/2001/XMLSchema:simpleType, http://www.w3.org/2001/XMLSchema:complexType, http://www.w3.org/2001/XMLSchema:annotation, http://www.w3.org/2001/XMLSchema:notation, http://www.w3.org/2001/XMLSchema:group, http://www.w3.org/2001/XMLSchema:element, http://www.w3.org/2001/XMLSchema:attribute, http://www.w3.org/2001/XMLSchema:attributeGroup.
- Report from 'XML Schema' is 'The root element of a W3C XML Schema should be <schema> and its namespace should be 'http://www.w3.org/2001/XMLSchema'.'.
Metadata contains a reference that cannot be resolved: 'https://10.98.241.163:9843/services/CLITunnelService.wsdl'.
Metadata contains a reference that cannot be resolved: 'https://10.98.241.163:9843/services/CLITunnelService.wsdl'.
If the service is defined in the current solution, try building the solution and adding the service reference again.

-------------------------------------------------------------------------------------------------------------------------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:clitunnelServiceNamespace="http://bladelogic.com/webservices/skeleton/clitunnel"
xmlns:clitunnelModelNamespace="http://bladelogic.com/webservices/model/clitunnel/xsd"
xmlns:cliFactoryNamespace="http://bladelogic.com/webservices/cli/factory/xsd"
xmlns:appRemoteNamespace="http://bladelogic.com/webservices/app/remote/xsd"
xmlns:mfwUtilNamespace="http://bladelogic.com/webservices/mfw/util/xsd"
xmlns:bladelogicNamespace="http://bladelogic.com/2009/11/30"
xmlns:frameworkNamespace="http://bladelogic.com/webservices/framework/xsd"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://bladelogic.com/2009/11/30">
<wsdl:documentation>
clitunnelServiceNamespace: The namespace for the clitunnelService, which contains cliTunnel-specific elements.
clitunnelModelNamespace: The namespace for cliTunnelService model objects, such as Result (the command result object).
appRemoteNamespace: The namespace for remote application exceptions, such as BlRemoteException.
mfwUtilNamespace: The namespace for model framework exceptions.
bladelogicNamespace: The namespace that contains messages, bindings and SoapActions.
frameworkNamespace: The namespace for elements used by multiple services, such as generic exceptions.
wsdl: The WSDL namespace.
soap: The SOAP namespace.
xs: The XMLSchema namespace.
</wsdl:documentation>
<wsdl:types>
<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://bladelogic.com/webservices/skeleton/clitunnel">
<xs:import namespace="http://bladelogic.com/webservices/app/remote/xsd"/>
<xs:import namespace="http://bladelogic.com/webservices/cli/factory/xsd"/>
<xs:import namespace="http://bladelogic.com/webservices/model/clitunnel/xsd"/>
<xs:element name="BlRemoteException">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="BlRemoteException" nillable="true" type="appRemoteNamespace:BlRemoteException"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<wsdl:documentation>
CommandLoadException is thrown when a CLI command cannot be loaded by the CLI Engine.
</wsdl:documentation>
<xs:element name="CommandLoadException">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="CommandLoadException" nillable="true" type="cliFactoryNamespace:CommandLoadException"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<wsdl:documentation>
CommandLoadException is thrown when the specified CLI command cannot be found.
</wsdl:documentation>
<xs:element name="CommandNotFoundException">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="CommandNotFoundException" nillable="true" type="cliFactoryNamespace:CommandNotFoundException"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<wsdl:documentation>
The arguments for the executeCommandByParamList operation.
</wsdl:documentation>
<xs:element name="executeCommandByParamList">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="nameSpace" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="commandName" nillable="true" type="xs:string"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="commandArguments" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<wsdl:documentation>
The response to a executeCommandByParamList request.
</wsdl:documentation>
<xs:element name="executeCommandByParamListResponse">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="clitunnelModelNamespace:Result"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<wsdl:documentation>
The arguments for the executeCommandByParamListAndAttachment operation.
</wsdl:documentation>
<xs:element name="executeCommandByParamListAndAttachment">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="nameSpace" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="commandName" nillable="true" type="xs:string"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="commandArguments" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="dh" nillable="true" type="xs:base64Binary"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<wsdl:documentation>
The response to a executeCommandByParamListAndAttachment request.
</wsdl:documentation>
<xs:element name="executeCommandByParamListAndAttachmentResponse">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="clitunnelModelNamespace:Result"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<wsdl:documentation>
The arguments for the executeCommandByParamString operation.
</wsdl:documentation>
<xs:element name="executeCommandByParamString">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="nameSpace" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="commandName" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<wsdl:documentation>
The response to a executeCommandByParamString request.
</wsdl:documentation>
<xs:element name="executeCommandByParamStringResponse">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="clitunnelModelNamespace:Result"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<wsdl:documentation>
The arguments for the executeCommandUsingAttachments operation.
</wsdl:documentation>
<xs:element name="executeCommandUsingAttachments">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="nameSpace" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="commandName" nillable="true" type="xs:string"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="commandArguments" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="payload" nillable="true" type="clitunnelModelNamespace:ClientPayLoad"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<wsdl:documentation>
The response to a executeCommandUsingAttachments request.
</wsdl:documentation>
<xs:element name="executeCommandUsingAttachmentsResponse">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="clitunnelModelNamespace:Result"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://bladelogic.com/webservices/model/clitunnel/xsd">
<wsdl:documentation>
The result returned by the executeCommand operations.
</wsdl:documentation>
<xs:complexType name="Result">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="attachment" nillable="true" type="xs:base64Binary"/>
<xs:element minOccurs="0" name="classInstance" type="xs:boolean"/>
<xs:element minOccurs="0" name="comments" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="error" nillable="true" type="xs:anyType"/>
<xs:element minOccurs="0" name="executionTime" type="xs:long"/>
<xs:element minOccurs="0" name="list" type="xs:boolean"/>
<xs:element minOccurs="0" name="memoryUsed" type="xs:long"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="realInputArguments" nillable="true" type="xs:anyType"/>
<xs:element minOccurs="0" name="returnValue" nillable="true" type="xs:anyType"/>
<xs:element minOccurs="0" name="returnValues" nillable="true" type="xs:anyType"/>
<xs:element minOccurs="0" name="success" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
<wsdl:documentation>
ClientPayload is used for attachment support.
</wsdl:documentation>
<xs:complexType name="ClientPayLoad">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="argumentNameArray" nillable="true" type="xs:string"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="dataHandlerArray" nillable="true" type="xs:base64Binary"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="fileNameArray" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://bladelogic.com/webservices/mfw/util/xsd">
<xs:import namespace="http://bladelogic.com/webservices/framework/xsd"/>
<xs:complexType name="BaseException">
<xs:complexContent>
<xs:extension base="frameworkNamespace:Exception">
<xs:sequence/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="BlException">
<xs:complexContent>
<xs:extension base="mfwUtilNamespace:BaseException">
<xs:sequence>
<xs:element minOccurs="0" name="localizedMessage" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:schema>
<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://bladelogic.com/webservices/cli/factory/xsd">
<xs:import namespace="http://bladelogic.com/webservices/framework/xsd"/>
<wsdl:documentation>
CommandLoadException is thrown when a CLI command cannot be loaded by the CLI Engine.
</wsdl:documentation>
<xs:complexType name="CommandLoadException">
<xs:complexContent>
<xs:extension base="frameworkNamespace:Exception">
<xs:sequence/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<wsdl:documentation>
CommandLoadException is thrown when the specified CLI command cannot be found.
</wsdl:documentation>
<xs:complexType name="CommandNotFoundException">
<xs:complexContent>
<xs:extension base="frameworkNamespace:Exception">
<xs:sequence/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:schema>
<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://bladelogic.com/webservices/app/remote/xsd">
<xs:import namespace="http://bladelogic.com/webservices/mfw/util/xsd"/>
<xs:complexType name="BlRemoteException">
<xs:complexContent>
<xs:extension base="mfwUtilNamespace:BlException">
<xs:sequence/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:schema>
<xs:schema attributeFormDefault="qualified" targetNamespace="http://bladelogic.com/webservices/framework/xsd">
<xs:complexType name="Exception">
<xs:sequence>
<xs:element minOccurs="0" name="Exception" nillable="true" type="xs:anyType"/>
</xs:sequence>
</xs:complexType>
<xs:element name="sessionId" type="xs:string"/>
</xs:schema>
</wsdl:types>
<wsdl:message name="executeCommandByParamStringRequest">
<wsdl:part name="parameters" element="clitunnelServiceNamespace:executeCommandByParamString"/>
</wsdl:message>
<wsdl:message name="CommandLoadException">
<wsdl:part name="parameters" element="clitunnelServiceNamespace:CommandLoadException"/>
</wsdl:message>
<wsdl:message name="sessionId">
<wsdl:part name="parameters" element="frameworkNamespace:sessionId"/>
</wsdl:message>
<wsdl:message name="CommandNotFoundException">
<wsdl:part name="parameters" element="clitunnelServiceNamespace:CommandNotFoundException"/>
</wsdl:message>
<wsdl:message name="BlRemoteException">
<wsdl:part name="parameters" element="clitunnelServiceNamespace:BlRemoteException"/>
</wsdl:message>
<wsdl:message name="executeCommandByParamStringResponse">
<wsdl:part name="parameters" element="clitunnelServiceNamespace:executeCommandByParamStringResponse"/>
</wsdl:message>
<wsdl:message name="executeCommandByParamListResponse">
<wsdl:part name="parameters" element="clitunnelServiceNamespace:executeCommandByParamListResponse"/>
</wsdl:message>
<wsdl:message name="executeCommandByParamListAndAttachmentRequest">
<wsdl:part name="parameters" element="clitunnelServiceNamespace:executeCommandByParamListAndAttachment"/>
</wsdl:message>
<wsdl:message name="executeCommandByParamListAndAttachmentResponse">
<wsdl:part name="parameters" element="clitunnelServiceNamespace:executeCommandByParamListAndAttachmentResponse"/>
</wsdl:message>
<wsdl:message name="executeCommandUsingAttachmentsResponse">
<wsdl:part name="parameters" element="clitunnelServiceNamespace:executeCommandUsingAttachmentsResponse"/>
</wsdl:message>
<wsdl:message name="executeCommandUsingAttachmentsRequest">
<wsdl:part name="parameters" element="clitunnelServiceNamespace:executeCommandUsingAttachments"/>
</wsdl:message>
<wsdl:message name="executeCommandByParamListRequest">
<wsdl:part name="parameters" element="clitunnelServiceNamespace:executeCommandByParamList"/>
</wsdl:message>
<wsdl:portType name="CLITunnelServicePortType">
<wsdl:documentation>
The executeCommandByParamList operation allows users execute a CLI command with arguments
</wsdl:documentation>
<wsdl:operation name="executeCommandByParamList">
<wsdl:input message="bladelogicNamespace:executeCommandByParamListRequest"/>
<wsdl:output message="bladelogicNamespace:executeCommandByParamListResponse"/>
<wsdl:fault name="BlRemoteException" message="bladelogicNamespace:BlRemoteException"/>
<wsdl:fault name="CommandNotFoundException" message="bladelogicNamespace:CommandNotFoundException"/>
<wsdl:fault name="CommandLoadException" message="bladelogicNamespace:CommandLoadException"/>
</wsdl:operation>
<wsdl:documentation>
The executeCommandByParamString operation allows users execute a CLI command without arguments
</wsdl:documentation>
<wsdl:operation name="executeCommandByParamString">
<wsdl:input message="bladelogicNamespace:executeCommandByParamStringRequest"/>
<wsdl:output message="bladelogicNamespace:executeCommandByParamStringResponse"/>
<wsdl:fault name="BlRemoteException" message="bladelogicNamespace:BlRemoteException"/>
<wsdl:fault name="CommandNotFoundException" message="bladelogicNamespace:CommandNotFoundException"/>
<wsdl:fault name="CommandLoadException" message="bladelogicNamespace:CommandLoadException"/>
</wsdl:operation>
<wsdl:documentation>
The executeCommandByParamListAndAttachment operation allows users execute a CLI command with arguments and attachments
</wsdl:documentation>
<wsdl:operation name="executeCommandByParamListAndAttachment">
<wsdl:input message="bladelogicNamespace:executeCommandByParamListAndAttachmentRequest"/>
<wsdl:output message="bladelogicNamespace:executeCommandByParamListAndAttachmentResponse"/>
<wsdl:fault name="BlRemoteException" message="bladelogicNamespace:BlRemoteException"/>
<wsdl:fault name="CommandNotFoundException" message="bladelogicNamespace:CommandNotFoundException"/>
<wsdl:fault name="CommandLoadException" message="bladelogicNamespace:CommandLoadException"/>
</wsdl:operation>
<wsdl:documentation>
The executeCommandUsingAttachments operation allows users execute a CLI command without arguments and
with attachements
</wsdl:documentation>
<wsdl:operation name="executeCommandUsingAttachments">
<wsdl:input message="bladelogicNamespace:executeCommandUsingAttachmentsRequest"/>
<wsdl:output message="bladelogicNamespace:executeCommandUsingAttachmentsResponse"/>
<wsdl:fault name="BlRemoteException" message="bladelogicNamespace:BlRemoteException"/>
<wsdl:fault name="CommandNotFoundException" message="bladelogicNamespace:CommandNotFoundException"/>
<wsdl:fault name="CommandLoadException" message="bladelogicNamespace:CommandLoadException"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:documentation>
The Soap 1.1 Binding
</wsdl:documentation>
<wsdl:binding name="CLITunnelServiceSoap11Binding" type="bladelogicNamespace:CLITunnelServicePortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:documentation>
The executeCommandByParamList operation allows users execute a CLI command with arguments
</wsdl:documentation>
<wsdl:operation name="executeCommandByParamList">
<soap:operation soapAction="bladelogicNamespace:executeCommandByParamList" style="document"/>
<wsdl:input>
<soap:header message="bladelogicNamespace:sessionId" part="parameters" use="literal" namespace="bladelogic"/>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
<wsdl:fault name="BlRemoteException">
<soap:fault name="BlRemoteException" use="literal"/>
</wsdl:fault>
<wsdl:fault name="CommandNotFoundException">
<soap:fault name="CommandNotFoundException" use="literal"/>
</wsdl:fault>
<wsdl:fault name="CommandLoadException">
<soap:fault name="CommandLoadException" use="literal"/>
</wsdl:fault>
</wsdl:operation>
<wsdl:documentation>
The executeCommandByParamString operation allows users execute a CLI command without arguments
</wsdl:documentation>
<wsdl:operation name="executeCommandByParamString">
<soap:operation soapAction="bladelogicNamespace:executeCommandByParamString" style="document"/>
<wsdl:input>
<soap:header message="bladelogicNamespace:sessionId" part="parameters" use="literal" namespace="bladelogicNamespace"/>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
<wsdl:fault name="BlRemoteException">
<soap:fault name="BlRemoteException" use="literal"/>
</wsdl:fault>
<wsdl:fault name="CommandNotFoundException">
<soap:fault name="CommandNotFoundException" use="literal"/>
</wsdl:fault>
<wsdl:fault name="CommandLoadException">
<soap:fault name="CommandLoadException" use="literal"/>
</wsdl:fault>
</wsdl:operation>
<wsdl:documentation>
The executeCommandByParamListAndAttachment operation allows users execute a CLI command with arguments and attachments
</wsdl:documentation>
<wsdl:operation name="executeCommandByParamListAndAttachment">
<soap:operation soapAction="bladelogicNamespace:executeCommandByParamListAndAttachment" style="document"/>
<wsdl:input>
<soap:header message="bladelogicNamespace:sessionId" part="parameters" use="literal" namespace="bladelogicNamespace"/>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
<wsdl:fault name="BlRemoteException">
<soap:fault name="BlRemoteException" use="literal"/>
</wsdl:fault>
<wsdl:fault name="CommandNotFoundException">
<soap:fault name="CommandNotFoundException" use="literal"/>
</wsdl:fault>
<wsdl:fault name="CommandLoadException">
<soap:fault name="CommandLoadException" use="literal"/>
</wsdl:fault>
</wsdl:operation>
<wsdl:documentation>
The executeCommandUsingAttachments operation allows users execute a CLI command without arguments and
with attachements
</wsdl:documentation>
<wsdl:operation name="executeCommandUsingAttachments">
<soap:operation soapAction="bladelogicNamespace:executeCommandUsingAttachments" style="document"/>
<wsdl:input>
<soap:header message="bladelogicNamespace:sessionId" part="parameters" use="literal" namespace="bladelogicNamespace"/>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
<wsdl:fault name="BlRemoteException">
<soap:fault name="BlRemoteException" use="literal"/>
</wsdl:fault>
<wsdl:fault name="CommandNotFoundException">
<soap:fault name="CommandNotFoundException" use="literal"/>
</wsdl:fault>
<wsdl:fault name="CommandLoadException">
<soap:fault name="CommandLoadException" use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:documentation>
The CLITunnelService Web Service
</wsdl:documentation>
<wsdl:service name="CLITunnelService">
<wsdl:documentation>
The Soap 1.1 endpoint for the CLITunnelService
</wsdl:documentation>
<wsdl:port name="CLITunnelServiceHttpSoap11Endpoint" binding="bladelogicNamespace:CLITunnelServiceSoap11Binding">
<soap:address location="https://localhost:9843/services/CLITunnelService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

Recommended Answers

All 6 Replies

Member Avatar for stbuchok

Can you navigate to the web service? (Sorry, I know, but it's the first thing to check)

How to navigate?
I opened the url in internet explorer and the wsdl opened that I had pasted.

and then wot happened ?

and then wot happened ?

I got error while adding webreference in vs2008 that I had posted and also wsdl... what did u not understand?

Member Avatar for stbuchok

Is this a WCF web service?

Is this a WCF web service?

No, this service is generated by Axis (Open source)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.