D
D
Dmitry Vasilyuk2014-10-17 19:15:25
PHP
Dmitry Vasilyuk, 2014-10-17 19:15:25

How to generate NetBeans SOAP classes in php?

There is a code:

<?php
$string = 'Content-Type: text/html;charset=utf-8';
header($string);
  try {
    // Создание SOAP-клиента
    $client = new SoapClient("http://213.33.168.45:8082/txlife.wsdl");
    
    // Посылка SOAP-запроса c получением результат
               print_r($client->__getFunctions());
               
    $result1 = $client->Ping("CL_FAMILY");
                $result2 = $client->TXLife("Request1");
                $result3 = $client->TXLifeTransmittal("CL_FAMILY");

                echo  $result3;
  } catch (SoapFault $exception) {
    echo $exception->getMessage();	
  }

In Visual Studio for C#, this generation is inline.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
red_led, 2014-10-30
@red_led

There is such a library on php itself: https://github.com/wsdl2phpgenerator/wsdl2phpgenerator
It has some disadvantages, for example, I had to add part of the code myself, but it saves me from most of the manual work

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question