How to generate xml description for each function using nusoap in php? -


i have developed soap api using nusoap in php. have created function that. have created file service.php & when hit file on url document functions. this:

enter image description here my nusoap doc

but want have xml description functions. this:

enter image description here required output

please tell me how it

this code service.php

<?php require_once "lib/nusoap.php"; require_once "functions.php"; $server=new nusoap_server(); $server->configurewsdl("soap", "urn:soapn"); $server->register("addrecord",         array("fname"=>"xsd:string","lname"=>"xsd:string","buis_name"=>"xsd:string","phone_num"=>"xsd:int","city"=>"xsd:string","state"=>"xsd:string",           "zipcode"=>"xsd:int","email"=>"xsd:string"         ,"w_store"=>"xsd:string","con_store"=>"xsd:string","ind_store"=>"xsd:string","gas_staion"=>"xsd:string","other"=>"xsd:string"),         array("return" => "xsd:string"),         "urn:soap",        "urn:soap#addrecord",        "rpc",        "encoded",       "add user information database");  $server->register("checklogin",         array("email"=>"xsd:string","password"=>"xsd:string"),         array("return" => "xsd:string"),         "urn:soap",        "urn:soapn#checklogin",        "rpc",        "encoded",       "verify userlogin");  $http_raw_post_data=isset($http_raw_post_data) ? $http_raw_post_data : ''; $server->service($http_raw_post_data); 

the xml in screenshot example soap request , soap response.

to generate need create such example request , obtain raw xml of it. both xml of request response.

you should able automate creating request local server.

obtaining raw xml explained in following related q&a:


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -