Created
August 9, 2019 00:02
-
-
Save betray32/809b94fa3abbed05a11597a452ddce32 to your computer and use it in GitHub Desktop.
Tips para axis2
This file contains hidden or 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
AXIS2 - MAVEN | |
<!-- Axis2 --> | |
<dependency> | |
<groupId>org.apache.axis2</groupId> | |
<artifactId>axis2-kernel</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>org.apache.axis2</groupId> | |
<artifactId>axis2-xmlbeans</artifactId> | |
<version>${axis2.version}</version> | |
</dependency> | |
<properties>…. | |
<axis2.version>1.7.6</axis2.version> |
This file contains hidden or 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
Hay que agregar eso para guardar lo que responde el service | |
public com.telefonica.midrange.CancelacionLiberacionService.types.CancelacionLiberacionResponse cancelacionLiberacion( | |
com.telefonica.midrange.CancelacionLiberacionService.types.CancelacionLiberacionRequest cancelacionLiberacionRequestParameter) | |
throws java.rmi.RemoteException { | |
if (super.cachedEndpoint == null) { | |
throw new org.apache.axis.NoEndPointException(); | |
} | |
org.apache.axis.client.Call _call = createCall(); | |
_call.setOperation(_operations[0]); | |
_call.setUseSOAPAction(true); | |
_call.setSOAPActionURI("http://midrange.telefonica.com/CancelacionLiberacionService/CancelacionLiberacion"); | |
_call.setEncodingStyle(null); | |
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); | |
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); | |
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); | |
_call.setOperationName(new javax.xml.namespace.QName("", "CancelacionLiberacion")); | |
setRequestHeaders(_call); | |
setAttachments(_call); | |
try { | |
java.lang.Object _resp = _call.invoke(new java.lang.Object[] { | |
cancelacionLiberacionRequestParameter | |
}); | |
// Logger | |
Constantes.LOGER.logMessage("Entrada CancelacionLiberacion: " + _call.getMessageContext().getRequestMessage().getSOAPEnvelope().toString()); | |
Constantes.LOGER.logMessage("Salida CancelacionLiberacion: " + _call.getMessageContext().getResponseMessage().getSOAPEnvelope().toString()); | |
if (_resp instanceof java.rmi.RemoteException) { | |
throw (java.rmi.RemoteException) _resp; | |
} else { | |
extractAttachments(_call); | |
try { | |
return (com.telefonica.midrange.CancelacionLiberacionService.types.CancelacionLiberacionResponse) _resp; | |
} catch (java.lang.Exception _exception) { | |
return (com.telefonica.midrange.CancelacionLiberacionService.types.CancelacionLiberacionResponse) org.apache.axis.utils.JavaUtils | |
.convert(_resp, | |
com.telefonica.midrange.CancelacionLiberacionService.types.CancelacionLiberacionResponse.class); | |
} | |
} | |
} catch (org.apache.axis.AxisFault axisFaultException) { | |
throw axisFaultException; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment