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

  • Home
  • SEARCH
  • 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 9148025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:09:36+00:00 2026-06-17T11:09:36+00:00

I have to make a SoapClient in PHP for a webservice that is hosted

  • 0

I have to make a SoapClient in PHP for a webservice that is hosted on a Windows / IIS.
When I run the script from a local IIS + PHP, it works.
When I run the same script from a local XAMP of from an Apache webserver, I always get the same error:

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing
WSDL: Couldn’t load from ‘https://online.wings.eu:8080/wsdl/IWingsWeb’

<?php
$url = 'https://online.wings.eu:8080/wsdl/IWingsWeb';

$options["connection_timeout"] = 25;
$options["location"] = $url;
$options['trace'] = 1;

$client = new SoapClient($url,$options);
print_r($client->__getFunctions());
?>

SOAP and openssl is enable on the Apache.
I can also access other services that are hosted on a non-Windows server.

Is this a problem of my Apache or is this a problem of the Windows server that hosts the SOAP server?

  • 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-17T11:09:36+00:00Added an answer on June 17, 2026 at 11:09 am

    Probably the connection between Apache and the IIS server can not be established. You should check the following:

    • Are there any firewalls, anti-malware programs, etc. that might block the 8080 (outgoing, not incoming) port from your Apache server?
    • Are there any SSL certificates or passwords (or both), that are needed to connect to the server. If yes, you should tell PHP to set the appropriate headers.
    • You might want to replace the default SoapClient to something that uses curl directly. There you can set a few curl parameters, and check whether about the actual error.

    Like this:

    class SoapCurlWrapper extends SoapClient {
      protected function callCurl($url, $data, $action) {
         $handle   = curl_init();
         curl_setopt($handle, CURLOPT_URL, $url);
         curl_setopt($handle, CURLOPT_HTTPHEADER, Array("Content-Type: text/xml", 'SOAPAction: "' . $action . '"'));
         curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
         curl_setopt($handle, CURLOPT_POSTFIELDS, $data);
         curl_setopt($handle, CURLOPT_SSLVERSION, 3);
         $response = curl_exec($handle);
         if (empty($response)) {
           throw new SoapFault('CURL error: '.curl_error($handle),curl_errno($handle));
         }
         curl_close($handle);
         return $response;
       }
    
       public function __doRequest($request,$location,$action,$version,$one_way = 0) {
           return $this->callCurl($location, $request, $action);
       }
     }
    

    Note that PHP’s SOAP implementation won’t use the above wrapper to download the WSDL files (you have to do it manually), but you can use it to the actual WS calls, and might actually find out why it fails.

    And you can use the above mentioned class like any SoapClient, eg:

    $oWS = new SoapCurlWrapper($location_of_wsdl_file,$parameters);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have make on demo that list all contact from contact Uri in that
I have make a script. That set li items on different positions on the
I have an asp.net mvc app running on a local iis website that is
Using this sample : I have make my own Fragment that holds tabhost and
I have to make a page that look like painting below, but: field 1
I have to make a conditional in ash, that depends on result of two
I have make (Windows SDK), nmake (Visual Studio) and make (CodeGear) Which version of
Following is the code snippet that I have: // Make Auto release pool NSAutoreleasePool
I want to ask a question. I have make a button that starts and
I have an application that needs to make a SOAP client request to a

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.