About Question enthuware.ocejws.v6.2.83 :
Posted: Fri Oct 03, 2014 3:01 pm
I would like some more explanation about the error in the last option, with JAXBContext. Thanks
Java Certification Resources and Java Discussion Forum
http://enthuware.com/forum/
Code: Select all
JAXBContext jaxbcontext = JAXBContext.newInstance("SOAPMessage");
Code: Select all
// The JAXBContext instance is initialized from a list of colon separated Java package names.
// Each java package contains JAXB mapped classes, schema-derived classes and/or user annotated classes.
JAXBContext.newInstance( "com.acme.foo:com.acme.bar" )
// The JAXBContext instance is intialized with class(es) passed as parameter(s) and classes
// that are statically reachable from these class(es)
JAXBContext.newInstance( com.acme.foo.Foo.class )