PHP/SOAP WDSL Restrictions

This is a discussion on PHP/SOAP WDSL Restrictions within the PHP General forums, part of the PHP Programming Forums category; Hi All, I'm struggling with the WDSL restrictions in PHP/SOAP for a while know. I would like to ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 4 Days Ago
Paul van Brouwershaven
 
Posts: n/a
Default PHP/SOAP WDSL Restrictions

Hi All,

I'm struggling with the WDSL restrictions in PHP/SOAP for a while know. I would like to create some
simple restrictions in my WDSL file.

The script are running both on the same server with PHP Version 5.2.6 with the official soap extension.

On both my client and server there is some error configuration:

error_reporting(E_ALL);

ini_set("soap.wsdl_cache_enabled", "0");
use_soap_error_handler(true);

In my WDSL file there are some restrictions like:

A rule to accept only numbers, PHP/SOAP is translating not numbers to 0. (but I want an error message!)

<xsd:element name="streetNumber" minOccurs="1" maxOccurs="1" type="xsd:int">

Almost the same for this more advanced restriction, you can provide every string. There is no error
message and the whole string is accepted by my server.

<xsd:simpleType name="Email">
<xsd:restriction base="xsd:string">
<xsd:pattern
value="^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*$">
</xsd:pattern>
</xsd:restriction>
</xsd:simpleType>

I hope there are some people that have some more experience with PHP/SOAP and the use of
restrictions who can help me with this!

Best regards,

Paul
Reply With Quote
  #2 (permalink)  
Old 4 Days Ago
Paul van Brouwershaven
 
Posts: n/a
Default Re: PHP/SOAP WDSL Restrictions

> I'm struggling with the WDSL restrictions in PHP/SOAP for a while
Sorry, I mean WSDL instead of WDSL.

But of course the problem stays the same :-)
Reply With Quote
  #3 (permalink)  
Old 1 Day Ago
campionedelmonde2006@googlemail.com
 
Posts: n/a
Default Re: PHP/SOAP WDSL Restrictions

On May 9, 10:01*am, p...@vanbrouwershaven.com (Paul van Brouwershaven)
wrote:
> Hi All,
>
> I'm struggling with the WDSL restrictions in PHP/SOAP for a while know. I would like to create some
> simple restrictions in my WDSL file.
>
> The script are running both on the same server with PHP Version 5.2.6 withthe official soap extension.
>
> On both my client and server there is some error configuration:
>
> error_reporting(E_ALL);
>
> ini_set("soap.wsdl_cache_enabled", "0");
> use_soap_error_handler(true);
>
> In my WDSL file there are some restrictions like:
>
> A rule to accept only numbers, PHP/SOAP is translating not numbers to 0. (but I want an error message!)
>
> <xsd:element name="streetNumber" minOccurs="1" maxOccurs="1" type="xsd:int">
>
> Almost the same for this more advanced restriction, you can provide every string. There is no error
> message and the whole string is accepted by my server.
>
> <xsd:simpleType name="Email">
> * * * * <xsd:restriction base="xsd:string">
> * * * * * * * * <xsd:pattern
> * * * * * * * * * * * * value="^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*$">
> * * * * * * * * </xsd:pattern>
> * * * * </xsd:restriction>
> </xsd:simpleType>
>
> I hope there are some people that have some more experience with PHP/SOAP and the use of
> restrictions who can help me with this!
>
> Best regards,
>
> Paul


In my experience of PHP/SOAP developement this is very complex to
achieve. To get around this I had to build a function which took all
the data and compared it against a database of all accepted values,
and then return error message saying what was sent and what were they
accepted values for this field.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:52 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0