自从JavaEye将CXF2.0发布的消息置顶之后,我一下收到好几个朋友的来信,他们除了对CXF使用表现了极大兴趣以外,也对CXF以及JAXWS的具体实现表现出了很大的热忱。
下面是他在信中提的几个问题:
“如何才能够学好web services呢?
不仅仅是熟悉cxf这样的框架,而是真正了解和掌握,包括协议细节,传输过程,以及设计合理的web services甚至开发自己的简单webservices框架。
不知您对以上过程有什么建议呢?有没有什么推荐的学习蓝图?”
对于第一个问题,真的很难回答,我想很多人都有自己的答案。
我们先从第二个问题开始,下面是我摘抄自 SOA: Using Java Web Services 第一章中的有关服务器和客户端消息通讯流程中的相关重要步骤,希望能对大家学习 Web Services 有所帮助。
有关学习Web Services 的学习蓝图请参见我的另一篇Blog Web Services学习资源
服务端调用
1. Receiving a SOAP message from a transport
2. Invoking handlers that preprocess the message
3. Determining the message’s target service
4. Determining the Java target is referred to as dispatching
5. Deserialize the message into Java objects ( paramenters)
6. Invoking the Java target using the paramenters and getting the Java object retruned by the target method
7. Serialize the retrun object into an XML element
8. Wrapping the retruned XML element as a SOAP message response
9. Handing the SOAP response back to the transport for delivery
客户端的调用
1. Creating an instance of the Web service endpoint which is implementing the SEI (Service Endpoint Interface).
[SEI instances are implemented using Java proxies and invocation handlers]
2. Handling an invocation of the SEI instance
3. Taking the paramenters passed to the SEI and serialized them into XML elements
4. Wrapping the paramenter elements in a SOAP message
5. Invoking handlers that post-process the message
6. Handing off the message to the transport for delivery
7. Receiving the SOAP message response from the transport
8. deserialized the message into a Java object that is an instance of the class specified by the SEI's return type.
9. Completing the invocation of the SEI by retruning the deserialized SOAP response
分享到:
相关推荐
Chapter 1, Apache Web Services and Axis2 - Gives you an introduction to web services and the web service stack at Apache. Chapter 2, Looking inside Axis2 - Learn about Axis2 architecture and the ...
Semantic Web Services 1 - Toward Automatic Discovery and Invocation of Information-Providing Web Services
View and Delete Movies (Java API for RESTful Web Services) Add Movie (Java API for JSON Processing) Ticket Sales (Batch Applications for the Java Platform) Movie Points (Java Message Service 2) ...
Asynchronous Web Service Invocation with JAX-WS 2.0
Invocation生命周期,Session生命周期,Server生命周期
客户端与服务端的代码 RMI全名叫做 remote method invocation
NULL 博文链接:https://kdisk-sina-com.iteye.com/blog/258942
解决axis2-CodegenWizardPlugin的BUG,java.lang.reflect.InvocationTargetException 带有相关jar 包及相关文件
faultString: java.lang.reflect.InvocationTargetException faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace: AxisFault faultCode: {...
CL_Invocation.ps1
MyEclipse6.0下axis2插件的安装! 解决java.lang.reflect.InvocationTargetException本人亲自测试,完美使用!
MyEclipse axis2 wsdl java.lang.reflect.invocationtargetexception code gen 大家要注意一定要仔细,这个问题基本上缺少包引起的,而且一定要clean 如果需要axis2插件 以及这个plugins中的包在我的其他资源里面有
odi-sdk-invocation.jar
Creating a Script on Your Web Server H Calling a CGI Script Directly H Limiting Data-File Size H Using the Location Header H Using CGI in Server-Side Includes H G From Here G Chapter 3 Advanced...
Controller Invocation 14 Summary 17 Chapter 2: Web 2.0 with Traditional Python 19 Old-School Web Technologies 19 XML 19 HTML 21 HTTP 23 SQL 24 JavaScript 25 CGI and Python 25 A Simple ...
本文主要描述如何使用Apache开源项目Axis提供的API来实现Web Services。本文中的提到的例子只为了方便本文的描述而提出,有不妥之处请见谅。 本文的读者应有JAVA web 应用开发基础。应该具有看过WSDL,SOAP,XML等的...
远程方法调用 -- Remote Method Invocation-
The Client/Server Model Section 2.6. Internet Standards Chapter 3. Basic Web Concepts Section 3.1. URIs Section 3.2. HTML, SGML, and XML Section 3.3. HTTP Section 3.4. MIME Media Types ...
主要介绍了JQuery报错"Uncaught TypeError: Illegal invocation"的处理方法,需要的朋友可以参考下