Exception In consuming wsdl webservice in .NET

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Anni V
    New Member
    • Feb 2009
    • 22

    Exception In consuming wsdl webservice in .NET

    Hi,

    I'm developing a .NET application using .NET 3.5
    My application is using a JAVA
    WebService (wsdl url)
    When I run the application I want to consume the web service (wsdl file) written in XML.

    The issue is that, i either keep getting the Operation Time out Error or the following exception while debugging
    --------------------------------------------------------
    Possible SOAP version mismatch: Envelope namespace
    http://schemas.xmlsoap .org/wsdl/ was unexpected.
    Expecting
    http://schemas.xml/org/soap/envelope/.

    --------------------------------------------------------
    --------------------------------------------------------
    Possible SOAP version mismatch: Envelope namespace
    http://www.w3.org/2001/12/soap-envelope was unexpected. Expecting
    http://schemas.xmlsoap .org/soap/envelope/
    --------------------------------------------------------

    I request you to kind help in resolving this problem

    Regards

    Anni V
  • Sfreak
    New Member
    • Mar 2010
    • 64

    #2
    Import the WSDL by adding an WEB REFERENCE is pretty much easier.

    Comment

    • Anni V
      New Member
      • Feb 2009
      • 22

      #3
      Thanks for your suggestion but I tried that too,
      i was throwing up the same error or either
      a
      Operation Time out Error

      Comment

      • Sfreak
        New Member
        • Mar 2010
        • 64

        #4
        Anni,

        Webservices (and also wcf) are by default set to timeout in 1 minute. If you have a method that you know it takes more (or around) 1 minute you should set up this new timeout on your app.config file. This also may occur if your server is performing an infinite loop and its not returning its results correctly.

        WSDL is just the definition language. If you have a service with a lot of methods and lots of complex types you ll have a bigger wsdl xml file and will take more time to load it.

        Try to setup a new timeout and try to import the webservice by adding a web reference on Visual Studio. If it doesnt work post your code or send us the web service URL and we ll try to help you.

        Fernando Mello

        Comment

        Working...