How to read entire file content in one XML tag?
Hi,
How can I read entire file content in one XML tag?
What specifications do I need to specify in Sender adapter?
regards,
Anirudh.
Hi Chirag,
I am reading a flat file for File to Idoc scenario.
Target Idoc is nested which can not be populated with graphical mapping.
see below post for more detail.
[Mapping flat XML to nested IDOC using node functions |Mapping flat XML to nested IDOC using node functions;
The problem here is I'm not able to identify when to insert context change for child which is repeating for a repeating parent.
Solution therefore, I think is reading entire flat structure in one node and then use UDF to populated intermediate target with proper nesting.
Thats why I need to read entire XML.
regards,
Anirudh.
Similar Messages
-
How to read trace file content
Hi,
DB :11.2
How to read trace file content.It's only for ORACLE SUPPORT?
calling
call
entry
argument values in hex
location
type
point
(? means dubious value)
ksedst()+31
call
ksedst1()
000000000 ? 000000001 ?
7FFF19B98CA0 ? 7FFF19B98D00 ?
7FFF19B98C40 ? 000000000 ?
ksedmp()+610
call
ksedst()
000000000 ? 000000001 ?
7FFF19B98CA0 ? 7FFF19B98D00 ?
7FFF19B98C40 ? 000000000 ?
ksfdmp()+21
call
ksedmp()
000000003 ? 000000001 ?
7FFF19B98CA0 ? 7FFF19B98D00 ?
7FFF19B98C40 ? 000000000 ?
kgerinv()+161
call
ksfdmp()
000000003 ? 000000001 ?
7FFF19B98CA0 ? 7FFF19B98D00 ?
7FFF19B98C40 ? 000000000 ?
kgeasnmierr()+163
call
kgerinv()
0069107E0 ? 011F80370 ?
7FFF19B98D00 ? 7FFF19B98C40 ?
000000000 ? 000000000 ?
kssmov()+502
call
kgeasnmierr()
0069107E0 ? 011F80370 ?
7FFF19B98D00 ? 7FFF19B98C40 ?
000000029 ? 0D3F1C600 ?
kfncInitSlavePool() call
kssmov()
0D3F1C5D0 ? 000000000 ?
+203
7FFF19B98D00 ? 7FFF19B98C40 ?
000000029 ? 0D3F1C600 ?
kfncWorkMsgAlloc()+ call
kfncInitSlavePool() 0D3F1C5D0 ? 000000000 ?
83
7FFF19B98D00 ? 7FFF19B98C40 ?
000000029 ? 0D3F1C600 ?
kfncFileUnidentify( call
kfncWorkMsgAlloc() 0D3F1C5D0 ? 7FFF19B99AD0 ?
)+635
7FFF19B98D00 ? 7FFF19B98C40 ?
000000029 ? 0D3F1C600 ?
kffmRequestFree()+1 call
kfncFileUnidentify( 7FFF19B99BC8 ? 7FFF19B99BC0 ?
Br,
RajOne needs to know the meaning of the kernel functions and their working within the oracle database. I guess, oracle support can do the analysis more easily as they have access to the software code as well necessary tools to interpret these internal routines.
Aman.... -
How to read flat file and convert to xml throught OSB
Hi ,
Can somebody help how to read flat file and convert to xml in OSB.
appreciate ur help.
Thanks & Regards ,
Siva K Diviif you're using the oepe with osb plugin (will be installed when you install the osb locally) and then in your osb project > rightmouseclick > new > MFL.
that's it
maybe you're trying to create it within an oepe installation which doesnt have the osb plugin ? -
How to read text file content in portal application?
Hi,
How do we read text file content in portal application?
Can anyone forward the code to do do?
Regards,
AnaghaCheck the code below. This help you to know how to read the text file content line by line. You can display as you require.
IUser user = WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service");
IResourceContext resourceContext = new ResourceContext(user);
String filePath = "/documents/....";
RID rid = RID.getRID(filePath);
IResource resource = ResourceFactory.getInstance().getResource(rid,resourceContext);
InputStream inputStream = resource.getContent().getInputStream();
BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));
String line = reader.readLine();
while(line!=null) {
line = reader.readLine();
//You can append in string buffer to get file content as string object//
Regards,
Yoga -
How to read a file content from portal
Hi experts,
I have a file (xml or xlsx), which i have kept in D drive.
then using GUI_UPLOAD, i have read file content into internal table. then i am proceeding furthur.
but in real, my file will be in portal (means https:\\in.xyz.com\........\TEST.XML
in this case i can not use GUI_UPLOAD.
can any one suggest how can i achieve above. Thanks.
Regards,
Venkata PrasadHi venkata
try this code below
tables: znks_exceldb.
types: begin of wa_input,
emp_id type string,
name type string,
middle type string,
last_name type string,
address type string,
acc_num type string,
mobile type string,
end of wa_input.
data: gt_intern type kcde_intern.
data:gwa_intern type kcde_intern_struc.
data gt_input type table of wa_input.
data gwa_input like line of gt_input.
data it_tab type table of znks_exceldb.
data it_wa like line of it_tab.
constants c_seprator type c value ','.
parameters ex_file type localfile obligatory.
at selection-screen on value-request for ex_file.
call function 'F4_FILENAME'
* EXPORTING
* PROGRAM_NAME = SYST-CPROG
* DYNPRO_NUMBER = SYST-DYNNR
* FIELD_NAME = ' '
importing
file_name = ex_file.
start-of-selection.
perform readfile using ex_file.
perform insert.
perform display.
form readfile using ex_file type localfile.
data:lv_filename type rlgrap-filename.
data: lv_index type i.
field-symbols: <> type any.
lv_filename = ex_file.
call function 'KCD_CSV_FILE_TO_INTERN_CONVERT'
exporting
i_filename = lv_filename
i_separator = c_seprator
tables
e_intern = gt_intern
exceptions
upload_csv = 1
upload_filetype = 2
others = 3.
if sy-subrc <> 0.
* Implement suitable error handling here
endif.
loop at gt_intern into gwa_intern.
move gwa_intern-col to lv_index.
assign component lv_index of structure gwa_input to <>.
move:gwa_intern-value to <>.
at end of row.
append gwa_input to gt_input.
clear gwa_input.
endat.
endloop.
endform.
form insert.
loop at gt_input into gwa_input.
it_wa-emp_id = gwa_input-emp_id.
it_wa-name = gwa_input-name.
it_wa-middle = gwa_input-middle.
it_wa-last_name = gwa_input-last_name.
it_wa-address = gwa_input-address.
it_wa-mobile = gwa_input-mobile.
it_wa-acc_num = gwa_input-acc_num.
append it_wa to it_tab.
endloop.
insert znks_exceldb from table it_tab accepting duplicate keys.
endform.
form display.
loop at gt_input into gwa_input.
write :/ gwa_input-emp_id,
gwa_input-name,
gwa_input-middle,
gwa_input-last_name,
gwa_input-address,
gwa_input-mobile,
gwa_input-acc_num .
endloop.
endform.
Regards
Niraj Sinha -
How to read a file content for editing?
Now i am using FileInputStream to read its content by bytes. How do i read the content line by line as string so that i am able to do some editing using replace().
public String load() throws FileNotFoundException, IOException {
BufferedReader r = new BufferedReader(new FileReader(new File(this.getClass().getResource(filename).getPath())));
String s = r.readLine();
StringBuffer result = new StringBuffer();
while (s != null) {
result.append(s + "\n");
s = r.readLine();
r.close();
return result.toString(); -
How to read a file content in a ordinary java program
Please help me is there is any method is available to read the content of the file.I am asking in pure java not in the servlets.Guys please help me.I got structed here
Reading a text file in the systems character encoding: use the class java.io.FileReader. You can wrap a BufferedReader around it to get better performance (and a simple way to read lines)
Reading a text file in another character encoding: use FileInputStream and convert it to a reader with:
InputStreamReader reader = new InputStreamReader(fileStream, encoding);
where encoding is the character encoding as a String (like "Cp850" or "UTF-16LE"). Again, you can wrap a BufferedReader around that reader.
Reading a binary file: open a FileInputStream to the file and just read the bytes from it. You can use BufferedInputStream for better performance and DataInputStream to get a simple way to read primitive types like double and char.
Please help me is there is any method is available to
read the content of the file.I am asking in pure java
not in the servlets.Guys please help me.I got structed
hereAren't servlets pure Java? -
How do I move imove content from one user to another on the same computer?
We bought our Macbook pro about six months ago. We made the mistake of creating two users for it (my husband and myslef) but bow we only log in under my user name. The problem is we originally imported all of our video camera content to his "log in" and now it is in his imovie folder, and not mine. I want to make a movie on my log in with the fottage that we imported to his. So, how do I get video content from one users login on the SAME computer to the other log in users? I cannot seem to move it for the life of me. I did not expect this to be so difficult.
Hi,
You need to log into his account and look, under the Movies folder, for iMovie Events. Inside, you'll find folders with the events names and still further will be the movie itself. Copy each to an external media or use the Shared folder so both accounts can reference them.
Another option would be to attach an external HD and via iMovie (Events Library pane) move them to the new disk. You would preserve the thumbnails and analysis already performed on the videos.
Good luck! -
Need to read text file content and have to display it in multiline text box
dear all,
Need to read text file content and have to display it in multiline text box.
actually im new to file handling. i have tried up to get_line and put_line.
in_file := TEXT_IO.FOPEN ('D:\SAMPLE.txt', 'r');
TEXT_IO.GET_LINE (in_file,linebuf);
i dont know how to assign this get_line function to text item
pls help me in this regards,Simply write:
in_file := TEXT_IO.FOPEN ('D:\SAMPLE.txt', 'r');
TEXT_IO.GET_LINE (in_file,linebuf);
:block2.t1 := chr(10)||:block2.t1||chr(10)||linebuf;
chr(10) --> is for new line character -
How to read outlook email content that is sent to specific Email ID
Hi Friends.
I have the following requirement.
When an outlook Email is sent from some specifc third party system(Say for Example @gmail.com) to some service Email ID account([email protected]), then I should be able to read the Email using SAP and forward it to my approver's Email ID([email protected]).
I have followed the below blog to do the basic configuration
Receiving E-Mail and processing it with ABAP - ... | SCN
But this blog has no information on how to read the mail content.
Please help me in resolving this issue.
Thanks,
PeriForgotten Security Questions/Answers
You need to contact Apple by:
1 - Use the Express lane and start here:
https://expresslane.apple.com
then click More Products and Services>Apple ID>Other Apple ID Topics>Forgotten Apple ID security questions.
or
Apple - Support -form iTunes Store - Contact Us
2 - Call Apple in your country by getting the number from here:
http://support.apple.com/kb/HE57
or
Apple ID: Contacting Apple for help with Apple ID account security
3 - Use your rescue email address if you set one up
Rescue email address and how to reset Apple ID security questions
For general information see:
Apple ID: All about Apple ID security questions -
How to read pmd files on mac?
How to read pmd files on mac?
There is no native support to open PageMaker documents on the Mac. I would check to see what PageMaker document versions that InDesign CS6 can open, ether on Mac or PC.
Adobe still has the trial of PageMaker 7 for Windows (Adobe link) and PM7 PDF, which you could install in Boot Camp, or Mac Virtual Machine in Windows 7.
I just checked the latest release of LibreOffice, and there is no support for PageMaker anything.
zamzar dot com does not support .pmd content. -
Hi all,
I am new in web services...just started yesterday.. my client is provinding web services...I just need to send some data to them and retrieve data back...they are basically verifying addresses..if Address is not corrent then they will send the correct one back..I have no clue which method should I call and how to send data to them..below is my work that I have done so far...please help me...
///Below is the Client API that I have made...there is a bean file which I have made for Input Data...
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.namespace.QName;
public class TestClient {
public static void main(String [] args) {
try {
String endpoint = "http://m3group101.mnao.net:8080/jboss-net/services/ValidateAddress";
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress( new java.net.URL(endpoint) );
call.setOperationName(new QName("http://m3group101.mnao.net/", "ValidateAddress"));
call.setUsername("free");
call.setPassword("account");
AddressIn addressIn = new AddressIn();
addressIn.Address1 = "6767 Friars Rd";
addressIn.Address2 = "";
addressIn.Address3 = "";
addressIn.Address4 = "";
addressIn.City = "SAN DIEGO";
addressIn.StateProv = "CA";
addressIn.PostalCode = "";
addressIn.Country = "US";
String ret = (String) call.invoke(new Object[] {"",""}); ////Here I donno what should I pass
System.out.println("Sent DATA, got '" + ret + "'");
} catch (Exception e) {
System.err.println("Got Error While retrieving data "+e.toString());
///My Bean File Looks like this....
import java.io.*;
import java.util.*;
import java.util.ResourceBundle;
public class AddressIn {
public String KeyValue;
public String Address1;
public String Address2;
public String Address3;
public String Address4;
public String City;
public String StateProv;
public String PostalCode;
public String Country;
public AddressIn()
KeyValue = "";
Address1 = "";
Address2 = "";
Address3 = "";
Address4 = "";
City = "";
StateProv = "";
PostalCode = "";
Country = "";
} // END constructor
} // END class AddressIn
import java.io.*;
import java.util.*;
import java.util.ResourceBundle;
public class AddressOut {
public String KeyValue;
public String Address1;
public String Address2;
public String Address3;
public String Address4;
public String City;
public String StateProv;
public String PostalCodeBase;
public String PostalCodeAddOn;
public String Country;
public String Status;
public String StatusCode;
public String StatusDescription;
public String Confidence;
public String RecordType;
public AddressOut()
KeyValue = "";
Address1 = "";
Address2 = "";
Address3 = "";
Address4 = "";
City = "";
StateProv = "";
PostalCodeBase = "";
PostalCodeAddOn = "";
Country = "";
Status = "";
StatusCode = "";
StatusDescription = "";
Confidence = "";
RecordType = "";
} // END constructor
} // END class AddressInPlease see the WSDL File...
<?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions targetNamespace="http://m3group101.mnao.net:8080/jboss-net/services/ValidateAddress" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://m3group101.mnao.net:8080/jboss-net/services/ValidateAddress" xmlns:intf="http://m3group101.mnao.net:8080/jboss-net/services/ValidateAddress" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://com.g1.dcg/services" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsd00="http://www.w3.org/2000/10/XMLSchema" xmlns:xsd99="http://www.w3.org/1999/XMLSchema">
- <wsdl:types>
- <schema targetNamespace="http://m3group101.mnao.net:8080/jboss-net/services/ValidateAddress" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
- <complexType name="ArrayOf_xsd_anyType">
- <complexContent>
- <restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:anyType[]" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" />
</restriction>
</complexContent>
</complexType>
- <complexType name="ArrayOf_tns1_ServiceOption">
- <complexContent>
- <restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:ServiceOption[]" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" />
</restriction>
</complexContent>
</complexType>
- <complexType name="ArrayOf_tns1_DataRow">
- <complexContent>
- <restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:DataRow[]" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" />
</restriction>
</complexContent>
</complexType>
- <complexType name="ArrayOf_xsd_string">
- <complexContent>
- <restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" />
</restriction>
</complexContent>
</complexType>
</schema>
- <schema targetNamespace="http://com.g1.dcg/services" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
- <complexType name="ServiceOption">
- <sequence>
<element name="key" nillable="true" type="xsd:string" />
<element name="value" nillable="true" type="xsd:string" />
</sequence>
</complexType>
- <complexType name="DataTableBean">
- <sequence>
<element name="columnNames" nillable="false" type="impl:ArrayOf_xsd_string" />
<element name="dataRows" nillable="true" type="impl:ArrayOf_tns1_DataRow" />
</sequence>
</complexType>
- <complexType name="DataRow">
- <sequence>
<element name="values" nillable="true" type="impl:ArrayOf_xsd_string" />
</sequence>
</complexType>
</schema>
</wsdl:types>
- <wsdl:message name="processResponse">
<wsdl:part name="arg0" type="tns1:DataTableBean" />
</wsdl:message>
- <wsdl:message name="processRequest">
<wsdl:part name="arg0" type="impl:ArrayOf_tns1_ServiceOption" />
<wsdl:part name="arg1" type="tns1:DataTableBean" />
</wsdl:message>
- <wsdl:portType name="G1Service">
- <wsdl:operation name="process" parameterOrder="arg0 arg1">
<wsdl:input message="impl:processRequest" name="processRequest" />
<wsdl:output message="impl:processResponse" name="processResponse" />
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="ValidateAddressSoapBinding" type="impl:G1Service">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="process">
<wsdlsoap:operation soapAction="ValidateAddress" />
- <wsdl:input name="processRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://m3group101.mnao.net:8080/jboss-net/services/ValidateAddress" use="encoded" />
</wsdl:input>
- <wsdl:output name="processResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://m3group101.mnao.net:8080/jboss-net/services/ValidateAddress" use="encoded" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="ValidateAddress">
- <wsdl:port binding="impl:ValidateAddressSoapBinding" name="ValidateAddress">
<wsdlsoap:address location="http://m3group101.mnao.net:8080/jboss-net/services/ValidateAddress" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>I am receiving Exception " No Such Operation "
I am sorry but I don'n know how to read WSDL file...
thanks
Vish...
Message was edited by:
vishu007Start going through the tutorials that come with Axis (you didn't state which version of Axis you're using btw, and there are major differences between them).
Anyway, the wsdl you list doesn't have an operation called "ValidateAddress". It has only one operation, called "process".
The call takes 2 arguments, as defined in the input message, and returns one value as defined in the output message.
Had you used Axis to generate your classes for you that would all have become quite obvious. -
How to read text file line by line...?
how to read text file line by line, but the linefeed is defined by user, return list of string, each line of file is a item of list?
please help me.
Thanks very muchBrynjar wrote:
In Groovy, you would do something like:
linefeed = "\n" //or "\r\n" if the user chose so
lines = new File('pathtofile').text.split("${linefeed}")This is one of the things that has always annoyed me about Sun's sdk, i.e. the lack of easy ways to do things like that. You always end up making your own utilities or use something like Apache's commons.io. Same goes for jdbc and xml - I'll wait for appropriate topics to show how easy that is in Groovy :)I generally agree, but what I really don't like about the Groovy text-file handling niceties: They don't care about encoding/always use the default encoding. And as soon as you want to specify the encoding, it gets a lot more complex (granted, it's still easier than in Java). -
hi all
can any1 tell me how should i read spool file
i want to read tht spool and then send it to person automatically
i can read that by sp01 but how to read that file in flat file or direcly send .
JimmyJimmy,
Basically you need to work with Basis peple in the transaction SCOTT.
One FM you can use for sending email is SO_NEW_DOCUMENT_SEND_API1
See the blog on this : /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
Regards,
Hari
Thanks for the points..
Message was edited by: Hari Kiran Y -
How to read a file inside a jar
Hi All,
I have a jar file which consists of several XML. I need to read one of the xml.
If the XML are in a folder it is easy to read them by directly referencing them (e.g.:- "D/Test/Sample.xml";). But if these xmls are put in a jar file i am facing trouble in reading them.
Can anyone please suggest how to read such files. Also if the classes and jar are not in the same directory.
Any help in this regard will be highly appreciated.
Thanks,
Piyushnikhil_vinay wrote:
yes i have already used "Class.getResourceAsStream ()". I guess it comes useful only when the class files and jar are in the same directory.No, wrong. The JVM has little or no concept of 'directories'
and instead relies on the classpath of the application to find
resources.
Due to some problem my jar files and my codes are in different directory. So add them to the apps' claspath and it will all be sweet. The original
responders advice will work just fine if the resource is on the classpath.
(Of course, that reply was assuming the resource was in a jar file.
If not, you will probably be needing to offer the user a JFileChooser
to access the file.)
Edited by: AndrewThompson64 on Mar 11, 2008 1:22 PM
Maybe you are looking for
-
Access USB Disk from Win XP connected to Router
Hello, My Airport express is plugged into cable modem router and so is a desktop running Win XP. Another 2 machines Macbook and Winxp laptop can access AE router, internet and the USB disk connected to AE. I am having trouble accessing the USB disk f
-
Your Firefox 4.0 browser opening page will NOT search anything!
-
How do I change google search to google chrome search engine
need to have google search changed to google chrome search engine...attempted several times, several different ways...yet NO... will not happen... not a computer whiz... not at all...so please give simple instructions for me...I would appreciated it
-
Streaming in iOS6 disables wifi
Since iOS 6 "upgrade," my iPad (3rd gen) acknowledges and connects to wifi. I can surf the web, but if I try to stream anything, YouTube, Netflix, etc... It works for anywhere between thirty seconds and two minutes, but then the wifi shuts off. I ha
-
OIM: Adding MultiSelect Fileds to a process form
Hi! Does anybody know, how can I add a multiselect fields to my process form (like fields "Choose User" and 'Choose Resource' in the Request Creation Wizard)?