Jump to content

Search the Community

Showing results for tags 'webservices nusoap'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 1 result

  1. Hi , Could some one help me . I am new to webservices . I have client request like <v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:c="http://schemas.xmlsoap.org/soap/encoding/" xmlns:v="http://schemas.xmlsoap.org/soap/envelope/"><v:Header /><v:Body><n0:Mghonttrd id="o0" c:root="1" xmlns:n0="http://mytestwebsite4soap.com"><Mghonttrd i:type="n0:Mghonttrd"><ngtrgs i:type="d:string">444</ngtrgs></Mghonttrd></n0:Mghonttrd></v:Body></v:Envelope> I want server to check the dynamic value of string " ngtrgs" and send the result according to the value by using if condition. suppose if ngtrgs=444 then it should return array('status'=>"active", 'Name'=>"abhi", 'age=>"20", 'class'=>"12"); if ngtrgs= 555 then return array('status'=>"active", 'Name'=>"vinay", 'age=>"19", 'class'=>"12"); server side i have code .... etc., server side code is below <?php require_once './nusoap/lib/nusoap.php'; //Retrieve zip code for textual area //Logic of the web service function Mghonttrd($ngtrgs) { //if ($ngtrgs == "444") { return array('status'=>"active", 'Name'=>"abhi", 'age=>"20", 'class'=>"12"); } } //Register web service function so that clients can access $server = new soap_server(); $server->register('Mghonttrd'); $POST_DATA = isset($GLOBALS['HTTP_RAW_POST_DATA'])? $GLOBALS['HTTP_RAW_POST_DATA'] : ''; $server->service($POST_DATA); ?> Thankyou
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.