Inner classes generated by xmlbeans

November 30 0
Advertisement
I was given a library to use that most of it was created with the apache xmlbeans framework. The following code works within the eclipse java ide but JDeveloper does not find the inner factory class of the QueryEnterpriseAckDocument class. How does JDeveloper handle working with inner classes. This may be an issue that requires going back to eclipse as the ide.
     QueryEnterpriseAckDocument ackDoc = QueryEnterpriseAckDocument.Factory.newInstance();
     QueryEnterpriseAckDocument.QueryEnterpriseAck ack = ackDoc.addNewQueryEnterpriseAck();
thanks,
Jeremy Wilson
     
Advertisement
Is there some kind of meta-specification for JSR 269 that explains the design goals? Not really, only what is here http://jcp.org/en/jsr/detail?id=269
With such a document, it might also be easier to figure out how processors are supposed to work.JSR 269 is designed to permit solutions to various complex scenarios rather than provide solutions. Those scenarios and their intended solution are not often obvious from the API specs.
You might like to take a look at https://hickory.dev.java.net/ where I have a project to supply some tooling to assist annotation processor authors, and a wiki to document things. Allocating time to this is not easy, but the 3 packages in the API there are pretty robust. The test cases in source code for those have plenty of examples of some of the more complex design goals, such as the ability to write an annotation processor which works correctly in an incremental compile scenario, when the generated file derives from more than one source file, not all of which may be included in an incremental compile.
Other than that, if you have any particular questions, just ask in this forum, and Joe (JSR 269 spec lead) or myself should be able to answer them for you.
Bruce
Edited by: brucechapman on Feb 4, 2008 1:35 PM
Inner classes generated by xmlbeans

I was given a library to use that most of it was created with the apache xmlbeans framework. The following code works within the eclipse java ide but JDeveloper does not find the inner factory class of the QueryEnterpriseAckDocument class. How does J

Creating a web service with XMLBeans

Hello I have created an XML schema defining some complex types such as Person, Address, etc.. I use the Apache XMLBeans project (version 2.2.0) to automatically generate Java beans from my schema. I then populate these objects using standard accessor

Adding data members and methods to generated classes that will not produce

I want to use XMLBeans XMLObject for a project, but for the classes generated by XMLBeans, I want to add some additional data members and methods to handle program state that I do not want to have written out to an XML document. I have been using .NE

Parsing my xml using XMLBeans

I'm trying to use XMLBeans to load my xml file and access different elements of it. Here is my schema: <?xml version="1.0" encoding="utf-8"?> <xs:schema targetNamespace="http://testing.jsm.jtsd.com/testData" xmlns:xs

Do XMLBeans support a schema in multiple documents?

Hi All XMLBeans Guru. I got an error message that -CapFinInfoReq.xsd:4: Could not load resource "http://10.198.195.120/Schema/Queuing/quebase.xsd" (network downloads disabled)- . in WLW while it tried to compile my schema which has the include d

Trouble with XmlBean parameters

Hello, (WLS8.1SP2) I've read all I can find about this, even downloaded the WLSXmlBeansApp. The problem seems to be that <clientgen> is generating Java code that will not compile. F.E. I'm using <xmlbean> with the <extension> to generate

Wscompile + xmlbeans: class does not have a public accessible empty constru

Hi I have some schema files from 3gpp.org and created java files with xmlbeans. Now I try to use them but wscompile complains: error: class provider.VersionType$Enum does not have a public accessible empty constructor that class is generated by xmlbe

XmlBean to plain xml without namespaces

I want to call a service wich takes a string as input But the string must contain plain xml like : "<quote><address>12 Springs</address></quote>" I did write a xsd file, and generated a xmlBeans, but how to get the plain

WSDL Webservices namespace problem

Hi I am trying to test a simple webservice deployed on Composite server. So I imported the wsdl and generated the XMLBeans and Service Control and tested the service control. When I test it I can see the SOAP response has the expected data but the XM

Retrieving VArray Datatype columns thru DSI/ALDSP Shapes

Hi, I have a physical table which consists column of 'VARRAY' datatype apart from other singular datatypes. when i created my physical ds thru SQL Function, it had thrown an error saying "VARRAY" datatypes are not supported. Hence, i had created

Problem in namespace

hi , I tried to persist an inner class generated by XmlBean in my webservice that represents on fragment of the xml schema instance of complex type. The content that is being persisted now gets all those name sapce that are meant to be at the root el

Don't understand why WSDL isn't valid

In Workshop 9.2, I'm developing an annotation-based web service. I imported my schemas and generated the xmlbeans, and after setting my input and output parameters in the service class, I tried to generate the WSDL from the service. For some reason,

Bug: autojar picks wrong classes?

Hello, op.TxnRequest is an XmlBean interface, in the same manner the WLSXmlBeansApp generates an XmlBean interface. My <autogen> seems identical to the WLSXmlBeansApp <autogen> yet after several days of trying I still get the error: [autotype]

ClassCastException on Factory.newInstance()

Hello all, I have an XSD and am using WebLogic 8.1.4 to generate the XMLBeans on the Schema project I get a ClassCastException on the Factory.newInstance() method call to get an instance of the generated XMLBean object for one of the subtags. I get t

WSDL generated from service that references XMLBean is invalid

Env: Weblogic Workshop 9.2.0 Build id: 783464 When I validate a WSDL generated from a service that imports XMLBean classes (auto-generated by the XMLBeans Builder) it shows numerous errors including src-resolve.4.2. and ?The part ?parameters? has an

Failure to generate WSDL from web service when use xmlbean

Hi, I have a web service that uses xmlbean generated by schema. The schema from 3rd party is in a separate project since it's used by another web app and ejb project. In wlw103 I have included the schema project in this web service project's Java Bui

Is there any util or ant build to generate xmlbeans from xml

hi all is there any utility tools or ant build process that can generate xmlbeans from xml schema? thanks.exactly, here are some libraries which are open sources; http://java-source.net/open-source/pdf-libraries hope it's useful. :DRead other 7 answe

How to generate class files using XMLBeans

I had used XMLBeans scomp command to generate document classes from XSD.But problem is i got xsb files and java files, not class files. I want to use jar of these generated files in my project , so i need to have class files. Can anyone help me in ov

Visibility of methods of generated xmlbean java Objects

Hi, I created a simple xml schema containing a small complex type and an element using that complex type. I am able to successfully create the xmltypes.jar using scomp tool. At the place of usage, i put this jar file into my class path and wrote the

How to generate a WSDL with XMLBEANS?

Hello everyone I have a below WSDL file to parse,in which includes "xmlns:plnk" elements. Casses generated with WSDL schema don't include any method to do with plnk elements,just like partnerLinkType element.SO what I have to do when I have to p