Java Doc for JAXWSProxyHandler.java in  » Web-Services-AXIS2 » jax-ws » org » apache » axis2 » jaxws » client » proxy » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Services AXIS2 » jax ws » org.apache.axis2.jaxws.client.proxy 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.axis2.jaxws.BindingProvider
      org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler

JAXWSProxyHandler
public class JAXWSProxyHandler extends BindingProvider implements InvocationHandler(Code)
ProxyHandler is the java.lang.reflect.InvocationHandler implementation. When a JAX-WS client calls the method on a proxy object, created by calling the ServiceDelegate.getPort(...) method, the inovke method on the ProxyHandler is called.

ProxyHandler uses EndpointInterfaceDescriptor and finds out if 1) The client call is Document Literal or Rpc Literal 2) The WSDL is wrapped or unWrapped.

ProxyHandler then reads OperationDescription using Method name called by Client From OperationDescription it does the following 1) if the wsdl isWrapped() reads RequestWrapper Class and responseWrapperClass 2) then reads the webParams for the Operation.

isWrapped() = true and DocLiteral then ProxyHandler then uses WrapperTool to create Request that is a Wrapped JAXBObject. Creates JAXBBlock using JAXBBlockFactory Creates MessageContext->Message and sets JAXBBlock to xmlPart as RequestMsgCtx in InvocationContext. Makes call to InvocationController. Reads ResponseMsgCtx ->MessageCtx->Message->XMLPart. Converts that to JAXBlock using JAXBBlockFactory and returns the BO from this JAXBBlock.

isWrapped() != true and DocLiteral then ProxyHandler creates the JAXBBlock for the input request creates a MessageContext that is then used by IbvocationController to invoke. Response is read and return object is derived using @Webresult annotation. A JAXBBlock is created from the Response and the BO from JAXBBlock is returned.



Field Summary
protected  ServiceDescriptionserviceDesc
    

Constructor Summary
public  JAXWSProxyHandler(ServiceDelegate delegate, Class seiClazz, EndpointDescription epDesc)
    

Method Summary
protected  MessageContextcreateRequest(Method method, Object[] args)
     Creates a request MessageContext for the method call.
protected  ObjectcreateResponse(Method method, Object[] args, MessageContext responseContext, OperationDescription operationDesc)
     Creates a response MessageContext for the method call.
protected static  ThrowablegetFaultResponse(MessageContext msgCtx, OperationDescription opDesc)
    
public  ClassgetSeiClazz()
    
protected static  booleanhasFaultResponse(MessageContext mc)
    
public  Objectinvoke(Object proxy, Method method, Object[] args)
    
protected  booleanisAsync()
    
public  voidsetSeiClazz(Class seiClazz)
    

Field Detail
serviceDesc
protected ServiceDescription serviceDesc(Code)




Constructor Detail
JAXWSProxyHandler
public JAXWSProxyHandler(ServiceDelegate delegate, Class seiClazz, EndpointDescription epDesc)(Code)




Method Detail
createRequest
protected MessageContext createRequest(Method method, Object[] args) throws Throwable(Code)
Creates a request MessageContext for the method call. This request context will be used by InvocationController to route the method call to axis engine.
Parameters:
  method - - The method invoked on the proxy object.
Parameters:
  args - - The parameter list A MessageContext that can be used for the invocation



createResponse
protected Object createResponse(Method method, Object[] args, MessageContext responseContext, OperationDescription operationDesc) throws Throwable(Code)
Creates a response MessageContext for the method call. This response context will be used to create response result to the client call.
Parameters:
  method - - The method invoked on the proxy object.
Parameters:
  args - - The parameter list.
Parameters:
  responseContext - - The MessageContext to be used for the response.
Parameters:
  operationDesc - - The OperationDescription that for the invoked method.



getFaultResponse
protected static Throwable getFaultResponse(MessageContext msgCtx, OperationDescription opDesc)(Code)



getSeiClazz
public Class getSeiClazz()(Code)



hasFaultResponse
protected static boolean hasFaultResponse(MessageContext mc)(Code)



invoke
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable(Code)



isAsync
protected boolean isAsync()(Code)



setSeiClazz
public void setSeiClazz(Class seiClazz)(Code)



Fields inherited from org.apache.axis2.jaxws.BindingProvider
protected EndpointDescription endpointDesc(Code)(Java Doc)
protected Map<String, Object> requestContext(Code)(Java Doc)
protected Map<String, Object> responseContext(Code)(Java Doc)
protected ServiceDelegate serviceDelegate(Code)(Java Doc)

Methods inherited from org.apache.axis2.jaxws.BindingProvider
protected void checkMaintainSessionState(MessageContext mc, InvocationContext ic)(Code)(Java Doc)
public Binding getBinding()(Code)(Java Doc)
public EndpointDescription getEndpointDescription()(Code)(Java Doc)
public Map<String, Object> getRequestContext()(Code)(Java Doc)
public Map<String, Object> getResponseContext()(Code)(Java Doc)
public ServiceDelegate getServiceDelegate()(Code)(Java Doc)
public void setBinding(Binding binding)(Code)(Java Doc)
protected void setupSessionContext(Map<String, Object> properties)(Code)(Java Doc)
protected boolean useSoapAction()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.