Quantcast
Channel: SCN : Unanswered Discussions - SAP Business One Integration Technology
Viewing all articles
Browse latest Browse all 373

B1i extract XML from SOAP request

$
0
0

Hi experts , I have to extract the data encapsulated in XML, passing me a Web Services with SOAP.

As I can extract the contents of XML encapsulated in a new XML. I read that a new XSLT can be used , but I am not getting any results .


This is my Integration:


<Body>

      <Payload Role="T" Type="Call" />

       <Payload Role="S">*** no test message specified ***</Payload>

      <Payload Role="X" id="atom2">

           <call xmlns="">

                 <SOAPAction>http://www.add.com.br/ExportarDados</SOAPAction>

                 <connect serviceport="Soap1">

  <destProtocol>http</destProtocol>

  <destHost>hmlsginaturabo.add.com.br</destHost>

  <destPort>80</destPort>

  <destPath>Servicos/Integracao/Padrao/IntegracaoPadraoWS.asmx</destPath>

  <query />

                 <proxyHost />

  <proxyPort />

  <authentification />

  <user />

  <password />

  <sslTruststorePath />

  <sslTruststorePassword />

</connect>

<payload operation="">

      <ParametrosExportacao xmlns="http://www.add.com.br/">

            <tokenAutenticacao>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</tokenAutenticacao>

            <interfaceIntegracao>PessoaPadraoERP</interfaceIntegracao>

            <versao>1.0</versao>

  </ParametrosExportacao>

  </payload>

  <query id="httpheader.???" value="" />

  </call>

  </Payload>

<Payload Role="C" id="atom1" statusNo="0" statusMsg="success" reference="atom2" payload="atom2" calltype="solicit response (call/reply)"      adapter="WSAS">

<http.header>

  <http.header.info id="X-AspNet-Version" value="2.0.50727" />

  <http.header.info id="Date" value="Tue, 20 Oct 2015 15:02:04 GMT" />

  <http.header.info id="Content-Length" value="3012946" />

  <http.header.info id="X-UA-Compatible" value="IE=edge,chrome=1" />

  <http.header.info id="Content-Type" value="text/xml; charset=utf-8" />

  <http.header.info id="Server" value="Microsoft-IIS/7.5" />

  <http.header.info id="Cache-Control" value="private, max-age=0" />

  </http.header>

<ExportacaoResponse xmlns="http://www.add.com.br/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<IntegracaoResult>

  <DataHora>2015-10-20T11:02:04.2051563Z</DataHora>

  <CodigoTicket>1111</CodigoTicket>

  <Ticket xsi:type="xsd:string">

  <?xml version="1.0" encoding="utf-8"?> <ArrayOfPessoaPadraoERPOut_v1 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <PessoaPadraoERPOut_v1> <CodigoDocumento xmlns="http://www.add.com.br/">8344</CodigoDocumento> <Codigo xmlns="http://www.add.com.br/">-5</Codigo> <Nome xmlns="http://www.add.com.br/">Equipe Comercial</Nome> <Apelido xmlns="http://www.add.com.br/">Equipe Comercial</Apelido> <Tipo xmlns="http://www.add.com.br/">1</Tipo> <PessoaFisica xmlns="http://www.gera.com.br/"> <DataNascimento>1980-01-01T00:00:00</DataNascimento> <Sexo>2</Sexo> <Filhos>0</Filhos> </PessoaFisica> <Funcao xmlns="http://www.add.com.br/">

  <Tipo>1</Tipo> <Telefone>2815334</Telefone> </Telefone> <PessoaFisica xmlns="http://www.add.com.br/"> <DataNascimento>1997-01-19T00:00:00</DataNascimento> <Sexo>1</Sexo> <EstadoCivil>1</EstadoCivil> <Filhos>0</Filhos> </PessoaFisica> <Funcao xmlns="http://www.add.com.br/"> <CodigoFuncao>1</CodigoFuncao> <NomeFuncao>Revendedora</NomeFuncao> <SituacaoComercial>4</SituacaoComercial> <Campanha>201509</Campanha> <SaldoCredito>576000</SaldoCredito> <LimiteCredito>576000</LimiteCredito> <EstruturaComercial0>BRASIL</EstruturaComercial0> <EstruturaComercial1>OF. LA PAZ</EstruturaComercial1> <EstruturaComercial2>CHACALTAYA</EstruturaComercial2> <EstruturaComercial3>Lessly Liszet Conde Mendoza </EstruturaComercial3> </Funcao> <Funcao xmlns="http://www.add.com.br/"> <CodigoFuncao>9</CodigoFuncao> <NomeFuncao>Consumidor Final</NomeFuncao> <SituacaoComercial>1</SituacaoComercial> <SaldoCredito>0</SaldoCredito> <LimiteCredito>0</LimiteCredito> </Funcao> </PessoaPadraoERPOut_v1> </ArrayOfPessoaPadraoERPOut_v1>

</Ticket>

  <CheckSum>aea002a83b604096db98b5927149ef8f74a06025</CheckSum>

  </IntegracaoResult>

  </ExportacaoResponse>

  </Payload>


As I can extract the contents of shipping < Ticket > with the structure of XML ??. Experts please help.


Viewing all articles
Browse latest Browse all 373

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>