WSDL publishing in WebService

Posted on 2005-05-14
Medium Priority
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
  • 2
  • 2

Accepted Solution

wjmfzsz earned 2000 total points
ID: 14033153
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>

Author Comment

ID: 14034175
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

Expert Comment

ID: 14034373
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;

Author Comment

ID: 14034407
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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

864 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