Cloey Tan

Ranch Hand
+ Follow
since Feb 03, 2009
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Cloey Tan

Hi there Paul, thanks for your reply. It was not easy to generate the diagram, and ive reverse generated one sample - removing lots of other details. Hope it helps a bit. Ive attached together with this post.
Hrmstaff is the workers table, while the rest are tables which would be used to identify the working hours of staff. For example, each of those tables (other than hrmstaff) have fields like 'worker' (pfmjobcard), harvestName (pfmharvestdetail)..etc

Note: Having some problem attaching the file at the moment
I need some help in constructing an advanced sql select statement for report generation. This is my case:
I need to produce a report for workers without wages for a period of time from certain department.
My print report screen would have 2 dropdown fields - period and department. In order to identify those workers without wages, i need to search from a few tables, for example, harvesting , jobcard, transport to make sure that the worker name/id doesn't appear inside the record and the total working hour is 0 if his record exist within the selected date.

This seems to involve lots of selection, where shouldi start from. First select all the active users from the vallid department, then only filter based on whether his record exist in those other tables. Please advice. Thanks in advance.
I came across a situation like this, I retrieve an instance of EJB3 entity from the database, pass it to the front end to be updated on its values, then merge it using the EntityManager, entityManager.merge(entityObject), But it doesnt seem to work that way. Does it mean that the entity object is detached? Is there a way to attach it back such that the updated entity object can be merged straight away?
So far, in EJB3, when it comes to many to many relationship joining 2 tables, we could do something like this

But now i have a situation whereby i need to join 3 tables together, for example I have a User entity, and would need a bridge/join table consisting of 3 keys, userId, roleId, companyId, whereby it links each of them to user's Id, role's Id and company's Id respectively.
So many to many relationship in the above case doesn't seem to work too well for this i assume?
What kind of table relationship mapping should i be using such that i could retrieve a list of role based on a given user Id and company Id?
Working on a project where people can create a hierarchy of data and store into the database. When retrieved, it would be displayed in a treeview with a checkbox next to it. Was wondering whether some useful resources can be shared here? Thanks in advance.
14 years ago
Using apache cxf to write a web service client are there any good examples to look at?
14 years ago

Im trying out the axis1 example thats given inside the documentation but eneded up with the connection refused.

14 years ago
I was wondering whether working with ejb3 and axis2 to write a web service client would need any extra configuration? As It gives me an runtime exception saying java.lang.RuntimeException: java.lang.NoClassDefFoundError: javax/xml/namespace/QName, with just an invoke of ServiceClient sender = new ServiceClient();

Any idea why this happens. Thanks in advance.
While trying out with Axis2, i discovered that when i include this line of code
ServiceClient sender = new ServiceClient();
everything goes fine, until i invoke a method on my application which will then invoke that line of code, i get error message like this:
Caused by: java.lang.RuntimeException: java.lang.NoClassDefFoundError: javax/xml/namespace/QName

What does the QName have to do with the service client anywya? It happens too when i tried with Axis's Service.
14 years ago
Thanks for the help, it has been of great help to me.
Just started off with the Axis2 wsdl2Java tool and now i have a few more questions to ask here:

1) I followed the link as given on the axis2 website, and it generates quite a number of classes, i assume the clientxxstub being generated is an example of client, and the rest of the classes generated are the web service api which need to exist together with the client class as well. please correct if im wrong.
Im using the xmlbeans method, because i got some error previously using the ADB. Part of the error are like below:
Any idea why this happens with the ADB?

2) I tried to generate client with another wsdl using xmlbeans, the exactly same method that i used for the previous example, but it ended up with an error.

14 years ago
I'm using ejb3 and jboss for my web application, and plan to try out the Axis2 feature, and i have a few questions here:

1)Inside my axis2-1.5\lib, there're so many jar files, which are the relevant lib for me to get Service Client?
2)i came across the WSDL2Java tool, its for generating the java classes which are related to consuming some WSDL?
3)For example, i need to consume a web service online http://~.php?WSDL, how would the WSDL2Java come into place?
4)Can i work with axis2 for the web service client without using the wsdl2java?
14 years ago
i managed to solve the previous error but now getting the QName error, even if i import javax.xml.namespace.QName in the class, im still getting this same error. Has anyone hre encountered this before?

14 years ago
has anyone here encountered this issue while working with the apache axis?
After referring to axis website, i discover some other jar besides axis.jar have to be there also, how should i modify my maven dependencies?

Currently it refers to axis.jar, what if i have several other jars, like common-discovery etc.. ?

14 years ago
First off, i would like to thank you both on the replies. Here i have another doubt.

I can see there're some examples on the net on how to use axis to write client to invoke web service, one of them is Well, i have a question here since i have not started trying out the examples, yet, that whether it is possible to to use axis to list out the available web methods to invoke? and we need to know the return value type as well, so that we can do something like this int value= ((Integer)call.invoke(inParams)).intValue(); it means we need to know /understand the web service before proceed with writing the client? Would that be possible that i write a generic web service client that could cater for different web services?
Please advice and thanks in advance.


14 years ago
Hi thanks for the reply, ill take a look at the links provided. While i was in the process of researching, i came across , apache axis, axis2 and apache soap. Can i use them to write the client soap?
14 years ago