Java Doc for Dispatch.java in  » 6.0-JDK-Modules » jax-ws-api » javax » xml » ws » 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 » 6.0 JDK Modules » jax ws api » javax.xml.ws 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.xml.ws.Dispatch

Dispatch
public interface Dispatch extends BindingProvider(Code)
The Dispatch interface provides support for the dynamic invocation of a service endpoint operations. The javax.xml.ws.Service interface acts as a factory for the creation of Dispatch instances.
since:
   JAX-WS 2.0




Method Summary
public  Tinvoke(T msg)
     Invoke a service operation synchronously. The client is responsible for ensuring that the msg object when marshalled is formed according to the requirements of the protocol binding in use.
Parameters:
  msg - An object that will form the message or payload ofthe message used to invoke the operation.
public  Response<T>invokeAsync(T msg)
     Invoke a service operation asynchronously.
public  FutureinvokeAsync(T msg, AsyncHandler<T> handler)
     Invoke a service operation asynchronously.
public  voidinvokeOneWay(T msg)
     Invokes a service operation using the one-way interaction mode.



Method Detail
invoke
public T invoke(T msg)(Code)
Invoke a service operation synchronously. The client is responsible for ensuring that the msg object when marshalled is formed according to the requirements of the protocol binding in use.
Parameters:
  msg - An object that will form the message or payload ofthe message used to invoke the operation. The response message or message payload to theoperation invocation.
throws:
  WebServiceException - If a fault occurs during communication withthe service
throws:
  WebServiceException - If there is any error in the configuration ofthe Dispatch instance



invokeAsync
public Response<T> invokeAsync(T msg)(Code)
Invoke a service operation asynchronously. The method returns without waiting for the response to the operation invocation, the results of the operation are obtained by polling the returned Response.

The client is responsible for ensuring that the msg object when marshalled is formed according to the requirements of the protocol binding in use.
Parameters:
  msg - An object that will form the message or payload ofthe message used to invoke the operation. The response message or message payload to theoperation invocation.
throws:
  WebServiceException - If there is any error in the configuration ofthe Dispatch instance




invokeAsync
public Future invokeAsync(T msg, AsyncHandler<T> handler)(Code)
Invoke a service operation asynchronously. The method returns without waiting for the response to the operation invocation, the results of the operation are communicated to the client via the passed in handler.

The client is responsible for ensuring that the msg object when marshalled is formed according to the requirements of the protocol binding in use.
Parameters:
  msg - An object that will form the message or payload ofthe message used to invoke the operation.
Parameters:
  handler - The handler object that will receive theresponse to the operation invocation. A Future object that may be used to check the statusof the operation invocation. This object MUST NOT be used to try toobtain the results of the operation - the object returned fromFuture<?>.get() is implementation dependentand any use of it will result in non-portable behaviour.
throws:
  WebServiceException - If there is any error in the configuration ofthe Dispatch instance




invokeOneWay
public void invokeOneWay(T msg)(Code)
Invokes a service operation using the one-way interaction mode. The operation invocation is logically non-blocking, subject to the capabilities of the underlying protocol, no results are returned. When the protocol in use is SOAP/HTTP, this method MUST block until an HTTP response code has been received or an error occurs.

The client is responsible for ensuring that the msg object when marshalled is formed according to the requirements of the protocol binding in use.
Parameters:
  msg - An object that will form the message or payload ofthe message used to invoke the operation.
throws:
  WebServiceException - If there is any error in the configuration ofthe Dispatch instance or if an error occurs during theinvocation.




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