Sending set of parameters for IN statement to restful service - oracle

I think it is a very basic question, but Im new working on this. What I need is to build a webservice that receives a set of id's for building an IN statement.
something like that:
And the url would be something like that:
... service1/semovie/120,121
Is it possible??
Can you tell me how can I create my template/handler?
Many thanks
Regards.

I've got it! . This is how I configured my service:
And this is the output:

Related

about Sinatra on multiple Resources

Sorry to ask such a simple question but I didn't see any possible answer in internet.
I just wondering in Sinatra, can I write something like:
get '/users/:user_id/posts/:id' do
xxx
end
just like rails? cause when I write this on my rb file, sinatra keep telling me it didn't know this ditty.
thank you
A (horrible) example from one of our legacy systems.
get '/is_type/:type/id/:id' do
store.valid_for_type?(params)
end
Multiple placeholders in a route is totally fine in Sinatra. It sounds like your config.ru is wrong, you're issuing a POST, or you're calling the wrong endpoint entirely. Can you update your post with an example of the request you are issuing?

Can i add property to a BPEL in active composite without redeploy through WLST

I want to add bpel.config.auditLevel property to my SOA Web Services but because they are many and because of that, i need to find a way to do this through Web Logic Script Tool(WLST) with simple Jython script. Ive searched in the entire internet with no luck... Maybe this is not possible or i don't know.
Ive find a WLST command called setWebServiceClientStubProperty() but i'm not so sure is that the one i need and there is no examples how to use it soa web services.
Can any one help me with this ?
Thank in advance!
D.T.
You could try something like this :
Connect(USERNAME, PWD, URL)
custom()
cd('oracle.soa.config')
redirect('NULL','false')
list = ls(returnMap='true')
redirect('NULL','true')
for composite in list:
compositeObject = ObjectName(composite)
if compositeObject.getKeyProperty('j2eeType') == 'SCAComposite':
if compositeObject.getKeyProperty('name') == 'YOUCOMPOSITENAME':
compositeProperties = mbs.getAttribute(compositeObject, 'Properties')
compositeProperties[0].set('YOURAUDITLEVEL')

EventBus.subscribe() in SAPUI5

I am new to eventBus() function in SAPUI5.
I am using eventBus.publish() in Table.view.js controller to publish data & have used eventBus.subscribe() in MainPage.view.js controller. It is working fine.
But while I try to implement eventBus.subscribe() in another controller ("Feed.view.js"), it is not working. Why is it so?
The cause of you problem is likely one of the following:
You are not using the same EventBus in all cases (e.g. in one case
you use the sap.ui.getCore().getEventBus(), and in another case you
use your component's oComponent.getEventBus())
You are not using the same channel
You are not using the same event ID
Please check this, and if it doesn't help post more of your code.

How to test sending email in Laravel 5 using Behat?

I've just started learning to work with Behat in Laravel 5 and wonder how I could verify email sending. I tried this tutorial but it did not work (maybe it's out of date?). I also tried googling but couldn't find many sources. If you could show me how to achieve this, or direct me to a nice tutorial, I'd be really grateful.
Thanks!
I personally use mailtrap instead of mocking. I find it very usefull.
If you have set all the requirements, you can fetch your last sent mail by this method:
$lastEmail = $this->fetchInbox()[0];
Then you can retrieve let's say the title like this:
$subject = $lastEmail['subject'];
For a nice and clean tutorial watch: https://laracasts.com/lessons/trapping-your-email
I hope it helps!

how to call route like new request

I try to call my own api with laravel I tried all the options like:
in the answers:
Consuming my own Laravel API
or in this blog:
http://blog.antoine-augusti.fr/2014/04/laravel-calling-your-api/
and this plugin:
https://github.com/teepluss/laravel4-hmvc
sorry for sound dumb I dont understand all the things but they not make full 100% real request like
for example with normal ajax post request i can do this to get some parameter:
Request::createFromGlobals()->request->get('some-parameter')
but with the others techniqe this just return null
I am using this way becase thats the way how "thephpleague/oauth2-server" plugin get the post parametrs
( https://github.com/thephpleague/oauth2-server/blob/master/src/AuthorizationServer.php#L234 )
so my question: is there a real way to call other route and to make it 100% look like normal request?
From what it sounds like you are trying to do you could use Snoopy or cURL to make actual calls.
The real question is why do these need to be actual calls? The first link you posted has some really great examples that would work well for any calls that go directly back to your Laravel application. That article linked to a module called HMVC which keeps your code looking neat and simplifies the process.
Any HTTP Client will do this.
Guzzle
Buzz
Requests

Resources