Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Convert a txt file to a CSV file Post 303030782 by vgersh99 on Friday 15th of February 2019 12:21:54 PM
Old 02-15-2019
Quote:
Originally Posted by kumarm8
Hi ,
I have a Txt file which consist of 1000's of SOAP request and response and i want the file to be converted to a csv file like column a should have a soap request and column b should have the soap response . can someone assist me in achieving this please ?

Thanks
The ask is a bit (?) nebulous. Probably "someone" will be able to "assist".
Why don't you try to be a bit more specific:
  1. Provide sample input file(s) using code tags
  2. Provide a detailed description of what needs to be done
  3. Provide a desired output file using code tags
  4. Show your attempts at achieving your objectives and where exactly you're stuck
This User Gave Thanks to vgersh99 For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

convert a txt file to xls file

How to convert a txt file(tab delimiter) to xls file. Looking forward help. Thanks, Venkatesh. (2 Replies)
Discussion started by: venkatesht
2 Replies

2. Shell Programming and Scripting

how to convert XLS to CSV and DOC/RTF to TXT

Hi, i don't know anything about PERL. Can anyone help me providing PERL scripts for 1. converting XLS to CSV (and vice-versa) 2. converting DOC/RTF to TXT Thanks much Prvn (1 Reply)
Discussion started by: prvnrk
1 Replies

3. Shell Programming and Scripting

PERL:How to convert numeric values txt file to PACKED DECIMAL File?

Is there any way to convert numeric values txt file to PACKED DECIMAL File using PERL. Regards, Alok (1 Reply)
Discussion started by: aloktiwary
1 Replies

4. Shell Programming and Scripting

How to convert a .log file into .txt file under unix??

Hi Friends, I have a .log file generated from a tool(Windows PC) which can be opened using a notepad, but when I tried to view the file in unix (cygwin on my laptop) the file type is showing as binary file, So I am unable to process the file. I need to extract some of the selected text... (3 Replies)
Discussion started by: ks_reddy
3 Replies

5. Shell Programming and Scripting

Txt to csv convert

Hi, I was trying some split command to pull out values like "uid=abc,ou=INTERNAL,ou=PEOPLE" into a csv file. However because of erratic nature of occurrance of rows made me stopped. Could someone help me in this? and if someone has a one liner for this? The text file contain pattern like this... (14 Replies)
Discussion started by: john_prince
14 Replies

6. Shell Programming and Scripting

Convert txt to csv

Hi - I am looking to convert the following text to csv. The columns may not always have data in them and they may have varying spaces but I still need to have a comma there anyway: Sample Data: ~~~~~~~ Name Email Location Phone Tom... (4 Replies)
Discussion started by: JPBovaird
4 Replies

7. UNIX for Dummies Questions & Answers

Help with a project. convert a txt to csv

Hi people. I've finally converted to linux, and I'm starting to explore the amazing capabilities of the terminal. At the moment in trying to learn how to extract text using the "grep" and "sed" command. I decided to learn by trying to figure out how to solve a practical problem. I have a schedule... (4 Replies)
Discussion started by: kugalskaper
4 Replies

8. Shell Programming and Scripting

Get Data From CSV File and put into a txt file

Hi Guys, File A I have File A as CSV Format.... No R SS MK Par value S AL A1 PKL123 Lo12 1 S AL A2 PKl123 Lo34 22 S AL A3 PkLK234 Lo67 -34 S AL A4 PkLK235 Lo09 120 S AL A5 PkLK236 Lo76 19 S AL A6 PkLK237 Lo44 -17 S AL A7 PkLK238 Lo90 2 S AL A8 PkLK239 Lo34 -9 I want file B like... (4 Replies)
Discussion started by: asavaliya
4 Replies

9. Shell Programming and Scripting

How to convert excel file to csv file or text file?

Hi all, I need to find a way to convert excel file into csv or a text file in linux command. The reason is I have hundreds of files to convert. Another complication is the I need to delete the first 5 lines of the excel file before conversion. so for instance input.xls description of... (6 Replies)
Discussion started by: johnkim0806
6 Replies

10. Shell Programming and Scripting

Need script to convert TXT file into CSV

Hi Team, i have some script which give output in TXT format , need script to convert TXT file into CSV. Output.TXT 413. U-UU-LVDT-NOD-6002 macro_outcome_dist-8.0.0(v1_0_2) KK:1.2.494 (1234:333:aaa:2333:3:2:333:a) 414. U-UU-LVDT-NOD-6004 ... (10 Replies)
Discussion started by: Ganesh Mankar
10 Replies
SOAP::WSDL::Client(3pm) 				User Contributed Perl Documentation				   SOAP::WSDL::Client(3pm)

NAME
SOAP::WSDL::Client - SOAP::WSDL's SOAP Client SYNOPSIS
use SOAP::WSDL::Client; my $soap = SOAP::WSDL::Client->new({ proxy => 'http://www.example.org/webservice/test' }); $soap->call( \%method, $body, $header); METHODS
call $soap->call( \%method, @parts ); %method is a hash with the following keys: Name Description ---------------------------------------------------- operation operation name soap_action SOAPAction HTTP header to use style Operation style. One of (document|rpc) use SOAP body encoding. One of (literal|encoded) The style and use keys have no influence yet. @parts is a list containing the elements of the message parts. For backward compatibility, call may also be called as below: $soap->call( $method, @parts ); In this case, $method is the SOAP operation name, and the SOAPAction header is guessed from the first part's namespace and the operation name (which is mostly correct, but may fail). Operation style and body encoding are assumed to be document/literal Configuration methods outputxml $soap->outputxml(1); When set, call() returns the raw XML of the SOAP Envelope. set_content_type $soap->set_content_type('application/xml; charset: utf8'); Sets the content type and character encoding. You probably should not use a character encoding different from utf8: SOAP::WSDL::Client will not convert the request into a different encoding (yet). To leave out the encoding, just set the content type without appending charset like this: $soap->set_content_type('text/xml'); Default: text/xml; charset: utf8 set_prefix $soap->set_prefix('ns2'); If set, alters the serialization of the request XML such that the supplied value is used as a namespace prefix for SOAP method calls. By way of example, the default XML serialization returns something like this: <?xml version="1.0"?> <SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Body> <getElementId xmlns="http://services.exmaple.org/"> <elementId>12345</elementId> </getElementId> </SOAP-ENV:Body> </SOAP-ENV:Envelope> If the sample set_prefix() call above is used prior to calling your SOAP method, the XML serialization returns this instead: <?xml version="1.0"?> <SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns2="http://services.example.org/"> <SOAP-ENV:Body> <ns2:getElementId> <elementId>12345</elementId> </ns2:getElementId> </SOAP-ENV:Body> </SOAP-ENV:Envelope> This is useful in cases where, for instance, one is communicating with a JAX <https://jax-ws.dev.java.net/> webservice, which tends to understand the latter but not the former. Note that this implementation is currently limited to a single additional namespace; if you require multiple custom namespaces, you should probably look into creating your own serializer. Features different from SOAP::Lite SOAP::WSDL does not aim to be a complete replacement for SOAP::Lite - the SOAP::Lite module has its strengths and weaknesses and SOAP::WSDL is designed as a cure for the weakness of little WSDL support - nothing more, nothing less. Nonetheless SOAP::WSDL mimics part of SOAP::Lite's API and behaviour, so SOAP::Lite users can switch without looking up every method call in the documentation. A few things are quite different from SOAP::Lite, though: SOAP request data SOAP request data may either be given as message object, or as a hash ref (in which case it will automatically be encoded into a message object). Return values The result from call() is not a SOAP::SOM object, but a message object. Message objects' classes may be generated from WSDL definitions automatically - see SOAP::WSDL::Generator::Typelib on how to generate your own WSDL based message class library. Fault handling SOAP::WSDL::Client returns a fault object on errors, even on transport layer errors. The fault object is a SOAP1.1 fault object of the following "SOAP::WSDL::SOAP::Typelib::Fault11". SOAP::WSDL::SOAP::Typelib::Fault11 objects are false in boolean context, so you can just do something like: my $result = $soap->call($method, $data); if ($result) { # handle result } else { die $result->faultstring(); } outputxml SOAP::Lite returns only the content of the SOAP body when outputxml is set to true. SOAP::WSDL::Client returns the complete XML response. Auto-Dispatching SOAP::WSDL::Client does not support auto-dispatching. This is on purpose: You may easily create interface classes by using SOAP::WSDL::Client and implementing something like sub mySoapMethod { my $self = shift; $soap_wsdl_client->call( mySoapMethod, @_); } You may even do this in a class factory - see wsdl2perl for creating such interfaces. TROUBLESHOOTING
Accessing protected web services Accessing protected web services is very specific for the transport backend used. In general, you may pass additional arguments to the set_proxy method (or a list ref of the web service address and any additional arguments to the new method's proxy argument). Refer to the appropriate transport module for documentation. LICENSE AND COPYRIGHT
Copyright 2004-2007 Martin Kutter. This file is part of SOAP-WSDL. You may distribute/modify it under the same terms as perl itself AUTHOR
Martin Kutter <martin.kutter fen-net.de> REPOSITORY INFORMATION
$Rev: 851 $ $LastChangedBy: kutterma $ $Id: Client.pm 851 2009-05-15 22:45:18Z kutterma $ $HeadURL: https://soap-wsdl.svn.sourceforge.net/svnroot/soap-wsdl/SOAP-WSDL/trunk/lib/SOAP/WSDL/Client.pm $ perl v5.10.1 2010-12-21 SOAP::WSDL::Client(3pm)
All times are GMT -4. The time now is 03:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy