WSDL Rewrites - limit available operations

19 views
Skip to first unread message

tim.b...@devopsmakers.com

unread,
May 18, 2017, 5:34:35 AM5/18/17
to membrane-monitor
Hi fellow membrains,


Has anyone implemented wsdl operation limiting with Membrane? 

For example when proxying to an upstream WSDL like: 

    <soapStackTraceFilter />
    <validator />
</soapProxy>

I'd like to limit the operations available externally and filter out non-public operations?

I'm guessing it is possible but aren't quite sure where to start looking...

Many thanks,

Tim Birkett.

Tobias Polley

unread,
May 28, 2017, 2:58:15 AM5/28/17
to membrane-monitor
Hi Tim,

you could probably do something like this:

...
<validator />
<soapOperationExtractor/>
<groovy>
String operation = (String) exc.getProperty("
XSLT_SOAP_OPERATION");
if (operation == "someBlockedOp") {
  return Response.forbidden().build();
}
return CONTINUE;
</groovy>

...

Note though that I have not tested this.

Best,
Tobias

Reply all
Reply to author
Forward
0 new messages