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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:06:13+00:00 2026-06-14T18:06:13+00:00

I need to test some XML requests manually, i.e. I want to call a

  • 0

I need to test some XML requests manually, i.e. I want to call a webservice method with an XML request previously created.
I’m trying to use the SoapClient __doRequest, and all I get back is a blank, empty response.

I already read the documentation, and several other posts here and seems no one has tried this before and the few who asked similar question, got really no response.

Again, the reason of doing it this way it’s just a way to test an XMLRequest generated by other tool that is causing problems at certain webservice.
So, I can’t call the soapclient generated methods, nor I can’t call “_call”.
I need to send my own previously created XML request using SOAPClient.
Is this possible? If so how….

$result = $soapClient->__doRequest($docRequest, "http://someservice.asmx", "http://someservice/Login",  soap_1_2, 0);

When I call this I get null at $result without any error.

  • 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-14T18:06:14+00:00Added an answer on June 14, 2026 at 6:06 pm

    from http://php.net/manual/soapclient.dorequest.php

    Maybe your call throws an exception you need to catch:

    $exception = null; 
    $result = parent::__doRequest($request, $location, $action, $version, $one_way); 
    if((isset($this->__soap_fault)) && ($this->__soap_fault != null)) { 
            //this is where the exception from __doRequest is stored 
            $exception = $this->__soap_fault; 
    } 
    
    if($exception != null) { 
            throw $exception; 
    } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to unit test some code, and I need to to replace
I am trying to test passwords. I need to do some testing on the
Trying to load some data off my server (xml data). I normally just use
I need to test some api. For example I have multiple @Test methods in
I have some code in my error handler I need to test against a
I need some like this: module One def test; puts 'Test One'; end end
I need some help posting some XML to a WCF service. In essence, the
I am using PHP to generate some XML. I need to put quotes in
I'm currently trying to consume a list of strings from some XML using Apache
I am trying to send an XML file that I created in my memorystream.

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.