Rene Ummels

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

Recent posts by Rene Ummels

Hi deepak,

Does the book address versioning of web services?
For instance maintaining some standard versions and some customized ones.
Or handling minimization of code duplication when having more than one version of a web service?


Kind regards,
Rene
11 years ago
Hi Billy,

Did you add your question(s) on purpose to my post, or did you do it by mistake?


///Rene
12 years ago
Hi Tomek,

I use the following rule for usage of Mockito versus Powermock. In our company we use Mockito.

Rule: Do not use Powermock, unless it is really needed (think!). Use it per maven sub-project and then use it consistently (not using both Mockito and Powermock).
- Powermock shall never be used to hide bad design.
- Powermock is allowed in testing Abstract Factory.
- The Sonar check concerning final methods / classes is nonsense; how can you ever be sure that you are never going to extend a class or method? Conclusion: Do not use Powermock to test existing final methods or classes in your code but remove the final keyword.

Do you have any suggestions on my rule?
Any suggestions (adding text, removing text, changing text) or sharing thoughts are appreciated.


kind regards,
Rene Ummels
12 years ago
Hi,

It seems the wsi-tools@ws-i.org mailbox cannot be reached.
Is the mail address still correct?


Further, I have some questions about WS-I BP 1.1 Compliance Analyzer test results. It would be
nice to get response on it.

Background:
Our requirement is to be WS-I Basic Profile 1.1 compliant for our Web Service created
from a designed WSDL (generating all the classes through JAX-WS 2.0).
We performed all the steps including generating the SOAP message traces.
I see several "missing input" entries. These have been checked manually.

Issue:
Still some questions remain for 10 of the requirements showing "missing input".
I hope I can get clarification on them.

Requirement - Question
R1014 - What could be wrong in WSDL/XSD/message that would explain this "missing input"?
R1001 - What could be wrong in WSDL/XSD/message that would explain this "missing input"?
R1031 - <faultcode>soap:Server.ProcessingError</faultcode> should be changed to <faultcode>soap:ProcessingError</faultcode>, right?
R1132 - We are compliant, we are using POST method, right?
R1112 - Why is this reported as "missing input"?
R1114 - We are only using POST, so why is this reported as "missing input"?
R2213 - Why is this reported as "missing input"?
R2712 - What could be wrong in WSDL/XSD/message that would explain this "missing input"? Something with the fault exceptions?
R2740 - Is this a fault in our solution? There is no fault element inside soapbind.
R2744 - Is this "missing input" not applicable for us?

One more thing.
In our WSDL file we have the following, does this mean we are not compliant to WS-I BP 1.1?
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding"


Below are the WSDL and XSD contents.


kind regards,
Rene







13 years ago
Hi,

The solution was to update the sybase stored procedure from:

to:


and to add and use a Result entity instead, as follows:


In this way, the columns were mapped correctly.


br,
Rene
Hi,

The actual solution was to update the sybase stored procedure from:

to:


In this way, the columns were mapped correctly.


br,
Rene
Thanks Mike.
I now substituted:

by:


Then I executed the createNamedQuery() code but I get an exception:
Caused by: java.lang.IllegalArgumentException: NamedQuery of name: ported.p_sel_number_info not found.
How can I solve this?


thanks,
Rene
Hi,

Good feedback. So, if I understand you correctly this would mean to change the code as follows, right?




kind regards,
Rene
Hi,

Will the book explain how to handle stored procedures? Some scenarios, for instance with EclipseLink and a mix of tables in the returned result.

We have made some stored procedure code, the result from the stored procedure containing a mix of two tables (destinationNumber from ported; networkRoutingPrefix from network).
Is the below way correct and efficient?










thanks,
Rene
Oh yes, here is also the Network class:

Hi,

We have the following exception with the code below. Does anybody know the solution?

Thanks,
Rene


Local Exception Stack:
Exception [EclipseLink-6044] (Eclipse Persistence Services - 2.0.0.v20091127-r5931): org.eclipse.persistence.exceptions.QueryException
Exception Description: The primary key read from the row [DatabaseRecord(
=> 42427110080034
=> 99
=> 428110080034)] during the execution of the query was detected to be null. Primary keys must not contain null.
Query: ReadObjectQuery(referenceClass=Ported )
at org.eclipse.persistence.exceptions.QueryException.nullPrimaryKeyInBuildingObject(QueryException.java:863)
at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:468)
at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:441)
at org.eclipse.persistence.queries.ObjectLevelReadQuery.buildObject(ObjectLevelReadQuery.java:635)
at org.eclipse.persistence.queries.ReadObjectQuery.registerResultInUnitOfWork(ReadObjectQuery.java:724)
at org.eclipse.persistence.queries.ReadObjectQuery.executeObjectLevelReadQuery(ReadObjectQuery.java:438)
at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:997)
at org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:675)
at org.eclipse.persistence.queries.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:958)
at org.eclipse.persistence.queries.ReadObjectQuery.execute(ReadObjectQuery.java:399)
at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:1021)
at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2863)
at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1225)
at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1207)
at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1167)