Created
December 9, 2013 06:06
-
-
Save asiriwork/7868087 to your computer and use it in GitHub Desktop.
OP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?><project basedir="." default="jar.client"> | |
<!--Auto generated ant build file--> | |
<property environment="env"/> | |
<property name="axis2.home" value="${env.AXIS2_HOME}"/> | |
<property name="project.base.dir" value="."/> | |
<property name="maven.class.path" value=""/> | |
<property name="name" value="Oder_Process_Sec"/> | |
<property name="src" value="${project.base.dir}/src"/> | |
<property name="test" value="${project.base.dir}/test"/> | |
<property name="build" value="${project.base.dir}/build"/> | |
<property name="classes" value="${build}/classes"/> | |
<property name="lib" value="${build}/lib"/> | |
<property name="resources" value="${project.base.dir}/resources"/> | |
<property name="jars.ok" value=""/> | |
<path id="axis2.class.path"> | |
<pathelement path="${java.class.path}"/> | |
<pathelement path="${maven.class.path}"/> | |
<fileset dir="${axis2.home}"> | |
<include name="lib/*.jar"/> | |
</fileset> | |
</path> | |
<target name="init"> | |
<mkdir dir="${build}"/> | |
<mkdir dir="${classes}"/> | |
<mkdir dir="${lib}"/> | |
</target> | |
<target name="pre.compile.test" depends="init"> | |
<!--Test the classpath for the availability of necesary classes--> | |
<available classname="javax.xml.stream.XMLStreamReader" property="stax.available" classpathref="axis2.class.path"/> | |
<available classname="org.apache.axis2.engine.AxisEngine" property="axis2.available" classpathref="axis2.class.path"/> | |
<condition property="jars.ok"> | |
<and> | |
<isset property="stax.available"/> | |
<isset property="axis2.available"/> | |
</and> | |
</condition> | |
<!--Print out the availabilities--> | |
<echo message="Stax Availability= ${stax.available}"/> | |
<echo message="Axis2 Availability= ${axis2.available}"/> | |
</target> | |
<target name="compile.src" depends="pre.compile.test" if="jars.ok"> | |
<javac fork="true" memoryInitialSize="256m" memoryMaximumSize="256m" debug="on" destdir="${classes}" srcdir="${src}"> | |
<classpath refid="axis2.class.path"/> | |
</javac> | |
</target> | |
<target name="compile.test" depends="compile.src" if="jars.ok"> | |
<javac fork="true" memoryInitialSize="256m" memoryMaximumSize="256m" debug="on" destdir="${classes}"> | |
<src path="${test}"/> | |
<classpath refid="axis2.class.path"/> | |
</javac> | |
</target> | |
<target name="echo.classpath.problem" depends="pre.compile.test" unless="jars.ok"> | |
<echo message="The class path is not set right! Please make sure the following classes are in the classpath 1. XmlBeans 2. Stax 3. Axis2 "/> | |
</target> | |
<target name="jar.all" depends="jar.server, jar.client"/> | |
<target name="jar.server" depends="compile.src,echo.classpath.problem" if="jars.ok"> | |
<copy toDir="${classes}/META-INF" failonerror="false"> | |
<fileset dir="${resources}"> | |
<include name="*.xml"/> | |
<include name="*.wsdl"/> | |
<include name="*.xsd"/> | |
</fileset> | |
</copy> | |
<jar destfile="${lib}/${name}.aar"> | |
<fileset excludes="**/Test.class" dir="${classes}"/> | |
</jar> | |
</target> | |
<target name="jar.client" if="jars.ok" depends="compile.src"> | |
<jar destfile="${lib}/${name}-test-client.jar"> | |
<fileset dir="${classes}"> | |
<exclude name="**/META-INF/*.*"/> | |
<exclude name="**/lib/*.*"/> | |
<exclude name="**/*MessageReceiver.class"/> | |
<exclude name="**/*Skeleton.class"/> | |
</fileset> | |
</jar> | |
</target> | |
<target name="make.repo" depends="jar.server" if="jars.ok"> | |
<mkdir dir="${build}/repo/"/> | |
<mkdir dir="${build}/repo/services"/> | |
<copy file="${build}/lib/${name}.aar" toDir="${build}/repo/services/"/> | |
</target> | |
<target name="start.server" depends="make.repo" if="jars.ok"> | |
<java classname="org.apache.axis2.transport.http.SimpleHTTPServer" fork="true"> | |
<arg value="${build}/repo"/> | |
<classpath refid="axis2.class.path"/> | |
</java> | |
</target> | |
<target name="run.test" depends="compile.test" if="jars.ok"> | |
<path id="test.class.path"> | |
<pathelement location="${lib}/${name}-test-client.jar"/> | |
<path refid="axis2.class.path"/> | |
<pathelement location="${classes}"/> | |
</path> | |
<mkdir dir="${build}/test-reports/"/> | |
<junit printsummary="yes" haltonfailure="yes"> | |
<classpath refid="test.class.path"/> | |
<formatter type="plain"/> | |
<batchtest fork="yes" toDir="${build}/test-reports/"> | |
<fileset dir="${test}"> | |
<include name="**/*Test*.java"/> | |
</fileset> | |
</batchtest> | |
</junit> | |
</target> | |
<target name="clean"> | |
<delete dir="${build}"/> | |
</target> | |
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Oder_Process_SecCallbackHandler.java | |
* | |
* This file was auto-generated from WSDL | |
* by the Apache Axis2 version: 1.6.1-wso2v9 Built on : Jun 17, 2013 (12:52:35 PDT) | |
*/ | |
package wtp; | |
/** | |
* Oder_Process_SecCallbackHandler Callback class, Users can extend this class and implement | |
* their own receiveResult and receiveError methods. | |
*/ | |
public abstract class Oder_Process_SecCallbackHandler{ | |
protected Object clientData; | |
/** | |
* User can pass in any object that needs to be accessed once the NonBlocking | |
* Web service call is finished and appropriate method of this CallBack is called. | |
* @param clientData Object mechanism by which the user can pass in user data | |
* that will be avilable at the time this callback is called. | |
*/ | |
public Oder_Process_SecCallbackHandler(Object clientData){ | |
this.clientData = clientData; | |
} | |
/** | |
* Please use this constructor if you don't want to set any clientData | |
*/ | |
public Oder_Process_SecCallbackHandler(){ | |
this.clientData = null; | |
} | |
/** | |
* Get the client data | |
*/ | |
public Object getClientData() { | |
return clientData; | |
} | |
/** | |
* auto generated Axis2 call back method for checkItemAvailabiltiy method | |
* override this method for handling normal response from checkItemAvailabiltiy operation | |
*/ | |
public void receiveResultcheckItemAvailabiltiy( | |
wtp.Oder_Process_SecStub.CheckItemAvailabiltiyResponse result | |
) { | |
} | |
/** | |
* auto generated Axis2 Error handler | |
* override this method for handling error response from checkItemAvailabiltiy operation | |
*/ | |
public void receiveErrorcheckItemAvailabiltiy(java.lang.Exception e) { | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Oder_Process_SecStub.java | |
* | |
* This file was auto-generated from WSDL | |
* by the Apache Axis2 version: 1.6.1-wso2v9 Built on : Jun 17, 2013 (12:52:35 PDT) | |
*/ | |
package wtp; | |
/* | |
* Oder_Process_SecStub java implementation | |
*/ | |
public class Oder_Process_SecStub 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 java.lang.String getUniqueSuffix(){ | |
// reset the counter if it is greater than 99999 | |
if (counter > 99999){ | |
counter = 0; | |
} | |
counter = counter + 1; | |
return java.lang.Long.toString(java.lang.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("Oder_Process_Sec" + 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.OutInAxisOperation(); | |
__operation.setName(new javax.xml.namespace.QName("http://wtp", "checkItemAvailabiltiy")); | |
_service.addOperation(__operation); | |
(__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_OUT_VALUE).getPolicySubject().attachPolicy(getPolicy("<wsp:Policy xmlns:wsp=\"http://schemas.xmlsoap.org/ws/2004/09/policy\"><wsp:ExactlyOne><wsp:All><sp:AsymmetricBinding xmlns:sp=\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\">\n <wsp:Policy>\n <sp:InitiatorToken>\n <wsp:Policy>\n <sp:X509Token sp:IncludeToken=\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient\">\n <wsp:Policy>\n <sp:WssX509V3Token10 />\n </wsp:Policy>\n </sp:X509Token>\n </wsp:Policy>\n </sp:InitiatorToken>\n <sp:RecipientToken>\n <wsp:Policy>\n <sp:X509Token sp:IncludeToken=\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never\">\n <wsp:Policy>\n <sp:WssX509V3Token10 />\n </wsp:Policy>\n </sp:X509Token>\n </wsp:Policy>\n </sp:RecipientToken>\n <sp:AlgorithmSuite>\n <wsp:Policy>\n <sp:Basic256 />\n </wsp:Policy>\n </sp:AlgorithmSuite>\n <sp:Layout>\n <wsp:Policy>\n <sp:Strict />\n </wsp:Policy>\n </sp:Layout>\n <sp:IncludeTimestamp />\n <sp:OnlySignEntireHeadersAndBody />\n </wsp:Policy>\n </sp:AsymmetricBinding><sp:Wss10 xmlns:sp=\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\">\n <sp:Policy>\n <sp:MustSupportRefKeyIdentifier />\n <sp:MustSupportRefIssuerSerial />\n </sp:Policy>\n </sp:Wss10><sp:SignedParts xmlns:sp=\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\">\n <sp:Body />\n </sp:SignedParts><sp:EncryptedParts xmlns:sp=\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\">\n <sp:Body />\n </sp:EncryptedParts><sp:AsymmetricBinding xmlns:sp=\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\">\n <wsp:Policy>\n <sp:InitiatorToken>\n <wsp:Policy>\n <sp:X509Token sp:IncludeToken=\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient\">\n <wsp:Policy>\n <sp:WssX509V3Token10 />\n </wsp:Policy>\n </sp:X509Token>\n </wsp:Policy>\n </sp:InitiatorToken>\n <sp:RecipientToken>\n <wsp:Policy>\n <sp:X509Token sp:IncludeToken=\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never\">\n <wsp:Policy>\n <sp:WssX509V3Token10 />\n </wsp:Policy>\n </sp:X509Token>\n </wsp:Policy>\n </sp:RecipientToken>\n <sp:AlgorithmSuite>\n <wsp:Policy>\n <sp:Basic256 />\n </wsp:Policy>\n </sp:AlgorithmSuite>\n <sp:Layout>\n <wsp:Policy>\n <sp:Strict />\n </wsp:Policy>\n </sp:Layout>\n <sp:IncludeTimestamp />\n <sp:OnlySignEntireHeadersAndBody />\n </wsp:Policy>\n </sp:AsymmetricBinding><sp:Wss10 xmlns:sp=\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\">\n <sp:Policy>\n <sp:MustSupportRefKeyIdentifier />\n <sp:MustSupportRefIssuerSerial />\n </sp:Policy>\n </sp:Wss10><sp:SignedParts xmlns:sp=\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\">\n <sp:Body />\n </sp:SignedParts><sp:EncryptedParts xmlns:sp=\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\">\n <sp:Body />\n </sp:EncryptedParts></wsp:All></wsp:ExactlyOne></wsp:Policy>")); | |
(__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE).getPolicySubject().attachPolicy(getPolicy("<wsp:Policy xmlns:wsp=\"http://schemas.xmlsoap.org/ws/2004/09/policy\"><wsp:ExactlyOne><wsp:All><sp:AsymmetricBinding xmlns:sp=\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\">\n <wsp:Policy>\n <sp:InitiatorToken>\n <wsp:Policy>\n <sp:X509Token sp:IncludeToken=\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient\">\n <wsp:Policy>\n <sp:WssX509V3Token10 />\n </wsp:Policy>\n </sp:X509Token>\n </wsp:Policy>\n </sp:InitiatorToken>\n <sp:RecipientToken>\n <wsp:Policy>\n <sp:X509Token sp:IncludeToken=\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never\">\n <wsp:Policy>\n <sp:WssX509V3Token10 />\n </wsp:Policy>\n </sp:X509Token>\n </wsp:Policy>\n </sp:RecipientToken>\n <sp:AlgorithmSuite>\n <wsp:Policy>\n <sp:Basic256 />\n </wsp:Policy>\n </sp:AlgorithmSuite>\n <sp:Layout>\n <wsp:Policy>\n <sp:Strict />\n </wsp:Policy>\n </sp:Layout>\n <sp:IncludeTimestamp />\n <sp:OnlySignEntireHeadersAndBody />\n </wsp:Policy>\n </sp:AsymmetricBinding><sp:Wss10 xmlns:sp=\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\">\n <sp:Policy>\n <sp:MustSupportRefKeyIdentifier />\n <sp:MustSupportRefIssuerSerial />\n </sp:Policy>\n </sp:Wss10><sp:SignedParts xmlns:sp=\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\">\n <sp:Body />\n </sp:SignedParts><sp:EncryptedParts xmlns:sp=\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\">\n <sp:Body />\n </sp:EncryptedParts><sp:AsymmetricBinding xmlns:sp=\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\">\n <wsp:Policy>\n <sp:InitiatorToken>\n <wsp:Policy>\n <sp:X509Token sp:IncludeToken=\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient\">\n <wsp:Policy>\n <sp:WssX509V3Token10 />\n </wsp:Policy>\n </sp:X509Token>\n </wsp:Policy>\n </sp:InitiatorToken>\n <sp:RecipientToken>\n <wsp:Policy>\n <sp:X509Token sp:IncludeToken=\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never\">\n <wsp:Policy>\n <sp:WssX509V3Token10 />\n </wsp:Policy>\n </sp:X509Token>\n </wsp:Policy>\n </sp:RecipientToken>\n <sp:AlgorithmSuite>\n <wsp:Policy>\n <sp:Basic256 />\n </wsp:Policy>\n </sp:AlgorithmSuite>\n <sp:Layout>\n <wsp:Policy>\n <sp:Strict />\n </wsp:Policy>\n </sp:Layout>\n <sp:IncludeTimestamp />\n <sp:OnlySignEntireHeadersAndBody />\n </wsp:Policy>\n </sp:AsymmetricBinding><sp:Wss10 xmlns:sp=\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\">\n <sp:Policy>\n <sp:MustSupportRefKeyIdentifier />\n <sp:MustSupportRefIssuerSerial />\n </sp:Policy>\n </sp:Wss10><sp:SignedParts xmlns:sp=\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\">\n <sp:Body />\n </sp:SignedParts><sp:EncryptedParts xmlns:sp=\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\">\n <sp:Body />\n </sp:EncryptedParts></wsp:All></wsp:ExactlyOne></wsp:Policy>")); | |
_operations[0]=__operation; | |
} | |
//populates the faults | |
private void populateFaults(){ | |
} | |
/** | |
*Constructor that takes in a configContext | |
*/ | |
public Oder_Process_SecStub(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 Oder_Process_SecStub(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); | |
_service.applyPolicy(); | |
_serviceClient.getOptions().setTo(new org.apache.axis2.addressing.EndpointReference( | |
targetEndpoint)); | |
_serviceClient.getOptions().setUseSeparateListener(useSeparateListener); | |
//Set the soap version | |
_serviceClient.getOptions().setSoapVersionURI(org.apache.axiom.soap.SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI); | |
} | |
/** | |
* Default Constructor | |
*/ | |
public Oder_Process_SecStub(org.apache.axis2.context.ConfigurationContext configurationContext) throws org.apache.axis2.AxisFault { | |
this(configurationContext,"https://asiri-wso2-ubuntu:8243/services/Oder_Process_Sec.Oder_Process_SecHttpsSoap12Endpoint" ); | |
} | |
/** | |
* Default Constructor | |
* https://asiri-wso2-ubuntu:8243/services/Oder_Process_Sec.Oder_Process_SecHttpsSoap12Endpoint | |
*/ | |
public Oder_Process_SecStub() throws org.apache.axis2.AxisFault { | |
this("https://asiri-wso2-ubuntu:8243/services/Oder_Process_Sec.Oder_Process_SecHttpsSoap12Endpoint" ); | |
} | |
/** | |
* Constructor taking the target endpoint | |
*/ | |
public Oder_Process_SecStub(java.lang.String targetEndpoint) throws org.apache.axis2.AxisFault { | |
this(null,targetEndpoint); | |
} | |
/** | |
* Auto generated method signature | |
* | |
* @see wtp.Oder_Process_Sec#checkItemAvailabiltiy | |
* @param checkItemAvailabiltiy0 | |
*/ | |
public wtp.Oder_Process_SecStub.CheckItemAvailabiltiyResponse checkItemAvailabiltiy( | |
wtp.Oder_Process_SecStub.CheckItemAvailabiltiy checkItemAvailabiltiy0) | |
throws java.rmi.RemoteException | |
{ | |
org.apache.axis2.context.MessageContext _messageContext = null; | |
try{ | |
org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName()); | |
_operationClient.getOptions().setAction("urn:checkItemAvailabiltiy"); | |
_operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); | |
addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&"); | |
// create a message context | |
_messageContext = new org.apache.axis2.context.MessageContext(); | |
// create SOAP envelope with that payload | |
org.apache.axiom.soap.SOAPEnvelope env = null; | |
env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()), | |
checkItemAvailabiltiy0, | |
optimizeContent(new javax.xml.namespace.QName("http://wtp", | |
"checkItemAvailabiltiy")), new javax.xml.namespace.QName("http://wtp", | |
"checkItemAvailabiltiy")); | |
//adding SOAP soap_headers | |
_serviceClient.addHeadersToEnvelope(env); | |
// set the message context with that soap envelope | |
_messageContext.setEnvelope(env); | |
// add the message contxt to the operation client | |
_operationClient.addMessageContext(_messageContext); | |
//execute the operation client | |
_operationClient.execute(true); | |
org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext( | |
org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); | |
org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); | |
java.lang.Object object = fromOM( | |
_returnEnv.getBody().getFirstElement() , | |
wtp.Oder_Process_SecStub.CheckItemAvailabiltiyResponse.class, | |
getEnvelopeNamespaces(_returnEnv)); | |
return (wtp.Oder_Process_SecStub.CheckItemAvailabiltiyResponse)object; | |
}catch(org.apache.axis2.AxisFault f){ | |
org.apache.axiom.om.OMElement faultElt = f.getDetail(); | |
if (faultElt!=null){ | |
if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"checkItemAvailabiltiy"))){ | |
//make the fault by reflection | |
try{ | |
java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"checkItemAvailabiltiy")); | |
java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); | |
java.lang.Exception ex = (java.lang.Exception) exceptionClass.newInstance(); | |
//message class | |
java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"checkItemAvailabiltiy")); | |
java.lang.Class messageClass = java.lang.Class.forName(messageClassName); | |
java.lang.Object messageObject = fromOM(faultElt,messageClass,null); | |
java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage", | |
new java.lang.Class[]{messageClass}); | |
m.invoke(ex,new java.lang.Object[]{messageObject}); | |
throw new java.rmi.RemoteException(ex.getMessage(), ex); | |
}catch(java.lang.ClassCastException e){ | |
// we cannot intantiate the class - throw the original Axis fault | |
throw f; | |
} catch (java.lang.ClassNotFoundException e) { | |
// we cannot intantiate the class - throw the original Axis fault | |
throw f; | |
}catch (java.lang.NoSuchMethodException e) { | |
// we cannot intantiate the class - throw the original Axis fault | |
throw f; | |
} catch (java.lang.reflect.InvocationTargetException e) { | |
// we cannot intantiate the class - throw the original Axis fault | |
throw f; | |
} catch (java.lang.IllegalAccessException e) { | |
// we cannot intantiate the class - throw the original Axis fault | |
throw f; | |
} catch (java.lang.InstantiationException e) { | |
// we cannot intantiate the class - throw the original Axis fault | |
throw f; | |
} | |
}else{ | |
throw f; | |
} | |
}else{ | |
throw f; | |
} | |
} finally { | |
if (_messageContext.getTransportOut() != null) { | |
_messageContext.getTransportOut().getSender().cleanup(_messageContext); | |
} | |
} | |
} | |
/** | |
* Auto generated method signature for Asynchronous Invocations | |
* | |
* @see wtp.Oder_Process_Sec#startcheckItemAvailabiltiy | |
* @param checkItemAvailabiltiy0 | |
*/ | |
public void startcheckItemAvailabiltiy( | |
wtp.Oder_Process_SecStub.CheckItemAvailabiltiy checkItemAvailabiltiy0, | |
final wtp.Oder_Process_SecCallbackHandler callback) | |
throws java.rmi.RemoteException{ | |
org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName()); | |
_operationClient.getOptions().setAction("urn:checkItemAvailabiltiy"); | |
_operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); | |
addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&"); | |
// create SOAP envelope with that payload | |
org.apache.axiom.soap.SOAPEnvelope env=null; | |
final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext(); | |
//Style is Doc. | |
env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()), | |
checkItemAvailabiltiy0, | |
optimizeContent(new javax.xml.namespace.QName("http://wtp", | |
"checkItemAvailabiltiy")), new javax.xml.namespace.QName("http://wtp", | |
"checkItemAvailabiltiy")); | |
// adding SOAP soap_headers | |
_serviceClient.addHeadersToEnvelope(env); | |
// create message context with that soap envelope | |
_messageContext.setEnvelope(env); | |
// add the message context to the operation client | |
_operationClient.addMessageContext(_messageContext); | |
_operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() { | |
public void onMessage(org.apache.axis2.context.MessageContext resultContext) { | |
try { | |
org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope(); | |
java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(), | |
wtp.Oder_Process_SecStub.CheckItemAvailabiltiyResponse.class, | |
getEnvelopeNamespaces(resultEnv)); | |
callback.receiveResultcheckItemAvailabiltiy( | |
(wtp.Oder_Process_SecStub.CheckItemAvailabiltiyResponse)object); | |
} catch (org.apache.axis2.AxisFault e) { | |
callback.receiveErrorcheckItemAvailabiltiy(e); | |
} | |
} | |
public void onError(java.lang.Exception error) { | |
if (error instanceof org.apache.axis2.AxisFault) { | |
org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error; | |
org.apache.axiom.om.OMElement faultElt = f.getDetail(); | |
if (faultElt!=null){ | |
if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"checkItemAvailabiltiy"))){ | |
//make the fault by reflection | |
try{ | |
java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"checkItemAvailabiltiy")); | |
java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); | |
java.lang.Exception ex = (java.lang.Exception) exceptionClass.newInstance(); | |
//message class | |
java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"checkItemAvailabiltiy")); | |
java.lang.Class messageClass = java.lang.Class.forName(messageClassName); | |
java.lang.Object messageObject = fromOM(faultElt,messageClass,null); | |
java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage", | |
new java.lang.Class[]{messageClass}); | |
m.invoke(ex,new java.lang.Object[]{messageObject}); | |
callback.receiveErrorcheckItemAvailabiltiy(new java.rmi.RemoteException(ex.getMessage(), ex)); | |
} catch(java.lang.ClassCastException e){ | |
// we cannot intantiate the class - throw the original Axis fault | |
callback.receiveErrorcheckItemAvailabiltiy(f); | |
} catch (java.lang.ClassNotFoundException e) { | |
// we cannot intantiate the class - throw the original Axis fault | |
callback.receiveErrorcheckItemAvailabiltiy(f); | |
} catch (java.lang.NoSuchMethodException e) { | |
// we cannot intantiate the class - throw the original Axis fault | |
callback.receiveErrorcheckItemAvailabiltiy(f); | |
} catch (java.lang.reflect.InvocationTargetException e) { | |
// we cannot intantiate the class - throw the original Axis fault | |
callback.receiveErrorcheckItemAvailabiltiy(f); | |
} catch (java.lang.IllegalAccessException e) { | |
// we cannot intantiate the class - throw the original Axis fault | |
callback.receiveErrorcheckItemAvailabiltiy(f); | |
} catch (java.lang.InstantiationException e) { | |
// we cannot intantiate the class - throw the original Axis fault | |
callback.receiveErrorcheckItemAvailabiltiy(f); | |
} catch (org.apache.axis2.AxisFault e) { | |
// we cannot intantiate the class - throw the original Axis fault | |
callback.receiveErrorcheckItemAvailabiltiy(f); | |
} | |
} else { | |
callback.receiveErrorcheckItemAvailabiltiy(f); | |
} | |
} else { | |
callback.receiveErrorcheckItemAvailabiltiy(f); | |
} | |
} else { | |
callback.receiveErrorcheckItemAvailabiltiy(error); | |
} | |
} | |
public void onFault(org.apache.axis2.context.MessageContext faultContext) { | |
org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext); | |
onError(fault); | |
} | |
public void onComplete() { | |
try { | |
_messageContext.getTransportOut().getSender().cleanup(_messageContext); | |
} catch (org.apache.axis2.AxisFault axisFault) { | |
callback.receiveErrorcheckItemAvailabiltiy(axisFault); | |
} | |
} | |
}); | |
org.apache.axis2.util.CallbackReceiver _callbackReceiver = null; | |
if ( _operations[0].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) { | |
_callbackReceiver = new org.apache.axis2.util.CallbackReceiver(); | |
_operations[0].setMessageReceiver( | |
_callbackReceiver); | |
} | |
//execute the operation client | |
_operationClient.execute(false); | |
} | |
/** | |
* 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 static org.apache.neethi.Policy getPolicy (java.lang.String policyString) { | |
java.io.ByteArrayInputStream bais = new java.io.ByteArrayInputStream(policyString.getBytes()); | |
return org.apache.neethi.PolicyEngine.getPolicy(bais); | |
} | |
///////////////////////////////////////////////////////////////////////// | |
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; | |
} | |
//https://asiri-wso2-ubuntu:8243/services/Oder_Process_Sec.Oder_Process_SecHttpsSoap12Endpoint | |
public static class CheckItemAvailabiltiyResponse | |
implements org.apache.axis2.databinding.ADBBean{ | |
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName( | |
"http://wtp", | |
"checkItemAvailabiltiyResponse", | |
"ns1"); | |
/** | |
* field for _return | |
*/ | |
protected int local_return ; | |
/* 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 local_returnTracker = false ; | |
public boolean is_returnSpecified(){ | |
return local_returnTracker; | |
} | |
/** | |
* Auto generated getter method | |
* @return int | |
*/ | |
public int get_return(){ | |
return local_return; | |
} | |
/** | |
* Auto generated setter method | |
* @param param _return | |
*/ | |
public void set_return(int param){ | |
// setting primitive attribute tracker to true | |
local_returnTracker = | |
param != java.lang.Integer.MIN_VALUE; | |
this.local_return=param; | |
} | |
/** | |
* | |
* @param parentQName | |
* @param factory | |
* @return org.apache.axiom.om.OMElement | |
*/ | |
public org.apache.axiom.om.OMElement getOMElement ( | |
final javax.xml.namespace.QName parentQName, | |
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{ | |
org.apache.axiom.om.OMDataSource dataSource = | |
new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME); | |
return factory.createOMElement(dataSource,MY_QNAME); | |
} | |
public void serialize(final javax.xml.namespace.QName parentQName, | |
javax.xml.stream.XMLStreamWriter xmlWriter) | |
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{ | |
serialize(parentQName,xmlWriter,false); | |
} | |
public void serialize(final javax.xml.namespace.QName parentQName, | |
javax.xml.stream.XMLStreamWriter xmlWriter, | |
boolean serializeType) | |
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{ | |
java.lang.String prefix = null; | |
java.lang.String namespace = null; | |
prefix = parentQName.getPrefix(); | |
namespace = parentQName.getNamespaceURI(); | |
writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); | |
if (serializeType){ | |
java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://wtp"); | |
if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){ | |
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type", | |
namespacePrefix+":checkItemAvailabiltiyResponse", | |
xmlWriter); | |
} else { | |
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type", | |
"checkItemAvailabiltiyResponse", | |
xmlWriter); | |
} | |
} | |
if (local_returnTracker){ | |
namespace = "http://wtp"; | |
writeStartElement(null, namespace, "return", xmlWriter); | |
if (local_return==java.lang.Integer.MIN_VALUE) { | |
throw new org.apache.axis2.databinding.ADBException("return cannot be null!!"); | |
} else { | |
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(local_return)); | |
} | |
xmlWriter.writeEndElement(); | |
} | |
xmlWriter.writeEndElement(); | |
} | |
private static java.lang.String generatePrefix(java.lang.String namespace) { | |
if(namespace.equals("http://wtp")){ | |
return "ns1"; | |
} | |
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); | |
} | |
/** | |
* Utility method to write an element start tag. | |
*/ | |
private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart, | |
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { | |
java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); | |
if (writerPrefix != null) { | |
xmlWriter.writeStartElement(namespace, localPart); | |
} else { | |
if (namespace.length() == 0) { | |
prefix = ""; | |
} else if (prefix == null) { | |
prefix = generatePrefix(namespace); | |
} | |
xmlWriter.writeStartElement(prefix, localPart, namespace); | |
xmlWriter.writeNamespace(prefix, namespace); | |
xmlWriter.setPrefix(prefix, namespace); | |
} | |
} | |
/** | |
* Util method to write an attribute with the ns prefix | |
*/ | |
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName, | |
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{ | |
if (xmlWriter.getPrefix(namespace) == null) { | |
xmlWriter.writeNamespace(prefix, namespace); | |
xmlWriter.setPrefix(prefix, namespace); | |
} | |
xmlWriter.writeAttribute(namespace,attName,attValue); | |
} | |
/** | |
* Util method to write an attribute without the ns prefix | |
*/ | |
private void writeAttribute(java.lang.String namespace,java.lang.String attName, | |
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{ | |
if (namespace.equals("")) { | |
xmlWriter.writeAttribute(attName,attValue); | |
} else { | |
registerPrefix(xmlWriter, namespace); | |
xmlWriter.writeAttribute(namespace,attName,attValue); | |
} | |
} | |
/** | |
* Util method to write an attribute without the ns prefix | |
*/ | |
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName, | |
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { | |
java.lang.String attributeNamespace = qname.getNamespaceURI(); | |
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); | |
if (attributePrefix == null) { | |
attributePrefix = registerPrefix(xmlWriter, attributeNamespace); | |
} | |
java.lang.String attributeValue; | |
if (attributePrefix.trim().length() > 0) { | |
attributeValue = attributePrefix + ":" + qname.getLocalPart(); | |
} else { | |
attributeValue = qname.getLocalPart(); | |
} | |
if (namespace.equals("")) { | |
xmlWriter.writeAttribute(attName, attributeValue); | |
} else { | |
registerPrefix(xmlWriter, namespace); | |
xmlWriter.writeAttribute(namespace, attName, attributeValue); | |
} | |
} | |
/** | |
* method to handle Qnames | |
*/ | |
private void writeQName(javax.xml.namespace.QName qname, | |
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { | |
java.lang.String namespaceURI = qname.getNamespaceURI(); | |
if (namespaceURI != null) { | |
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); | |
if (prefix == null) { | |
prefix = generatePrefix(namespaceURI); | |
xmlWriter.writeNamespace(prefix, namespaceURI); | |
xmlWriter.setPrefix(prefix,namespaceURI); | |
} | |
if (prefix.trim().length() > 0){ | |
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); | |
} else { | |
// i.e this is the default namespace | |
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); | |
} | |
} else { | |
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); | |
} | |
} | |
private void writeQNames(javax.xml.namespace.QName[] qnames, | |
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { | |
if (qnames != null) { | |
// we have to store this data until last moment since it is not possible to write any | |
// namespace data after writing the charactor data | |
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); | |
java.lang.String namespaceURI = null; | |
java.lang.String prefix = null; | |
for (int i = 0; i < qnames.length; i++) { | |
if (i > 0) { | |
stringToWrite.append(" "); | |
} | |
namespaceURI = qnames[i].getNamespaceURI(); | |
if (namespaceURI != null) { | |
prefix = xmlWriter.getPrefix(namespaceURI); | |
if ((prefix == null) || (prefix.length() == 0)) { | |
prefix = generatePrefix(namespaceURI); | |
xmlWriter.writeNamespace(prefix, namespaceURI); | |
xmlWriter.setPrefix(prefix,namespaceURI); | |
} | |
if (prefix.trim().length() > 0){ | |
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); | |
} else { | |
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); | |
} | |
} else { | |
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); | |
} | |
} | |
xmlWriter.writeCharacters(stringToWrite.toString()); | |
} | |
} | |
/** | |
* Register a namespace prefix | |
*/ | |
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException { | |
java.lang.String prefix = xmlWriter.getPrefix(namespace); | |
if (prefix == null) { | |
prefix = generatePrefix(namespace); | |
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) { | |
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); | |
} | |
xmlWriter.writeNamespace(prefix, namespace); | |
xmlWriter.setPrefix(prefix, namespace); | |
} | |
return prefix; | |
} | |
/** | |
* databinding method to get an XML representation of this object | |
* | |
*/ | |
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName) | |
throws org.apache.axis2.databinding.ADBException{ | |
java.util.ArrayList elementList = new java.util.ArrayList(); | |
java.util.ArrayList attribList = new java.util.ArrayList(); | |
if (local_returnTracker){ | |
elementList.add(new javax.xml.namespace.QName("http://wtp", | |
"return")); | |
elementList.add( | |
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(local_return)); | |
} | |
return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray()); | |
} | |
/** | |
* Factory class that keeps the parse method | |
*/ | |
public static class Factory{ | |
/** | |
* static method to create the object | |
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable | |
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element | |
* Postcondition: If this object is an element, the reader is positioned at its end element | |
* If this object is a complex type, the reader is positioned at the end element of its outer element | |
*/ | |
public static CheckItemAvailabiltiyResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{ | |
CheckItemAvailabiltiyResponse object = | |
new CheckItemAvailabiltiyResponse(); | |
int event; | |
java.lang.String nillableValue = null; | |
java.lang.String prefix =""; | |
java.lang.String namespaceuri =""; | |
try { | |
while (!reader.isStartElement() && !reader.isEndElement()) | |
reader.next(); | |
if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){ | |
java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", | |
"type"); | |
if (fullTypeName!=null){ | |
java.lang.String nsPrefix = null; | |
if (fullTypeName.indexOf(":") > -1){ | |
nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":")); | |
} | |
nsPrefix = nsPrefix==null?"":nsPrefix; | |
java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1); | |
if (!"checkItemAvailabiltiyResponse".equals(type)){ | |
//find namespace for the prefix | |
java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); | |
return (CheckItemAvailabiltiyResponse)ExtensionMapper.getTypeObject( | |
nsUri,type,reader); | |
} | |
} | |
} | |
// Note all attributes that were handled. Used to differ normal attributes | |
// from anyAttributes. | |
java.util.Vector handledAttributes = new java.util.Vector(); | |
reader.next(); | |
while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); | |
if (reader.isStartElement() && new javax.xml.namespace.QName("http://wtp","return").equals(reader.getName())){ | |
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil"); | |
if ("true".equals(nillableValue) || "1".equals(nillableValue)){ | |
throw new org.apache.axis2.databinding.ADBException("The element: "+"return" +" cannot be null"); | |
} | |
java.lang.String content = reader.getElementText(); | |
object.set_return( | |
org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); | |
reader.next(); | |
} // End of if for expected property start element | |
else { | |
object.set_return(java.lang.Integer.MIN_VALUE); | |
} | |
while (!reader.isStartElement() && !reader.isEndElement()) | |
reader.next(); | |
if (reader.isStartElement()) | |
// A start element we are not expecting indicates a trailing invalid property | |
throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName()); | |
} catch (javax.xml.stream.XMLStreamException e) { | |
throw new java.lang.Exception(e); | |
} | |
return object; | |
} | |
}//end of factory class | |
} | |
public static class ExtensionMapper{ | |
public static java.lang.Object getTypeObject(java.lang.String namespaceURI, | |
java.lang.String typeName, | |
javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{ | |
throw new org.apache.axis2.databinding.ADBException("Unsupported type " + namespaceURI + " " + typeName); | |
} | |
} | |
public static class CheckItemAvailabiltiy | |
implements org.apache.axis2.databinding.ADBBean{ | |
public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName( | |
"http://wtp", | |
"checkItemAvailabiltiy", | |
"ns1"); | |
/** | |
* field for ItemId | |
*/ | |
protected int localItemId ; | |
/* 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 localItemIdTracker = false ; | |
public boolean isItemIdSpecified(){ | |
return localItemIdTracker; | |
} | |
/** | |
* Auto generated getter method | |
* @return int | |
*/ | |
public int getItemId(){ | |
return localItemId; | |
} | |
/** | |
* Auto generated setter method | |
* @param param ItemId | |
*/ | |
public void setItemId(int param){ | |
// setting primitive attribute tracker to true | |
localItemIdTracker = | |
param != java.lang.Integer.MIN_VALUE; | |
this.localItemId=param; | |
} | |
/** | |
* | |
* @param parentQName | |
* @param factory | |
* @return org.apache.axiom.om.OMElement | |
*/ | |
public org.apache.axiom.om.OMElement getOMElement ( | |
final javax.xml.namespace.QName parentQName, | |
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{ | |
org.apache.axiom.om.OMDataSource dataSource = | |
new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME); | |
return factory.createOMElement(dataSource,MY_QNAME); | |
} | |
public void serialize(final javax.xml.namespace.QName parentQName, | |
javax.xml.stream.XMLStreamWriter xmlWriter) | |
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{ | |
serialize(parentQName,xmlWriter,false); | |
} | |
public void serialize(final javax.xml.namespace.QName parentQName, | |
javax.xml.stream.XMLStreamWriter xmlWriter, | |
boolean serializeType) | |
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{ | |
java.lang.String prefix = null; | |
java.lang.String namespace = null; | |
prefix = parentQName.getPrefix(); | |
namespace = parentQName.getNamespaceURI(); | |
writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); | |
if (serializeType){ | |
java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://wtp"); | |
if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){ | |
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type", | |
namespacePrefix+":checkItemAvailabiltiy", | |
xmlWriter); | |
} else { | |
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type", | |
"checkItemAvailabiltiy", | |
xmlWriter); | |
} | |
} | |
if (localItemIdTracker){ | |
namespace = "http://wtp"; | |
writeStartElement(null, namespace, "itemId", xmlWriter); | |
if (localItemId==java.lang.Integer.MIN_VALUE) { | |
throw new org.apache.axis2.databinding.ADBException("itemId cannot be null!!"); | |
} else { | |
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localItemId)); | |
} | |
xmlWriter.writeEndElement(); | |
} | |
xmlWriter.writeEndElement(); | |
} | |
private static java.lang.String generatePrefix(java.lang.String namespace) { | |
if(namespace.equals("http://wtp")){ | |
return "ns1"; | |
} | |
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); | |
} | |
/** | |
* Utility method to write an element start tag. | |
*/ | |
private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart, | |
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { | |
java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); | |
if (writerPrefix != null) { | |
xmlWriter.writeStartElement(namespace, localPart); | |
} else { | |
if (namespace.length() == 0) { | |
prefix = ""; | |
} else if (prefix == null) { | |
prefix = generatePrefix(namespace); | |
} | |
xmlWriter.writeStartElement(prefix, localPart, namespace); | |
xmlWriter.writeNamespace(prefix, namespace); | |
xmlWriter.setPrefix(prefix, namespace); | |
} | |
} | |
/** | |
* Util method to write an attribute with the ns prefix | |
*/ | |
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName, | |
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{ | |
if (xmlWriter.getPrefix(namespace) == null) { | |
xmlWriter.writeNamespace(prefix, namespace); | |
xmlWriter.setPrefix(prefix, namespace); | |
} | |
xmlWriter.writeAttribute(namespace,attName,attValue); | |
} | |
/** | |
* Util method to write an attribute without the ns prefix | |
*/ | |
private void writeAttribute(java.lang.String namespace,java.lang.String attName, | |
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{ | |
if (namespace.equals("")) { | |
xmlWriter.writeAttribute(attName,attValue); | |
} else { | |
registerPrefix(xmlWriter, namespace); | |
xmlWriter.writeAttribute(namespace,attName,attValue); | |
} | |
} | |
/** | |
* Util method to write an attribute without the ns prefix | |
*/ | |
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName, | |
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { | |
java.lang.String attributeNamespace = qname.getNamespaceURI(); | |
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); | |
if (attributePrefix == null) { | |
attributePrefix = registerPrefix(xmlWriter, attributeNamespace); | |
} | |
java.lang.String attributeValue; | |
if (attributePrefix.trim().length() > 0) { | |
attributeValue = attributePrefix + ":" + qname.getLocalPart(); | |
} else { | |
attributeValue = qname.getLocalPart(); | |
} | |
if (namespace.equals("")) { | |
xmlWriter.writeAttribute(attName, attributeValue); | |
} else { | |
registerPrefix(xmlWriter, namespace); | |
xmlWriter.writeAttribute(namespace, attName, attributeValue); | |
} | |
} | |
/** | |
* method to handle Qnames | |
*/ | |
private void writeQName(javax.xml.namespace.QName qname, | |
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { | |
java.lang.String namespaceURI = qname.getNamespaceURI(); | |
if (namespaceURI != null) { | |
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); | |
if (prefix == null) { | |
prefix = generatePrefix(namespaceURI); | |
xmlWriter.writeNamespace(prefix, namespaceURI); | |
xmlWriter.setPrefix(prefix,namespaceURI); | |
} | |
if (prefix.trim().length() > 0){ | |
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); | |
} else { | |
// i.e this is the default namespace | |
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); | |
} | |
} else { | |
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); | |
} | |
} | |
private void writeQNames(javax.xml.namespace.QName[] qnames, | |
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { | |
if (qnames != null) { | |
// we have to store this data until last moment since it is not possible to write any | |
// namespace data after writing the charactor data | |
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); | |
java.lang.String namespaceURI = null; | |
java.lang.String prefix = null; | |
for (int i = 0; i < qnames.length; i++) { | |
if (i > 0) { | |
stringToWrite.append(" "); | |
} | |
namespaceURI = qnames[i].getNamespaceURI(); | |
if (namespaceURI != null) { | |
prefix = xmlWriter.getPrefix(namespaceURI); | |
if ((prefix == null) || (prefix.length() == 0)) { | |
prefix = generatePrefix(namespaceURI); | |
xmlWriter.writeNamespace(prefix, namespaceURI); | |
xmlWriter.setPrefix(prefix,namespaceURI); | |
} | |
if (prefix.trim().length() > 0){ | |
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); | |
} else { | |
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); | |
} | |
} else { | |
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); | |
} | |
} | |
xmlWriter.writeCharacters(stringToWrite.toString()); | |
} | |
} | |
/** | |
* Register a namespace prefix | |
*/ | |
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException { | |
java.lang.String prefix = xmlWriter.getPrefix(namespace); | |
if (prefix == null) { | |
prefix = generatePrefix(namespace); | |
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) { | |
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); | |
} | |
xmlWriter.writeNamespace(prefix, namespace); | |
xmlWriter.setPrefix(prefix, namespace); | |
} | |
return prefix; | |
} | |
/** | |
* databinding method to get an XML representation of this object | |
* | |
*/ | |
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName) | |
throws org.apache.axis2.databinding.ADBException{ | |
java.util.ArrayList elementList = new java.util.ArrayList(); | |
java.util.ArrayList attribList = new java.util.ArrayList(); | |
if (localItemIdTracker){ | |
elementList.add(new javax.xml.namespace.QName("http://wtp", | |
"itemId")); | |
elementList.add( | |
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localItemId)); | |
} | |
return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray()); | |
} | |
/** | |
* Factory class that keeps the parse method | |
*/ | |
public static class Factory{ | |
/** | |
* static method to create the object | |
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable | |
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element | |
* Postcondition: If this object is an element, the reader is positioned at its end element | |
* If this object is a complex type, the reader is positioned at the end element of its outer element | |
*/ | |
public static CheckItemAvailabiltiy parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{ | |
CheckItemAvailabiltiy object = | |
new CheckItemAvailabiltiy(); | |
int event; | |
java.lang.String nillableValue = null; | |
java.lang.String prefix =""; | |
java.lang.String namespaceuri =""; | |
try { | |
while (!reader.isStartElement() && !reader.isEndElement()) | |
reader.next(); | |
if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){ | |
java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", | |
"type"); | |
if (fullTypeName!=null){ | |
java.lang.String nsPrefix = null; | |
if (fullTypeName.indexOf(":") > -1){ | |
nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":")); | |
} | |
nsPrefix = nsPrefix==null?"":nsPrefix; | |
java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1); | |
if (!"checkItemAvailabiltiy".equals(type)){ | |
//find namespace for the prefix | |
java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); | |
return (CheckItemAvailabiltiy)ExtensionMapper.getTypeObject( | |
nsUri,type,reader); | |
} | |
} | |
} | |
// Note all attributes that were handled. Used to differ normal attributes | |
// from anyAttributes. | |
java.util.Vector handledAttributes = new java.util.Vector(); | |
reader.next(); | |
while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); | |
if (reader.isStartElement() && new javax.xml.namespace.QName("http://wtp","itemId").equals(reader.getName())){ | |
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil"); | |
if ("true".equals(nillableValue) || "1".equals(nillableValue)){ | |
throw new org.apache.axis2.databinding.ADBException("The element: "+"itemId" +" cannot be null"); | |
} | |
java.lang.String content = reader.getElementText(); | |
object.setItemId( | |
org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); | |
reader.next(); | |
} // End of if for expected property start element | |
else { | |
object.setItemId(java.lang.Integer.MIN_VALUE); | |
} | |
while (!reader.isStartElement() && !reader.isEndElement()) | |
reader.next(); | |
if (reader.isStartElement()) | |
// A start element we are not expecting indicates a trailing invalid property | |
throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName()); | |
} catch (javax.xml.stream.XMLStreamException e) { | |
throw new java.lang.Exception(e); | |
} | |
return object; | |
} | |
}//end of factory class | |
} | |
private org.apache.axiom.om.OMElement toOM(wtp.Oder_Process_SecStub.CheckItemAvailabiltiy param, boolean optimizeContent) | |
throws org.apache.axis2.AxisFault { | |
try{ | |
return param.getOMElement(wtp.Oder_Process_SecStub.CheckItemAvailabiltiy.MY_QNAME, | |
org.apache.axiom.om.OMAbstractFactory.getOMFactory()); | |
} catch(org.apache.axis2.databinding.ADBException e){ | |
throw org.apache.axis2.AxisFault.makeFault(e); | |
} | |
} | |
private org.apache.axiom.om.OMElement toOM(wtp.Oder_Process_SecStub.CheckItemAvailabiltiyResponse param, boolean optimizeContent) | |
throws org.apache.axis2.AxisFault { | |
try{ | |
return param.getOMElement(wtp.Oder_Process_SecStub.CheckItemAvailabiltiyResponse.MY_QNAME, | |
org.apache.axiom.om.OMAbstractFactory.getOMFactory()); | |
} catch(org.apache.axis2.databinding.ADBException e){ | |
throw org.apache.axis2.AxisFault.makeFault(e); | |
} | |
} | |
private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, wtp.Oder_Process_SecStub.CheckItemAvailabiltiy param, boolean optimizeContent, javax.xml.namespace.QName methodQName) | |
throws org.apache.axis2.AxisFault{ | |
try{ | |
org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); | |
emptyEnvelope.getBody().addChild(param.getOMElement(wtp.Oder_Process_SecStub.CheckItemAvailabiltiy.MY_QNAME,factory)); | |
return emptyEnvelope; | |
} catch(org.apache.axis2.databinding.ADBException e){ | |
throw org.apache.axis2.AxisFault.makeFault(e); | |
} | |
} | |
/* methods to provide back word compatibility */ | |
/** | |
* get the default envelope | |
*/ | |
private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory){ | |
return factory.getDefaultEnvelope(); | |
} | |
private java.lang.Object fromOM( | |
org.apache.axiom.om.OMElement param, | |
java.lang.Class type, | |
java.util.Map extraNamespaces) throws org.apache.axis2.AxisFault{ | |
try { | |
if (wtp.Oder_Process_SecStub.CheckItemAvailabiltiy.class.equals(type)){ | |
return wtp.Oder_Process_SecStub.CheckItemAvailabiltiy.Factory.parse(param.getXMLStreamReaderWithoutCaching()); | |
} | |
if (wtp.Oder_Process_SecStub.CheckItemAvailabiltiyResponse.class.equals(type)){ | |
return wtp.Oder_Process_SecStub.CheckItemAvailabiltiyResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching()); | |
} | |
} catch (java.lang.Exception e) { | |
throw org.apache.axis2.AxisFault.makeFault(e); | |
} | |
return null; | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package wtp; | |
/** | |
* Created with IntelliJ IDEA. | |
* User: asiri | |
* Date: 12/8/13 | |
* Time: 9:23 PM | |
* To change this template use File | Settings | File Templates. | |
*/ | |
import java.rmi.RemoteException; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.apache.axis2.AxisFault; | |
import org.apache.axis2.Constants; | |
import org.apache.axis2.client.ServiceClient; | |
import org.apache.axis2.transport.http.HTTPConstants; | |
import org.apache.axis2.transport.http.HttpTransportProperties; | |
import wtp.Oder_Process_SecStub.CheckItemAvailabiltiy; | |
import wtp.Oder_Process_SecStub.CheckItemAvailabiltiyResponse; | |
public class OrderProcessClient { | |
public static void main(String[] args) { | |
String trustStore = "/opt/wso2esb-4.7.0/repository/resources/security/client-truststore.jks"; | |
System.setProperty("javax.net.ssl.trustStore", trustStore); | |
System.setProperty("javax.net.ssl.trustStorePassword", "wso2carbon"); | |
try { | |
Oder_Process_SecStub stub = new Oder_Process_SecStub(); | |
HttpTransportProperties.Authenticator basicAuthenticator = | |
new HttpTransportProperties.Authenticator(); | |
List<String> authSchemes = new ArrayList<String>(); | |
authSchemes.add( HttpTransportProperties.Authenticator.BASIC); | |
basicAuthenticator.setAuthSchemes(authSchemes); | |
basicAuthenticator.setUsername("admin"); // Set your value | |
basicAuthenticator.setPassword("admin"); // Set your value | |
basicAuthenticator.setPreemptiveAuthentication(true); | |
stub._getServiceClient() | |
.getOptions() | |
.setProperty(org.apache.axis2.transport.http.HTTPConstants.AUTHENTICATE, | |
basicAuthenticator); | |
stub._getServiceClient().getOptions() | |
.setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED, "false"); | |
ServiceClient service = stub._getServiceClient(); | |
// Had to set the content type to get the soap security headers | |
// included by the ESB | |
service.getOptions().setProperty(Constants.Configuration.MESSAGE_TYPE, | |
HTTPConstants.MEDIA_TYPE_APPLICATION_XML); | |
int itemId = 0; | |
CheckItemAvailabiltiy check = new Oder_Process_SecStub.CheckItemAvailabiltiy(); | |
check.setItemId(itemId); | |
CheckItemAvailabiltiyResponse response = stub.checkItemAvailabiltiy(check); | |
System.out.println("Item : " + itemId + " = " + "Amount : " + response.get_return()); | |
} catch (AxisFault e) { | |
e.printStackTrace(); | |
} catch (RemoteException e) { | |
e.printStackTrace(); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PK W��C pom.xml�W[o�0~ﯨP_C:m-�2U����R�i�[el7;������΅$@Fo��>���|�$0�bF�>\�S����ZgC �hAy�2��42W�o�M��9\)V���e�<�����_�.����+�8�����g/��^�4|���+Era�q�=�b����*�u{- YK�0�W��"�S�CR�[�u��VLE�ǔQ�!�is�0��˳����;��C��4nZ�\+i&�B2��jk���+��JD�%]#-�7�?��L�V@#Ӹ�2aJ�Ϊ/�/o p�uD�RMR�m{e�֩�r�ߔU�om���ũ-jCWn[�YjƯ�ת��*�=� �:͉a)��L��ȥM�W��lc*9���j�ƝZS{�}0$���M��,���� +��;�k<��w�b���T6��y��;�70q��-�;�6 :lB�TM��:Ă߲�H�;%(�Ό�ĤѮa��&HQ��=H(��.%�Fbj[���n� �&�ƓK�ԈL ha&���F�ʛ+)�u3���v�� �Ϝd��V�a�xbPB�Z �#t��RZR)&��}`&�k3<�N�@Q�`�h���@P��R�${u\�L�Q�\�Ğ��� �4�s�1���^�+v�!R��� ljj�..{n�r���X�� ��=�Ua�L�Q5d'����<5Uz?�%��2]Y�5Ӟ°b9�owŒۓh9�(NY���8��;8��K))73(Vs~"4��P��/"��� | |
��ż��w'��k��� _.��o�W���+����^}���J�m3Ù�#���P�Ó0�Eg���C��<�ovN�cG | |
5�g��q����PK�&�D 1 PK W��C�&�D 1 pom.xmlPK 5 y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>WSO2</groupId> | |
<artifactId>WSO2-Axis2-Client</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<name>Axis2-Client</name> | |
<repositories> | |
<repository> | |
<id>wso2-Nexus</id> | |
<name>WSO2 Repository</name> | |
<url>http://dist.wso2.org/maven2/</url> | |
</repository> | |
</repositories> | |
<properties> | |
<axis2_version>1.6.1-wso2v9</axis2_version> | |
</properties> | |
<pluginRepositories> | |
<pluginRepository> | |
<id>wso2-Nexus</id> | |
<name>WSO2 Repository</name> | |
<url>http://dist.wso2.org/maven2/</url> | |
</pluginRepository> | |
</pluginRepositories> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.axis2</groupId> | |
<artifactId>axis2-wsdl2code-maven-plugin</artifactId> | |
<version>${axis2_version}</version> | |
<executions> | |
<execution> | |
<goals> | |
<goal>wsdl2code</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<outputDirectory>${basedir}/generated-sources</outputDirectory> | |
<databindingName>adb</databindingName><portName>Oder_Process_SecHttpsSoap12Endpoint</portName><language>java</language><wsdlFile>http://asiri-wso2-ubuntu:8280/services/Oder_Process_Sec?wsdl</wsdlFile> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>build-helper-maven-plugin</artifactId> | |
<version>1.7</version> | |
<executions> | |
<execution> | |
<id>add-source</id> | |
<phase>generate-sources</phase> | |
<goals> | |
<goal>add-source</goal> | |
</goals> | |
<configuration> | |
<sources> | |
<source>${basedir}/generated-sources/src</source> | |
<source>${basedir}/generated-sources/test</source> | |
</sources> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-eclipse-plugin</artifactId> | |
<version>2.9</version> | |
</plugin> | |
</plugins> | |
</build> | |
<dependencies> | |
<dependency> | |
<groupId>org.apache.axis2</groupId> | |
<artifactId>axis2</artifactId> | |
<version>${axis2_version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.axis2</groupId> | |
<artifactId>axis2-adb</artifactId> | |
<version>${axis2_version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.axis2</groupId> | |
<artifactId>axis2-transport-http</artifactId> | |
<version>${axis2_version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.axis2</groupId> | |
<artifactId>axis2-transport-local</artifactId> | |
<version>${axis2_version}</version> | |
</dependency> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>3.8.2</version> | |
<scope>compile</scope> | |
</dependency> | |
</dependencies> | |
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
���� 3 % | |