[JBossWS] - XMLSchema, WSDL and wsconsume tool
by mleite
Hi,
i have created a WSDL file that is based on a XMLSchema file.
In that XMLSchema file i have defined some rules related to
simpleTypes, like that:
<xs:simpleType name="gender">
| <xs:restriction base="xs:string">
| <xs:enumeration value="M" />
| <xs:enumeration value="F" />
| </xs:restriction>
| </xs:simpleType>
|
With this simpleType i have created a complexType, like that:
<xs:complexType name="customer">
| <xs:sequence>
| <xs:element name="name" type="xs:string" />
| <xs:element name="dateOfBirth" type="xs:date" />
| <xs:element name="gender" type="gender" />
| </xs:sequence>
| </xs:complexType>
|
Thus, i use wsconsume tool to generate the classes based on that WSDL.
It works fine, i package and deploy my app and it is successfully published on Jboss.
After deploy and publish my app, i need to use the wsconsume tool again to create the WS client. But, when i access the URL http://myhost:myport/appName/something?wsdl to see the WSDL on-line generated, the simpleType defined previously with restrictions doesn't appear correctly, i mean it doesn't appear with the restrictions defined on XMLSchema. In that WSDL i can see the complexType customer type defined, but the element "gender" is only a xs:string type without restrictions.
Is it like that or am i forgetting something?
________________________
Best regards,
Marcelo
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092009#4092009
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092009
18Â years, 6Â months
[JBoss Seam] - Re: seam and batch/queue-processing
by motte79
@kenglover: Thanks, but i'm using Quartz not EJB-Timers. I'm sorry, should have told it.
@pete.muir: I tried the approach by scheduling an asynchronous task at startup, which performs some operations and gives the control for the next operation to a new asynchronous task. This works fine for some time, but it always ends up in a java.lang.StackOverflowError.
| Caused by: java.lang.StackOverflowError
| at java.lang.ClassLoader.findBootstrapClass(Native Method)
| at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:891)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:301)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
| at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
| at org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep(ThrowableInformation.java:58)
| at org.apache.log4j.spi.LoggingEvent.getThrowableStrRep(LoggingEvent.java:342)
| at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:304)
| at org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.java:236)
| at org.apache.log4j.WriterAppender.append(WriterAppender.java:159)
| at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
| at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65)
| at org.apache.log4j.Category.callAppenders(Category.java:203)
| at org.apache.log4j.Category.forcedLog(Category.java:388)
| at org.apache.log4j.Category.log(Category.java:853)
| at org.jboss.seam.log.Log4JProvider.error(Log4JProvider.java:57)
| at org.jboss.seam.log.LogImpl.error(LogImpl.java:121)
|
The new instance is created by calling.
| (Task) Component.getInstance(Task.NAME, ScopeType.STATELESS, true);
|
I'm a little frustrated about this ..
I'd like to poll the database for new messages (they are stored in a table) and perform some tasks/checks with it to get it into another sink (another table).
It's a system where n foreign processes send messages via http/POST. They get serialized into the first table and are processed later in a synchron recurring way by the Task. (because reordering has to be done, etc.)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092008#4092008
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092008
18Â years, 6Â months