Simple Web service - SOAP Server/Client in PHP
Implementation of the SOAP server -
<?php // turn off WSDL caching ini_set("soap.wsdl_cache_enabled","0"); // model, which uses in web service functions as parameter
|Disclaimer: The instructions are the collective efforts from a few places online.|
|Nothing here is my original. But I want to put them together in one place to save people from spending the same time as I did.|
|First off, bundle.|
|1. cd to the project directory|
|2. Start the react-native packager if not started|
|3. Download the bundle to the asset folder:|
|curl "http://localhost:8081/index.android.bundle?platform=android" -o "android/app/src/main/assets/index.android.bundle"|
#Introduction If you're a php developer on ubuntu, there comes the time where you have to install/reinstall your system. I did it already a few times and i decided to write down the steps for a typical web developer stack with php. This is for a developer machine and not for a live environment!
I hope it helps you too!
|// EDIT THESE DEFINES TO WHATEVER SUITS YOU|
|#define USE_SYNC true // respawns the vehicle after you hit the cancel/finish button so it syncs with the world, disable this if you're mapping on a hill and the vehicle accidentally drives down the hill.|
|#define MAX_VEHICLES_PER_PLAYER (50) // maximum amount of vehicles 1 player can spawn|
|#define LABEL_COLOR 0xFFFFFFFF // Vehicle's label color|