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
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
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
.
KingJohnno (February 15th, 2013)
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