/**
* BS_ZW_TEST_SI_TEST_JAVA_OUT1Stub.java
*
* This file was auto-generated from WSDL
* by the Apache Axis2 version: 1.4 Built on : Apr 26, 2008 (06:24:30 EDT)
*/
package com.test.invoke;
/*
* BS_ZW_TEST_SI_TEST_JAVA_OUT1Stub java implementation
*/
public class BS_ZW_TEST_SI_TEST_JAVA_OUT1Stub extends
org.apache.axis2.client.Stub {
protected org.apache.axis2.description.AxisOperation[] _operations;
// hashmaps to keep the fault mapping
private java.util.HashMap faultExceptionNameMap = new java.util.HashMap();
private java.util.HashMap faultExceptionClassNameMap = new java.util.HashMap();
private java.util.HashMap faultMessageMap = new java.util.HashMap();
private static int counter = 0;
private static synchronized String getUniqueSuffix() {
// reset the counter if it is greater than 99999
if (counter > 99999) {
counter = 0;
}
counter = counter + 1;
return Long.toString(System.currentTimeMillis()) + "_" + counter;
}
private void populateAxisService() throws org.apache.axis2.AxisFault {
// creating the Service with a unique name
_service = new org.apache.axis2.description.AxisService(
"BS_ZW_TEST_SI_TEST_JAVA_OUT1" + getUniqueSuffix());
addAnonymousOperations();
// creating the operations
org.apache.axis2.description.AxisOperation __operation;
_operations = new org.apache.axis2.description.AxisOperation[1];
__operation = new org.apache.axis2.description.OutOnlyAxisOperation();
__operation.setName(new javax.xml.namespace.QName("urn:test:java",
"SI_TEST_JAVA_OUT1"));
_service.addOperation(__operation);
_operations[0] = __operation;
}
// populates the faults
private void populateFaults() {
}
/**
* Constructor that takes in a configContext
*/
public BS_ZW_TEST_SI_TEST_JAVA_OUT1Stub(
org.apache.axis2.context.ConfigurationContext configurationContext,
java.lang.String targetEndpoint) throws org.apache.axis2.AxisFault {
this(configurationContext, targetEndpoint, false);
}
/**
* Constructor that takes in a configContext and useseperate listner
*/
public BS_ZW_TEST_SI_TEST_JAVA_OUT1Stub(
org.apache.axis2.context.ConfigurationContext configurationContext,
java.lang.String targetEndpoint, boolean useSeparateListener)
throws org.apache.axis2.AxisFault {
// To populate AxisService
populateAxisService();
populateFaults();
_serviceClient = new org.apache.axis2.client.ServiceClient(
configurationContext, _service);
configurationContext = _serviceClient.getServiceContext()
.getConfigurationContext();
_serviceClient.getOptions().setTo(
new org.apache.axis2.addressing.EndpointReference(
targetEndpoint));
_serviceClient.getOptions().setUseSeparateListener(useSeparateListener);
}
/**
* Default Constructor
*/
public BS_ZW_TEST_SI_TEST_JAVA_OUT1Stub(
org.apache.axis2.context.ConfigurationContext configurationContext)
throws org.apache.axis2.AxisFault {
this(
configurationContext,
"http://T-PIDEV:50000/XISOAPAdapter/MessageServlet?senderParty=&senderService=BS_ZW_TEST&receiverParty=&receiverService=&interface=SI_TEST_JAVA_OUT1&interfaceNamespace=urn%3Atest%3Ajava");
}
/**
* Default Constructor
*/
public BS_ZW_TEST_SI_TEST_JAVA_OUT1Stub() throws org.apache.axis2.AxisFault {
this(
"http://T-PIDEV:50000/XISOAPAdapter/MessageServlet?senderParty=&senderService=BS_ZW_TEST&receiverParty=&receiverService=&interface=SI_TEST_JAVA_OUT1&interfaceNamespace=urn%3Atest%3Ajava");
}
/**
* Constructor taking the target endpoint
*/
public BS_ZW_TEST_SI_TEST_JAVA_OUT1Stub(java.lang.String targetEndpoint)
throws org.apache.axis2.AxisFault {
this(null, targetEndpoint);
}
/**
* Auto generated method signature
*
*/
public void SI_TEST_JAVA_OUT1(
com.test.invoke.BS_ZW_TEST_SI_TEST_JAVA_OUT1Stub.MT_TEST_JAVA_PERSONS mT_TEST_JAVA_PERSONS0
) throws java.rmi.RemoteException
{
org.apache.axis2.context.MessageContext _messageContext = null;
org.apache.axis2.client.OperationClient _operationClient = _serviceClient
.createClient(_operations[0].getName());
_operationClient.getOptions().setAction(
"http://sap.com/xi/WebService/soap1.1");
_operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
addPropertyToOperationClient(
_operationClient,
org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
"&");
org.apache.axiom.soap.SOAPEnvelope env = null;
_messageContext = new org.apache.axis2.context.MessageContext();
// Style is Doc.
env = toEnvelope(getFactory(_operationClient.getOptions()
.getSoapVersionURI()), mT_TEST_JAVA_PERSONS0,
optimizeContent(new javax.xml.namespace.QName("urn:test:java",
"SI_TEST_JAVA_OUT1")));
// adding SOAP soap_headers
_serviceClient.addHeadersToEnvelope(env);
// create message context with that soap envelope
_messageContext.setEnvelope(env);
// add the message contxt to the operation client
_operationClient.addMessageContext(_messageContext);
_operationClient.execute(true);
_messageContext.getTransportOut().getSender().cleanup(_messageContext);
return;
}
/**
* A utility method that copies the namepaces from the SOAPEnvelope
*/
private java.util.Map getEnvelopeNamespaces(
org.apache.axiom.soap.SOAPEnvelope env) {
java.util.Map returnMap = new java.util.HashMap();
java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();
while (namespaceIterator.hasNext()) {
org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator
.next();
returnMap.put(ns.getPrefix(), ns.getNamespaceURI());
}
return returnMap;
}
private javax.xml.namespace.QName[] opNameArray = null;
private boolean optimizeContent(javax.xml.namespace.QName opName) {
if (opNameArray == null) {
return false;
}
for (int i = 0; i < opNameArray.length; i++) {
if (opName.equals(opNameArray[i])) {
return true;
}
}
return false;
}
// http://T-PIDEV:50000/XISOAPAdapter/MessageServlet?senderParty=&senderService=BS_ZW_TEST&receiverParty=&receiverService=&interface=SI_TEST_JAVA_OUT1&interfaceNamespace=urn%3Atest%3Ajava
public static class DT_TEST_JAVA_PERSON implements
org.apache.axis2.databinding.ADBBean {
/*
* This type was generated from the piece of schema that had name =
* DT_TEST_JAVA_PERSON Namespace URI = urn:test:java Namespace Prefix =
* ns1
*/
public DT_TEST_JAVA_PERSON(){
}
public DT_TEST_JAVA_PERSON(String id, String fname, String lname, String department){
this.setPersonID(id);
this.setFirstName(fname);
this.setLastName(lname);
this.setDepartment(department);
}
private static java.lang.String generatePrefix(
java.lang.String namespace) {
if (namespace.equals("urn:test:java")) {
return "ns1";
}
return org.apache.axis2.databinding.utils.BeanUtil
.getUniquePrefix();
}
/**
* field for PersonID
*/
protected java.lang.String localPersonID;
/*
* This tracker boolean wil be used to detect whether the user called
* the set method for this attribute. It will be used to determine
* whether to include this field in the serialized XML
*/
protected boolean localPersonIDTracker = false;
/**
* Auto generated getter method
*
* @return java.lang.String
*/
public java.lang.String getPersonID() {
return localPersonID;
}
/**
* Auto generated setter method
*
* @param param
* PersonID
*/
public void setPersonID(java.lang.String param) {
if (param != null) {
// update the setting tracker
localPersonIDTracker = true;
} else {
localPersonIDTracker = false;
}
this.loc
没有合适的资源?快使用搜索试试~ 我知道了~
Asix2 调用SAP PI Webservice
共87个文件
jar:59个
class:15个
java:5个
5星 · 超过95%的资源 需积分: 48 175 下载量 84 浏览量
2012-03-23
16:43:49
上传
评论 8
收藏 18.28MB RAR 举报
温馨提示
使用axis2-eclipse-codegen-wizard-1.4生成代理方法调用SAP PI发布的Webservice,因为codegen-wizard不能识别Policy节点,所以需要手工将Policy节点删掉,此实例为异步场景 文档 + 代码 + Jar
资源推荐
资源详情
资源评论
收起资源包目录
Axis2Webservice.rar (87个子文件)
Axis2Webservice
.project 391B
logs
test.log 220KB
src
log4j.xml 4KB
com
test
ws
MyWebservices.java 1KB
Person.java 1KB
invoke
InvokeTest.java 2KB
BS_ZW_TEST_SI_TEST_JAVA_OUT1Stub.java 61KB
BS_ZW_TEST_SI_TEST_JAVA_OUT1CallbackHandler.java 1KB
lib
axis2-json-1.4.1.jar 16KB
woden-impl-dom-1.0M8.jar 220KB
axis2-corba-1.4.1.jar 135KB
geronimo-stax-api_1.0_spec-1.0.1.jar 28KB
mail-1.4.jar 380KB
xml-resolver-1.2.jar 82KB
xercesImpl-2.8.1.jar 1.16MB
woden-api-1.0M8.jar 146KB
axis2-jaxws-1.4.1.jar 594KB
axis2-xmlbeans-1.4.1.jar 26KB
wsdl4j-1.6.2.jar 145KB
axis2-kernel-1.4.1.jar 1.23MB
activation-1.1.jar 62KB
jaxb-impl-2.1.6.jar 830KB
axiom-impl-1.2.7.jar 124KB
geronimo-annotation_1.0_spec-1.1.jar 12KB
axiom-dom-1.2.7.jar 149KB
geronimo-javamail_1.4_spec-1.2.jar 195KB
commons-httpclient-3.1.jar 298KB
jibx-bind-1.1.5.jar 324KB
jaxen-1.1.1.jar 222KB
axis2-adb-1.4.1.jar 759KB
axis2-spring-1.4.1.jar 11KB
httpcore-4.0-beta1.jar 164KB
axis2-jaxbri-1.4.1.jar 24KB
axis2-adb-codegen-1.4.1.jar 165KB
geronimo-activation_1.1_spec-1.0.1.jar 35KB
axis2-codegen-1.4.1.jar 236KB
axis2-java2wsdl-1.4.1.jar 26KB
commons-codec-1.3.jar 46KB
jibx-run-1.1.5.jar 103KB
axis2-jibx-1.4.1.jar 35KB
mex-1.41-impl.jar 33KB
backport-util-concurrent-3.1.jar 324KB
commons-logging-1.1.1.jar 59KB
wstx-asl-3.2.4.jar 508KB
jettison-1.0-RC2.jar 53KB
xml-apis-1.3.04.jar 190KB
axis2-mtompolicy-1.4.1.jar 10KB
annogen-0.1.0.jar 243KB
xmlbeans-2.3.0.jar 2.54MB
axis2-fastinfoset-1.4.1.jar 71KB
axis2-jaxws-api-1.4.1.jar 46KB
soapmonitor-1.4.1.jar 31KB
jaxb-api-2.1.jar 88KB
axis2-saaj-api-1.4.1.jar 30KB
antlr-2.7.7.jar 435KB
axis2-metadata-1.4.1.jar 736KB
log4j-1.2.15.jar 383KB
neethi-2.0.4.jar 32KB
axis2-saaj-1.4.1.jar 84KB
jaxb-xjc-2.1.6.jar 2.98MB
xalan-2.7.0.jar 2.6MB
httpcore-nio-4.0-beta1.jar 148KB
axiom-api-1.2.7.jar 194KB
axis2-jws-api-1.4.1.jar 14KB
commons-io-1.4.jar 106KB
commons-fileupload-1.2.jar 52KB
XmlSchema-1.4.2.jar 137KB
doc
axis2_WebService_开发指南.docx 601KB
.settings
org.eclipse.jdt.core.prefs 629B
build
classes
lib
build.xml 5KB
.classpath 4KB
bin
log4j.xml 4KB
com
test
ws
MyWebservices.class 2KB
Person.class 2KB
invoke
BS_ZW_TEST_SI_TEST_JAVA_OUT1Stub$DT_TEST_JAVA_PERSONS.class 9KB
BS_ZW_TEST_SI_TEST_JAVA_OUT1Stub$DT_TEST_JAVA_PERSON.class 10KB
BS_ZW_TEST_SI_TEST_JAVA_OUT1Stub$MT_TEST_JAVA_PERSONS$Factory.class 3KB
BS_ZW_TEST_SI_TEST_JAVA_OUT1Stub.class 10KB
BS_ZW_TEST_SI_TEST_JAVA_OUT1Stub$ExtensionMapper.class 2KB
BS_ZW_TEST_SI_TEST_JAVA_OUT1Stub$DT_TEST_JAVA_PERSON$Factory.class 4KB
BS_ZW_TEST_SI_TEST_JAVA_OUT1Stub$DT_TEST_JAVA_PERSONS$1.class 2KB
BS_ZW_TEST_SI_TEST_JAVA_OUT1Stub$MT_TEST_JAVA_PERSONS$1.class 2KB
InvokeTest.class 3KB
BS_ZW_TEST_SI_TEST_JAVA_OUT1Stub$MT_TEST_JAVA_PERSONS.class 7KB
BS_ZW_TEST_SI_TEST_JAVA_OUT1Stub$DT_TEST_JAVA_PERSONS$Factory.class 4KB
BS_ZW_TEST_SI_TEST_JAVA_OUT1Stub$DT_TEST_JAVA_PERSON$1.class 2KB
BS_ZW_TEST_SI_TEST_JAVA_OUT1CallbackHandler.class 659B
共 87 条
- 1
赵伟0315
- 粉丝: 25
- 资源: 124
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 直接插入排序,冒泡排序,直接选择排序.zip
- 在排序2的基础上,再次对快排进行优化,其次增加快排非递归,归并排序,归并排序非递归版.zip
- 实现了7种排序算法.三种复杂度排序.三种nlogn复杂度排序(堆排序,归并排序,快速排序)一种线性复杂度的排序.zip
- 冒泡排序 直接选择排序 直接插入排序 随机快速排序 归并排序 堆排序.zip
- 课设-内部排序算法比较 包括冒泡排序、直接插入排序、简单选择排序、快速排序、希尔排序、归并排序和堆排序.zip
- Python排序算法.zip
- C语言实现直接插入排序、希尔排序、选择排序、冒泡排序、堆排序、快速排序、归并排序、计数排序,并带图详解.zip
- 常用工具集参考用于图像等数据处理
- 音乐展示网页、基于Stenography的图像数字水印添加与提取,以及基于颜色矩和Tamura算法的图像相似度评估算法py源码
- 基于EmguCV(OpenCV .net封装),图像数字水印加解密算法的实现,其中包含最低有效位算法,离散傅里叶变换算法+文档书
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
前往页