|
Re: WSDL-Structure: Restrictions ...: msg#00092php.nusoap.general
> Is there somebody, who implemented such restrictions in praxis? I am not sure what you mean by praxis. If you have a piece of WSDL for a service currently running in Axis, and you need to have a NuSOAP service that supports the same WSDL, you use the WSDL file as a parameter to your soap_server constructor, such as $wsdlfile = '/usr/local/wsdl/myservice.wsdl'; $s = new soap_server($wsdlfile); Your code then has no $s->register or $s->addComplexType calls. All you have to do is create functions with the same names as the methods specified in the WSDL. NuSOAP does not check things like restrictions in the data from the client. Your method code must do the checks. Scott Nichol Do not send e-mail directly to this e-mail address, because it is filtered to accept only mail from specific mail lists. > > Here is a snippet, how the WSDL should look like: > ... > <xsd:simpleType name="record_id"> > <xsd:restriction base="xsd:string"> > <xsd:minLength value="1"/> > <xsd:maxLength value="20"/> > </xsd:restriction> > </xsd:simpleType> > > <xsd:simpleType name="timestamp"> > <xsd:restriction base="xsd:string"> > <xsd:pattern value="\d{12}"/> > </xsd:restriction> > </xsd:simpleType> > > <xsd:simpleType name="record_type"> > <xsd:restriction base="xsd:string"> > <xsd:enumeration value="DE"/> > <xsd:enumeration value="ES"/> > <xsd:enumeration value="FR"/> > </xsd:restriction> > </xsd:simpleType> > ... > > Thanks for your help! > Bye, Andreas > > > -- > +++ GMX - Die erste Adresse für Mail, Message, More +++ > > 1 GB Mailbox bereits in GMX FreeMail http://www.gmx.net/de/go/mail > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nusoap-general mailing list > Nusoap-general@xxxxxxxxxxxxxxxxxxxxx > https://lists.sourceforge.net/lists/listinfo/nusoap-general > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | FW: Request implements version: http://schemas.xmlsoap.org/soap/envelope/ Response: 00092, Fransjo Leihitu |
|---|---|
| Next by Date: | Re: Re: Re: Help! "Server did not recognize the value of HTTP header SOAPAction:": 00092, Scott Nichol |
| Previous by Thread: | WSDL-Structure: Restrictions ...i: 00092, Andreas Rudloff |
| Next by Thread: | Proxy username and password: 00092, nusoap |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |