Estoy trabajando con Oracle Service Bus, actualmente he creado unos servicios con SOA en JDeveloper, los cuales he publicado en el bus de servicio que ofrece Oracle, ahora necesito acceder a ellos desde mi aplicación móvil hecha en PhoneGap. ¿Alguien sabe como hacerlo? He utilizado una función en AJAX pero no sirve:
conectar = function () {
var url = "http://10.0.0.191:7001/OSBCapled/Proxy_Services/AutenticacionWS?WSDL"
var datos = '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">'
+ '<soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">'
+ '</soap:Header>'
+ '<soapenv:Body>'
+ '<aut:requestRegistro xmlns:aut="http://www.integracion.org/autenticacion">'
+ '<aut:Email>'+$('#usuario').val()+'</aut:Email>'
+ '<aut:Clave>'+$('#clave').val()+'</aut:Clave>'
+ '</aut:requestRegistro>'
+ '</soapenv:Body>'
+ '</soapenv:Envelope>';
$.ajax({
url: url,
type: "POST",
crossDomain: true,
async: false,
data: datos,
cache:false,
dataType: 'text/xml',
success: function (data) {
alert("Funciono!! " + data.responseText);
},
error: function (data) {
alert("Error"):
},
});
}