aspose file tools*
The moose likes Web Services and the fly likes how to get webservice class name in server-config.wsdd instead of SOAPBinding class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "how to get webservice class name in server-config.wsdd instead of SOAPBinding class" Watch "how to get webservice class name in server-config.wsdd instead of SOAPBinding class" New topic
Author

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

maha laxmi
Ranch Hand

Joined: Sep 23, 2005
Posts: 68
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

Joined: Sep 23, 2005
Posts: 68
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

Joined: Sep 12, 2004
Posts: 290

You have to specify the following option to create the *Imp files.

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

Ahmad


OCP/MCP/SCJP/SCWCD/IBM XML/SCMAD/SCEA-1
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to get webservice class name in server-config.wsdd instead of SOAPBinding class