Hi Team, In my Scenario, I want to get Email_ID and Record_ID from the database response. Response is correctly come to the wire-log. But I could not able to log the Email_ID and Record_ID.
I have tried out following Xpath expressions but non of those give me the correct result. [1]. $body/m0:Entries/m0:Entry/m0:CUSTOMER_EMAIL/text() - Not work [2]. "//*[local-name()='CUSTOMER_EMAIL']"- Not work [3].$body /Entries/Entry/CUSTOMER_EMAIL/text()- Not work [4].//body/Entries/Entry/CUSTOMER_EMAIL/text()- Not work [5].$body - Works, but all the data log. [2018-01-06 15:08:24,160] [EI-Core] DEBUG - content << "?xm" [2018-01-06 15:08:24,160] [EI-Core] DEBUG - content << "l version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><Entries xmlns=" http://ws.wso2.org/dataservice "><Entry><RECORD_ID>138</RECORD_ID><CUSTOMER_EMAIL>[email protected] </CUSTOMER_EMAIL><CAR_MODEL>Alto</CAR_MODEL><BODY_COLOR>blue</BODY_COLOR><ENGINE_CAPACITY>800</ENGINE_CAPACITY><INTERIOR_MATERIAL></INTERIOR_MATERIAL><SUN_ROOF>Yes</SUN_ROOF><HEATED_LEATHER_SEATS>Yes</HEATED_LEATHER_SEATS><NAVIGATION>No</NAVIGATION><AUTOMATIC_TAILGATE>No</AUTOMATIC_TAILGATE><STATUS>Approved</STATUS><INTERIOR_COLOR>Pink</INTERIOR_COLOR><TIRE_SIZE>5T</TIRE_SIZE></Entry></Entries></soapenv:Body></soapenv:Envelope>" [2018-01-06 15:08:24,161] [EI-Core] DEBUG - content << "[\r]" [2018-01-06 15:08:24,161] [EI-Core] DEBUG - content << "[\n]" [2018-01-06 15:08:24,161] [EI-Core] DEBUG - content << "0" [2018-01-06 15:08:24,161] [EI-Core] DEBUG - content << "[\r]" [2018-01-06 15:08:24,161] [EI-Core] DEBUG - content << "[\n]" [2018-01-06 15:08:24,161] [EI-Core] DEBUG - content << "[\r]" [2018-01-06 15:08:24,161] [EI-Core] DEBUG - content << "[\n]" [2018-01-06 15:08:24,161] [EI-Core] DEBUG - header << "[\r][\n]" [2018-01-06 15:08:24,163] [EI-Core] INFO - LogMediator Body************ = <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><Entries xmlns="http://ws.wso2.org/dataservice "><Entry><RECORD_ID>138</RECORD_ID><CUSTOMER_EMAIL>[email protected] </CUSTOMER_EMAIL><CAR_MODEL>Alto</CAR_MODEL><BODY_COLOR>blue</BODY_COLOR><ENGINE_CAPACITY>800</ENGINE_CAPACITY><INTERIOR_MATERIAL/><SUN_ROOF>Yes</SUN_ROOF><HEATED_LEATHER_SEATS>Yes</HEATED_LEATHER_SEATS><NAVIGATION>No</NAVIGATION><AUTOMATIC_TAILGATE>No</AUTOMATIC_TAILGATE><STATUS>Approved</STATUS><INTERIOR_COLOR>Pink</INTERIOR_COLOR><TIRE_SIZE>5T</TIRE_SIZE></Entry></Entries></soapenv:Body> [2018-01-06 15:08:24,164] [EI-Core] INFO - LogMediator Email************ = [2018-01-06 15:08:24,186] [EI-Core] DEBUG - wire HTTP-Listener I/O dispatcher-3 << "HTTP/1.1 202 Accepted[\r][\n]" [2018-01-06 15:08:24,189] [EI-Core] DEBUG - wire HTTP-Listener I/O dispatcher-3 << "Content-Type: text/xml; charset=UTF-8[\r][\n]" Any suggestion to for the correct Xpath Expression. Thanks. *Senuwan Withana* Software Engineer - Support Team | WSO2 Email : [email protected] Mobile: 94773212853 Web: http://www.wso2.com
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
