#35 Option to validate Request on Send, and Response

closed
nobody
None
7
2006-10-29
2006-10-04
No

Ole Matzura wrote:
(...)
> I think your suggestion is a good idea, and not that
hard to implement..
> Could you please add a feature request for this at
sourceforge and i'll
> try to make it into the final 1.6 version (with
credits on our site of
> course ;-)

(...)

> >-----Original Message-----
> >Sent: Wednesday, October 4, 2006 02:30 PM
> >To: ole@eviware.com

(...)

> >Here is an idea for an additional feature that I
think would be handy:
> >
> >Validation (Alt-V) is very useful, but you need to
do it yourself before
> > sending a request (or to check a response). How
about you introduce
> >two preference options [X] Automatically validate
every outgoing
> >request, [X] Automatically validate each received
response? I'd
> >probably even set the Option to "On" by default.

Discussion

    • priority: 5 --> 7
    • summary: : Option to validate Request on Send, and Response --> Option to validate Request on Send, and Response
     
  • Logged In: YES
    user_id=436385

    PS: Sorry the formatting above is screwed up...

     
  • Ole Lensmar
    Ole Lensmar
    2006-10-05

    Logged In: YES
    user_id=838515

    hmm.. should a request be aborted if validation fails?

    could be irritating.. I vote for not aborting..

    what do you think?

    /Ole

     
  • Logged In: YES
    user_id=436385

    > should a request be aborted if validation fails?
    > could be irritating.. I vote for not aborting..

    Personally I would abort, yes. Technically, the request is
    not valid, so something is wrong, either in your WSDL
    (schema of course) or XML Request. Of course the service
    might still work and respond, it depends, but the request is
    wrong, and I think its helpful to point this out.

    Now, it could be irritating, I agree.. so maybe some
    pragmatic middle way here. How about, if a request fails
    validation, showing a popup dialog when you press [>]_Send
    saying something like "XML in this request fails schema
    validation. Would you like to send it anyway? [Yes] [No]
    PS: You can switch off automatic validation for outgoing
    requests in File/Preferences."

    Same issue on the response though (would be nice if that was
    validated too, as I wrote above, like you can manually).
    Probably handle the issue discussed here differently though?
    No popup, too intrusive there. Definitely show the
    response, not hide it or something. Ideally something like
    a red bar on the top (right hand, over response, only), that
    says "The XML response received from the service fails
    schema validation. PS: You can switch off automatic
    validation for incoming responses in File/Preferences."

    BTW: For both request and response, if automatic validation
    fails, I think that "message pane" that shows the details at
    the bottom show open up automatically, before the messages
    above are shown just like it does when you validate manually.

     
  • Ole Lensmar
    Ole Lensmar
    2006-10-06

    Logged In: YES
    user_id=838515

    ok thanks for your feedback!

    Maybe an additional option to "abort on invalid request"
    would be the most flexible !? Negative testing is rather
    important (it least in our projects), so it should
    definetely be possible to turn off.

    The "error-pane" at the bottom of the request/response
    editors will always show up on failed validations in either
    editor.

    I'll publish a first version of this functionality in the
    upcoming snapshot this weekend.. we can discuss it and take
    it from there..

    regards,

    /Ole

     
  • Ole Lensmar
    Ole Lensmar
    2006-10-09

    • status: open --> pending
     
  • Ole Lensmar
    Ole Lensmar
    2006-10-09

    Logged In: YES
    user_id=838515

    ok.. an initial version is in the latest snapshot.. please
    try it and let me know how it feels.. :-)

    regards!

    /Ole

     
    • status: pending --> open
     
  • Logged In: YES
    user_id=436385

    I just gave it a (very quick; limited time) try; looks cool!
    Forget the popup and red bars stuff then... ;-)

    Agreed of course with your comment on negative testing;
    sometimes you do want to send that, sure. However, an
    option to "abort on invalid request" would definitely be
    very useful I believe, yes; see previous comments. Keeping
    it separate/additional is more flexible, nice idea. Option
    naming maybe better "Never send invalid requests", maybe?

    Other thing I noticed is that this is OFF by default, is
    that intentional? Personally I'd make all three options
    (two you have now and new one above) active/enabled for new
    users, as the SOAP "should" be well-formed. (Strictly
    speaking that breaks backward compatibility, yes; but one
    could argue this is a "New Feature, Not A Bug" ;)

     
  • Ole Lensmar
    Ole Lensmar
    2006-10-14

    • status: open --> pending
     
  • Ole Lensmar
    Ole Lensmar
    2006-10-14

    Logged In: YES
    user_id=838515

    ok.. I've added an option to abort invalid requests.. check
    out the latest snapshot and let me know..

    regards,

    /Ole

     
  • Logged In: YES
    user_id=1312539

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
    • status: pending --> closed
     
  • I have learn a few just right stuff here. Certainly price bookmarking for revisiting. I wonder how a lot effort you put to make this type of excellent informative website. Burberry Outlet http://burberryoutlet.v5s7.com