Axis 开发soap web service: incompitable interface问题
2010-11-16 11:32
399 查看
During the soap web service development by axis 1, we met the issue for incompitable interface.
http://blog.csdn.net/pier2008/archive/2005/12/04/543365.aspx
http://hi.baidu.com/fytcm/blog/item/597f4fd345dfb9043bf3cff8.html
http://www.ibm.com/developerworks/webservices/library/ws-javaclient/index.html
In a word, web Services can be invoked in three different ways
1. Using Generated Stub
2. Using Dynamic Proxies
3. Using Dynamic Invocation Interface (DII)
In Generated Stub, client depends on generated interfaces of
service (last block in WSDL) and portType (business definition), and
their implemented stub & proxy classes. The code need to create the
specific service from generated stub, and get its specific portType
object from it. Then call business method
In Dynamic Invocation Interface, client does not care about the
generated service stub, but creates the framework “Service” object by
passing the actual service name. From the framework Service object, the
client gets the generated portType object by passing the portType name.
Then call the business method on the portType object
In Dynamic Invocation Interface (DII), the client does not use any
generated class. It creates a Service object, and creates a Call object
out of it. To the call object, client sets the name of Service, name of
portType and invoke it by passing an Object array of parameters.
In short, Generated Stub uses all generated classes
Dynamic Proxy uses only generated portType
DII does not use any generated classes
http://blog.csdn.net/pier2008/archive/2005/12/04/543365.aspx
http://hi.baidu.com/fytcm/blog/item/597f4fd345dfb9043bf3cff8.html
http://www.ibm.com/developerworks/webservices/library/ws-javaclient/index.html
In a word, web Services can be invoked in three different ways
1. Using Generated Stub
2. Using Dynamic Proxies
3. Using Dynamic Invocation Interface (DII)
In Generated Stub, client depends on generated interfaces of
service (last block in WSDL) and portType (business definition), and
their implemented stub & proxy classes. The code need to create the
specific service from generated stub, and get its specific portType
object from it. Then call business method
In Dynamic Invocation Interface, client does not care about the
generated service stub, but creates the framework “Service” object by
passing the actual service name. From the framework Service object, the
client gets the generated portType object by passing the portType name.
Then call the business method on the portType object
In Dynamic Invocation Interface (DII), the client does not use any
generated class. It creates a Service object, and creates a Call object
out of it. To the call object, client sets the name of Service, name of
portType and invoke it by passing an Object array of parameters.
In short, Generated Stub uses all generated classes
Dynamic Proxy uses only generated portType
DII does not use any generated classes
相关文章推荐
- Java RPC 通信机制之 SOAP:应用 Apache Axis进行 Web Service开发
- Java RPC通信机制之SOAP:应用Apache Axis进行Web Service开发
- [转]Java RPC通信机制之SOAP:应用Apache Axis进行Web Service开发
- Java RPC通信机制之SOAP:应用Apache Axis进行Web Service开发
- (引用)Java RPC通信机制之SOAP:应用Apache Axis进行Web Service开发
- 应用 AXIS 开发 Web Service
- ArcMap Add-in插件开发中解决VS调试时断点不会命中的问题
- web service:AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
- 使用Axis开发Web Service程序
- 使用Axis开发Web Service程序
- 使用Axis开发Web Service程序
- 基于axis 1.2 的web service 在weblogic 9.2 上发布时的一些问题解决方案
- JAVA+AXIS客户端调用Asp.net Web Service过程中遇到的问题及解决方法
- 使用SOAP开发java web服务--Axis开发方案
- Web Service开发及axis 的客户端使用
- 体味AXIS开发web service
- 通过Axis开发Web Service的一些要点,希望能让不熟悉Web Service的开发人员能够迅速掌握Web Service
- IOS开发之IAP(In-App Purchases)的Invalid Product IDs问题所在
- 请教高手!!!关于基于web service的云端应用软件开发的问题(初步)
- 开发中碰到的问题:Avoid non-default constructors in fragments: use a default constructor plus Fragment#setArg