jajja , a mi me pas贸 igual, ME COST脫 UN HUEVO encontrarlo, pensaba que lo hab铆an quitado, que mal pensao que soy...
Lo que pasa, es que yo soy m谩s insistente que t煤 ![]()
Rafa Carmona ( rafa.thefullARROBAgmail.com___quitalineas__)
jajja , a mi me pas贸 igual, ME COST脫 UN HUEVO encontrarlo, pensaba que lo hab铆an quitado, que mal pensao que soy...
Lo que pasa, es que yo soy m谩s insistente que t煤 ![]()
alguien sabe como usar el <![CDATA[]] para crear archivos xml
TheFull
creo que tu entiendes mucho mas que yo esto de los webservicey xml, tengo un problemon que no he podido solucionar, a ver si me puedes ayudar,
Mi consulta es la siguiente esto haciendo una consulta de un docuemento por su numero a un webservice, este me contesta de buena forma con un xml, diciendo que el el proceso fue satisfactorio y ademas trae dentro de un tag una cadena que al parecer es la que contiene el archivo adjunto, que en realidad es la factura que necesito ver, pero no he logrado consumir esa factura,, te adujnto el xml a ver si me puedes ayudar u orientar...
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header xmlns:work="http://bea.com/2004/06/soap/workarea/">
<cl:token xmlns:cl="cl.zofri.sve">0e2099080517762c4--3bc04e97-f4-c-1303-0a88 a2d1-7f43-7:6434ab958b9:a6545-e40b9280507561c6-23-c-4090-147cc1-04-3ab80acd -3f13274673:af948495a95:5</cl:token>
<cl:respuesta xmlns:cl="cl.zofri.sve">
<java:resCodigo xmlns:java="java:cl.zofri.sve.utl.bo">0</java:resCodigo>
<java:resMensaje xmlns:java="java:cl.zofri.sve.utl.bo">Se ejecut贸 correctamente el servicio.</java:resMensaje>
<java:resSeveridad xmlns:java="java:cl.zofri.sve.utl.bo">O</java:resSeveridad>
</cl:respuesta>
<work:WorkContext xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility">
<java class="java.beans.XMLDecoder">
<string>weblogic.app.sveProcDocEAR</string>
<int>214</int>
<string>weblogic.workarea.StringWorkContext</string>
<string>r43.3</string>
<string>weblogic.app.KNAEar</string>
<int>214</int>
<string>weblogic.workarea.StringWorkContext</string>
<string>r43.2</string>
<string/>
</java>
</work:WorkContext>
</env:Header>
<env:Body>
<m:exportarBorradoresResponse xmlns:m="http://cl/zofri/sve/prd/wsn">
<m:return>
<Include href="cid:return=216af389-dcc9-4770-80fb-610304b481e0@http://cl/zofri/sve/prd/wsn" xmlns="http://www.w3.org/2004/08/xop/include"/>
</m:return>
</m:exportarBorradoresResponse>
</env:Body>
</env:Envelope>
ermatica wrote:
Y esto es el .XML que genera (el principio):
<?xml version="1.0" encoding="ISO-8859-1"?> <FORMATO_GA FechaCreacion="16/12/2008"> 聽 聽<CABECERA> 聽 聽 聽 <DATOS_GESTORIA> 聽 聽 聽 聽 聽<NIF>43999999V</NIF> 聽 聽 聽 聽 聽<NOMBRE>NOMBRE COMPLETO DEL</NOMBRE> 聽 聽 聽 聽 聽<PROFESIONAL>00001</PROFESIONAL> 聽 聽 聽 聽 聽<PROVINCIA>M</PROVINCIA> 聽 聽 聽 </DATOS_GESTORIA> 聽 聽</CABECERA> 聽 聽<MATRICULACION Procesar05_06="0" Procesar576="0" ProcesarIMVTM="0" ProcesarMatriculacion="0"> 聽 聽 聽 <NUMERO_EXPEDIENTE></NUMERO_EXPEDIENTE> 聽 聽 聽 <NUMERO_DOCUMENTO>TF002750402008152712</NUMERO_DOCUMENTO> 聽 聽 聽 <NUMERO_PROFESIONAL>00001</NUMERO_PROFESIONAL>
Como puedes ver en el nodo MATRICULACION aparecen los atributos con un orden distinto al puesto en el c贸digo.
Has probado as铆 ?
oInstdAmt := TxmlNode():New( HBXML_TYPE_TAG, "InstdAmt Ccy='EUR'",, IMPORTE )
贸 asi:
oInstdAmt := TxmlNode():New( HBXML_TYPE_TAG, "InstdAmt",, IMPORTE )
oInstdAmt:SetAttribute( "Ccy", "EUR" )
Antonio Linares wrote:Has probado as铆 ?
oInstdAmt := TxmlNode():New( HBXML_TYPE_TAG, "InstdAmt Ccy='EUR'",, IMPORTE )
贸 asi:
oInstdAmt := TxmlNode():New( HBXML_TYPE_TAG, "InstdAmt",, IMPORTE )
oInstdAmt:SetAttribute( "Ccy", "EUR" )