Hi Milinda, Can you please post the response text?
On Tue, Jul 29, 2014 at 5:20 PM, Milinda Perera <[email protected]> wrote: > Hi, > I'm writing jaggery app to retrieve data from a Admin services. I'm > getting for *responseXML* of XMLHttpRequest (responseText works > perfectly) any problem with my code? > > var httpAuth = new XMLHttpRequest(); > var endPoint = ' > https://10.100.5.92:9443/services/AuthenticationAdmin.AuthenticationAdminHttpsSoap11Endpoint/ > '; > > httpAuth.open('POST', endPoint, false); > httpAuth.setRequestHeader('SOAPAction', 'urn:login'); > httpAuth.setRequestHeader('Content-Type','text/xml'); > > var payload = '<soapenv:Envelope xmlns:soapenv=" > http://schemas.xmlsoap.org/soap/envelope/" xmlns:aut=" > http://authentication.services.core.carbon.wso2.org">\ > <soapenv:Header/>\ > <soapenv:Body>\ > <aut:login>\ > <aut:username>' +username > +'</aut:username>\ > <aut:password>' +password > +'</aut:password>\ > <aut:remoteAddress>' +remoteAddr > +'</aut:remoteAddress>\ > </aut:login>\ > </soapenv:Body>\ > </soapenv:Envelope>'; > > try{ > httpAuth.send(payload); > //var BPSResponse = httpAuth.responseText; > var BPSResponse = httpAuth.responseXML; > log.info('RESPONSE XML : ' +BPSResponse.toXMLString()); > log.info('RESPONSE:' +httpAuth.responseText.toString()); > > }catch(e){ > log.error(e.toString()); > } > > Thanks, > Milinda > > -- > Milinda Perera > Software Engineer; > WSO2 Inc. http://wso2.com , > Mobile: (+94) 714 115 032 > > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Tishan Dahanayakage Software Engineer WSO2, Inc. Mobile:+94 716481328 Disclaimer: This communication may contain privileged or other confidential information and is intended exclusively for the addressee/s. If you are not the intended recipient/s, or believe that you may have received this communication in error, please reply to the sender indicating that fact and delete the copy you received and in addition, you should not print, copy, re-transmit, disseminate, or otherwise use the information contained in this communication. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions.
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
