WSDL file produces useless class when imported with WSDL.exe

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default WSDL file produces useless class when imported with WSDL.exe

    I am having a problem with a WSDL file supplied by a client. When WSDL.exe is used, the WSDL file (shown later) produces the following output class. As you can see there are no methods. WSDL.exe does not raise any errors. There either something wrong with the WSDL file or WSDL.exe. Anyone know what may be wrong???

    The class generated with WSDL.exe............................

    //-----------------------------------------------------------------------------
    // <autogenerated
    // This code was generated by a tool
    // Runtime Version: 1.1.4322.57
    /
    // Changes to this file may cause incorrect behavior and will be lost if
    // the code is regenerated
    // </autogenerated
    //-----------------------------------------------------------------------------

    //
    // This source code was auto-generated by wsdl, Version=1.1.4322.573
    //
    using System.Diagnostics
    using System.Xml.Serialization
    using System
    using System.Web.Services.Protocols
    using System.ComponentModel
    using System.Web.Services

    /// <remarks/
    [System.Diagnostics.DebuggerStepThroughAttribute()
    [System.ComponentModel.DesignerCategoryAttribute("c ode")
    [System.Web.Services.WebServiceBindingAttribute(Nam e="FFEBinding", Namespace="FFE")
    public class FFEService : System.Web.Services.Protocols.SoapHttpClientProtoc ol

    /// <remarks/
    public FFEService()
    this.Url = "http://nslivdev1:8080/FFE"



    The WSDL file............................

    <?xml version="1.0" encoding="UTF-8"?><definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:FFE="FFE" targetNamespace="FFE" name="FFE"><types><xsd:schema targetNamespace="FFE" xmlns="FFE" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://www.w3.org/2001/06/soap-encoding" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" elementFormDefault="qualified"><xsd:complexType name="IncidentStcType"><xsd:all><xsd:element name="IncID" type="xsd:string"/><xsd:element name="IncRef" type="xsd:string"/><xsd:element name="SeqNum" type="xsd:string"/><xsd:element name="FFEWorkId" type="xsd:string"/><xsd:element name="LastUpdTime" type="xsd:string"/></xsd:all></xsd:complexType><xsd:complexType name="ResourceStcType"><xsd:all><xsd:element name="PayrollNum" type="xsd:string"/><xsd:element name="ResID" type="xsd:string"/><xsd:element name="FFEStatCode" type="xsd:string"/><xsd:element name="FFEStatName" type="xsd:string"/><xsd:element name="ETA" type="xsd:string"/><xsd:element name="ETR" type="xsd:string"/><xsd:element name="AOS" type="xsd:string"/></xsd:all></xsd:complexType><xsd:complexType name="NoteItemType"><xsd:all><xsd:element name="LogCatID" type="xsd:string"/><xsd:element name="LogSubCatID" type="xsd:string"/><xsd:element name="LogComment" type="xsd:string"/></xsd:all></xsd:complexType><xsd:complexType name="NotesType"><xsd:all><xsd:element name="Notes" type="FFE:NoteItemType"/></xsd:all></xsd:complexType><xsd:complexType name="UpdateTCSIncidentStcType"><xsd:all><xsd:elem ent name="IncidentStc" type="FFE:IncidentStcType"/><xsd:element name="ResourceStc" type="FFE:ResourceStcType"/><xsd:element name="Notes" type="FFE:NotesType"/></xsd:all></xsd:complexType><xsd:complexType name="UpdateTCSIncidentType"><xsd:all><xsd:element name="UpdateTCSIncidentStc" type="FFE:UpdateTCSIncidentStcType"/></xsd:all></xsd:complexType><xsd:complexType name="UpdateTCSIncidentResponseStcType"><xsd:all>< xsd:element name="Status" type="xsd:int"/></xsd:all></xsd:complexType><xsd:complexType name="UpdateTCSIncidentResponseType"><xsd:all><xsd :element name="UpdateTCSIncidentResponseStc" type="FFE:UpdateTCSIncidentResponseStcType"/></xsd:all></xsd:complexType></xsd:schema></types><message name="UpdateTCSIncident"><part name="UpdateTCSIncident" type="FFE:UpdateTCSIncidentType"/></message><message name="UpdateTCSIncidentResponse"><part name="UpdateTCSIncidentResponse" type="FFE:UpdateTCSIncidentResponseType"/></message><portType name="FFEPortType"><operation name="UpdateTCSIncident"><input message="FFE:UpdateTCSIncident"/><output message="FFE:UpdateTCSIncidentResponse"/></operation></portType><binding name="FFEBinding" type="FFE:FFEPortType"><soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/><operation name="UpdateTCSIncident"><soap:operation soapAction="http://nslivdev1:8080/FFE"/><input><soap:body use="literal"/></input><output><soap:body use="literal"/></output></operation></binding><service name="FFEService"><port name="FFEPort" binding="FFE:FFEBinding"><soap:address location="http://nslivdev1:8080/FFE"/></port></service></definitions>
    RH Guest

  2. Similar Questions and Discussions

    1. #31050 [Com]: SOAP class will not parse WSDL file located on a secure HTTPS connection
      ID: 31050 Comment by: youngad6 at gmail dot com Reported By: dylanwoster at mac dot com Status: No Feedback...
    2. Unable to load WSDL. If currently online, please verifythe URI and/or format of the WSDL
      Hello, I'm using Flex 2.0 Beta 3 with Flash Player 9. http://mywsdlurl)"] at">http://mywsdlurl)"</a> mx.rpc.soap::WSDLParser/::dispatchFault()...
    3. Binding a WSDL file to a web service class
      I started developing an ASP.NET web service by explicitly designing the WSDL and separating the data type definitions into XSD files. I followed...
    4. creating proxy class from WSDL file
      (Type your message here) HI, i have problem creating proxy class from VS.Net environment by referencing a WSDL file. I don't have .asmx file. I...
    5. wsdl.exe fails with WebMethods generated wsdl file
      Using WebMethods, Inc Developer tool to create a wsdl for a flow service. Try to use .NET wsdl utility to create a C# proxy, but get the errors...
  3. #2

    Default Re: WSDL file produces useless class when imported with WSDL.exe

    I can get it to work if I modify the wsdl in this way:
    add these element definitions to the <types><xsd:schema> section
    <xsd:element name="Request" type="FFE:UpdateTCSIncidentType" />
    <xsd:element name="Response" type="FFE:UpdateTCSIncidentResponseType"
    />

    Replace the messages definitions with these:
    <message name="UpdateTCSIncident">
    <part name="UpdateTCSIncident" element="FFE:Request" />
    </message>
    <message name="UpdateTCSIncidentResponse">
    <part name="UpdateTCSIncidentResponse" element="FFE:Response" />
    </message>


    Maybe this will help?

    -D

    "RH" <anonymous@discussions.microsoft.com> wrote in message
    news:9435AD2C-D4BD-48BE-B676-8059514AD37B@microsoft.com...
    > I am having a problem with a WSDL file supplied by a client. When WSDL.exe
    is used, the WSDL file (shown later) produces the following output class. As
    you can see there are no methods. WSDL.exe does not raise any errors. There
    either something wrong with the WSDL file or WSDL.exe. Anyone know what may
    be wrong????
    >
    > The class generated with WSDL.exe.............................
    >
    >
    //--------------------------------------------------------------------------
    ----
    > // <autogenerated>
    > // This code was generated by a tool.
    > // Runtime Version: 1.1.4322.573
    > //
    > // Changes to this file may cause incorrect behavior and will be lost
    if
    > // the code is regenerated.
    > // </autogenerated>
    >
    //--------------------------------------------------------------------------
    ----
    >
    > //
    > // This source code was auto-generated by wsdl, Version=1.1.4322.573.
    > //
    > using System.Diagnostics;
    > using System.Xml.Serialization;
    > using System;
    > using System.Web.Services.Protocols;
    > using System.ComponentModel;
    > using System.Web.Services;
    >
    >
    > /// <remarks/>
    > [System.Diagnostics.DebuggerStepThroughAttribute()]
    > [System.ComponentModel.DesignerCategoryAttribute("c ode")]
    > [System.Web.Services.WebServiceBindingAttribute(Nam e="FFEBinding",
    Namespace="FFE")]
    > public class FFEService :
    System.Web.Services.Protocols.SoapHttpClientProtoc ol {
    >
    > /// <remarks/>
    > public FFEService() {
    > this.Url = "http://nslivdev1:8080/FFE";
    > }
    > }
    >
    >
    > The WSDL file.............................
    >
    > <?xml version="1.0" encoding="UTF-8"?><definitions
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:FFE="FFE"
    targetNamespace="FFE" name="FFE"><types><xsd:schema targetNamespace="FFE"
    xmlns="FFE" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:SOAP-ENC="http://www.w3.org/2001/06/soap-encoding"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    elementFormDefault="qualified"><xsd:complexType
    name="IncidentStcType"><xsd:all><xsd:element name="IncID"
    type="xsd:string"/><xsd:element name="IncRef"
    type="xsd:string"/><xsd:element name="SeqNum"
    type="xsd:string"/><xsd:element name="FFEWorkId"
    type="xsd:string"/><xsd:element name="LastUpdTime"
    type="xsd:string"/></xsd:all></xsd:complexType><xsd:complexType
    name="ResourceStcType"><xsd:all><xsd:element name="PayrollNum"
    type="xsd:string"/><xsd:element name="ResID" type="xsd:string"/><xsd:element
    name="FFEStatCode" type="xsd:string"/><xsd:element name="FFEStatName"
    type="xsd:string"/><xsd:element name="ETA" type="xsd:string"/><xsd:element
    name="ETR" type="xsd:string"/><xsd:element name="AOS"
    type="xsd:string"/></xsd:all></xsd:complexType><xsd:complexType
    name="NoteItemType"><xsd:all><xsd:element name="LogCatID"
    type="xsd:string"/><xsd:element name="LogSubCatID"
    type="xsd:string"/><xsd:element name="LogComment"
    type="xsd:string"/></xsd:all></xsd:complexType><xsd:complexType
    name="NotesType"><xsd:all><xsd:element name="Notes"
    type="FFE:NoteItemType"/></xsd:all></xsd:complexType><xsd:complexType
    name="UpdateTCSIncidentStcType"><xsd:all><xsd:elem ent name="IncidentStc"
    type="FFE:IncidentStcType"/><xsd:element name="ResourceStc"
    type="FFE:ResourceStcType"/><xsd:element name="Notes"
    type="FFE:NotesType"/></xsd:all></xsd:complexType><xsd:complexType
    name="UpdateTCSIncidentType"><xsd:all><xsd:element
    name="UpdateTCSIncidentStc"
    type="FFE:UpdateTCSIncidentStcType"/></xsd:all></xsd:complexType><xsd:comple
    xType name="UpdateTCSIncidentResponseStcType"><xsd:all>< xsd:element
    name="Status" type="xsd:int"/></xsd:all></xsd:complexType><xsd:complexType
    name="UpdateTCSIncidentResponseType"><xsd:all><xsd :element
    name="UpdateTCSIncidentResponseStc"
    type="FFE:UpdateTCSIncidentResponseStcType"/></xsd:all></xsd:complexType></x
    sd:schema></types><message name="UpdateTCSIncident"><part
    name="UpdateTCSIncident"
    type="FFE:UpdateTCSIncidentType"/></message><message
    name="UpdateTCSIncidentResponse"><part name="UpdateTCSIncidentResponse"
    type="FFE:UpdateTCSIncidentResponseType"/></message><portType
    name="FFEPortType"><operation name="UpdateTCSIncident"><input
    message="FFE:UpdateTCSIncident"/><output
    message="FFE:UpdateTCSIncidentResponse"/></operation></portType><binding
    name="FFEBinding" type="FFE:FFEPortType"><soap:binding style="document"
    transport="http://schemas.xmlsoap.org/soap/http"/><operation
    name="UpdateTCSIncident"><soap:operation
    soapAction="http://nslivdev1:8080/FFE"/><input><soap:body
    use="literal"/></input><output><soap:body
    use="literal"/></output></operation></binding><service
    name="FFEService"><port name="FFEPort"
    binding="FFE:FFEBinding"><soap:address
    location="http://nslivdev1:8080/FFE"/></port></service></definitions>


    Dino Chiesa [Microsoft] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139