Sponsored Content
Top Forums Shell Programming and Scripting Need to extract XML message from log Post 302211800 by tjshankar on Friday 4th of July 2008 11:40:59 AM
Old 07-04-2008
Need to extract XML message from log

I need help to extract a following SOAP-ENV:Header XML message from the log.

XML message need to be extracted:
***************************

<SOAP-ENV:Header>
<ServiceGatewayHeader>
<SourceApplicationId>OXL</SourceApplicationId>
<Version>1.0</Version>
<UserId>TEST</UserId>
<DatetimeStamp>20-09-06 12:00:00</DatetimeStamp>
<Severity>NONE</Severity>
</ServiceGatewayHeader>
</SOAP-ENV:Header>

Log:

INFO 2008-07-04 10:39:35 @main [46] com.sigma.jea.call.CallFactory> search node ./condition under /#document/jea/taskTypes/taskType/function_body/assign
INFO 2008-07-04 10:39:35 @main [46] com.sigma.jea.call.CallFactory> add stmt:complete_envelope = join('<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelop
e/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:m0="java:
com.sprint.webservice.voiceoverip.helpers" xmlns:m1="java:com.sprint.webservice.voiceoverip.common" xmlns:m2="http://tempuri.org/GeneralLNP/GeneralLNP">
DEBUG 2008-07-04 10:39:35 @main [36] com.sigma.jea.call.CallFunc> type of header in sprint_voip_query_csr=string

<SOAP-ENV:Header>
<ServiceGatewayHeader>
<SourceApplicationId>OXL</SourceApplicationId>
<Version>1.0</Version>
<UserId>TEST</UserId>
<DatetimeStamp>20-09-06 12:00:00</DatetimeStamp>
<Severity>NONE</Severity>
</ServiceGatewayHeader>
</SOAP-ENV:Header>

INFO 2008-07-04 10:39:35 @main [46] com.sigma.jea.call.CallFactory> search node ./condition under /#document/jea/taskTypes/taskType/function_body/assign
DEBUG 2008-07-04 10:39:35 @main [36] com.sigma.jea.call.CallFunc> type of header in sprint_voip_query_csr=string
INFO 2008-07-04 10:39:35 @main [46] com.sigma.jea.call.CallFactory> add stmt:complete_envelope = join('<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelop
e/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:m0="java:
com.sprint.webservice.voiceoverip.helpers" xmlns:m1="java:com.sprint.webservice.voiceoverip.common" xmlns:m2="http://tempuri.org/GeneralLNP/GeneralLNP">

Last edited by tjshankar; 07-04-2008 at 03:08 PM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

extract message

thx thx (1 Reply)
Discussion started by: ust
1 Replies

2. AIX

Move Xml files from AIX machine to message queue.

Hi, Im new to message queue... I need to move the xml files from the AIX server to the message queue. Please help me out to write the code.. Thanks, Mohana Krishnan (0 Replies)
Discussion started by: krishnan_6015@y
0 Replies

3. Shell Programming and Scripting

Move xml files from unix to message queue.

Hi, I need to move the XML files from the UNIX to the message queue. Please help me out to write the code.. Thanks, Mohana Krishnan (0 Replies)
Discussion started by: krishnan_6015@y
0 Replies

4. UNIX for Dummies Questions & Answers

Unable to extract a tag from a very long XML message

Hi I have a log file which contain XML message. I want to extract the value between the tag : <businessEventId>13201330</businessEventId> i.e., 13201330. I tried the following commands but as the message is very long, unable to do it. Attached is the log file. Please provide inputs. --... (3 Replies)
Discussion started by: Sapna_Sai
3 Replies

5. Shell Programming and Scripting

Data Extract from XML Log File

Please help me out to extract the Data from the XML Log files. So here is the data ERROR|2010-08-26 00:05:52,958|SERIAL_ID=128279996|ST=2010-08-2600:05:52|DEVICE=113.2.21.12:601|TYPE=TransactionLog... (9 Replies)
Discussion started by: raghunsi
9 Replies

6. Shell Programming and Scripting

Extract XML message from a log file using awk

Dear all I have a log file and the content like this file name: temp.log <?xml version="1.0" encoding="cp850"?> <!DOCTYPE aaabbb SYSTEM '/dtdpath'> <aaabbb> <tranDtl> <msgId>000001</msgId> </tranDtl> ..... </aaabbb> ... ... (1 Reply)
Discussion started by: on9west
1 Replies

7. Programming

[XQuery] How to Convert from JSON Message to XML Message with XQuery

Hi guys, I'm in a job of converting a restful webservice to soap. Tool for convertation uses XQuery. Now i need to convert a message like this: { "firstName": "John", "midName": null, "lastName": "Smith", "married": false, "address": { "streetAddress": "21 2nd... (5 Replies)
Discussion started by: tien86
5 Replies

8. Shell Programming and Scripting

Taking error message from XML file, amending to script

Hello all, I have a question about creating a script that will look for messages on one of our MQ series systems, and fix them. Currently, if we issue a command for example Command.sh errors it gives us: ID:c3e2d840d4f3f3d74040404040404040cb2ef4e62f70f702 <?xml version="1.0"... (3 Replies)
Discussion started by: jeffs42885
3 Replies

9. Shell Programming and Scripting

Extract a particular xml only from an xml jar file

Hi..need help on how to extract a particular xml file only from an xml jar file... thanks! (2 Replies)
Discussion started by: qwerty000
2 Replies

10. Shell Programming and Scripting

Extract strings from XML files and create a new XML

Hello everybody, I have a double mission with some XML files, which is pretty challenging for my actual beginner UNIX knowledge. I need to extract some strings from multiple XML files and create a new XML file with the searched strings.. The original XML files contain the source code for... (12 Replies)
Discussion started by: milano.churchil
12 Replies
SOAP::Deserializer(3)					User Contributed Perl Documentation				     SOAP::Deserializer(3)

NAME
SOAP::Deserializer - the means by which the toolkit manages the conversion of XML into an object managable by a developer DESCRIPTION
SOAP::Deserializer provides the means by which incoming XML is decoded into a Perl data structure. METHODS
context This provides access to the calling context of "SOAP::Deserializer". In a client side context the often means a reference to an instance of SOAP::Lite. In a server side context this means a reference to a SOAP::Server instance. EXAMPLES
DESERIALIZING RAW XML INTO A SOAP::SOM OBJECT A useful utility for SOAP::Deserializer is for parsing raw XML documents or fragments into a SOAP::SOM object. SOAP::Lite developers use this technique to write unit tests for the SOAP::Lite module itself. It is a lot more efficient for testing aspects of the toolkit than generating client calls over the network. This is a perfect way for developers to write unit tests for their custom data types for example. Here is an example of how raw XML content can be parsed into a SOAP::SOM object by using SOAP::Deserializer: $xml = <<END_XML; <foo> <person> <foo>123</foo> <foo>456</foo> </person> <person> <foo>789</foo> <foo>012</foo> </person> </foo> END_XML my $som = SOAP::Deserializer->deserialize($xml); COPYRIGHT
Copyright (C) 2000-2004 Paul Kulchenko. All rights reserved. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. AUTHORS
Byrne Reese (byrne@majordojo.com) perl v5.12.1 2008-03-15 SOAP::Deserializer(3)
All times are GMT -4. The time now is 10:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy