API-calls without Appserver - rest

I have googled and tried some solutions but so far, nothing works.
I am trying to do some API-calls (REST) from a 4gl / OpenEdge procedure. However, there is no AppServer available and I have no clue if that is necessary to do an API-call. I am not a OpenEdge expert and none of my colleagues have a clue :X
Is there anyone that knows if this is possible, and if so, an example for doing this? Thanks

You need an HTTP client to perform the call.
RTFM ;)
https://documentation.progress.com/output/ua/OpenEdge_latest/index.html#page/dvpin%2Fmaking-http(s)-requests-from-abl-applications.html%23wwconnect_header
Some examples there:
https://github.com/PeterJudge-PSC/http_samples
I used this to implement my calls (GET, POST, etc.) with 11.5 & 11.6. Works great.

Related

Can someone explain how to use fmdb's FMDatabaseQueue?

I saw that FMDatabaseQueue is a new addition to fmdb to help handle background thread db calls. It seems like it's just what I need, but I can't find any documentation explaining how to make and handle query/update requests.
Does anybody have any experience with it? Can you post some sample code or an explanation?
Thanks
Branch: github.com/ccgus/fmdb/tree/threadtests
The classes are there, I just don't see how to use the queue.
I was looking around for the same thing and up until today I wasn't able to find much. Gus updated the github repo today with fmdb 2.0, and it has in depth documentation on how to use the FMDatabaseQueue.
Here is the Link

Call REST Webservice from Blackberry

I am new to Blackberry app development. I need to call REST webservice from blackberry application using JDE 4.7. I searched but not got any solution. Anyone help pls?
sri
You have to make an HttpConnection request and read the data as an InputStream... have a look at this tutorial Calling REST based web services
I appreciate this an old post - but it has been updated so someone is looking at it, so I thought it appropriate to contribute.
I am sorry, but I can not recommend the code supplied the link from another answer called "Calling REST based web services".
I have made a comment explaining this on the site, along the following lines:
"In my opinion this code is flawed because it does not consider the different connection methods, nor does it consider different encodings. More over it does not consider the Event Thread or provide reasonable error checking and logging. I appreciate that this is just a sample, but I think the author has a responsibility to make people who might use this code aware of how it should be used properly. And this code will cause more problems that it solves. Refer to the supported BlackBerry documentation and web sites for better samples."
Sorry, I am not as familiar as I should be of the questions asked on stackoverflow, but questions like this come up regularly on the BBRY forum here:
http://supportforums.blackberry.com/t5/Java-Development/bd-p/java_dev
I recommend that you go on that forum and type network in the Search box on that site and you be presented with a range of tutorials and KB articles that discuss all aspects of networking. In this particular case I would recommend this:
http://supportforums.blackberry.com/t5/Java-Development/What-Is-Network-API-alternative-for-legacy-OS/ta-p/614822
Networking is not trivial on the BlackBerry, do not expect a cut and paste of the code supplied to work for you. Specifically you should be aware of:
a) The various connection methods, the costs associated with each and the impact that using each might have (e.g. transcoders or caching)
b) The Event Thread, how to get off it and back on when processing a response
c) Logging and reporting so that you can investigate problems when they occur (and they will).
Personally, given that all OS 4.7 devices can be upgraded to OS 5.0 and should be, since OS 5.0 is better, I would forget supporting OS 4.7. Instead look at OS 5.0 and above support and use ConnectionFactory.

Service development framework solutions for Windows Phone 7

I've been trying to get Thrift to work with WP7, but has put it on hold preliminary.
I'm now looking for other solutions to this and would like to get some feedback on which solution to choose, if any.
Any suggestions is much appreciated, so don't hesitate :)
You might need to hive us a little more detail. Like a link to Thrift would be helpful. Not sure what you are trying to do.
I bing "Thrift" and get a bunch of things (one of which appears to be a commercial service/web site). I bing "thrift api" and get references to an Apache project.
Help us to help you.

Integrating Drools with JBossESB

In recent weeks I've been researching Drools amongst other CEP/Rule Engines and I believe I would like to use Drools. I also have an JBossESB which is responsible for routing of messages between different services.
Unless I am totally missing the boat, I can't for the life of me see how I would get data into Drools via JBossESB.
Inside of my ESB I have data (facts) that needs to be monitored and routed correctly (some of the data properties also needs to be modified based on other properties in each of the facts, I figured using Drools (a combination of Fusion and Expert) would be the best way to handle this, however, I don't really see in any of the JBoss (or other) documentation how I would get that done.
Is this a cart-before-the-horse situation? Am I totally missing the boat somewhere?
Any help is greatly appreciated.
Thanks.
pretty late to respond...If anyone is still looking please see: http://java.dzone.com/articles/jbossesb-drools-integration

Using Soap Web Services in iPhone with wsdl2objc?

I do realize this is a duplicate question, however the only other question is quite old, so I would like to know if anyone has had any recent experience with the latest version of wsdl2objc.
I am doing an application that will communicate with SOAP Web services exposed by a third party application (it only exposes them this way unfortunately). As far as I understand all wsdl2objc does is convert the WSDL to something useful in objective C code. I have also done the tutorial icodeblog intro to soap
So has anyone used the latest version of wsdl2objc?, what is your experience with it?, did you run into any problems with it?. Please let me know. Also some code sample would be really great.
Any information available on using SOAP Web Services with iPhone would be appreciated. Thank you.
-Oscar
My most recent experiences with wsdl2objc is that it's on the right road, but not really there yet. It's definitely the kind of program you'd want. It just may or may not be able to handle the WSDLs you actually have.
Short answer: try it and see if it works for your WSDLs. If it does, hooray. If it doesn't, you have two options. For reasonably simple WSDLs, write the SOAP by hand. This often is actually the easiest approach. If the WSDL is complex, then use gSOAP to get to C++ and then wrap the C++ in Objective-C++ (or use the -c option to gSOAP and wrap the resulting C, whichever you're more comfortable with).
I think this gives a good example of how to configure your environment (for noobs like me)
http://blog.futurebytez.com/2010/05/calling-web-services-using-wsdl2objc.html
The official wiki for wsdl2objc (linked in the article) has a code snippet which gives you the basics.