Amit ChaudhariC

Ranch Hand
+ Follow
since Aug 06, 2009
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 Amit ChaudhariC

you can try out something like


Regards,
Amit
12 years ago
Assuming your have created a arraylist with the elements {a,b,end,c,d,end..end}
i would create a stringbuilder sb will all the elements.
StringTokenizer st = new StringTokenizer(sb.toString(),"end");
while st.hasmoretokens{
string s = st.nextToken;
do your operation.
}

There might be better ways of doing this though.

Regards,
Amit
12 years ago
I remember reading in Effective Java about generating a unique hashcode.
i can vaguely recall it using 17 and 31 as some numbers since they are prime and then using your instance field values,it computes a unique code.

Regards,
Amit
12 years ago

The problem is that the procedure is taking a lot of time to execute



Did you try checking the sp on db directly if it is taking lot of time there as well?

Also,This problem is happening only after i deployed the code in unix server.In local,its working fine


can you please elaborate more on this point?

Can someone please explain why the procedure is called many times even though there is no looping.Is it somehow related to the fact that the procedure is returning 40 cursers



from the code , do you mean to say "start" gets printed many times?

Regards,
Amit

So say I select CustID: #2 from the drop box. Instead of displaying CustID #2 it will display CustID #3 Personal Information and with that CustID it will link to ID: 3 in the Orders table and display that correct Order info..



Please post the sqls /code that are fired in the above case?

Regards,
Amit
Hi,

I would suggest you to read a jdbc tutorial as i feel some basic stuff like closing the statement , resultset ,connection is missing from this code.

1)Do you want to fetch only the customerIds from the customer table , change the query accordingly.
2)Why are you passing the ResultSet object to the next method , if you want to add those customerIds to the list , do it after you get the resultset.

Please let us know the relationship between the 2 tables and will try to help out.

Regards,
Amit
you can try using <parameter name="disableSOAP11" locked="true">true</parameter> instead of <parameter name="disableSOAP11">true</parameter> so
that no one overrides the parameter.

Regards,
Amit
13 years ago
Hi,

if you are using axis2 , check the wsdl2java tool.

Regards,
Amit
13 years ago
not sure what is causing this.
btw, you can always try using the command line option of compling , creating a aar and pushing the web service to your web server and i believe that it is much easier to use.

Regards,
Amit
13 years ago
You can specify what all methods to expose in the services.xml.

Regards,
Amit
13 years ago
Did you set Axis home in eclipse ?
Also add the needed jars in the classpath and it should work.

Regards,
Amit
13 years ago
Can you please tell us what you are trying to do along with the code sample and some more details so that the issue can be looked upon.

Regards,
Amit
13 years ago
Hi Remi,

I see no issues with the code .
I am sure the classpath and using proper versions for compiling and running the code with solve your issues.
To set the classpath correctly i suggest you refer the script provided under AXIS2_HOME/bin

Also in the classpath you mentioned , please check the section in the bold.

C:\remi\dev\Axis2TomcatHelloworldold\client_bin>echo %AXISCLASSPATH%
C:\remi\dev\ws\axis2-1.5.1\lib\wsdl4j-1.6.2.jar;C:\remi\dev\ws\axis2-1.5.1\lib\a
xis.jar;C:\remi\dev\ws\axis2-1.5.1\lib\commons-discovery-0.2.jar;C:\remi\dev\ws\
axis2-1.5.1\lib\commons-logging-1.1.1.jar;C:\remi\dev\ws\axis2-1.5.1\lib\jaxrpc.
jar;C:\remi\dev\ws\axis2-1.5.1\lib\saaj.jar;C:\remi\dev\ws\axis2-1.5.1\lib\log4j
-1.2.15.jar;C:\remi\dev\ws\axis2-1.5.1\lib\xml-apis-1.3.02.jar;C:\remi\dev\ws\ax
is2-1.5.1\lib\xercesImpl-2.6.6.jar;C:\axis2-1.1.1.jar;C:\remi\dev\ws\axis2-1.5.1
\lib\axis2-adb-1.5.1.jar;C:\remi\dev\ws\axis2-1.5.1\lib\axis2-adb-codegen-1.5.1.
jar;C:\remi\dev\ws\axis2-1.5.1\lib\axis2-ant-plugin-1.5.1.jar;C:\remi\dev\ws\axi
s2-1.5.1\lib\axis2-clustering-1.5.1.jar;C:\remi\dev\ws\axis2-1.5.1\lib\axis2-cod
egen-1.5.1.jar;C:\remi\dev\ws\axis2-1.5.1\lib\axis2-corba-1.5.1.jar;C:\remi\dev\
ws\axis2-1.5.1\lib\axis2-fastinfoset-1.5.1.jar;C:\remi\dev\ws\axis2-1.5.1\lib\ax
is2-java2wsdl-1.5.1.jar;C:\remi\dev\ws\axis2-1.5.1\lib\axis2-jaxws-1.5.1.jar;C:\
remi\dev\ws\axis2-1.5.1\lib\axis2-jaxbri-1.5.1.jar;C:\remi\dev\ws\axis2-1.5.1\li
b\axis2-jaxws-1.5.1.jar;C:\remi\dev\ws\axis2-1.5.1\lib\axis2-jibx-1.5.1.jar;C:\r
emi\dev\ws\axis2-1.5.1\lib\axis2-json-1.5.1.jar;C:\remi\dev\ws\axis2-1.5.1\lib\a
xis2-kernel-1.5.1.jar;C:\remi\dev\ws\axis2-1.5.1\lib\axis2-metadata-1.5.1.jar;C:
\remi\dev\ws\axis2-1.5.1\lib\axis2-mtompolicy-1.5.1.jar;C:\remi\dev\ws\axis2-1.5
.1\lib\axis2-saaj-1.5.1.jar;C:\remi\dev\ws\axis2-1.5.1\lib\axis2-spring-1.5.1.ja
r;C:\remi\dev\ws\axis2-1.5.1\lib\axis2-transport-http-1.5.1.jar;C:\remi\dev\ws\a
xis2-1.5.1\lib\axis2-transport-local-1.5.1.jar;C:\remi\dev\ws\axis2-1.5.1\lib\ax
is2-xmlbeans-1.5.1.jar;C:\axiom.jar;C:\XmlSchema-1.4.6.jar

Regards,
Amit
13 years ago
Hi,

Also , check the echo command output and the command by which you are running the client.

Please check whether D:\downloads\axis2-1.4.1-bin\axis2-1.4.1\lib exists? as i can see the echo command points to a diff axis path altogether.

Regards,
Amit
13 years ago
Yes, you will need to download axis and set Axis home in eclipse.

Regards,
Amit
13 years ago