Get the Code Here : http://goo.gl/YGeQ86 Web Services 1 : https://www.youtube.com/watch?v=iqNiINZ4Sxg Web Services 2 …
Original source
Get the Code Here : http://goo.gl/YGeQ86 Web Services 1 : https://www.youtube.com/watch?v=iqNiINZ4Sxg Web Services 2 …
Original source
33 responses to “Web Services Tutorial 3 SOAP & REST Tutorial”
LOL……YEAH SOMEONE IS Twin Peaks fan!!!!!!
thanks for showing us REST.
Derek, in regard to HATEOS, would it be a better practice to pass the URI of each individual student resource in the response rather than building out the href in the front end? Let me know your thoughts.
Frank
super!!!
Hey, are you a Twin Peaks fan, too?
how can i get wsdl file with this example plz
super bro thank you.
Your channel is quite awesome!
require("mysubscription.php");
Good but don't you think the voice of the person speaking is not proper.
What exactly is the uri => '..' in the SoapClient options for? When it's a non-empty string it seems to work…
why arrays of arrays? not array of objects
Nice and simple example. I wish you can make one with WSDL and Mysql example. Thanks!
Great tutorials, thanks for putting these together.
Cool man, great stuff!
Really great tutorial……you´re the best XD
Greetings from Chile
great video i learn a lot. can you help me on REST API security specifically API KEYS and minimum requests. Thanks a lot
Is it possible to send a restful request to a soap server(opc server)?
Excellent approach and clarity… Thanks for taking the time to put the videos together!
option = options? 🙂
Great video!
Thanks for your awesome videos. It really helps me.
Please correct me if I'm wrong. I would build an API if I want to make my website a mobile app, I want another app to connect to my site or I just want to use frameworks like Angular to fetch data from the API instead of using PHP directly.
Am I missing something?
I was always afraid of API'S, but I guess it's all about returning JSON, and mostly that's it.
Dear Derek,
Thank you for wonderfull tutorial as always.
I apreciate this tutorial for SOAP and REST but I can't help but wonder how is REST diferent from ordinary getting and presenting data ?
Nice vid, let me ask u something, i need to create a mini social network using web services, but, i cant understand how to!! can u help me? starting from the login and register form using web service, please :S
Thank you very helpful.
I get an error that says I need an xml file. Do you have any suggestions of what might solve this? here is the error: SoapFault: looks like we got no XML document in clientfilename
I've never heard anyone pronounce 'Yakima' (ya-kee-ma) the way you did (spent most my life in Central Washington). Everyone here says "Ya-ka-ma" or "ya-ka-maw" (Sometimes "yak-uh-ma/w" even.), in my experience. Wikipedia seems to say "Ya-kee-ma" also, but I've never once heard it before today haha. Anyways this is a pointless comment, just thought it was interesting.
very nice tutorial.
i kept receiving this error: object(SoapFault)#2 (10) { ["message":protected]=> string(33) "looks like we got no XML document"….
i solved it by going to php.ini and uncommenting the line "always_populate_raw_post_data = -1"
make sure to restart your web-server after doing this
hello again, as always thanks for the tutorial, maybe you have an example for the conexion of this webservice with C# as you don't use WSDL I cant connect them? I can't resolve my problem with that… thanks again
Quick Tip:
Instead of <?php echo $student_info["first_name"] ?>
You can put <?= $student_info["first_name"] ?>
If anyone has any problems running the above projects watch out for your UTF settings. I copied the code from Dereks website into my editor and for some reason the default in my editor changed to UTF with BOM. This meant that some strange characters, that FF doesn't even display, were messing up my code. Anyway, the solution is to make sure that your text editor (mine is Notepad ++) is set to UTF8 without BOM.
Hi Derek, I keep getting the following error when I run your code: Invalid argument supplied for foreach() in C:wampwwwrestexamplerest_client.php on line 47
It's to do with the foreach statement but I'm not sure what's wrong. I've copied your code from your website and the only thing I've changed is the url where I have the files in a different named folder
I thought it might be more concise to do something like:
static $student_info = array(
array("first_name" => "Dale" , "last_name" => "Cooper", …),
array("first_name" => "Harry", "last_name" => "Truman", …),
…
);
if(in_array($id, $student_info)){
return $student_info[$id];
} else {
return "Student id: $id not foundn";
}
but then you'd probably have to explain static which diverts from the video.
Probably should have thrown in a default case though:
default:
$student_info = array("NA" => "No student exists with that id");
thanks for sharing knowledge , can possible upload video tutorial send data from html form to mysql database and retrieve
data from database to html form