Error 404 Web Service NuSoap PHP

3

I'm a bit new to Web Services; I am designing a client with NuSoap to consume a Web Service.

When I try to consult the path of the wsdl I get an error 404 Not Found , but when I use the SoapUI there is no error and shows me the functions to be able to consult. So far I have only made this small code fragment to consult:

<?php  
  include('lib/nusoap.php');
  $url = "http://sultanadv.wi-mobile.com/webservice/server/WSWmForms.wsdl​​";
  $client = new nusoap_client($url);
  print_r($client);
?>

I really do not know if I'm doing something wrong or I'm missing something.

UPDATE

I have made a change in the code and now a new error appears which is

  

wsdl error: Getting    link -   HTTP ERROR: Unsupported HTTP response status 404 Not Found   (soapclient-> response has contents of the response)

I still can not get at least one response back, it only returns errors.

    
asked by user74094 01.02.2018 в 15:44
source

1 answer

0

How weird, it worked for me this way: I installed NuSOAP using composer composer require econea/nusoap Then, in the same folder I have executed the following php code php index.php

<?php
  require __DIR__ . '/vendor/autoload.php';
  $url = "http://sultanadv.wi-mobile.com/webservice/server/WSWmForms.wsdl​​";
  $client = new nusoap_client($url);
  print_r($client);

And it worked for me.

    
answered by 27.02.2018 в 01:56