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 8037367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:54:35+00:00 2026-06-05T02:54:35+00:00

I am developing a web application in which I need to consume external web

  • 0

I am developing a web application in which I need to consume external web service. I looked WSClient module but some how I am not been able to use it. Is there any other way to consume external web service in Drupal 7?

Thanks,
Vishal

  • 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-05T02:54:36+00:00Added an answer on June 5, 2026 at 2:54 am

    Resolved this using “SoapClient” in Drupal module.
    Here are the steps that I followed:
    1. Download WSDL file and save this in your module folder.
    2. Using any WSDL to PHP converter, create a PHP file for the downloaded WSDL file
    3. Copy the generated PHP file in your Drupal module
    4. Include that generated PHP file in your function (within Drupal module) using following code:

    $WSDLPHPPath = drupal_get_path('module', <Module Name>) .'/< generated PHP file>.php';
    require_once($WSDLPHPPath);
    

    5.Include WSDL file using following code:

        $WSDLPath = "http://localhost/drupal/" . drupal_get_path('module', <Module Name>) .'/<Name of WSDL file>.wsdl';
        $client = new SoapClient($WSDLPath, array('location'=><Location of the WSDL file>));
    

    Here Location of the WSDL file is the server IP / name where you want to connect (e.g. http://<server name or IP>/abc?wsdl)

    6.Call your web method: (e.g. $client-><Web method name>)

    7.Refer SoapClient documentation if you want to add parameters to the web method

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

Sidebar

Related Questions

I'm developing a web application which processes invoices(the functionality is not limited to invoices,
I'm developing a web application similar to Digg and I need an algorithm which
I have been developing a web application for almost a year which I had
I am developing a web application in which I need to transfer url parameter
I'm currently developing a web application using MYSQL database InnoDB format and need some
I am developing a web application in grails which uses lot of ajax.I need
I'm developing a web application which has the need of a powerful .doc editor.
I am developing a web application which revolves around dates. I need to calculate
I am developing a web application in which I plan to store some values
I am developing a web based application in which i need to update the

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.