Ranjeeth Chandra

Greenhorn
+ Follow
since Sep 19, 2008
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 Ranjeeth Chandra

Here are some steps which might help you -

serach google for a batch file - wsdl2java - which would generate all the required java from the WSDL.
You would have to set the required parameters in one of the java files, which you have to find out. It is the class which makes the webservice call.
You will get the response object back if you have 1.properly connected to the webservice 2. you have properly set the required parameters. Look the WSDL to know what are all required parameters
14 years ago
Hi,

I feel that the class QaaWSHeader is specific to your application. Evrything that is specified as required parameter in the WSDL should be set before sending the request object. If you generate stubs from WSDL, all the parameters are null by default. Try to search for this class in request object and set the aforementioned fields.
14 years ago
Hi,

Could anyone please tell me how reply/response and subscribe/publish vary in terms of implementation? I have worked on reply/request where we provide a request with required parameters and we get the response back. We will send a request everytime we need the info.

How does a sub/pub work? Do we get feeds from the service, after subscribing to that service just once? If yes, how/where do we get the response XML which holds the desired data? Do we mention those details at the time of subsciption?

Please throw some light on this...
14 years ago
Hi all,

Consider I have a URL - http://someurl/file.xls

I need to do a response.sendRedirect(url) into this url. This opens the file in the browser itself. But I need to open it in microsoft excel.

Normally we have a the content of the excel file (html table format)
then we do response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-Disposition", "attachment; filename=data.xls");
outwriter.writeln(html table content);

this gives us the content in an ms excel window rather than browser. Instead of attachment above if we say inline, it'll open the contents in the browser itself but will look like excel but goofier.

The content when too large can't be manipulated on the server due to memory issues so I want to do have the file in a url link and do sendRedirect, but open it in msexcel itself.

Is it possible? Could anyone please help me in solving this?

Thanks
Ranji
15 years ago
Thanks Joe! That was very informative
[ December 16, 2008: Message edited by: Ranjeeth Chandra ]
15 years ago
Hi all

I was getting the exception 'java.lang.OutOfMemoryError: PermGen space'
To solve this, i added memory arguments in the start up script, which is as follows -

------------------------
set JAVA_OPTIONS= ...
set JAVA_OPTIONS= ...
set MEM_ARGS=-Xms512m -Xmx1280m
-------------------------

MEM_ARGS is the line i ve added. It is added after java options are set. But, still i am getting outOfMemoryError. I feel that the piece of code is not working as intended.

Do i need to add this somewhere else?
Also, i heard that USER_MEM_ARGS can be used to overtide memory options. I tried that too. But it didnt work.

Any help would be much appreciated

Thanks!
Ranji
15 years ago
Hi

I am developing an application which updates the data in the UI

Here is the process followed in the application -

- fetch the data from DB
- display the form bean fields on the screen using indexed properties
- save the changes

When i submit after making the changes, it throws null exception which is as follows -
--------------------------------------------------------------------------------
java.lang.NullPointerException
at org.apache.commons.beanutils.PropertyUtils.setIndexedProperty(PropertyUtils.java:1458)
at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:1013)
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:495)

--------------------------------------------------------------------------------

I could infer that the fields in the form bean somehow became null when i submitted the page. I am using the same form bean throughout this process.
Could somebody help me in this ?

Thanks in advance,
Ranji
[ October 22, 2008: Message edited by: Ranjeeth Chandra ]
15 years ago