Skip to main content

Dear All,

I am trying to cosume a SOAP service using Endpoints Webservice in k2 Tester but it's giving me
the following error;

VALIDATION:Invalid Webservice WSDL.

Pls help me to resolve this issue.

 

I can  navigate / open the webservice WSDL URL succesfully.

Thanks
Lafi.

Hi,


 


When you try to register the service instance, there should be a property called 'Debugging Enabled' Can you try changing that to True, and register the service instance? It should provide more details as to why the WSDL is invalid.


VALIDATIONSystem.Exception: Invalid WebService WSDL ---> System.InvalidOperationException: There is an error in XML document (3, 2). ---> System.InvalidOperationException: <html xmlns=''> was not expected.
at System.Web.Services.Description.ServiceDescriptionSerializationReader.Read125_definitions()
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Web.Services.Description.ServiceDescription.Read(XmlReader reader, Boolean validate)
at SourceCode.SmartObjects.Services.Endpoints.WebService.ProxyAssemblyCreator.GetServiceDescription(ServiceDescriptionImporter importer, Stream stream, Boolean IsDescribeSchema)
at SourceCode.SmartObjects.Services.Endpoints.WebService.ProxyAssemblyCreator.BuildAssemblyFromWsdl(Stream stream, String assemblyName, Boolean IsDescribeSchema)
at SourceCode.SmartObjects.Services.Endpoints.WebService.WebServiceBroker.CreateAssembly(Boolean IsDescribeSchema)
--- End of inner exception stack trace ---
at SourceCode.SmartObjects.Services.Endpoints.WebService.WebServiceBroker.CreateAssembly(Boolean IsDescribeSchema)
at SourceCode.SmartObjects.Services.Endpoints.WebService.WebServiceBroker.DescribeSchema()0 InnerException: System.InvalidOperationException: There is an error in XML document (3, 2). ---> System.InvalidOperationException: <html xmlns=''> was not expected.
at System.Web.Services.Description.ServiceDescriptionSerializationReader.Read125_definitions()
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Web.Services.Description.ServiceDescription.Read(XmlReader reader, Boolean validate)
at SourceCode.SmartObjects.Services.Endpoints.WebService.ProxyAssemblyCreator.GetServiceDescription(ServiceDescriptionImporter importer, Stream stream, Boolean IsDescribeSchema)
at SourceCode.SmartObjects.Services.Endpoints.WebService.ProxyAssemblyCreator.BuildAssemblyFromWsdl(Stream stream, String assemblyName, Boolean IsDescribeSchema)
at SourceCode.SmartObjects.Services.Endpoints.WebService.WebServiceBroker.CreateAssembly(Boolean IsDescribeSchema)
1 InnerException: System.InvalidOperationException: There is an error in XML document (3, 2). ---> System.InvalidOperationException: <html xmlns=''> was not expected.
at System.Web.Services.Description.ServiceDescriptionSerializationReader.Read125_definitions()
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Web.Services.Description.ServiceDescription.Read(XmlReader reader, Boolean validate)
at SourceCode.SmartObjects.Services.Endpoints.WebService.ProxyAssemblyCreator.GetServiceDescription(ServiceDescriptionImporter importer, Stream stream, Boolean IsDescribeSchema)
at SourceCode.SmartObjects.Services.Endpoints.WebService.ProxyAssemblyCreator.BuildAssemblyFromWsdl(Stream stream, String assemblyName, Boolean IsDescribeSchema)


I solved the problem by typing:

 

http://k2learning.azurewebsites.net/ExchangeRates.asmx?wsdl

 

Remember to add "?WSDL" at the end of URL!


Reply