php - Soap API XML issue using nusoap? -
i have created soap api using nusoap in php.everything working fine. have 1 file service.php when hit file documentation this.
if hit url:
i diffrent type of xml document.
why different?
code service.php
<?php require_once "lib/nusoap.php"; require_once "functions.php"; $server=new nusoap_server(); $server->configurewsdl("soap", "urn:soap"); $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:soapn#addrecord", "rpc", "encoded", "add user information database"); $server->register("checklogin", array("email"=>"xsd:string","password"=>"xsd:string"), array("return" => "xsd:string"), "urn:soap", "urn:soap#checklogin", "rpc", "encoded", "verify userlogin"); $http_raw_post_data=isset($http_raw_post_data) ? $http_raw_post_data : ''; $server->service($http_raw_post_data); ?>
whenever send soap request client.then print request & response.then desired result.
Comments
Post a Comment