Use POST method from Wordpress page to Google Apps Script - wordpress

I wonder how it could be possible to use POST request from a Wordpress page to Google Apps Script and getting information back.
Is it possible? How?
Found just a few literature about that not enough to complete anything.
Thanks for your help!
akaii

You may want to have a look at Apps Scripts Web Apps.
Make sure that on the implementation of the doPost(e) method, you either return a HtmlOutput or a TextOutput object. More information here.
Once the Web App is deployed you can make a POST HTTP call from your Wordpress application.

Related

Integrate NetSuite SOAP request into WordPress

I know that this is a question already done in the past here but I cannot find a solution because my level in this kind of development is quite low.
I need to integrate a soap web service request to netsuite in WordPress. I would need to show to user something like the form in this page: http://magazzino.plastidite.com/sito/stock.jsp
A developer will give me the request code and an example of the reply in XML format.
Where do I have to start? Is it possible to use a form plugin and let communicate it with the web service or maybe the only solution is to work with vanilla PHP and use it to create an HTML layout integrating it in a WordPress page?
Please be kind with me :)
A need of this type had never occurred to me and I really don't know where to start.
Thanks in advance to anyone who wants to help me.

Using WordPress, how do I create a lead web form that does POST server side to a web api?

Is this even possible? My company has literally spent 6 months trying to figure out how to accomplish this task. Many people within the company feel the task is so simple, that it is self evident that wordpress can do this. However, the feature has still not been delivered. Which makes me question whether wordpress has the ability to accomplish this. (obviously we can accomplish in another tech stack, like asp.net, etc. But we need to know if this is technically possible within wordpress)
The page within WordPress needs to contain a form that does both client side and server side validation. The POST to the web api needs to be done server side.
Any and all help appreciated. Thank you in advance!
Are we making the false assumption that WordPress is capable of this?
Yes it is possible.
You can make a template for a page with HTML+Java​Script
code. Make validation in the browser. Then send the data to the server through AJAX and check it. At the end get an answer from server.
Also you can create widget or plugin and paste your form( +validation ) with needed code inside any page of your site through shortcode.
And besides with WordPress REST API you can do server validation on any platform that can work with JSON.
Edit
If you need the other pages or any content, you can create server side HTTP POST request via cURL or other libraries from PHP. With data taken from front-end form.
But if you don’t need content management system, then using WP doesn't have any sens. Only because of the one form and server code for HTTP POST request.

Log In form in WordPress that calls a Web service on submission

I am having to create a login form on one of the pages of a wordpress site I have just inherited. I am absolutely new to both wordpress and php. The idea is to create a login form and on submission this would contact a .net web service which would then return a value saying whether the user is a valid one. (The .net part of it is all fine. I just tested it with a small php code snippet and it works). Based on the return value, I need to create an authentication ticket for the user in wordpress. How do I go about this? I seem to have no clue. I tried using the in built forms that comes with wordpress. As much as it is sophisticated, there is no apparent way to establish a soap connection to a Web service and all that. Please help.
I'm not entirely sure where you'll have to start, or how much custom coding you'll have to do to get this to function the way you want, but understanding SOAP in PHP seems important. Understanding PHP Sessions would also be important. Also, having the WordPress codex as a reference would be a good idea.
As far as having WordPress use SOAP goes, I was able to find one SO question that may help.

Posting a blog entry with RealStudio (REALbasic)

I want to write a utility in RealStudio that will post a blog entry to a blog server... If that makes sense.
Has anyone done this before and is willing to give an example of what they did?
You'll need to know the API that is used to post to the server. Check out HTTPSocket and the Post method for one way to communicate with web servers.
As the oldest answer says, you will need to know the API the server uses (for the blog). Then you will need to read/write to the API using the HTTPSocket.
Is there a reason you are writing a new application to post to a blog? There are many tools out there.

How to call a SOAP web service from a Wordpress form?

I have a Wordpress site that I am currently working on and have set up a form with the CformsII plugin but the client would like the form data submitted to a SOAP web service.
I have the SOAP webservice URL and XML data but the CformsII plugin in Wordpress seems to use a standard HTML POST method which I have been told that the SOAP webservicewill not handle.
I have never used or had any experience with SOAP web services before so I am really in need of guidance as to how I can go about submitting form data from a Wordpress site (with or without the CformsII plugin) to a SOAP webservice.
Has anyone achieved this previously or know of any plugin that could help?
I wish I had a better answer for you, but I'm afraid it'll involve some coding and understanding on SOAP. (Because I couldn't find any WordPress plugins that implemented a generic SOAP client or more specifically a form submitter with SOAP support).
This post author collected a nice group of links that should help get you started: https://wordpress.stackexchange.com/questions/14804/embedding-a-soap-client-into-a-wordpress-plugin
Personally, I use GravityForms for all my projects (but it's a paid plugin). But they provide a nice API and there's a hook called gform_post_submission that I've personally used a lot. (I've "posted" to REST services using that hook).
There is a soap plugin framework for wordpress that allows you to create/expose wordpress behavior as soap api. http://www.amazon.com/dp/B00D1AYIG8 and http://github.com/patrickingle/wp-soap-services

Resources