<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Problems in parsing results of web service invocation' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Problems in parsing results of web service invocation' posted on the 'WEB-Services / SOAP' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Wed, 19 Jun 2013 22:58:10 -0700</pubDate>
    <lastBuildDate>Wed, 19 Jun 2013 22:58:10 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Problems in parsing results of web service invocation</title>
      <link>http://www.programmersheaven.com/mb/web-services/424159/424159/problems-in-parsing-results-of-web-service-invocation/</link>
      <description>Hi everybody, I'm studying ws technology and have to write a service that parse an xml document and print its content (using Apache Tomcat and Axis2). The xml is like this:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;prodotti&amp;gt;
	&amp;lt;prodotto id="01"&amp;gt; 
		&amp;lt;nome&amp;gt;Navel&amp;lt;/nome&amp;gt; 
		&amp;lt;categoria&amp;gt;Arance&amp;lt;/categoria&amp;gt; 
		&amp;lt;pezzatura&amp;gt; 
			&amp;lt;confezione tipo = "cassa" peso = "15" prezzo= "15"/&amp;gt; 
			&amp;lt;confezione tipo = "sacchetto" peso = "3" prezzo="6"/&amp;gt; 
			&amp;lt;confezione tipo = "plateau" peso = "10" prezzo="12"/&amp;gt; 
		&amp;lt;/pezzatura&amp;gt; 
	&amp;lt;/prodotto&amp;gt; 
	&amp;lt;prodotto id="02"&amp;gt; 
		&amp;lt;nome&amp;gt;Tarocco&amp;lt;/nome&amp;gt; 
		&amp;lt;categoria&amp;gt;Arance&amp;lt;/categoria&amp;gt; 
		&amp;lt;pezzatura&amp;gt; 
			&amp;lt;confezione tipo = "cassa" peso = "15" prezzo= "17"/&amp;gt; 
			&amp;lt;confezione tipo = "sacchetto" peso = "3" prezzo="7"/&amp;gt; 
			&amp;lt;confezione tipo = "plateau" peso = "10" prezzo="14"/&amp;gt; 
		&amp;lt;/pezzatura&amp;gt; 
	&amp;lt;/prodotto&amp;gt; 
	&amp;lt;prodotto id="03"&amp;gt; 
		&amp;lt;nome&amp;gt;Limoni_di_Sorrento&amp;lt;/nome&amp;gt; 
		&amp;lt;categoria&amp;gt;Limoni&amp;lt;/categoria&amp;gt; 
		&amp;lt;pezzatura&amp;gt; 
			&amp;lt;confezione tipo = "sacchetto" peso = "3" prezzo="7.50"/&amp;gt; 
			&amp;lt;confezione tipo = "plateau" peso = "7" prezzo="14"/&amp;gt; 
		&amp;lt;/pezzatura&amp;gt; 
	&amp;lt;/prodotto&amp;gt; 	
	&amp;lt;prodotto id="04"&amp;gt; 
		&amp;lt;nome&amp;gt;Clementine&amp;lt;/nome&amp;gt; 
		&amp;lt;categoria&amp;gt;Mandarini&amp;lt;/categoria&amp;gt; 
		&amp;lt;pezzatura&amp;gt; 
			&amp;lt;confezione tipo = "cassa" peso = "10" prezzo= "13"/&amp;gt; 
			&amp;lt;confezione tipo = "plateau" peso = "5" prezzo="7.50"/&amp;gt; 
		&amp;lt;/pezzatura&amp;gt; 
	&amp;lt;/prodotto&amp;gt; 	
	&amp;lt;prodotto id="05"&amp;gt; 
		&amp;lt;nome&amp;gt;Limoni_sfusi&amp;lt;/nome&amp;gt; 
		&amp;lt;categoria&amp;gt;Limoni&amp;lt;/categoria&amp;gt; 
		&amp;lt;pezzatura&amp;gt; 
			&amp;lt;confezione tipo = "sacchetto" peso = "3" prezzo="5"/&amp;gt; 
			&amp;lt;confezione tipo = "plateau" peso = "7" prezzo="7.50"/&amp;gt; 
		&amp;lt;/pezzatura&amp;gt; 
	&amp;lt;/prodotto&amp;gt; 	
	&amp;lt;prodotto id="06"&amp;gt; 
		&amp;lt;nome&amp;gt;Mandarini&amp;lt;/nome&amp;gt; 
		&amp;lt;categoria&amp;gt;Mandarini&amp;lt;/categoria&amp;gt; 
		&amp;lt;pezzatura&amp;gt; 
			&amp;lt;confezione tipo = "cassa" peso = "10" prezzo= "13"/&amp;gt; 
			&amp;lt;confezione tipo = "plateau" peso = "5" prezzo="7.50"/&amp;gt; 
		&amp;lt;/pezzatura&amp;gt; 
	&amp;lt;/prodotto&amp;gt; 	
	&amp;lt;prodotto id="07"&amp;gt;
		&amp;lt;nome&amp;gt;Arance_da_giardino&amp;lt;/nome&amp;gt; 
		&amp;lt;categoria&amp;gt;Arance&amp;lt;/categoria&amp;gt; 
		&amp;lt;pezzatura&amp;gt; 
			&amp;lt;confezione tipo = "cassa" peso = "15" prezzo= "15"/&amp;gt; 
			&amp;lt;confezione tipo = "sacchetto" peso = "3" prezzo="5"/&amp;gt; 
		&amp;lt;/pezzatura&amp;gt; 
	&amp;lt;/prodotto&amp;gt; 	
&amp;lt;/prodotti&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
I've wrote two beans for the "prodotto" and "confezione" elements and a class named ProdottoDB to deal with those data server side (I can post them if it can help).&lt;br /&gt;
&lt;br /&gt;
After that I wrote a server class and a client class, and at that point the problem started to come out: when I launch the client this is the result:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
ID: 1
Categoria: Arance
Nome: Navel
Exception in thread "main" java.lang.NullPointerException
	at it.terramica.client.TerramicaClient.main(Terramica
Client.java:45)
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
The client class:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
public class TerramicaClient {

	public static void main(String[] args) throws Exception {

		BufferedReader console = new BufferedReader(new InputStreamReader(System.in));

		System.out.println("Scegliere l'operazione da eseguire: ");
		System.out.println("1 - Elenco prodotti: "); 
		System.out.println("2 - Ricerca prezzo: ");
		int sel = Integer.parseInt(console.readLine());
		//
		//System.out.println("I prodotti non sono disponibili");

		if (sel==1) {
			ArrayList&amp;lt;Prodotto&amp;gt; prods = elenca();
			for (Prodotto p : prods) {
				System.out.println("ID: " + p.getID());
				System.out.println("Categoria: " + p.getCategoria());
				System.out.println("Nome: " + p.getNome());

				Confezione[] confs = p.getConfezione();
				for (int i=0; i&amp;lt;confs.length; i++) {
					System.out.println("Tipo confezione: " + confs[i].getTipo());
					System.out.println("Peso confezione: " + confs[i].getPeso());
					System.out.println("Prezzo confezione: " + confs[i].getPrezzo());
				}
			}
		}

		if (sel==2) {
			System.out.println("ID?: ");
			int id = Integer.parseInt(console.readLine());
			System.out.println("Tipo?: ");
			String tipo = console.readLine();

			float res = prezzo(id, tipo);
			if (res == -1)
				System.out.print("ERRORE: l'articolo cercato non è presente nel database");
			else
				System.out.println("Prezzo: " + res);
		}
	}

	private static ArrayList&amp;lt;Prodotto&amp;gt; elenca() throws Exception {

		ArrayList&amp;lt;Prodotto&amp;gt; prs = new ArrayList&amp;lt;Prodotto&amp;gt;();

		ServiceClient serviceClient = new ServiceClient();

		OMFactory fac = OMAbstractFactory.getSOAP12Factory();
		OMNamespace omNs = fac.createOMNamespace("http://www.terramica.it", "tns");
		OMElement method = fac.createOMElement("elenco", omNs);

		Options options = serviceClient.getOptions();
		EndpointReference targetEPR = new EndpointReference("http://localhost:8081/axis2/services/Terram
icaService");
		options.setSoapVersionURI(Constants.URI_SOAP12_ENV
);
		options.setTo(targetEPR); 

		// invocazione del servizio utilizzando la MEP in-out
		OMElement result = serviceClient.sendReceive(method);

		// recupera il risultato
		Iterator values = result.getChildrenWithName(new QName("http://service.terramica.it", "return"));
		Iterator valuesC = result.getChildrenWithName(new QName("http://service.terramica.it", "confezione"));
		while (values.hasNext()) {
			OMElement omElement = (OMElement) values.next();
			Prodotto prod = (Prodotto) BeanUtil.deserialize(Prodotto.class, omElement, new DefaultObjectSupplier(), "Prodotto");
			prs.add(prod);
		}

		return prs;
	}

	private static float prezzo(int id, String categoria) throws Exception {

		ServiceClient serviceClient = new ServiceClient();

		OMFactory fac = OMAbstractFactory.getSOAP12Factory();
		OMNamespace omNs = fac.createOMNamespace("http://service.terramica.it", "tns");

		OMElement method = fac.createOMElement("prezzo", omNs);
		OMElement arg0 = fac.createOMElement("id", omNs);
		arg0.addChild(fac.createOMText(arg0, String.valueOf(id)));
		method.addChild(arg0);
		OMElement arg1 = fac.createOMElement("tipo", omNs);
		arg1.addChild(fac.createOMText(arg1, categoria));
		method.addChild(arg1);

		Options options = serviceClient.getOptions();
		EndpointReference targetEPR = new EndpointReference("http://localhost:8081/axis2/services/Terram
icaService");
		options.setSoapVersionURI(Constants.URI_SOAP12_ENV
);
		options.setTo(targetEPR); 

		// invocazione del servizio utilizzando la MEP in-out
		OMElement result = serviceClient.sendReceive(method);

		// recupera il risultato
		float response = Float.parseFloat(result.getFirstElement().getText(
));

		return response;
	}
}
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
I think that the problem is located in this string:&lt;br /&gt;
Prodotto prod = (Prodotto) BeanUtil.deserialize(Prodotto.class, omElement, new DefaultObjectSupplier(), "Prodotto");&lt;br /&gt;
Seems like it doesn't reach the tags of SOAP response containing the data related to "confezione" type objects.&lt;br /&gt;
&lt;br /&gt;
Using TCPMon, those are the request and response messages:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
POST /axis2/services/TerramicaService HTTP/1.1
Content-Type: application/soap+xml; charset=UTF-8; action="urn:anonOutInOp"
User-Agent: Axis2
Host: 127.0.0.1:8081
Transfer-Encoding: chunked

d2
&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;
   &amp;lt;soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"&amp;gt;
      &amp;lt;soapenv:Body&amp;gt;
         &amp;lt;tns:elenco xmlns:tns="http://www.terramica.it" /&amp;gt;
      &amp;lt;/soapenv:Body&amp;gt;
   &amp;lt;/soapenv:Envelope&amp;gt;0
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/soap+xml; action="urn:elencoResponse";charset=UTF-8
Transfer-Encoding: chunked
Date: Sat, 02 Jul 2011 11:18:22 GMT

1094
&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;
   &amp;lt;soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"&amp;gt;
      &amp;lt;soapenv:Body&amp;gt;
         &amp;lt;ns:elencoResponse xmlns:ns="http://service.terramica.it" xmlns:ax25="http://data.terramica.it/xsd"&amp;gt;
            &amp;lt;ns:return xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ax25:Prodotto"&amp;gt;
               &amp;lt;ax25:ID&amp;gt;1&amp;lt;/ax25:ID&amp;gt;
               &amp;lt;ax25:categoria&amp;gt;Arance&amp;lt;/ax25:categoria&amp;gt;
               &amp;lt;ax25:confezione xsi:type="ax25:Confezione"&amp;gt;
                  &amp;lt;ax25:peso&amp;gt;15&amp;lt;/ax25:peso&amp;gt;
                  &amp;lt;ax25:prezzo&amp;gt;15.0&amp;lt;/ax25:prezzo&amp;gt;
                  &amp;lt;ax25:tipo&amp;gt;cassa&amp;lt;/ax25:tipo&amp;gt;
               &amp;lt;/ax25:confezione&amp;gt;
               &amp;lt;ax25:confezione xsi:type="ax25:Confezione"&amp;gt;
                  &amp;lt;ax25:peso&amp;gt;3&amp;lt;/ax25:peso&amp;gt;
                  &amp;lt;ax25:prezzo&amp;gt;6.0&amp;lt;/ax25:prezzo&amp;gt;
                  &amp;lt;ax25:tipo&amp;gt;sacchetto&amp;lt;/ax25:tipo&amp;gt;
               &amp;lt;/ax25:confezione&amp;gt;
               &amp;lt;ax25:confezione xsi:type="ax25:Confezione"&amp;gt;
                  &amp;lt;ax25:peso&amp;gt;10&amp;lt;/ax25:peso&amp;gt;
                  &amp;lt;ax25:prezzo&amp;gt;12.0&amp;lt;/ax25:prezzo&amp;gt;
                  &amp;lt;ax25:tipo&amp;gt;plateau&amp;lt;/ax25:tipo&amp;gt;
               &amp;lt;/ax25:confezione&amp;gt;
               &amp;lt;ax25:confezioni xsi:nil="true" /&amp;gt;
               &amp;lt;ax25:nome&amp;gt;Navel&amp;lt;/ax25:nome&amp;gt;
            &amp;lt;/ns:return&amp;gt;
            &amp;lt;ns:return xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ax25:Prodotto"&amp;gt;
               &amp;lt;ax25:ID&amp;gt;2&amp;lt;/ax25:ID&amp;gt;
               &amp;lt;ax25:categoria&amp;gt;Arance&amp;lt;/ax25:categoria&amp;gt;
               &amp;lt;ax25:confezione xsi:type="ax25:Confezione"&amp;gt;
                  &amp;lt;ax25:peso&amp;gt;15&amp;lt;/ax25:peso&amp;gt;
                  &amp;lt;ax25:prezzo&amp;gt;17.0&amp;lt;/ax25:prezzo&amp;gt;
                  &amp;lt;ax25:tipo&amp;gt;cassa&amp;lt;/ax25:tipo&amp;gt;
               &amp;lt;/ax25:confezione&amp;gt;
               &amp;lt;ax25:confezione xsi:type="ax25:Confezione"&amp;gt;
                  &amp;lt;ax25:peso&amp;gt;3&amp;lt;/ax25:peso&amp;gt;
                  &amp;lt;ax25:prezzo&amp;gt;7.0&amp;lt;/ax25:prezzo&amp;gt;
                  &amp;lt;ax25:tipo&amp;gt;sacchetto&amp;lt;/ax25:tipo&amp;gt;
               &amp;lt;/ax25:confezione&amp;gt;
               &amp;lt;ax25:confezione xsi:type="ax25:Confezione"&amp;gt;
                  &amp;lt;ax25:peso&amp;gt;10&amp;lt;/ax25:peso&amp;gt;
                  &amp;lt;ax25:prezzo&amp;gt;14.0&amp;lt;/ax25:prezzo&amp;gt;
                  &amp;lt;ax25:tipo&amp;gt;plateau&amp;lt;/ax25:tipo&amp;gt;
               &amp;lt;/ax25:confezione&amp;gt;
               &amp;lt;ax25:confezioni xsi:nil="true" /&amp;gt;
               &amp;lt;ax25:nome&amp;gt;Tarocco&amp;lt;/ax25:nome&amp;gt;
            &amp;lt;/ns:return&amp;gt;
            &amp;lt;ns:return xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ax25:Prodotto"&amp;gt;
               &amp;lt;ax25:ID&amp;gt;3&amp;lt;/ax25:ID&amp;gt;
               &amp;lt;ax25:categoria&amp;gt;Limoni&amp;lt;/ax25:categoria&amp;gt;
               &amp;lt;ax25:confezione xsi:type="ax25:Confezione"&amp;gt;
                  &amp;lt;ax25:peso&amp;gt;3&amp;lt;/ax25:peso&amp;gt;
                  &amp;lt;ax25:prezzo&amp;gt;7.5&amp;lt;/ax25:prezzo&amp;gt;
                  &amp;lt;ax25:tipo&amp;gt;sacchetto&amp;lt;/ax25:tipo&amp;gt;
               &amp;lt;/ax25:confezione&amp;gt;
               &amp;lt;ax25:confezione xsi:type="ax25:Confezione"&amp;gt;
                  &amp;lt;ax25:peso&amp;gt;7&amp;lt;/ax25:peso&amp;gt;
                  &amp;lt;ax25:prezzo&amp;gt;14.0&amp;lt;/ax25:prezzo&amp;gt;
                  &amp;lt;ax25:tipo&amp;gt;plateau&amp;lt;/ax25:tipo&amp;gt;
               &amp;lt;/ax25:confezione&amp;gt;
               &amp;lt;ax25:confezioni xsi:nil="true" /&amp;gt;
               &amp;lt;ax25:nome&amp;gt;Limoni_di_Sorrento&amp;lt;/ax25:nome&amp;gt;
            &amp;lt;/ns:return&amp;gt;
            &amp;lt;ns:return xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ax25:Prodotto"&amp;gt;
               &amp;lt;ax25:ID&amp;gt;4&amp;lt;/ax25:ID&amp;gt;
               &amp;lt;ax25:categoria&amp;gt;Mandarini&amp;lt;/ax25:categoria&amp;gt;
               &amp;lt;ax25:confezione xsi:type="ax25:Confezione"&amp;gt;
                  &amp;lt;ax25:peso&amp;gt;10&amp;lt;/ax25:peso&amp;gt;
                  &amp;lt;ax25:prezzo&amp;gt;13.0&amp;lt;/ax25:prezzo&amp;gt;
                  &amp;lt;ax25:tipo&amp;gt;cassa&amp;lt;/ax25:tipo&amp;gt;
               &amp;lt;/ax25:confezione&amp;gt;
               &amp;lt;ax25:confezione xsi:type="ax25:Confezione"&amp;gt;
                  &amp;lt;ax25:peso&amp;gt;5&amp;lt;/ax25:peso&amp;gt;
                  &amp;lt;ax25:prezzo&amp;gt;7.5&amp;lt;/ax25:prezzo&amp;gt;
                  &amp;lt;ax25:tipo&amp;gt;plateau&amp;lt;/ax25:tipo&amp;gt;
               &amp;lt;/ax25:confezione&amp;gt;
               &amp;lt;ax25:confezioni xsi:nil="true" /&amp;gt;
               &amp;lt;ax25:nome&amp;gt;Clementine&amp;lt;/ax25:nome&amp;gt;
            &amp;lt;/ns:return&amp;gt;
            &amp;lt;ns:return xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ax25:Prodotto"&amp;gt;
               &amp;lt;ax25:ID&amp;gt;5&amp;lt;/ax25:ID&amp;gt;
               &amp;lt;ax25:categoria&amp;gt;Limoni&amp;lt;/ax25:categoria&amp;gt;
               &amp;lt;ax25:confezione xsi:type="ax25:Confezione"&amp;gt;
                  &amp;lt;ax25:peso&amp;gt;3&amp;lt;/ax25:peso&amp;gt;
                  &amp;lt;ax25:prezzo&amp;gt;5.0&amp;lt;/ax25:prezzo&amp;gt;
                  &amp;lt;ax25:tipo&amp;gt;sacchetto&amp;lt;/ax25:tipo&amp;gt;
               &amp;lt;/ax25:confezione&amp;gt;
               &amp;lt;ax25:confezione xsi:type="ax25:Confezione"&amp;gt;
                  &amp;lt;ax25:peso&amp;gt;7&amp;lt;/ax25:peso&amp;gt;
                  &amp;lt;ax25:prezzo&amp;gt;7.5&amp;lt;/ax25:prezzo&amp;gt;
                  &amp;lt;ax25:tipo&amp;gt;plateau&amp;lt;/ax25:tipo&amp;gt;
               &amp;lt;/ax25:confezione&amp;gt;
               &amp;lt;ax25:confezioni xsi:nil="true" /&amp;gt;
               &amp;lt;ax25:nome&amp;gt;Limoni_sfusi&amp;lt;/ax25:nome&amp;gt;
            &amp;lt;/ns:return&amp;gt;
            &amp;lt;ns:return xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ax25:Prodotto"&amp;gt;
               &amp;lt;ax25:ID&amp;gt;6&amp;lt;/ax25:ID&amp;gt;
               &amp;lt;ax25:categoria&amp;gt;Mandarini&amp;lt;/ax25:categoria&amp;gt;
               &amp;lt;ax25:confezione xsi:type="ax25:Confezione"&amp;gt;
                  &amp;lt;ax25:peso&amp;gt;10&amp;lt;/ax25:peso&amp;gt;
                  &amp;lt;ax25:prezzo&amp;gt;13.0&amp;lt;/ax25:prezzo&amp;gt;
                  &amp;lt;ax25:tipo&amp;gt;cassa&amp;lt;/ax25:tipo&amp;gt;
               &amp;lt;/ax25:confezione&amp;gt;
               &amp;lt;ax25:confezione xsi:type="ax25:Confezione"&amp;gt;
                  &amp;lt;ax25:peso&amp;gt;5&amp;lt;/ax25:peso&amp;gt;
                  &amp;lt;ax25:prezzo&amp;gt;7.5&amp;lt;/ax25:prezzo&amp;gt;
                  &amp;lt;ax25:tipo&amp;gt;plateau&amp;lt;/ax25:tipo&amp;gt;
               &amp;lt;/ax25:confezione&amp;gt;
               &amp;lt;ax25:confezioni xsi:nil="true" /&amp;gt;
               &amp;lt;ax25:nome&amp;gt;Mandarini&amp;lt;/ax25:nome&amp;gt;
            &amp;lt;/ns:return&amp;gt;
            &amp;lt;ns:return xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ax25:Prodotto"&amp;gt;
               &amp;lt;ax25:ID&amp;gt;7&amp;lt;/ax25:ID&amp;gt;
               &amp;lt;ax25:categoria&amp;gt;Arance&amp;lt;/ax25:categoria&amp;gt;
               &amp;lt;ax25:confezione xsi:type="ax25:Confezione"&amp;gt;
                  &amp;lt;ax25:peso&amp;gt;15&amp;lt;/ax25:peso&amp;gt;
                  &amp;lt;ax25:prezzo&amp;gt;15.0&amp;lt;/ax25:prezzo&amp;gt;
                  &amp;lt;ax25:tipo&amp;gt;cassa&amp;lt;/ax25:tipo&amp;gt;
               &amp;lt;/ax25:confezione&amp;gt;
               &amp;lt;ax25:confezione xsi:type="ax25:Confezione"&amp;gt;
                  &amp;lt;ax25:peso&amp;gt;3&amp;lt;/ax25:peso&amp;gt;
                  &amp;lt;ax25:prezzo&amp;gt;5.0&amp;lt;/ax25:prezzo&amp;gt;
                  &amp;lt;ax25:tipo&amp;gt;sacchetto&amp;lt;/ax25:tipo&amp;gt;
               &amp;lt;/ax25:confezione&amp;gt;
               &amp;lt;ax25:confezioni xsi:nil="true" /&amp;gt;
               &amp;lt;ax25:nome&amp;gt;Arance_da_giardino T&amp;lt;/ax25:nome&amp;gt;
            &amp;lt;/ns:return&amp;gt;
         &amp;lt;/ns:elencoResponse&amp;gt;
      &amp;lt;/soapenv:Body&amp;gt;
   &amp;lt;/soapenv:Envelope&amp;gt;
0
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
If can help I can post all the code I've wrote.&lt;br /&gt;
I'm desperate and hope that someone can help me understanding how I can handle this :)&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/web-services/424159/424159/problems-in-parsing-results-of-web-service-invocation/</guid>
      <pubDate>Sat, 02 Jul 2011 04:30:41 -0700</pubDate>
      <category>WEB-Services / SOAP</category>
    </item>
  </channel>
</rss>