cancel
Showing results for 
Search instead for 
Did you mean: 

ServiceV: Virt Dispatch rule to fire if header does not exist

SOLVED
Highlighted
New Contributor

ServiceV: Virt Dispatch rule to fire if header does not exist

How do I get a Parameter Dispatch Strategy rule to fire if a header does not exist in a request?

I can check if a header value exists, but I want to return a specific status code if it doesn't exist.

How do I do that?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Hero

Re: ServiceV: Virt Dispatch rule to fire if header does not exist

Hi,

 

It is my understanding that you should do Script Dispatch, but not Parameter one.

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================

View solution in original post

3 REPLIES 3
Community Hero

Re: ServiceV: Virt Dispatch rule to fire if header does not exist

Hi,

 

It is my understanding that you should do Script Dispatch, but not Parameter one.

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================

View solution in original post

New Contributor

Re: ServiceV: Virt Dispatch rule to fire if header does not exist

This is crazy, why isn't this a standard option?

Community Hero

Re: ServiceV: Virt Dispatch rule to fire if header does not exist

Have no idea...

Maybe because REST parameters are passed in the URL and are user-controllable while header data is something that is beyond end-user control.

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
New Here?
Join us and watch the welcome video:
Watch the new Interview
Top Kudoed Authors