Hi guys,

I'm new to SOAP and I need (quickly) to access a SOAP server. I need to use the axis classes to create a SOAP post just like this one bellow and I dont know how to do it:

POST /pfappspabxutils HTTP/1.1
TE: deflate,gzip;q=0.3
Connection: TE, close
Accept: text/xml
Accept: multipart/*
Accept: application/soap
Host: pfdesenv.planetarium.com.br:8080
User-Agent: SOAP::Lite/Perl/0.67
Content-Length: 1116
Content-Type: text/xml; charset=utf-8
SOAPAction: " http://172.16.10.103:8080/AgendaPesquisa#AgendaPesquisa"

<?xml version="1.0" encoding="UTF-8"?>
   <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" soap:encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Body>
         <AgendaPesquisa xmlns=" http://172.16.10.103:8080/AgendaPesquisa">
            <tipo>C</tipo>
            <dono xsi:nil="true" />
            <posicao xsi:nil="true" />
            <nome xsi:nil="true" />
            <ramal xsi:nil="true" />
            <tel_comercial_ddi xsi:nil="true" />
            <tel_comercial_ddd xsi:nil="true" />
            <tel_comercial xsi:nil="true" />
            <tel_residencial_ddi xsi:nil="true" />
            <tel_residencial_ddd xsi:nil="true" />
            <tel_residencial xsi:nil="true" />
            <tel_celular_ddi xsi:nil="true" />
            <tel_celular_ddd xsi:nil="true" />
            <tel_celular xsi:nil="true" />
            <empresa xsi:nil="true" />
            <cargo xsi:nil="true" />
            <setor xsi:nil="true" />
            <endereco xsi:nil="true" />
            <bairro xsi:nil="true" />
            <cidade xsi:nil="true" />
            <estado xsi:nil="true" />
            <pais xsi:nil="true" />
            <cep xsi:nil="true" />
            <email xsi:nil="true" />
         </AgendaPesquisa>
      </soap:Body>
   </soap:Envelope>

Can someone just write a sample code of how to do this and send to me?

Thank you very much,
bruno

Reply via email to