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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:45:52+00:00 2026-05-23T09:45:52+00:00

I am trying to login to my magento’s web services from a server that

  • 0

I am trying to login to my magento’s web services from a server that does not have SoapClient enabled. So I figured I would install and use Pear’s SOAP_Client but I can’t figure out how to login.

With SoapClient I use:

$client = new SoapClient($WSDL);
$session = $client->login($user, $api_key);
$response = $client->call($session, $method, $arguments);

But I can’t find an analog to the login method for SOAP_Client

I gather that I should be setting something in the $proxy_params of the constructor, but I can’t find what the indexes should be.

$proxy_params = array();
$client = new SOAP_Client($wsdl, true, false, $proxy_params);
$client->call($method, $arguments)
  • 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-05-23T09:45:52+00:00Added an answer on May 23, 2026 at 9:45 am

    So I figured this out, and there are a couple of factors here.

    1. There isn’t a login function for SoapClient, the login I was calling is a call as defined in the WSDL

    2. The various magento API methods are not defined in the WSDL, you provide an argument resource method to method defined as call by the WSDL. This created a bit of confusion because using $client->call() seems to invoke call as defined by the SOAP_Client class, so I need to use $client->call('call') to invoke the SOAP method call

    The final code ended up being:

    $method = 'catalog_product.info';
    $args = array($product_id);
    
    $client = new SOAP_Client($wsdl, true);
    $session_id = $client->call(
        'login',
        array(
            'username'=>$username,
            'apiKey'=> $pasword
        )
    );
    $ret = $client->call(
        'call',
        array(
            'sessionId'=>$session_id,
            'resourcePath'=>$method,
            'args'=>$args
        )
    );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to login to an FTP server from VB script and execute
I am trying to replace a rather clumpsy ajax-login of Magento from an external
I'm trying to login to a login.live.com, but Mechanize will not recognize that there
I am trying to Login or SugarCrm using REST. I have this code,, //Login
I'm trying to login to my local SQL Server 2005 installed on Windows7 using
I am trying to login on my website using MyspaceId running on Android web
I'm trying to login into the sftp server but its giving me this Connecting
I'm getting this error upon trying to login/register on my gitorious server: The site
I have installation of magento 1.6.1 on local machine i\’m trying to connect magetno\’s
I'm trying to login to a remote web site using CURL, but can't seem

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.