Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-23-2008, 08:50 AM
Member
 
Join Date: May 2008
Posts: 7
keshari is on a distinguished road
Problem related to WebService
Hey All

Me getting a frustating problem while making the webservice using Eclipse, jdk1.6.0_03,and Tomcat-5.0.
The overall scenario is like this.There is a class “WsEpp” of which I have to make webservice.”WsEpp” class is using the object of another class “EppService”, and if certain conditions will be fullfill then “EppService” class will use the object of another class “PrintClass”,which is allready using the object of class “PrintLib”.

“PrintLib” class is a long file and its using many classes which are in supported jar files.
Here is the some part of “PrintLib” where I am facing the problem,

Scenario-1

public epp_Command command_data = new epp_Command();

public PrintLib()
{
System.out.println("CONSTRUCTOR 1");
this.command_data = new epp_Command();
System.out.println("CONSTRUCTOR 2");

}


Here I am using the constructor of the “PrintLib” and “epp_Command” is included into jar files.When “WsEpp” is running as web service then

<faultcode>soapenv:Server.userException</faultcode>
<faultstring>java.lang.reflect.InvocationTargetExc eption</faultstring>

occurs as the response of webservice.

Scenario-2

//public epp_Command command_data = new epp_Command();

public PrintLib()
{

System.out.println("CONSTRUCTOR 1");
// this.command_data = new epp_Command();
System.out.println("CONSTRUCTOR 2");


}
When I am commenting the lines as shown in scenarion-2,then the service is running well and printing CONSTRUCTOR 1 and CONSTRUCTOR 2 as given in println command.
And response of webservice gives the desired result.




Scenario-3


public epp_Command command_data = null;

public PrintLib()
{
System.out.println("CONSTRUCTOR 1");
this.command_data = new epp_Command();
System.out.println("CONSTRUCTOR 2");

}

By using scenarion-3 the service is running and printing only CONSTRUCTOR 1 as given in println command.And also

<faultcode>soapenv:Server.userException</faultcode>
<faultstring>java.lang.reflect.InvocationTargetExc eption</faultstring>

occurs as the response of webservice.

I am suffering with this problem from last 2 weeks.Kindally help me and provide me the some suggestions and tips.In case of any more requirement I can provid ethe whole codes.

Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Please solve the problem related to PDf reader kavithaprabhaker New To Java 3 05-07-2008 01:21 PM
Math Related Problem perito Advanced Java 1 03-21-2008 09:53 AM
Math Related Problem perito New To Java 3 03-20-2008 06:22 PM
Writing webservice client javaplus Web Frameworks 0 12-19-2007 11:10 AM
Webservice ain't working? marcelman Networking 0 08-10-2007 03:48 AM


All times are GMT +3. The time now is 10:19 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org