function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
king kpking kp 

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