Sign In/My Account | View Cart  
advertisement

Article:
 Schema Binding for Java Web Services
Subject: Java code for .net
Date: 2007-11-06 07:39:01
From: manojespire

Hi,


I have this sample code written in .net. I want to write same code in Java.


.net code


XmlSerializer mySerializer;


try
{


StreamReader sr = new StreamReader(@"C:\AirdHouse.xml");


XmlTextReader xmlTextReader = new XmlTextReader(sr);


mySerializer = new XmlSerializer(typeof(Product));
Product pViewupdate= (Product) mySerializer.Deserialize(xmlTextReader);
AbstractView av = prodServ.AddProduct(pViewupdate);


mySerializer = null;


}


catch(Exception ex)


{


//Handle exceptions


}


Please write same code in java. here I am making xml to Product class object.It will be good if you can write code using java AXIS


Previous Message Previous Message   Next Message No Next Message


Sponsored By: