Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8504509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:03:08+00:00 2026-06-11T02:03:08+00:00

I have the php webservice code below, what I am suppose to do, so

  • 0

I have the php webservice code below, what I am suppose to do, so that I can call this web service in java.
I need to generate the wsdl first? Then generate the java web service stubs with the wsdl? How can I call this in java. And what tool I need to use. Thank you.

<?php include_once("../../lib/config.php"); ?>
<?php
if(!extension_loaded("soap")){
  dl("php_soap.dll");
}

ini_set("soap.wsdl_cache_enabled","0");
$server = new SoapServer("membersearch.wsdl");

function doMyMemberSearch($membernumber){

    $sqlMemberInfo = mysql_query("SELECT * FROM Member_Info WHERE Member_Number = '".$membernumber."'");
    $rowMemberInfo = mysql_fetch_array($sqlMemberInfo);

  $arr[] = array(
           "anniversary" => $rowMemberInfo['Anniversary'],
           "club"  => $rowMemberInfo['Club'],
           "level"=> $rowMemberInfo['Level'],
           "delivery"=> $rowMemberInfo['Delivery'],
           "firstname"=> $rowMemberInfo['First_Name'],
           "lastname"=> $rowMemberInfo['Last_Name'],
           "birthday"=> $rowMemberInfo['Birthday'],
           "spousefirst"=> $rowMemberInfo['Spouse_First'],
           "spouselast"=> $rowMemberInfo['Spouse_Last'],
           "spousebirthday"=> $rowMemberInfo['Spouse_Birthday'],
           "signuploc"=> $rowMemberInfo['Signup_Loc'],
           "status"=> $rowMemberInfo['Status']

         );
             if (isset($rowMemberInfo['Anniversary'])) {
                 return $arr;
             }else {
                 throw new SoapFault("Server","Unknown Member Number '$membernumber'.");
         }
}




$server->AddFunction("doMyMemberSearch");
$server->handle();
?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T02:03:09+00:00Added an answer on June 11, 2026 at 2:03 am

    WSDL is implementation language agnostic. So it doesn’t matter if it was written in PHP, C#, Java or any other language.
    You need to get the .wsdl file for the service. Usually you can get that by pointing your browser at the service URL with the addition of a query string ‘?WSDL’.

    Example:

    http://www.example.com/theWebService?WSDL
    

    Once you have that you can use Apache CXF, Apache Axis2, Spring WS or any other web services framework to generate java client stub code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a php code running on my server that i call my web
I have a PHP Code, that uses a web service to query some data.
I have .Net client that sends files. How can i use PHP web service
I have a php web service that takes the request from android/iphone app and
I have a web service, defined(WSDL) and implemented in PHP. This one is relatively
We have a customer that is trying to call our web service written in
Currently I have this code: <?php echo '<meta name=robots content=noindex>'; $arr = json_decode(file_get_contents(http://media1.clubpenguin.com/play/en/web_service/game_configs/ paper_items.json),true);
I have a RPC encoded PHP webservice that returns a simple soap envelope with
I have created a function in PHP that calls a webservice and parses through
I have created a RESTful PHP web service using Lithium which contains comments, each

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.