Integrate NetSuite SOAP request into WordPress - 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.

Related

Use POST method from Wordpress page to Google Apps Script

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.

Display products from Woocommerce in external application

I have a question about integration e.g. Woocommerce with external app.
What is the best and safe method to accomplish this goal?
Woocommerce has REST API but it might be quite vulnerable and will not show anything (products etc.) to non logged user(which is understandable).
Only safe idea that's comes to my mind is creating scripts inside WordPress and access them via AJAX but I'm worrying about performance of this method.
Maybe there is a right way that I'm not familiar with?
For that purpose, you should create an API from scratch of the wordpress database. wordpress databse has all of you need in a good way and only some php codes needed to create and execute the API. then in you app with AJAX you should access that.
this link may help you:
https://developer.okta.com/blog/2019/03/08/simple-rest-api-php
The right way is likely creating your own API if you don't want to use Woocommence's one. That means you make a plan of what you need to expose, all the routes and start building the API. I warmly recommend the book by Phil Sturgeon - Build APIs you won't hate. The author is also a co-founder of https://phptherightway.com/ so it's quite reputable.

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.

Resources