D. Deepak Sharma

Ranch Hand
+ Follow
since May 12, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by D. Deepak Sharma

Anton Novopashin wrote:Hi,
You can do it, pleare read first this article XML, SOAP, Binary Data



but how to create the text file into xml and then how to send it to the web service or to client using programming. I mean how to embed these files into the SOAP headers...
12 years ago
Hi guys! I am so confused that I dont know how to send a text file to a web service and in return the Server will return another text file back to the client. Can anybody suggest me how to perform the operation. I have to work with java, axis2, ant and tomcat. please help be out with simple and effective solution.
12 years ago

I am trring to write a web service for currency conversion where client pass the arguments say type of currency for conversion and the parameters pass to web service and then calculate the conversion and return the result.



I am Trying to call a method in my ADB client from stub class but can not pass the arguments to it and can't get the desired outcome. the code is given. I used TCPMON to intercept the message passing but couldn't figure out. But one thing is sure the method is not being called on 0.0 comes as the return value.

MyConverterClientADB.java

package converter.client;



Client's build.xml



client's build.properties



CurrencyConverter.java Server's pojo service code



services.xml




server's build.xml

12 years ago
this wdsl code is just the result of build.xml when the service was created no need to go thorugh with it..... it will be generated again if processed ... i will omit that anyways...
12 years ago
Hey please can anybody help me out because i can not find a way out....
12 years ago

I am trring to write a web service for currency conversion where client pass the arguments say type of currency for conversion and the parameters pass to web service and then calculate the conversion and return the result.

I am Trying to call a method in my ADB client from stub class but can not pass the arguments to it and can't get the desired outcome. the code is given. I used TCPMON to intercept the message passing but couldn't figure out. But one thing is sure the method is not being called on 0.0 comes as the return value.


MyConverterClientADB.java

Client's build.xml


client's build.properties



This Generated Client Stub


CurrencyConverter.java Server's pojo service code


services.xml



server's build.xml

12 years ago
Hi guys

As i started new project using struts 1.3 I wrote web.xml code as below:


The same code also worked on my previous projects as well but now i am getting this error:

file name references to "index.jsp" that does not exist in web content


while I have the same in web content folder. Please tell what it is trying to say.
12 years ago
Hello I am writing a code to validate the credentials of user that is username and user id from my data base and called chkValue(uid, uname) method

The action class code is like this:

here i am getting data from ActionForm class and want that data get authorization from chkValue() method from diff class where I can retrieve data using hibernate from the database.
there are 2 main problem

  • how to pass these parameter to checkValue class
  • How to retrieve data using Hibernate 3.6 and write the code for chkValue() method and return value so appropriate mapping can be called.

  • Hello I am writing a code to validate the credentials of user that is username and user id from my data base and called chkValue(uid, uname) method

    The action class code is like this:

    here i am getting data from ActionForm class and want that data get authorization from chkValue() method from diff class where I can retrieve data using hibernate from the database
    there are 2 main problem

  • how to pass these parameter to checkValue class
  • How to retrieve data using Hibernate and write the code for chkValue() method and return value so appropriate mapping can be called.

  • 12 years ago
    Hi everyone I want to Develop a program where a user can visit a page say Registration page and there are fields in that page as userid, username when user press submit button then he will see Welcome page if credentials are correct if not then a error message is displayed if user is new then he will register himself and then page would have an additional field say confirm password and then will be displayed. I want to use Hibernate 3.6 with derby database to store userid and username.


    Now I want to create this program using struts 1.3. For username and userid i want to use a database, now I am not able develop a model class where i can put my code that extracts the userid from the database and match it with userid field from ActionForm. I can enter the values in database but can not retrieve the userid from the database but If i retrieve the value then how I can pass the values from the Action class to model class for verification that is the user exists or not.

    Kindly tell me how to Write a model class where I can perform these validation because I want to clean my Action class.


    Thanks and Regards
    Deepak Sharma
    Hi everyone I want to Develop a program where a user can visit a page say Registration page and there are fields in that page as userid, username when user press submit button then he will see Welcome page if credentials are correct if not then a error message is displayed if user is new then he will register himself and then page would have an additional field say confirm password and then will be displayed. I want to use Hibernate 3.6 with derby database to store userid and username.


    Now I want to create this program using struts 1.3. For username and userid i want to use a database, now I am not able develop a model class where i can put my code that extracts the userid from the database and match it with userid field from ActionForm. I can enter the values in database but can not retrieve the userid from the database but If i retrieve the value then how I can pass the values from the Action class to model class for verification that is the user exists or not.

    Kindly tell me how to Write a model class where I can perform these validation because I want to clean my Action class.


    Thanks and Regards
    Deepak Sharma
    12 years ago
    Sir,

    I have one more last question for the day that if you have noticed that in our HibernateUtils.class we have a function called createSession() but when it comes to use that function in our action class we simply call the openFactory()/createFactory() function and then use that typecasted object for creating new connection/ to use openSession() menthod and that Thread safe session instance remain unused as that creatSession() is never called in action class, Is there any flaw in what I am saying please Sir, clearify me!

    Regards,
    Deepak
    12 years ago
    Sir after writing the static function it ran,

  • Now sir how to render the rows of the resultset
  • How to edit my rows or column data using struts and model classes mean display on jsp page or show the result by retrieving the selected rows or columns


  • Thanks and Regards,
    Deepak Sharma
    12 years ago
    12 years ago
    Dear Sir,

    Due to some technical glitches right now I am not able to work further for 1 - 2 days so give me a day or 2 so that i can further proceed with our project.

    Thanks and Regards,

    Deepak
    12 years ago