locked
Read Wsdl without Service reference or web reference in console application RRS feed

  • Question

  • User-148788041 posted

    Hi

    i am having console application. i want to read the wsdl file without service reference or web reference.

    This XML file does not appear to have any style information associated with it. The document tree is shown below.
    <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://locahost" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://locahost">
    <wsdl:types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://locahost">
    <s:element name="ParseUrl">
    <s:complexType/>
    </s:element>
    <s:element name="ParseUrlResponse">
    <s:complexType/>
    </s:element>
    <s:element name="GetMultiFields">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="sUsername" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="sQueueName" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="IFullPageKey" type="s:int"/>
    <s:element minOccurs="0" maxOccurs="1" name="sSession" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="sDataSource" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="IMode" type="s:int"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="GetMultiFieldsResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="GetMultiFieldsResult">
    <s:complexType>
    <s:sequence>
    <s:element ref="s:schema"/>
    <s:any/>
    </s:sequence>
    </s:complexType>
    </s:element>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="GetMultiFields_Project">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="sUsername" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="sQueueName" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="IFullPageKey" type="s:int"/>
    <s:element minOccurs="0" maxOccurs="1" name="sSession" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="sDataSource" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="IMode" type="s:int"/>
    <s:element minOccurs="0" maxOccurs="1" name="ProjectName" type="s:string"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="GetMultiFields_ProjectResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="GetMultiFields_ProjectResult">
    <s:complexType>
    <s:sequence>
    <s:element ref="s:schema"/>
    <s:any/>
    </s:sequence>
    </s:complexType>
    </s:element>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="GetMultiFields_AES">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="sUsername" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="sQueueName" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="IFullPageKey" type="s:int"/>
    <s:element minOccurs="0" maxOccurs="1" name="sSession" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="sDataSource" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="IMode" type="s:int"/>
    <s:element minOccurs="0" maxOccurs="1" name="oKey" type="s:base64Binary"/>
    <s:element minOccurs="0" maxOccurs="1" name="oVector" type="s:base64Binary"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="GetMultiFields_AESResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="GetMultiFields_AESResult" type="s:base64Binary"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="GetLookupFields">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="sUsername" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="sQueueName" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="IFullPageKey" type="s:int"/>
    <s:element minOccurs="0" maxOccurs="1" name="sSession" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="sDataSource" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="IMode" type="s:int"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="GetLookupFieldsResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="GetLookupFieldsResult">
    <s:complexType>
    <s:sequence>
    <s:element ref="s:schema"/>
    <s:any/>
    </s:sequence>
    </s:complexType>
    </s:element>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="CompressedGetMultiFields">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="sUsername" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="sQueueName" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="IFullPageKey" type="s:int"/>
    <s:element minOccurs="0" maxOccurs="1" name="sSession" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="sDataSource" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="IMode" type="s:int"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="CompressedGetMultiFieldsResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="CompressedGetMultiFieldsResult" type="s:base64Binary"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="StoreLookupValues">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="FieldGroupDoc">
    <s:complexType mixed="true">
    <s:sequence>
    <s:any/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element minOccurs="0" maxOccurs="1" name="sDataSource" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="RouteName" type="s:string"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="StoreLookupValuesResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="StoreLookupValuesResult">
    <s:complexType>
    <s:sequence>
    <s:element ref="s:schema"/>
    <s:any/>
    </s:sequence>
    </s:complexType>
    </s:element>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="StoreFieldGroupValues">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="FieldGroupDoc">
    <s:complexType mixed="true">
    <s:sequence>
    <s:any/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element minOccurs="0" maxOccurs="1" name="QueueName" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="IMode" type="s:int"/>
    <s:element minOccurs="0" maxOccurs="1" name="sDataSource" type="s:string"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="StoreFieldGroupValuesResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="StoreFieldGroupValuesResult">
    <s:complexType>
    <s:sequence>
    <s:element ref="s:schema"/>
    <s:any/>
    </s:sequence>
    </s:complexType>
    </s:element>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="CompressedStoreFieldGroupValues">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="data" type="s:base64Binary"/>
    <s:element minOccurs="0" maxOccurs="1" name="QueueName" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="IMode" type="s:int"/>
    <s:element minOccurs="0" maxOccurs="1" name="sDataSource" type="s:string"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="CompressedStoreFieldGroupValuesResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="CompressedStoreFieldGroupValuesResult" type="s:base64Binary"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="StoreFieldGroupValuesToMQ">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="FieldGroupDoc">
    <s:complexType mixed="true">
    <s:sequence>
    <s:any/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element minOccurs="0" maxOccurs="1" name="QueueName" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="IMode" type="s:int"/>
    <s:element minOccurs="0" maxOccurs="1" name="sDataSource" type="s:string"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="StoreFieldGroupValuesToMQResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="StoreFieldGroupValuesToMQResult">
    <s:complexType>
    <s:sequence>
    <s:element ref="s:schema"/>
    <s:any/>
    </s:sequence>
    </s:complexType>
    </s:element>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="StoreFieldGroupValuesToMQ_AES">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="xml_encrypt" type="s:base64Binary"/>
    <s:element minOccurs="0" maxOccurs="1" name="QueueName" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="IMode" type="s:int"/>
    <s:element minOccurs="0" maxOccurs="1" name="sDataSource" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="oKey" type="s:base64Binary"/>
    <s:element minOccurs="0" maxOccurs="1" name="oVector" type="s:base64Binary"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="StoreFieldGroupValuesToMQ_AESResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="StoreFieldGroupValuesToMQ_AESResult">
    <s:complexType>
    <s:sequence>
    <s:element ref="s:schema"/>
    <s:any/>
    </s:sequence>
    </s:complexType>
    </s:element>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="GetImage">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="ImageFileName" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="ILeft" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="ITop" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="IRight" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="IBottom" type="s:int"/>
    <s:element minOccurs="0" maxOccurs="1" name="DataSource" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="FullPage" type="s:boolean"/>
    <s:element minOccurs="0" maxOccurs="1" name="PrimaryURL" type="s:string"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="GetImageResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="GetImageResult" type="s:base64Binary"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="GetImage_AES">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="ImageFileName" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="ILeft" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="ITop" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="IRight" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="IBottom" type="s:int"/>
    <s:element minOccurs="0" maxOccurs="1" name="DataSource" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="FullPage" type="s:boolean"/>
    <s:element minOccurs="0" maxOccurs="1" name="PrimaryURL" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="oKey" type="s:base64Binary"/>
    <s:element minOccurs="0" maxOccurs="1" name="oVector" type="s:base64Binary"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="GetImage_AESResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="GetImage_AESResult" type="s:base64Binary"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="GetWImage">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="WorksetName" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="ImageFileName" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="ILeft" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="ITop" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="IRight" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="IBottom" type="s:int"/>
    <s:element minOccurs="0" maxOccurs="1" name="DataSource" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="FullPage" type="s:boolean"/>
    <s:element minOccurs="0" maxOccurs="1" name="PrimaryURL" type="s:string"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="GetWImageResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="GetWImageResult" type="s:base64Binary"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="GetWImage_AES">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="WorksetName" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="ImageFileName" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="ILeft" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="ITop" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="IRight" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="IBottom" type="s:int"/>
    <s:element minOccurs="0" maxOccurs="1" name="DataSource" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="FullPage" type="s:boolean"/>
    <s:element minOccurs="0" maxOccurs="1" name="PrimaryURL" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="oKey" type="s:base64Binary"/>
    <s:element minOccurs="0" maxOccurs="1" name="oVector" type="s:base64Binary"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="GetWImage_AESResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="GetWImage_AESResult" type="s:base64Binary"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="GetArchiveImage">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="ImgDets" type="tns:ImageDetails"/>
    <s:element minOccurs="1" maxOccurs="1" name="FullPage" type="s:boolean"/>
    <s:element minOccurs="0" maxOccurs="1" name="PrimaryURL" type="s:string"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:complexType name="ImageDetails">
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="ImageFileName" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="ProjectName" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="CustomerName" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="JulianDate" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="BaseDir" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="ILeft" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="ITop" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="IRight" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="IBottom" type="s:int"/>
    </s:sequence>
    </s:complexType>
    <s:element name="GetArchiveImageResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="GetArchiveImageResult" type="s:base64Binary"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="GetSnippets">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="ProjectName" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="FieldGroups" type="tns:ArrayOfFieldGroup"/>
    <s:element minOccurs="1" maxOccurs="1" name="FullPage" type="s:boolean"/>
    <s:element minOccurs="0" maxOccurs="1" name="sDataSource" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="PrimaryURL" type="s:string"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:complexType name="ArrayOfFieldGroup">
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="unbounded" name="FieldGroup" nillable="true" type="tns:FieldGroup"/>
    </s:sequence>
    </s:complexType>
    <s:complexType name="FieldGroup">
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="BatchstartDate" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="ClarifyFlag" type="s:boolean"/>
    <s:element minOccurs="1" maxOccurs="1" name="CrashState" type="s:boolean"/>
    <s:element minOccurs="0" maxOccurs="1" name="CustomerName" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="DCN" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="DynamicCoords" type="tns:ArrayOfDynamicCoordinateImage"/>
    <s:element minOccurs="0" maxOccurs="1" name="DynamicCoodinateDispZones" type="tns:ArrayOfDynamicCoodinateDispZones"/>
    <s:element minOccurs="1" maxOccurs="1" name="EndTime" type="s:dateTime"/>
    <s:element minOccurs="0" maxOccurs="1" name="ErrorMessage" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="FieldDetails" type="tns:ArrayOfField"/>
    <s:element minOccurs="0" maxOccurs="1" name="GroupDesc" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="GroupID" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="GroupType" type="tns:GType"/>
    <s:element minOccurs="1" maxOccurs="1" name="IsDHavailable" type="s:boolean"/>
    <s:element minOccurs="1" maxOccurs="1" name="IColumns" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="ICurrentRowCount" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="IFetchCount" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="IGHeight" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="IGLeft" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="IGTop" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="IGWidth" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="IKeyedFields" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="ILasteventid" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="ILinkedGroupIndex" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="ImageError" type="s:boolean"/>
    <s:element minOccurs="0" maxOccurs="1" name="ImageFileName" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="IRowCount" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="ISeconds" type="s:double"/>
    <s:element minOccurs="1" maxOccurs="1" name="ISnippetHeight" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="ISnippetWidth" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="IsPushToImageCorrection" type="s:boolean"/>
    <s:element minOccurs="1" maxOccurs="1" name="PageGroupId" type="s:long"/>
    <s:element minOccurs="1" maxOccurs="1" name="PageId" type="s:long"/>
    <s:element minOccurs="0" maxOccurs="1" name="PageType" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="Priority" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="ProjectId" type="s:int"/>
    <s:element minOccurs="0" maxOccurs="1" name="ProjectName" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="StartTime" type="s:dateTime"/>
    <s:element minOccurs="1" maxOccurs="1" name="Statuscodeid" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="Worksetid" type="s:long"/>
    <s:element minOccurs="0" maxOccurs="1" name="WorksetName" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="FITTOWIDTH" type="s:boolean"/>
    <s:element minOccurs="0" maxOccurs="1" name="ClariUser" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="LinkedSnippets" type="tns:ArrayOfBase64Binary"/>
    <s:element minOccurs="0" maxOccurs="1" name="ClariNote" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="PageCount" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="PrimarySubGroupTypeFieldCount" type="s:int"/>
    <s:element minOccurs="0" maxOccurs="1" name="LookupLog">
    <s:complexType mixed="true">
    <s:sequence>
    <s:any/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element minOccurs="0" maxOccurs="1" name="AppRequestId" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="AppStoreRequestId" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="WebRequestId" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="StoreBufferAddedOn" type="s:dateTime"/>
    <s:element minOccurs="1" maxOccurs="1" name="StoreBufferSentOn" type="s:dateTime"/>
    <s:element minOccurs="1" maxOccurs="1" name="GetBufferAddedOn" type="s:dateTime"/>
    <s:element minOccurs="1" maxOccurs="1" name="GetBufferSentOn" type="s:dateTime"/>
    <s:element minOccurs="0" maxOccurs="1" name="Note" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="MultiZones" type="tns:ArrayOfMultiZone"/>
    <s:element minOccurs="1" maxOccurs="1" name="MultiZoneAlignment" type="tns:MultiZoneAlignment"/>
    <s:element minOccurs="1" maxOccurs="1" name="IsPushToMFID" type="s:boolean"/>
    <s:element minOccurs="1" maxOccurs="1" name="FITTOWINDOW" type="s:boolean"/>
    <s:element minOccurs="0" maxOccurs="1" name="DynamicBRvalidation" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="ENABLEAUTOSCROLL" type="s:boolean"/>
    <s:element minOccurs="1" maxOccurs="1" name="DYNAMICROWCOUNT_UPLOAD" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="DYNAMICROWCOUNT_KEY" type="s:int"/>
    <s:element minOccurs="1" maxOccurs="1" name="SnippetType" type="tns:SnippetAllignment"/>
    <s:element minOccurs="1" maxOccurs="1" name="NAVIGATECOLUMNWISE" type="s:boolean"/>
    <s:element minOccurs="1" maxOccurs="1" name="ORIENTATION" type="tns:GRIDORIENTATION"/>
    <s:element minOccurs="0" maxOccurs="1" name="CustomColumnCount" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="IMAGECOORDSLEFT" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="IMAGECOORDSTOP" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="IMAGECOORDSWIDTH" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="IMAGECOORDSHEIGHT" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="DynamicSLineDelFlag" type="s:boolean"/>
    <s:element minOccurs="0" maxOccurs="1" name="DynamicSLineDelLineseq" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1" name="MaxDelseq" type="s:int"/>
    <s:element minOccurs="0" maxOccurs="1" name="DynamicRowZone" type="tns:ArrayOfDynamicRowZone"/>
    <s:element minOccurs="1" maxOccurs="1" name="STATICHEADER" type="s:boolean"/>
    <s:element minOccurs="1" maxOccurs="1" name="SHOWALLZONES" type="s:boolean"/>
    <s:element minOccurs="0" maxOccurs="1" name="SHLEFT" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="SHTOP" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="SHWIDTH" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="SHHEIGHT" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="SKIP_VALIDATOR" type="s:string"/>

    Tuesday, August 14, 2018 11:44 PM

All replies

  • User475983607 posted

    Let's rephrase the question as, "How do I make an HTTP request using C# syntax?".

    See the HttpClient API; https://docs.microsoft.com/en-us/aspnet/web-api/overview/advanced/calling-a-web-api-from-a-net-client

    Dynamically parsing a WSDL or dynamic SOAP invocation is another story.  A person that seeks this solution would not be asking how invoke an HTTP GET in C#. 

    Please explain clearly (the best you can) the problem you are trying to solve and provide source code and steps to reproduces the issue.

    Wednesday, August 15, 2018 1:32 AM
  • User-148788041 posted

    Without service reference or web reference i need too read the wsdl.

    Thursday, August 16, 2018 12:07 AM
  • User-330142929 posted

    Hi Guhananth,

    As far as I know, as long as our service exposes metadata to the client, metadata will be published in the form of WSDL(web service description language).

    You could publish metadata of services in the following ways.

    Service

        <services>
          <service name="sv" behaviorConfiguration="mybev">
            <endpoint address="" binding="wsHttpBinding" contract="isv" bindingConfiguration="mybinding">
            </endpoint>
            <host>
              <baseAddresses>
                <add baseAddress="http://localhost:1000"/>
              </baseAddresses>
            </host>
          </service>
    </service>
    

    Behavior

        <behaviors>
          <serviceBehaviors>
            <behavior name="mybev">
              <serviceMetadata httpGetEnabled="true" httpGetUrl=""/>
            </behavior>
          </serviceBehaviors>
    </behaviors>
    

    And then you are able to access the wsdl document on the client-side by the following ways.

            Uri mex = new Uri("http://localhost:1000/?wsdl");
                MetadataExchangeClient client = new MetadataExchangeClient(mex, MetadataExchangeClientMode.HttpGet);
                MetadataSet metadata = client.GetMetadata();
                XmlWriter writer = XmlWriter.Create(@"C:\1.xml");
                metadata.WriteTo(writer);
                writer.Close();
    

    Result.

    The simple way is get wsdl by the browser.

    Type http://localhost:1000/?wsdl in the browser address bar.

    Result.

    Feel free to let me know if you have any questions.

    Best Regards

    Abraham

    Friday, August 17, 2018 3:09 AM
  • User-148788041 posted
    Hi
    If i pass method name with parameters. How to get methods output.
    Tuesday, August 21, 2018 10:44 AM
  • User753101303 posted

    Hi,

    Unclear. You want to call this service? If yes what is the problem in doing this "as usual" by adding a reference to this service and using the generated proxy classes.

    If I remember I have seen something doing that dynamically but still you likely need to have some minimal knowledge about the service such as expecting a particular method name or whatever to do something useful.

    Edit: maybe https://docs.microsoft.com/en-us/dotnet/api/system.servicemodel.description.servicedescription?redirectedfrom=MSDN&view=netframework-4.7.2 ?

    But once again it would be easier to help if knowing your final goal. For now it seems you want to write code that would adapt to any XML file or service description but at some point you need to have some minimal knowledge about the XML data or the service you'll call to do something useful.

    It could be simpler to just deal with what you need now and move your code forward as needed rather than trying to build a pointlessly complex system that would be supposed to "auto-adapt" to whatever happens.

    What are you really trying to do ? Do you want to call the service or list method names with their return types (if that preferably is your goal to ultimately call the method named "XXX" in this service ?)

    "Reading the WSDL" doesn't do anything valuable and could be done in many ways depending on what you want to do with that. Exacly the same than your XML question where you wanted an XDocument and then some other object types or whatever (or worse it was step #1 in trying to read a WSDL document ???)

    It would be best to known your final goal. For now it feels you ask if your first foot step should be to the North or the South and we don't know if your final destination is 10 m away or on the far side of the Moon and if you should actually use a bike, a plane or a rocket...

    Tuesday, August 21, 2018 11:18 AM
  • User475983607 posted


    If i pass method name with parameters. How to get methods output.

    Parsing a WSDL, if that's what you are doing, is not trivial.  It requires that you have a solid understanding of the WSDLanguage and parsing XML.  The fact that you're asking this  question over and over across multiple threads points to holes in your understanding that you must fill.  

    Anyway, here is an article by a very keen  guy (Rick Strahl) which explains in detail how to parse a WSDL.

    https://weblog.west-wind.com/posts/2009/Feb/12/WSDL-Imports-without-WSDLexe

    Tuesday, August 21, 2018 12:02 PM
  • User-148788041 posted

    Without any reference can we read the methods and its return type?

    Wednesday, August 22, 2018 7:28 AM
  • User753101303 posted

    Definitively using the ServiceDescription class as pointed earlier twice. https://msdn.microsoft.com/en-us/library/ms996486.aspx could also help to understand how to use this class and see which WSDL parts you are interested in. https://www.tutorialspoint.com/wsdl/wsdl_example.htm is a very basic example or I would just create my own basic service to start testing my console app. It seems you want to list https://docs.microsoft.com/en-us/dotnet/api/system.web.services.description.porttype.operations?view=netframework-4.7.2  and see which "Messages" they send/receive?

    Now as for your other question, it could be still usefull to know what you are REALLY trying to do. What will you do once you get this information? Will you then ask how to call this method? If yes, which objective are you trying to achieve by using dynamically the WSDL document rather than by just adding a reference and be done with that ?

    Sometimes it also happens to see someone trying to do something complex to finally realize - once you understand his real goal - that it could have been done using a much simpler solution. For example one could ask your question to create help pages for his own service which is something that ASP.NET can do out of the box (and that you could likely reuse for external services etc...)

    This is why I keep trying to have the "big picture" about what you are ultimately trying to achieve by reading this WSDL document. If you just tell you want to "read a WSDL" document one could answer to use https://docs.microsoft.com/en-us/dotnet/api/system.io.file.readalltext?view=netframework-4.7.2 which technically speaking reads the WSDL document as a single string.

    Do you see the difference between that and knowing the ultimate goal you are trying to achieve by reading this document ?

    Wednesday, August 22, 2018 10:49 AM
  • User-330142929 posted

    Hi Guhananth,

    If i pass method name with parameters. How to get methods output.

    As the All-star says, could you tell me that what you really want to do? In my opinion, if you want to invoke the wcf service and fetch the callback result. I suggest you could share your service code with us, so that we could understand your requirement clearly and give you an effective reply.

    Generally speaking, we generate a client proxy class to call the wcf service by adding service reference or using the svcutil.exe. And then Client-side is able to call the service method with parameter and fetch the callback result.

    Here is official document.

    https://docs.microsoft.com/en-us/dotnet/framework/wcf/accessing-services-using-a-wcf-client

    While the wcf web http service could be access by the http request, just like the webapi. And the return result is http format(json,xml). All is up to your application type.

    I suggest you could post more details about your code and needs.

    Best Regards

    Abraham

    Wednesday, August 22, 2018 2:38 PM