WSDL publishing in WebService

Posted on 2005-05-14
Last Modified: 2008-01-16
I use Delphi 7 professional edition.
I developed  number of web services and i have a next problem
I need to add to automatically generated WSDL string restrictions like minlength, maxlegth, or enumeration values.
Also i need to add minOccurs, maxOccurs attributes to show what elements are optional and what elements are optional and
what arguments are obligatory.
Another opportunity (less wanted) how i can supply my own WSDL instead of automatically generated.
Question by:vadim_ti
    LVL 1

    Accepted Solution

    HI.  I think you can write WSDL for your web services by yourself if you am familiar with SOAP. If no, I advice you use WSDL automatically generated. You can change your export unit code to get different WSDL.

    <email removed by Lunchy>
    LVL 6

    Author Comment

    Ok, let's say i will write my own WSDL, how i need to link it in my application, to display it instead of automatically generated
    LVL 1

    Expert Comment

    I think you need go to see source code automatically generated from a WSDL at first. It ought have a function like this. Please read its souce code. You will get how to link your own WSDL.

    function GetServicePortType(UseWSDL: Boolean; Addr: string; HTTPRIO: THTTPRIO): ServicePortType;
    LVL 6

    Author Comment

    i spent a lot of time to discover source code
    and do not find something best than in OnBeforePublishEvent handled to read WSDL file manually ,
    and to build a response,
    so i get a wanted result but can be a problem from maintenance point of view,
    i would like to get more "authomatic" solution.

    Have any idea?

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
    Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now