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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:16:18+00:00 2026-05-27T23:16:18+00:00

I want to call a webservice using Zend_Soap_Client. This is the relevant code: $params

  • 0

I want to call a webservice using Zend_Soap_Client. This is the relevant code:

    $params = new stdClass();
    $params->transactionId = $transactionId;
    $params->transactionState = $transactionState;
    $params->details = $transactionDetails;
    var_dump($params->details);
    try {
        $this->_soapClient->updateTransaction($params);
    }

The problem is with the details parameter, which is a complex type in the WSDL. $transactionDetails contains an array with the (non-empty) elements of the complex type, and this is visible in the var_dump(). Previously, I tried using a PHP class with the elements as properties. In both cases, what the SOAP client actually sends is this:

<SOAP-ENV:Body>
    <ns1:UpdateTransactionRequest>
        <transactionId>45</transactionId>
        <transactionState>SUCCESS</transactionState>
        <details/>
    </ns1:UpdateTransactionRequest>
</SOAP-ENV:Body>

What am I doing wrong?

UPDATE: I think the cause of the problem is that the complexType declared for the parmeter is a base type, of which several extension types exist in the WSDL, and I want to use one of those extension types. I guess Zend_Soap_Client does not recognize any elements that are not present in the base type, which is all of them. Is there a way around this?

  • 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-27T23:16:18+00:00Added an answer on May 27, 2026 at 11:16 pm

    The solution lies in the standard PHP SOAP client, which Zend_Soap_Client extends. The SoapVar class allows you to wrap a parameter and specify the actual type to use. What I had to do is go back to using a PHP class for $transactionDetails and this code:

    $params->details = new SoapVar($transactionDetails, 
        SOAP_ENC_OBJECT, get_class($transactionDetails), $namespace);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My use case is this, I want to call out to a webservice and
I want to call a webservice using jQuery.ajax() but the webervice doesn't get called.
Using Fiddler I want to trace a call to an external webservice made in
I want to call a secure webservice, using a cert that I have... the
I want to call a webservice from jQuery. How can I do that?
I want to call this WS http://www.webservicex.net/country.asmx?op=GetCountries What is the best possible way to
I am working on a project to call a webservice from different domain using
I am using a Zend_Soap_Client to call a web service. I am getting an
I am using a RESTfull webservice with this methode: @POST @Consumes({application/json}) @Path(create/) public void
I am trying to call a webservice using ssl. How do i get 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.