How to create a Web Services from a XML easily

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

  1. #1

    Default How to create a Web Services from a XML easily

    I want to know how can I create a Web Services with SOAP Request based on
    the following XML document:

    I know how to use the Class and XML Serialization at c# to create one, but
    don't know any faster and easily method.

    [WebMethod]

    [SoapDocumentMethod(

    "http://edmsws1/webservices",

    Use=SoapBindingUse.Literal,

    ParameterStyle=SoapParameterStyle.Bare)]

    [return: XmlElement("Response", IsNullable=false)]

    public DeleteDocument_Response DeleteDocuments(DeleteDocument_Request
    Request)

    {

    DeleteDocument_Response Response = new DeleteDocument_Response();

    return Response;

    }


    Any ideas?

    <Request>

    <Header>

    <UserID>

    <Type>Printing/Email/Fax</Type>

    </Header>

    <Body>

    <PrintJobs>

    <PrintJob>

    <Documents>

    <Document>

    <DocID>

    <PrinterSetting>

    <PaperSize>

    <Duplex>

    <NoOfCopies>

    </PrintingSetting>

    <Remarks>

    </Document>

    <Document>

    <DocID>

    <PrinterSetting>

    <PaperSize>

    <Duplex>

    <NoOfCopies>

    </PrinterSetting>

    <Remarks>

    </Document>

    </Documents>

    <Details>

    <AutoPrint>

    <CoverSheet>

    <SubmissionDateTime>

    <Remarks>

    </Details>

    </PrintJob>

    </Body>

    </PrintJobs>

    </Request>






    Mullin Yu Guest

  2. Similar Questions and Discussions

    1. Unable to create Users using Directory services in Windows 2003 Se
      I am unable to create new users using directory services in Windows 2003 server. But it is possible to create users with ASP.NET applications in...
    2. www.qesign.com/shop - create your pro website quickly and easily
      Hello, Here you can purchase at affordable price and immediatelly download professional website template for your site:...
    3. how do I create page numbers easily?
      How do I create page numbers for multi-page publications in FreeHand that 'know' which page they are? Is there any way to create them other than...
    4. Quickly and easily create your website for only $27
      Save your time and money, quickly and easily create your site using one of our full featured website templates with source Photoshop graphics. While...
    5. ANN: How to create alternative transport via MQ for web services.
      Hi, We are glad to introduce our new article, which describes how to create a custom transport for web services. This article describes...
  3. #2

    Default Re: How to create a Web Services from a XML easily

    Try this
    [url]http://msdn.microsoft.com/library/en-us/cptools/html/cpgrfWebServicesDescriptionLanguageToolWsdlexe.asp[/url]

    Randy
    [url]http://www.kbcafe.com[/url]

    "Mullin Yu" <mullin_yu@ctil.com> wrote in message news:<eWi#OWDqDHA.2416@TK2MSFTNGP10.phx.gbl>...
    > I want to know how can I create a Web Services with SOAP Request based on
    > the following XML document:
    >
    > I know how to use the Class and XML Serialization at c# to create one, but
    > don't know any faster and easily method.
    >
    > [WebMethod]
    >
    > [SoapDocumentMethod(
    >
    > "http://edmsws1/webservices",
    >
    > Use=SoapBindingUse.Literal,
    >
    > ParameterStyle=SoapParameterStyle.Bare)]
    >
    > [return: XmlElement("Response", IsNullable=false)]
    >
    > public DeleteDocument_Response DeleteDocuments(DeleteDocument_Request
    > Request)
    >
    > {
    >
    > DeleteDocument_Response Response = new DeleteDocument_Response();
    >
    > return Response;
    >
    > }
    >
    >
    > Any ideas?
    >
    > <Request>
    >
    > <Header>
    >
    > <UserID>
    >
    > <Type>Printing/Email/Fax</Type>
    >
    > </Header>
    >
    > <Body>
    >
    > <PrintJobs>
    >
    > <PrintJob>
    >
    > <Documents>
    >
    > <Document>
    >
    > <DocID>
    >
    > <PrinterSetting>
    >
    > <PaperSize>
    >
    > <Duplex>
    >
    > <NoOfCopies>
    >
    > </PrintingSetting>
    >
    > <Remarks>
    >
    > </Document>
    >
    > <Document>
    >
    > <DocID>
    >
    > <PrinterSetting>
    >
    > <PaperSize>
    >
    > <Duplex>
    >
    > <NoOfCopies>
    >
    > </PrinterSetting>
    >
    > <Remarks>
    >
    > </Document>
    >
    > </Documents>
    >
    > <Details>
    >
    > <AutoPrint>
    >
    > <CoverSheet>
    >
    > <SubmissionDateTime>
    >
    > <Remarks>
    >
    > </Details>
    >
    > </PrintJob>
    >
    > </Body>
    >
    > </PrintJobs>
    >
    > </Request>
    Randy Charles Morin 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