Access type webservice methods with php

0

I have a wsdl that returns me all the information I need for consumption. It is a corporate system and I need to access the related part of the search for a flight itinerary, to fill out an airline search engine.

The functions I can access normally, including I already got feedback. However, when trying to access a method (searched with __getTypes) it always returns me the error " Function x is not a valid method for this service ".

Part of the code I need to access:

<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:br.tur.advance.etkt.ws.bean">
  <import namespace="urn:br.tur.advance.etkt.ws.service"/>
  <import namespace="http://xml.apache.org/xml-soap"/>
  <import namespace="http://bean.ws.etkt.advance.tur.br"/>
  <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
  <complexType name="ItineraryBean">
    <sequence>
      <element name="airlineCode" nillable="true" type="xsd:string"/>
      <element name="arrTime" nillable="true" type="xsd:string"/>
      <element name="date" nillable="true" type="xsd:string"/>
      <element name="depTime" nillable="true" type="xsd:string"/>
      <element name="destination" nillable="true" type="xsd:string"/>
      <element name="flightNumber" nillable="true" type="xsd:string"/>
      <element name="origin" nillable="true" type="xsd:string"/>
      <element name="seatClass" nillable="true" type="xsd:string"/>
      <element name="tarifBase" nillable="true" type="xsd:string"/>
    </sequence>
  </complexType> ...

I've tried with curl (which seems unlikely) and with the Soap Client class of PHP and it always returns the same error. I have seen in some forums that it would be necessary to use StdClass but I have no idea how to put it into practice.

I've also tried to access this way, where ItineraryBean is the method that I need to fill out to return airfare offers.

$tickets = $client -> ItineraryBean(array('arrTime'=>'25/06/2018', 'date'=>'', 'depTime'=>'30/06/2018', 'destination'=>'POA', 'origin'=>'GRU'));

Any suggestions?

    
asked by anonymous 16.05.2018 / 19:14

0 answers