You need to sign in to do that
Don't have an account?

Using SOAP Web services IN Apex code
Hi All,
I tried using the SOAP Web Services in Apex class but here I am able to use the Method is:"Logon" in Apex class
String str1='<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v7="urn://oracle.bi.webservices/v7">'
+'<soapenv:Header/>'
+'<soapenv:Body>'
+'<v7:logon>'
+'<v7:name>kullayappa adapala</v7:name>'
+'<v7:password>Welcome123</v7:password>'
+'</v7:logon>'
+'</soapenv:Body>'
+'</soapenv:Envelope>';
HttpRequest req = new HttpRequest();
req.setTimeout(120000);
req.setMethod('GET');
req.setEndpoint(endPointURL);
req.setHeader('Authorization', authorizationHeader);
req.setHeader('Content-Type', 'text/xml;charset=UTF-8');
req.setBody(str1);
Http http = new Http();
Transient HttpResponse res = new HttpResponse();
res = http.send(req);
I am getting the Other response
is it working for "Logon Method in Apex class" or Not
How Can I resolve this please help me on this
I tried using the SOAP Web Services in Apex class but here I am able to use the Method is:"Logon" in Apex class
String str1='<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v7="urn://oracle.bi.webservices/v7">'
+'<soapenv:Header/>'
+'<soapenv:Body>'
+'<v7:logon>'
+'<v7:name>kullayappa adapala</v7:name>'
+'<v7:password>Welcome123</v7:password>'
+'</v7:logon>'
+'</soapenv:Body>'
+'</soapenv:Envelope>';
HttpRequest req = new HttpRequest();
req.setTimeout(120000);
req.setMethod('GET');
req.setEndpoint(endPointURL);
req.setHeader('Authorization', authorizationHeader);
req.setHeader('Content-Type', 'text/xml;charset=UTF-8');
req.setBody(str1);
Http http = new Http();
Transient HttpResponse res = new HttpResponse();
res = http.send(req);
I am getting the Other response
is it working for "Logon Method in Apex class" or Not
How Can I resolve this please help me on this