Link to home
Start Free TrialLog in
Avatar of vadim_ti
vadim_ti

asked on

WSDL publishing in WebService

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.
ASKER CERTIFIED SOLUTION
Avatar of wjmfzsz
wjmfzsz

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vadim_ti
vadim_ti

ASKER

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
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;
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?