Em Andamento

Web Service in PHP with XML and NuSOAP

The Project is to create a NuSOUP Web Service that a company will send me usernick(www) to store into a database.

The company runs in ASP and I run in PHP so that is why they need to send data in XML

They will hit our web service with 3 types of functions...

require_once('[url removed, login to view]');

$server = new soap_server;

$server->register('create');

function create ($usernick){

Here we will create a new record on the www_users with the usernick(www) provided -counter1 and counter 2 are for future use- we need to insert also date_created

}

$server->register('update');

function update ($usernick){

Here we will update the usernick with a new one - in this case the function will get old and new usernicks with this one so we can update the record based on unique usernick we need also to update date_change

}

$server->register('cancel');

function cancel ($usernick){

Here we will update the status of the user in web_users to 0

}

$server->service($HTTP_RAW_POST_DATA);

Once this is done I need to see http://localhost/webserv/[url removed, login to view] so I can send this company the .WSDL file.

I know the basics of NuSOAP so if you find errors in this sytax is mainly so I can explain you what I need.

Also I need the database structure to be like this

CREATE TABLE www_users

`www` varchar(20) NOT NULL default '',

`status` int(4) NOT NULL default '1',

`counter1` int(20) NOT NULL default '0',

`counter2` int(20) NOT NULL default '0',

`date_created` datetime NOT NULL default '0000-00-00 00:00:00',

`date_change` datetime NOT NULL default '0000-00-00 00:00:00',

PRIMARY KEY UNIQUE field is www

So bascialy I need 1 [url removed, login to view] that connects to the database and runs this 3 functions.

I will provide you with access to the domain with FTP http://localhost/webserv/ so you can create the PHP script.

Habilidades: PHP, XML

Ver mais: nusoap datetime, nusoap send xml, xml nusoap, php nusoup soap_server, nusoap wsdl, web service nusoap table, nusoap register, nusoap insert, nusoap register function, nusoap server register, php nusoap send xml, php nusoap sending data web service, xml web server, xml use case, why data structure, what is record in data structure, what is data structure in c, what is data in data structure, what is a data structure in c, what is a data structure explain, what are the types of data structure, use case types, types of data structure, types data structure, that web company

Acerca do Empregador:
( 44 comentários ) San Antonio, United States

ID do Projeto: #137393