Reputation: 444
I am creating a website that requires me to decode qr codes. I did my research and found out that php does not natively support decoding of qr codes. So, I decided to use the webservices that provide decoding of qr codes. I came across a good webservice, Zxing, which decodes the image submitted to it. The problem that I found was that I could not find enough documentation online with regards to the usage of the Zxing webservices, like how should the parameters be passed to the url of the webservice. The url that I am to access is, http://zxing.org/w/decode.jspx, but then how should I consume this webservice using SOAP / XML-RPC in php. I studied the result that is returned when I click on the "Submit" button, and its a simple text document. Please, do give me guidance as to how should I consume the Zxing webservice, are there any online documentations?
Thanks.
Upvotes: 0
Views: 7476
Reputation: 66896
It's not really documented as an API since it's not an API. You are not meant to integrate for use in your own service. It's a site I run as a free courtesy to end users on the web. It's OK to send a few requests at it, but for any significant volume, please run your own.
But the HTML is pretty much all the documentation you need: you can see what URL it posts to, and what parameters it sends. It's really just a POST of image content under parameter 'f', or a GET to the same URL with parameter 'u' specifying a URL to load.
The complete source code is at http://code.google.com/p/zxing, under zxingorg/
. You probably want to run your own copy, so you can control it and modify it.
Upvotes: 4