Hi Jorge,

How about something like the following. I have bolded the changes I added
to the first expression you provided. In xml namespaces, the prefix name
doesn't really matter.

 <property xmlns:ns="http://org.apache.synapse/xsd";
xmlns:ns3="http://org.apache.synapse/xsd";  name="notafinals"
*xmlns:p="http://eventos.uci.cu"*
expression="//*p:*datosCollection/*p:*datos/*p:*notafinal" scope="default"
type="STRING"
/>

On Mon, Jun 11, 2012 at 12:50 PM, Jorge Infante Osorio <[email protected]>
wrote:
>
> Hi all.
>
> I have a little problem and it´s this:
>
> I have this response message from a  data service:
>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
>   <soapenv:Header />
>   <soapenv:Body>
>      <datosCollection xmlns="http://eventos.uci.cu";>
>         <datos>
>            <ci>12345678912</ci>
>            <nombre>pepe</nombre>
>            <notafinal>4</notafinal>
>         </datos>
>      </datosCollection>
>   </soapenv:Body>
> </soapenv:Envelope>
>
> And I need to extract the value of “notafinal” and I use a property in a
> sequence, in this way:
>
>  <property xmlns:ns="http://org.apache.synapse/xsd";
> xmlns:ns3="http://org.apache.synapse/xsd";  name="notafinals"
> expression="//datosCollection/datos/notafinal" scope="default"
type="STRING"
> />
>
> But it don´t work, I assume it´s a problem with namespaces.
>
>
>
> I do it the same with another soap message, with prefix like in this case:
>
>   <p:obtenerDatosUsuario xmlns:p="http://cdae.uci.cu/servicios";>
>      <CI>?/CI>
>   </p:obtenerDatosUsuario>
>
>  <property xmlns:p="http://cdae.uci.cu/servicios"; name="CIUsuario"
> expression="//p:obtenerDatosUsuario/CI" scope="default" type="STRING" />
> Saludos,
> Ing. Jorge Infante Osorio.
> J´Dpto Soluciones SOA.
> CDAE.
> Fac. 5.
> UCI.
>
>
>
> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS
INFORMATICAS...
> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION
>
> http://www.uci.cu
> http://www.facebook.com/universidad.uci
> http://www.flickr.com/photos/universidad_uci
> _______________________________________________
> User mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/user




--
~~~*******'''''''''''''*******~~~
Kasun Gajasinghe
Software Engineer; WSO2 Inc.; http://wso2.com,
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://blog.kasunbg.org


twitter: http://twitter.com/kasunbg
_______________________________________________
User mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/user

Reply via email to