OpenERP 7 webservices support for Java? - web-services

I've been doing a lot of research for the past few days but it seems I can't arrive with the right answers. And most of the resources are scarce.
Here are my questions, hope you could help me answer it. These questions are all related to Java. On how to access OpenERP 7 data.
Does OpenERP 7 supports RESTFUL and JSON-RPC for Java?
How can we update information and prices for products (in the POS module?)
How we can do a bulk export of all products and prices, without pulling the data one product at a time?
Thank you very much.
-R

There are already available doc for Android app and android internally use Java So may be this can help you
OpenERP Mobile Framework Doc
Thanks

yes openerp support JSON-RPC
from here you can get information
http://doc.openerp.com/trunk/developers/web/rpc/

I've done a simple example using json-rpc on android with android-json-rpc api, to fetch partners through http and https (using self-signed certificate) : https://bitbucket.org/petrus-v/openerpconnection
I haven't found good documentation about openerp low-level json-rpc api, my way was to understand request done with openERP client using any good browser's debbuger.
Hope it's help

You can refer to the official doc website from here

you could always look at wrapper libs for xml-rpc like OERPLib and port them to java

Related

FrontierLink B2B getting started

Has anyone of you already tried integrating with FrontierLink?
Found in their documentation
5.2 Building the FrontierLink Client
5.2.1 SOAP Client Environment
You must adhere to the following minimum requirements for SOAP clients in order to successfully integrate with FrontierLink:
XML 1.0
SOAP 1.1
HTTP 1.0 (1.1 preferred)
SSL based connection authenticated via X.509 Digital Certificates
WSDL1.1
A Web Services toolkit supporting WSDL 1.1 is recommended to aid your development.
In their documentation there is no sample on how to get started. I am really sorry for asking this question but what would be the code for connecting to FrontierLink? Thanks! Hoping for someone who can help :) Thank you once again!
May you please show us an example of the FrontierLink API? so that I may be able to help you further?
Just in a nutshell with what I understand when using SOAP api, you will have to call the APIs or links from your application(web/mobile) and in turn the API will return data in form of XML. you will then have to parse that data so that you may able to use that in your application.

Solution for use Django with Ejabberd?

I want to use my django website with ejabberd for chat
is there API available for ejabberd to communicate?
Thanks in advance
renjith
The standard for using XMPP with a webpage is called XMPP over BOSH. You can enable BOSH in ejabberd and then use an XMPP client library (like SleekXMPP) to talk.
Try searching using some mixture of the keywords "Jabber", "XMPP", or "BOSH", and I think you'll find a number of other people connecting Django with a Jabber server.

Creating and using SOAP based web service in Laravel framework

In Laravel 4 framework, how to create a SOAP based web service. I would like to build a SOA based web application in laravel. Please clarify with an example how to use web service with some step by step examples or links as i am completely new to laravel
Thanks in advance..
You can use "php-wsdl-creator" (also supports SOAP). They have a great tutorial and many demo php files to get you started. It can also easily be implemented in laravel or any other framework for that matter. :)
You can find more information on Google Code: https://code.google.com/p/php-wsdl-creator/
Also note that SOAP requires an extension to be loaded in PHP.
For more recent needs, you should use a Project such as wsdl2phpgenerator or PackageGenerator from WsdlToPhp. This sort of projects, requirable with composer, use an OOP approach and allows to build a SOAP request easily with PHP objects then handle the response just as the request with PHP objects.

Is there a way to extract data from Nagios as if it was a web service?

My situation: I'm working on a web monitoring dashboard that assembles informations from different applications and sources and generate graphs, info graphics and reports.
The applications I'm trying to integrate are CACTI, Nagios, and other local private monitoring tools. I had no problem to integrate these applications, except for Nagios (I don't have much experience with it).
What I want to know is if there is a way to use Nagios as a Web Service, or something similar, so I can expose some of the informations and use it to generate my own reports on my dashboard application.
Is it possible to do that without any epic effort?
thanks for reading.
Nagios 4.x starting with version 4.4 now includes CGIs for JSON output. Installing the newest version of Nagios might be the easiest way to go.
See the announcement here.
Review the slides from Nagios World Conference 2013 here.
The Check_MK Multisite GUI (Web base GUI using MK Livestatus) offers a web service mode, where you can send queries/commands as URL parameters and get the response as JSON in the body.
The trick is: Create a view in the GUI, which fits your needs. Then extract the URL of that view and add the parameter output_format=json. Now you should have the output in a parsable format.
For example, this URL should give you a JSON list of all services:
check_mk/view.py?view_name=allservices&output_format=json
You can try:
1) MK Livestatus http://mathias-kettner.de/checkmk_livestatus.html
it's not web service but it can give current data without any complicated action. All you need redirect this data.
2)status-json plugin http://exchange.nagios.org/directory/Addons/APIs/JSON/status-2Djson/details which return data in JSON format.
3)NagiosWS plugin but I wasn't able to get to work it yet. I think it can be done for Nagios 2.x
4)GroundWork Foundation plugin. I think I will try use it now.
I was able to get to work 1 and 2 solution now.
Otherwise you can use Icinga which can give you some JSON or XML output. Icinga is fork of Nagios and can be installed with saving all your nagios data and plugins. At least it written on Icinga's site =) They have some other solution like PHP lib.
Sorry, I cannot post only 2 link while I'm newbie on this site.
Best regards.
Worked for me - MK Livestatus http://mathias-kettner.de/checkmk_livestatus.html it's not web service but it can give current data without any complicated action. All you need redirect this data.

Tool For Constructing HTTP Requests

I'm looking for the best tool that allows me to construct my own http requests. Like the firefox addon poster.
Any suggestions. I'm looking at doing some security testing on webservices.
Thanks
Fiddler2 is the best tool I know of for that kind of work .. massive amount of features for scripting building requests, as well as storing sessions for later analysis.
cURL is a nice command-line tool.
Tamper Data
Apache JMeter
soapUI is great for testing web services.
WebScarab from the Open Web Application Security Project.