www.eachnet.com
Author: lifang Email: [email protected]
1
Axis2 客户端数据传送方式分为阻塞与阻塞方式
创建客户端方式大概有以下几种:
1. Creating a ServiceClient using Its Default Constructor
ServiceClient serviceClient = new ServiceClient ();
2. Creating a ServiceClient with Your Own ConfigurationContext
ServiceClient serviceClient = new ServiceClient (configContext, axisService);
3. Creating a Dynamic Client (Client on the Fly)
ServiceClient dynamicClient =new ServiceClient(configContext,wsdlURL,
wsdlServiceName, portName);
数据传送方式大概有以下几种:
1. Invoking a service in Blocking Manner(sendReceive())
a) Create client sub
b) Create OMElement
public OMElement createPayLoad() {
OMFactory fac = OMAbstractFactory.getOMFactory();
OMNamespace omNs = fac.createOMNamespace( "http://ws.apache.org/axis2",
"ns1");