Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to get webservice class name in server-config.wsdd instead of SOAPBinding class

 
maha laxmi
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
below is the webservice class deployed at server side .i am using axis for webservices.

i am using WSDL2Java for generating client stubs.other than client stubs it also gives deploy.wsdd.

using AdminClient command i am deploying webservice at server side...

AdminClient deploy.wsdd

when i open server-config.wsdd to see whether webservice deployed correctly or not,but the class name always comes only stub class name not webservice class name;

when i run the server at the server side it will throw me an exception EmployeeSOAPBindingImpl class not found .its true because these classes will be at client side.



Instead of this

<parameter name="className" value="com.employee.java.EmployeeServiceHelper"/>

I am getting this in server-config.wsdd file;

<parameter name="className" value="com.employee.java.EmployeeSOAPBindingImpl"/>







Web service class
******************


public class EmployeeServiceHelper
{
public EmployeeResponse[] getEmployee(EmployeeRequest employeeRequest)
{

EmployeeResponse[] employeeResponse = null;
RatingFault fault =null;
try
{

InitialContext taxEngineContext = new InitialContext();
EmployeeSessionHome home = (EmployeeSessionHome)taxEngineContext.lookup("EmployeeSessionBean");
EmployeeSession remote = (EmployeeSession)home.create();
employeeResponse = remote.getEmployee(employeeRequest);




}

}
catch(Exception e)
{
e.printStackTrace();
}
return employeeResponse;
}
}
 
maha laxmi
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here is the example given in the below link where i got fibonacci.ws.FibonacciSoapBindingImpl in deploy.wsdd; you can test urself;

when you deploy your webservice at server side you need to have Fibonacci class not FibonacciSoapBindingImpl class;am i right??

http://www.onjava.com/pub/a/onjava/2002/06/05/axis.html?page=2

i think once stubs are generated ,in deploy.wsdd we need to change manually className FibonacciSoapBindingImpl to Fibonacci class..i think i am going in the right direction
 
Aryan Khan
Ranch Hand
Posts: 290
Java Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to specify the following option to create the *Imp files.

java org.apache.axis.wsdl.WSDL2Java --server-side myWsdl.wsdl

Ahmad
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic