Jump to content


Photo

Soap Com Php


  • Faça o login para participar
Nenhuma resposta neste tópico

#1 wawasurf

wawasurf

    Wawasurf

  • Usuários
  • 257 posts
  • Sexo:Masculino
  • Localidade:Criciuma

Posted 13/03/2013, 10:27

Eu estou tentando integrar em um web service.

Ele precisa de algumas solicitações SOAP.

O código seguinte é uma amostra SOAP 1.1 solicitação e resposta, mas eu não sei como implementar isso em php?

Por favor, poderiam me ajudar com um exemplo ou referencias?

POST /hotelservices.asmx HTTP/1.1
Host: xml.trendoperadora.com.br
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://TrendOperadora.SIG.XML.ServiceContracts/2007/09/GetDestinationList"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
    <LoginHeader Domain="string" Language="string" Currency="string" RequestorID="string" xmlns="http://TrendOperadora.SIG.XML.DataTypes/2007/09">
      <AccessCode>int</AccessCode>
      <UserName>string</UserName>
      <Password>string</Password>
    </LoginHeader>
  </soap:Header>
  <soap:Body />
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetDestinationListResult xmlns="http://TrendOperadora.SIG.XML.ServiceContracts/2007/09">
      <DestinationList>dataset</DestinationList>
    </GetDestinationListResult>
  </soap:Body>
</soap:Envelope>

Edição feita por: wawasurf, 13/03/2013, 10:29.

Wagner Machado Martins
Webmaster
Agência Gigante
Criciúma - SC




0 user(s) are reading this topic

0 membro(s), 0 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq