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.

Results 1 to 9 of 9

Thread: JAXB

  1. #1
    Junior Member
    Join Date
    Nov 2012
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default JAXB

    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


  2. #2
    Junior Member
    Join Date
    Feb 2013
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: JAXB

    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

  3. #3
    Member
    Join Date
    Feb 2013
    Location
    earth
    Posts
    88
    Thanks
    12
    Thanked 9 Times in 9 Posts

    Default Re: JAXB

    .

  4. The Following User Says Thank You to javaiscool For This Useful Post:

    KingJohnno (February 15th, 2013)

  5. #4
    Junior Member
    Join Date
    Nov 2012
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: JAXB

    i need the tutorial for jaxb unmarshalling method in netbeans

  6. #5
    Member
    Join Date
    Feb 2013
    Location
    earth
    Posts
    88
    Thanks
    12
    Thanked 9 Times in 9 Posts

    Default Re: JAXB

    .

  7. #6
    Junior Member
    Join Date
    Nov 2012
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: JAXB

    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

  8. #7
    Junior Member
    Join Date
    Nov 2012
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: JAXB

    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

  9. #8
    Junior Member
    Join Date
    Nov 2012
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: JAXB

    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";
    }

  10. #9
    Junior Member
    Join Date
    Nov 2012
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: JAXB

    i need tutorial for unmarshalling xml file using jaxb for java web service

Similar Threads

  1. How to parse an object to and from XML using JAXB
    By Json in forum File Input/Output Tutorials
    Replies: 1
    Last Post: August 8th, 2013, 05:45 PM
  2. Regarding JAXB
    By Anbarasi in forum JDBC & Databases
    Replies: 2
    Last Post: August 31st, 2012, 12:33 PM
  3. Which tech to use JAXB or XSTREAM ?
    By tcstcs in forum Java Theory & Questions
    Replies: 0
    Last Post: November 7th, 2011, 01:33 AM
  4. JAXB 2.0: Some elements are ignored during Marshalling. Why? How do I fix this?
    By Charlie Irongleet in forum File I/O & Other I/O Streams
    Replies: 0
    Last Post: October 21st, 2011, 03:58 PM
  5. How to parse an object to and from XML using JAXB
    By Json in forum Java Code Snippets and Tutorials
    Replies: 0
    Last Post: January 20th, 2010, 03:42 AM