Iam new to JAXB and i need some help for unmarshalling an xml file in netbeans ide with the help of some tutorials
plz help me out
Printable View
Iam new to JAXB and i need some help for unmarshalling an xml file in netbeans ide with the help of some tutorials
plz help me out
Hello krish,
please go thrugh below link for your ans
JAXB hello world example
i think this would be help to you .
if not let me know where you have problem
.
i need the tutorial for jaxb unmarshalling method in netbeans
.
i tried the unmarshalling technique for jaxb in netbeans ide 6.5.1 for unmarshalling an xml file into java objects for a java web service but when i tested the web service it was successful but the java object is not being displayed in the output console.... i need a solution for this based on a complete tutorial on working with jaxb in netbeans ide 6.5.1......plz help me out
i tried the unmarshalling technique for jaxb in netbeans ide 6.5.1 for unmarshalling an xml file into java objects for a java web service but when i tested the web service it was successful but the java object is not being displayed in the output console.... i need a solution for this based on a complete tutorial on working with jaxb in netbeans ide 6.5.1......plz help me out
iam getting an error in contact.setStreet and contact.setCity method i.e setting the street and city for the web service plz help me fix it
public class Contact {
/**
* Web service operation
*/
@WebMethod(operationName = "addDetails")
public String addDetails(@WebParam(name = "Street")
final String Street, @WebParam(name = "City")
final String City) {
//TODO write your implementation code here:
Contact contact=new Contact();
contact.setStreet(Street);
contact.setCity(City);
String filen = "C:\\Users\\Vijayalekshmy\\Documents\\NetBeansProj ects\\ashnew\\src\\java";
java.io.File conxml = new java.io.File(filen);
try{
jaxbMarshalToFile(contact,conxml);
}
catch(Exception e)
{
System.out.print(e);
}
return "SUCCESS";
}
i need tutorial for unmarshalling xml file using jaxb for java web service