lumis.portal.webservice
Class WebServiceWsdlServletFilter
java.lang.Object
lumis.portal.webservice.WebServiceWsdlServletFilter
- All Implemented Interfaces:
- Filter
public class WebServiceWsdlServletFilter
- extends Object
- implements Filter
Servlet filter that replaces the part name of the WSDL generated by Axis2, in order to allow .NET clients generate
more friendly stub classes.
When generating services WSDL, Axis2 uses 'part1' as name for WSDL parts. .NET stub generator needs that WSDL
parts be named as 'parameters', in order to unwrap parameters of service methods. This filter performs replaces the
part name generated by Axis2 by the name preferred by .NET generator, in order to allow this to create client stub classes
with unwrapped parameters, giving an easy time to .NET client developers.
Note that replacing or not the part name, Axis2, differing from .NET, generates client stub classes always with wrapped
parameters, reproducing the WSDL wrapped definition. In future versions of Axis2, maybe it will unwrap parameters
automatically, as .NET client stub generator does.
Example of C# .NET client stub invocation, with unwrapped parameters:
AuthenticationService svc = new AuthenticationService();
svc.Url = "http://localhost:8080/portal/webservice/AuthenticationService";
string userSessionId = authenticationService.loginUser("username", "password");
Example of Java Axis2 client stub invocation, with wrapped parameters:
AuthenticationServiceStub.LoginUser loginUserParam = new AuthenticationServiceStub.LoginUser();
loginUserParam.setLogin("username");
loginUserParam.setPassword("password");
AuthenticationServiceStub authenticationService = new AuthenticationServiceStub(null, "http://localhost:8080/portal/webservice/AuthenticationService");
AuthenticationServiceStub.LoginUserResponse loginUserResponse = authenticationService.loginUser(loginUserParam);
String userSessionId = loginUserResponse.get_return();
- Since:
- 4.0.9
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebServiceWsdlServletFilter
public WebServiceWsdlServletFilter()
destroy
public void destroy()
- Specified by:
destroy
in interface Filter
doFilter
public void doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
throws IOException,
ServletException
- Specified by:
doFilter
in interface Filter
- Throws:
IOException
ServletException
init
public void init(FilterConfig arg0)
throws ServletException
- Specified by:
init
in interface Filter
- Throws:
ServletException
Lumisportal 4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.