rimuvoere il tag SOAP-ENV dalla risposta di un service nusoap

salve a tutti....

č possibile, e se si come, rimuovere dalla risposta di un service nusoap il tag <SOAP-ENV...>

cioč da qui:

 <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://127.0.0.1/p4p" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

- <SOAP-ENV:Body>

- <ns1:GetSiglaP4pResponse xmlns:ns1="http://127.0.0.1/p4p">

- <return xsi:type="tns:GetSiglaP4pReturnType">

  <commissionCode xsi:type="xsd:string">AA0000AAA00</commissionCode>

  <acronym xsi:type="xsd:string">acronimo prova</acronym>

- <areaCode xsi:type="tns:TypeAreaCode">

  <province xsi:type="xsd:string">Frosinone</province>

  </areaCode>

  <category xsi:type="xsd:string">categoria prova</category>

  <taxonomy xsi:type="xsd:TypeTaxonomy">01</taxonomy>

  <contractDate xsi:type="xsd:date">1987-08-12</contractDate>

- <saleChannelCode xsi:type="tns:TypeSaleChannelCode">

  <codiBased xsi:type="xsd:TypeCodiBasedSaleChannelCode">A</codiBased>

  <to xsi:type="xsd:TypeToSaleChannelCode">A</to>

  </saleChannelCode>

- <mediaCode xsi:type="tns:TypeMediaCode">

  <codiBased xsi:type="xsd:TypeCodiBased">A</codiBased>

  <to xsi:type="xsd:TypeTo">A</to>

  </mediaCode>

  <siglaType xsi:type="xsd:TypeSiglaType">S</siglaType>

  <markupLevel xsi:type="xsd:TypeMarkupLevel">2</markupLevel>

  </return>

  </ns1:GetSiglaP4pResponse>

  </SOAP-ENV:Body>

  </SOAP-ENV:Envelope>

ottenere:

- <ns1:GetSiglaP4pResponse xmlns:ns1="http://127.0.0.1/p4p">

- <return xsi:type="tns:GetSiglaP4pReturnType">

  <commissionCode xsi:type="xsd:string">AA0000AAA00</commissionCode>

  <acronym xsi:type="xsd:string">acronimo prova</acronym>

- <areaCode xsi:type="tns:TypeAreaCode">

  <province xsi:type="xsd:string">Frosinone</province>

  </areaCode>

  <category xsi:type="xsd:string">categoria prova</category>

  <taxonomy xsi:type="xsd:TypeTaxonomy">01</taxonomy>

  <contractDate xsi:type="xsd:date">1987-08-12</contractDate>

- <saleChannelCode xsi:type="tns:TypeSaleChannelCode">

  <codiBased xsi:type="xsd:TypeCodiBasedSaleChannelCode">A</codiBased>

  <to xsi:type="xsd:TypeToSaleChannelCode">A</to>

  </saleChannelCode>

- <mediaCode xsi:type="tns:TypeMediaCode">

  <codiBased xsi:type="xsd:TypeCodiBased">A</codiBased>

  <to xsi:type="xsd:TypeTo">A</to>

  </mediaCode>

  <siglaType xsi:type="xsd:TypeSiglaType">S</siglaType>

  <markupLevel xsi:type="xsd:TypeMarkupLevel">2</markupLevel>

  </return>

  </ns1:GetSiglaP4pResponse>

grazie_________________________

inviato 7 anni fa
sandrocianfarani
X 0 X

Io credo che tu possa lavorare con le stringe o meglio utilizzare una delle seguenti funzioni del php:

con preg_replace dovresti riuscire a creare il tuo pattern con le espressioni regolari.

Ciao

risposto 7 anni fa
Mario Santagiuliana
X 0 X
Effettua l'accesso o registrati per rispondere a questa domanda