0 Replies Latest reply on Jan 16, 2008 9:31 AM by Sascha Janz

    using jaxb

    Sascha Janz Master

      Hello,

      i am developing a web service based on a wsdl file with netbeans 6.0

      i want to use jaxb to unmarshall an object. but when i add jaxb-impl.jar, i got errors with the generated classes based on the wsdl file

      "property xy does not exist on class myclass"

      when i remove the jar everything is ok.

      what must i do, to execute some code like this?

      JAXBContext context = JAXBContext.newInstance(MyClass.class);
      Unmarshaller um = context.createUnmarshaller();
      MyClass obj = (MyClass) um.unmarshal(new FileReader("obj.xml") );