Sridhar Sreenivasan

Greenhorn
+ Follow
since Dec 08, 2005
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 Sridhar Sreenivasan

Ulf Dittmer wrote:Today's Off The mark cartoon, courtesy of Yahoo News:



your pouch or your kid's pouch.....
9 years ago
What version of Oracle DB are you using?
"I do not want to use select query inside the IN clause"
Any specific reason of not wanting to use such a solution?

If it's version 11, then based on the information you've provided an alternative solution is to use a select query inside the IN clause as follows:

Assuming the current sql query you have is as follows:
select * from tableA where columnA in(<array of string>);

The above can be modified to
A type "string_type" can be defined as a table of varchar2 in the Oracle DB.
Then the array of string can be assigned to the type variable "string_type_var".
select * from tableA where columnA in(select column_value from table(:string_type_var));

The above solution is efficient and clean.
11 years ago
"Pre meaning before. So, before something was owned, it would be totally new, like an unowned vehichle."
After reading this truth, I feel I have been cheated. I actually paid for a pre-paid phone card
12 years ago
I very much doubt it. Cos I happen to see a fly coming out of the left nostril of the moose and go into the right, and the moose didn't twitch or sneeze. Either he/she is dead or has high endurability.
12 years ago
Wow, it's a miracle indeed. I was in fact searching for her (she's a female not a male, I can see how the person was confused by her gender only and not the species) for a looooongggg time. But alas I can't reach cos the phone number is blacked out. Wish there was a way to reach the person.
12 years ago
Hi,
Thanks for the response.Am new to web services so there were things explained in the later part that I have to learn before attempting to implement it.But to clarify on your question on the classpath, yes I do have the classpath pointing to axis.jar. It had worked for an earlier web service similar to the one I had mailed about,except that the FinCall class has only the one dimensional array of double and no ArrayList.
Sridhar Sreenivasan.
15 years ago
I have a webservice (implemented in Java, using Axis and Tomcat) FinService that returns a FinCall object when invoked.
The FinCall object has a one dimensional array of double and an array list as paramter. It is a bean class. When returning the ArrayList and setting the ArrayList attribute I pass the parameter as object and return it as object.The ArrayList contains the FinErr objects.
The deploy.wsdd had the typeMapping for the FinCall and the array of double.
Following is what I added to the deploy.wsdd file.
<typeMapping
xmlns:ns="urn:finservice"
qname="ns:FinErr"
type="java:finserv.FinErr"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
/>
And I deployed the service and invoked it with a java client I got the error that No deserializer for {urn:finservice}FinErr.Can you please tell me what am missing here to make it work?
Thanks
Sridhar Sreenivasan.
15 years ago
If anyone is actuallu looking into it,please stop as I've figured it myself and it is working now.Thanks for those who were trying to figure it out.
Sridhar.
15 years ago
Hi,
With the existing code it will print
derived x is 2
test x is 3.
This is a case of overriding.During overriding the method is resolved at runtime by the object.In this case the object instance is Dervied though the variable is Base. So it will invoke the show of the Dervied. But this applies only to methods and not to variables.So the test x is 3 will be printed from the Base.
As for making it static it is a case of shadowing,thereby it will print
base x is 3
test x is 3
That is pretty straight forward as no overriding is applied.So during compile time the reference variable method will be applied.Hope this helped.
Sridhar.
15 years ago
Hi,
Am new to web services and was able to make a simple web service that returned a string back work. Am implementing the web service in Java, running tomcat,using Axis. Then I wanted to return an object instead of a simple data type. I was able to create the wsdl files and the supporting classes. I created the jar and successfully deployed them too. When I invoke the service through a client program following is the message I get:
org.xml.sax.SAXParseException: The root element is required in a well-formed document.
Any thoughts on how to fix it?
Sridhar.
15 years ago