Xpath expression is empty for input XML file - Help!!!
Hi,
I am desperate by now!!! :-(
I am not able to read an XML file using the File Adapter
when trying to assign the input I get the following error:
06/06/08 09:15:10 at com.collaxa.cube.engine.ext.wmp.BPELAssignWMP.evalFromValue(BPELAssignWMP.java:490)
06/06/08 09:15:10 at com.collaxa.cube.engine.ext.wmp.BPELAssignWMP.__executeStatements(BPELAssignWMP.java:122)
06/06/08 09:15:10 at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:188)
06/06/08 09:15:10 at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3408)
06/06/08 09:15:10 at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1836)
06/06/08 09:15:10 at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75)
06/06/08 09:15:10 at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:166)
06/06/08 09:15:10 at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:252)
06/06/08 09:15:10 at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5438)
06/06/08 09:15:10 at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:1217)
06/06/08 09:15:10 at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:511)
06/06/08 09:15:10 at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:335)
06/06/08 09:15:10 at ICubeDeliveryLocalBean_StatelessSessionBeanWrapper16.handleInvoke(ICubeDeliveryLocalBean_StatelessSessionBeanWrapper16.java:1796)
06/06/08 09:15:10 at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
06/06/08 09:15:10 at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:125)
06/06/08 09:15:10 at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
06/06/08 09:15:10 at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
06/06/08 09:15:10 at com.evermind.server.ejb.MessageDrivenBeanInvocation.run(MessageDrivenBeanInvocation.java:123)
06/06/08 09:15:10 at com.evermind.server.ejb.MessageDrivenHome.onMessage(MessageDrivenHome.java:755)
06/06/08 09:15:10 at com.evermind.server.ejb.MessageDrivenHome.run(MessageDrivenHome.java:928)
06/06/08 09:15:10 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
06/06/08 09:15:10 at java.lang.Thread.run(Thread.java:534)
<2006-06-08 09:15:10,384> <ERROR> <default.collaxa.cube.xml> com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure}
messageType: {null}
parts: {{summary=<summary>empty variable/expression result.
[b]xpath variable/expression expression "/ns6:SUPPLIERS_ORDER_NUMBER" is empty at line 23, when attempting reading/copying it.
Please make sure the variable/expression result "/ns6:SUPPLIERS_ORDER_NUMBER" is not empty.
</summary>}}
this is my XML file:
<?xml version="1.0" encoding="utf-8"?>
<SUPPLIERS_ORDER_NUMBER>"XX"</SUPPLIERS_ORDER_NUMBER>
this is my xsd file:
<xs:schema
targetNamespace="http://schemas.oracle.com/service/bpel/common"
xmlns:common = "http://schemas.oracle.com/service/bpel/common"
xmlns:xs = "http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xs:element name="SUPPLIERS_ORDER_NUMBER" type="xs:string"/>
</xs:schema>
Please help me
thanks
Amit
Hi,
This is my file adapter wsdl file:
<definitions
name="fileAdapter"
targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/file/"
xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/file/"
xmlns="http://schemas.xmlsoap.org/wsdl/" >
<types>
<schema attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/file/"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:FILEAPP="http://xmlns.oracle.com/pcbpel/adapter/file/">
<element name="InboundFileHeaderType">
<complexType>
<sequence>
<element name="fileName" type="string"/>
<element name="directory" type="string"/>
</sequence>
</complexType>
</element>
</schema>
</types>
<!-- Header Message -->
<message name="InboundHeader_msg">
<part element="tns:InboundFileHeaderType" name="inboundHeader"/>
</message>
</definitions>
So , should I use http://xmlns.oracle.com/pcbpel/adapter/file/ as my targetNamespace?
for example:
<xs:schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/file/"
xmlns="http://xmlns.oracle.com/pcbpel/adapter/file/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
Thanks
Amit
Similar Messages
-
Batch input xml files to one flatfile output
I have a receive location where I would need to wait for couple of minutes to get
all the xml files needed to process. Every file in that receive location is of same format.
I would need to produce one output flat file for all the input xml files received within couple of minutes.A mapping need
to be applied on every file before it's converted to a flat file batch.
I tried to batch the input xml files but I am unable to implement the mapping which has to be applied on every input xml
file.
How do I approach this?Thank you for your response.The transformed xml has got header, body and trailer so when I processed two files by using the map in the receive port. The batched output flat file is as below:
HEADER 27052014
1 HSGbryan_oNSYS300270520141038
2 HSG3851911NSYS150220420141455 22042014
3 HSG3851909NSYS150220420141449 22042014
4 HSG3853034NSYS150220420141436 22042014
TRAILER 4
HEADER 27052014
1 HSGbryan_oNSYS150270520141045
TRAILER 1
However, the required output is
HEADER 27052014
1 HSGbryan_oNSYS300270520141038
2 HSG3851911NSYS150220420141455 22042014
3 HSG3851909NSYS150220420141449 22042014
4 HSG3853034NSYS150220420141436 22042014
5 HSGbryan_oNSYS150270520141045
TRAILER 5
Is there anything we can tweak in to have one header and trailer with the body having sequential row count for the entire flat file batched message? -
XML publisher report not generating output for huge XML files
Changed Depreciation Projections Report output type to XML.
Defined a Data Definition and a new Data Template (RTF) for this report.
Ran the Depreciation Projection Report to generate the XML output.
Ran the XML Report Publisher report to generate teh PDF/Excel output of the above report.
Output generated for smaller XML files. When XML size is big, the program is running for hours without generating the output.
Teh RTF template is basically a matrix report in which the number of columns in the report is based on the number of periods the report is run for.
The same is not working in the Desktop version also. The system is hanging when i try to view the preview pdf.
The XML file size is approximately 33 MB.
Please let me know if there is any way we can increase the memory size to see the output.
Thanks,
Ram.for publisher use Category: E-Business Suite
-
Unable to establish a for loop in custom rtf template for seeded xml file
Hi Experts ,
I am Unable to establish a for loop in custom rtf template for seeded xml file. i am using <?:for-each:G_BSALINE?> FORM FIELD .....<?:FOR-EACH?END> .AM i missing something?
Please help.
ThanksHi,
Need more information about your XML data structure; however based on the code you provided, the synax does not look right; you have some colon sign where it is not needed etc... You could use the following (although not quite sure if you want to use Form Filed to group by or just display), but look at the example provided below.
<?for-each-group:G_BSALINE?> FORM FIELD .....<?end for-each-group?>
Example code:
<?for-each-group:G_INVOICE_NUM;./INV_TYPE?>
xxxxxxxxxx
<?end for-each-group?>
Thanks! -
Source Reformat menu item disabled for some XML files, but not all
For some reason, the 'Reformat' option isn't available for some of my XML files (in Source menu it's disabled, in the right-click pop up menu it's not even there). For example in my META-INF folder it's enabled for .wsdl files but not .xml files. In the same project, it's enabled for all .xml files in the WEB-INF folder.
Any idea what's going on?
TIAThanks to everyone for their response. But - it is NOT a copyright issue , it is NOT a DRM issue, it is not a Faber College double secret probation encoding issue.
This is a simple .wmv file, that I have copied, burned, created a disk image, made a copy of and sent to the UK, Germany, Ireland and even New Jersey. It has been played on a MacBook Pro, a MacBook, a Dell whatever, a Sony stand alone DVD player, an LG DVD player. At least three nieces or nephews, and at least 2 canines have put it through ISO 9XXX rigors.
The problem is that Apple Quick Time 7 Pro with Flip4Mac Pro "can't handle it"
It opens fine, it plays fine --- but when I try to "output" it via the FILE menu - all of the options
Share ...
Export ...
Export to Web ...
are greyed out.
I know nothing abour codecs and wrappers but I tihnk that this is the problem.
What should I know about the file?
Ffor example, years ago, all you needed to know about a Mac file was the "Creator" and the "Type" - both were 4 character codes. something like ADOB for Adobe and PMK2 for Pagemaker 2.0.
Any help identifying the file and what I can use to get it onto my iPhone will be appreciated.
Thank you. -
Correct adapter to use for an XML file
Hi,
My current scenario for our business partner is that we are sending them an 850 and 856 then an XML file.
For 850 and 856, we are using AS2 adapter. For the XML file, could I still use the same adapter? Or I need to use File adapter instead?
My scenario for the xml file is that an IDoc is converted to an XML file. This XML file is then sent to the business partner.
Please advise.
Thanks very much.
Regards,
LexHi VJ,
I just found out that I could also use the AS2 adapter to send the xml file to the trading partner.
Thanks for your kind response.
Regards,
Lex -
How-to use Excel for the XML file input?
Hello all,
Following our discussion with Gerhard Steinhuber on the very nice tutorial from Horst Schaude , "How to upload mass data via XML File Input" , I am starting this new discussion.
In the comments section of this previous cited tutorial, Rufat Gadirov explains how to use a generated XML from Eclipse instead of your XSD file as your source in Excel.
However, in spite of all the instructions, I am still facing the same issue in Excel when I try to save my file as XML : "The XML maps in this workbook are not exportable".
What I try to do is to create one or more Sales Orders with multiple Items in it from a XML File Input, using excel to enter data.
The part with the File input is working (if I directly upload my file to the webDAV, it creates a sales order instance with multiple items).
The only missing part is the Excel data input that I cannot make work. Any help on this matter would be greatly appreciated.
Here is my XML file that I try to use as a source in Excel before inputing data from Excel:
<?xml version="1.0" encoding="UTF-8"?>
<p:MySalesOrderUploadedIntegrationInputRequest xmlns:p="http://001365xxx-one-off.sap.com/YUUD0G3OY_" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<MessageHeader>
<CreationDateTime>2015-03-02T12:00:00.000Z</CreationDateTime>
</MessageHeader>
<List actionCode="01" listCompleteTransmissionIndicator="true" reconciliationPeriodCounterValue="0">
<MySalesOrderUploaded>
<MySalesOrderUploadedID>idvalue0</MySalesOrderUploadedID>
<MyBuyerID schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeID="token">token</MyBuyerID>
<MyDateTime>2015-03-02T12:00:00.000Z</MyDateTime>
<MyName languageCode="EN">MyName</MyName>
<MyBillToParty schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MyBillToParty>
<MyDateToBeDelivered>2001-01-01</MyDateToBeDelivered>
<MyEmployeeResponsible schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MyEmployeeResponsible>
<MySalesUnit schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MySalesUnit>
<MyItem>
<MyItemID>token</MyItemID>
<MyItemProductID schemeAgencyID="token" schemeID="token">token</MyItemProductID>
<MyItemDescription languageCode="EN">MyItemDescription</MyItemDescription>
<MyProductTypeCode>token</MyProductTypeCode>
<MyRequestedQuantity unitCode="token">0.0</MyRequestedQuantity>
<MyConfirmedQuantity unitCode="token">0.0</MyConfirmedQuantity>
<MyNetAmount currencyCode="token">0.0</MyNetAmount>
</MyItem>
</MySalesOrderUploaded>
<MySalesOrderUploaded>
<MySalesOrderUploadedID>idvalue0</MySalesOrderUploadedID>
<MyBuyerID schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeID="token">token</MyBuyerID>
<MyDateTime>2015-03-02T12:00:00.000Z</MyDateTime>
<MyName languageCode="EN">MyName</MyName>
<MyBillToParty schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MyBillToParty>
<MyDateToBeDelivered>2001-01-01</MyDateToBeDelivered>
<MyEmployeeResponsible schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MyEmployeeResponsible>
<MySalesUnit schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MySalesUnit>
<MyItem>
<MyItemID>token</MyItemID>
<MyItemProductID schemeAgencyID="token" schemeID="token">token</MyItemProductID>
<MyItemDescription languageCode="EN">MyItemDescription</MyItemDescription>
<MyProductTypeCode>token</MyProductTypeCode>
<MyRequestedQuantity unitCode="token">0.0</MyRequestedQuantity>
<MyConfirmedQuantity unitCode="token">0.0</MyConfirmedQuantity>
<MyNetAmount currencyCode="token">0.0</MyNetAmount>
</MyItem>
</MySalesOrderUploaded>
</List>
</p:MySalesOrderUploadedIntegrationInputRequest>
Thank you all for your attention.
Best regards.
Jacques-Antoine OllierHello Jacques-Antoine,
I suppose that as you have tried to construct a map from the schema, you have taken the elements from the List level down. In this case I also can't export the map.
But if you take the elements from the level MySalesOrderUploaded down, you'll get the exportable map (screenshots)
Best regards,
Leonid Granatstein -
Maximum input payload size(for an XML file) supported by OSB
Hey Everyone,
I wanted to know, what is the maximum payload size that OSB can handle.
The requirement is to pass XML files as input to OSB and insert the data of the XML files in the oracle staging tables. The OSB will host all the .jca,wsdl, xml, xml schema and other files required to perform the operation.
The hurdle is to understand, what is the maximum XML file size limit, that OSB can allow to pass through without breaking.
I did some test runs and got the following output,
Size of the XML file: OSB successfully read a file of size, 3176kb but failed for a file of size 3922kb, so the OSB breakpoint occurs somewhere between 3-4 MB, as per the test runs.
Range of number of Lines of XML: 102995 to 126787, since OSB was able to consume a file with lines (102995) and size 3176kb but broke for a file with number of lines (126787) and size 3922kb.
Request to please share your views on the test runs regarding the OSB breakpoint and also kindly share the results, if the same test has been performed at your end.
Thank you very much.Hey Everyone,
I wanted to know, what is the maximum payload size that OSB can handle.
The requirement is to pass XML files as input to OSB and insert the data of the XML files in the oracle staging tables. The OSB will host all the .jca,wsdl, xml, xml schema and other files required to perform the operation.
The hurdle is to understand, what is the maximum XML file size limit, that OSB can allow to pass through without breaking.
I did some test runs and got the following output,
Size of the XML file: OSB successfully read a file of size, 3176kb but failed for a file of size 3922kb, so the OSB breakpoint occurs somewhere between 3-4 MB, as per the test runs.
Range of number of Lines of XML: 102995 to 126787, since OSB was able to consume a file with lines (102995) and size 3176kb but broke for a file with number of lines (126787) and size 3922kb.
Request to please share your views on the test runs regarding the OSB breakpoint and also kindly share the results, if the same test has been performed at your end.
Thank you very much. -
Script for generating XML file ... problem with null values
Greetings everyone,
i come here with a question that troubles me for some time now. I have a script which i run from SQLPLUS every now and then to generate an XML file.
Problem is that data which needs to be in XML is not allways <> NULL and i need to hide those tags that are empty </tag>.
I will post below my script and if you could help me with it it would be really great!
Thanks for reading!
set long 20000000
set long 20000000
set linesize 32000
SET ECHO OFF
SET TRIMSPOOL on
SET HEADING OFF
SET PAGESIZE 50000
SET VERIFY OFF
SET FEEDBACK OFF
SET TERMOUT OFF
spool C:\test.xml
set serveroutput on
begin
dbms_output.put_line('<?xml version="1.0" encoding="utf-8" ?>');
end;
SELECT
XMLELEMENT("ReportRoot",XMLATTRIBUTES('http://www.w3.org/2001/XMLSchema-instance' as "xmlns:xsi", 'http://www.w3.org/2001/XMLSchema' as "xmlns:xsd" , '1.0' as "Version",sysdate as "CreationDate",to_char(sysdate,'hh:mm:ss') as "CreationTime",'1524544845' as "id"),
XMLELEMENT("Porocila",XMLELEMENT("JOLY",(SELECT XMLAGG (XMLELEMENT("RefNrReport",replace('SON'||to_char(ref_ST,'00000'),' ',''))) from access_table_2 where ref_ST = &1),
XMLELEMENT("ReportDate",sysdate),XMLELEMENT("Labeling",'545254450'),
(SELECT XMLAGG (XMLELEMENT("Reportf",
XMLELEMENT("access",access),
XMLELEMENT("date",date),
XMLELEMENT("datep",datep),
XMLELEMENT("ModificationInfo",'M'),XMLELEMENT("ModificationReason",modireason)))
from v_xml_test where id_dok = &1 and ind_print = '1'))))
.extract('/*')
from dual
spool off
exitNow lets pretend that XMLELEMENT("datep",datep), is sometimes NULL and i do not want to display it.may be
with t as
select sysdate datep from dual union all
select null datep from dual
select xmlagg(xmlelement("Reportf",
case when datep is not null then XMLELEMENT("datep", datep)
end
from t -
Multiple xsd's for one xml file
Hi Experts,
My scenario is HTTP to IDoc. My client is sending me XML file as input. I have got 4 XSD's from that XML file. I imported them into PI with giving references by using new importing method with refenences. I have got 4 XSD's imported succesfully into PI with the references in external references tab.
Tha problem is each XSD is creating multiple messages(splitted) in PI. I can't use any one message in mapping becuase no message has full message to map with the output. One message has reference to the other message.
Please suggest me how to proceed...
Thanks-
Ramesh.There should be a Main XSD which will refer the other (4) XSDs....right now you seem to be importing the XSDs independently.
If XSD1 is referring XSD2, XSD2 is referring XSD3 and so on.....then XSD1 will form your Main XSD and then each XSD will have a separate reference to the next XSD.....all the XSDs need to be imported in XI.
For example, create Data-types DT1, DT2, DT3, DT4 and provide a reference between them....DT2 in DT1, DT3 in DT2, DT4 in DT3....ultimately DT1 will refer all the other strcutures.....I hope this is what you are looking for. -
Input xml file to crystal report and output pdf using java
Hi all,
I am in need, I am trying to give the input as dynamic extended Markup Language and output to be Plain Document Format file, in my crystal report using simple java code. If possible can anyone drop a sample code. that would be great.Hi Naveen,
If i have understood your requirement from your last post. this code should solve your problem.
What i understand is you want to export a report to PDF format and this report is using XML file data.
The below code Uses a report designed in Crystal report XI R2.
Its a Standalone application which uses a Dataset made using the xmldata(xml file) and the xmlschema(xsd file).
This Dataset is used to populate the report with data.
Eventually the report is exported to a physical location at the end of this code.
import com.crystaldecisions.ReportViewer.*;
import com.crystaldecisions.reports.sdk.*;
import com.crystaldecisions.sdk.occa.report.reportsource.*;
import com.crystaldecisions.sdk.occa.report.exportoptions.*;
import com.crystaldecisions.sdk.occa.report.data.IXMLDataSet;
import com.crystaldecisions.sdk.occa.report.lib.IByteArray;
import java.io.*;
public class XMLData
public static void main(String[] args)
final String RPT_NAME = "XMLReport.rpt";
try
ReportClientDocument rpt = new ReportClientDocument();
rpt.open(RPT_NAME, 0);
FileInputStream fin = new FileInputStream("C:
Thick_client
Amol_Sir
Amol.xsd");
ByteArrayOutputStream baos = new ByteArrayOutputStream();
byte[] bytes = new byte[1024];
for(;;)
int count = fin.read(bytes);
if(count < 0)
break;
baos.write(bytes, 0, count);
final byte[] xsdBytes = baos.toByteArray();
fin.close();
//read xml file
fin = new FileInputStream("C:
Thick_client
Amol_Sir
Abhi.xml");
baos = new ByteArrayOutputStream();
bytes = new byte[1024];
for(;;)
int count = fin.read(bytes);
if(count < 0)
break;
baos.write(bytes, 0, count);
final byte[] xmlBytes = baos.toByteArray();
fin.close();
IXMLDataSet xml_ds = new IXMLDataSet()
private IByteArray xmlData = null;
public void setXMLData(IByteArray xmlData) {
this.xmlData = xmlData;
public IByteArray getXMLData() {
return this.xmlData;
private IByteArray xmlSchema = null;
public void setXMLSchema(IByteArray xmlSchema){
this.xmlSchema = xmlSchema;
public IByteArray getXMLSchema() {
return this.xmlSchema;
xml_ds.setXMLData(new IByteArray() {
public void fromString(String arrayValue){}
public String toString() { return ""; }
public byte[] getBytes() { return xmlBytes; }
xml_ds.setXMLSchema(new IByteArray() {
public void fromString(String arrayValue){}
public String toString() { return ""; }
public byte[] getBytes() { return xsdBytes; }
rpt.getDatabaseController().setDataSource(xml_ds, "books/book", "books/book");
ByteArrayInputStream byteArrayInputStream = (ByteArrayInputStream)rpt.getPrintOutputController().export(ReportExportFormat.PDF);
rpt.close();
byte byteArray[] = new byte[byteArrayInputStream.available()];
//Create a new file that will contain the exported result.
File file = new File("C:
Thick_client
Copy of Amol_Sir
ExportedReport.pdf");
FileOutputStream fileOutputStream = new FileOutputStream(file);
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(byteArrayInputStream.available());
int x = byteArrayInputStream.read(byteArray, 0, byteArrayInputStream.available());
byteArrayOutputStream.write(byteArray, 0, x);
byteArrayOutputStream.writeTo(fileOutputStream);
//Close streams.
byteArrayInputStream.close();
byteArrayOutputStream.close();
fileOutputStream.close();
System.out.println("Successfully exported report");
catch (Exception exception)
System.out.println(exception.toString()); -
How to Suppress Empty Field in XML File
My xml file sometimes has fields that are empty. No problem
in ie, but in Firefox the Spry tabbed panel displays the data as
"undefined".
Any suggestions would be helpful.
Thanks!You can check for it:
<span spry:if=" '{your_dataref}' !=
undefined">{your_dataref}</span>
You may have to put 'undefined' in single quotes. I can never
remember... -
Input XML file validation based on dtd
Hi All,
I get a XML file as input from a customer. It has a reference to a dtd element. So when I try to open the file it looks for the dtd file. Where can I place the dtd file on the application server so that I dont get any error? The XML file has the following header:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE NAXML-BusDoc SYSTEM "NAXML-BusDoc.dtd">
<NAXML-BusDoc version="1.0">
Thanks,
GeethaI get a XML file as input from a customer. It has a reference to a dtd element.
check out the last reply in this thread (mentions a similar problem of dtd in xml)and check if similar solution can be applicable to you...
external definition error -
Can we do a Secure FTP for an XML file from ABAP when firewall is enabled?
Hi all,
I have a requirement to send an XML file to an External FTP Server which is out of our corporate network and our firewall is enabled.
I have to send an XML file with Purchase Order details. I completed that with the help of this blog https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/2657. [original link is broken] [original link is broken] [original link is broken]
Now I need to FTP the XML file that is generated. How should I be doing this? Can some of help me with this?
I need to do a Secure FTP to the external non SAP server which is out of our corporate network and our firewall is enabled. Can some one tell me if SFTP is possible in ABAP.
This is not a web service. I am working on dropping an XML file in an external FTP serveru2026 I have searched the forums but still in a confusion if weather Secure FTP is possible in ABAP or not when our company firewall is enabledu2026
If some one encountered this situation earlier please help,,,..any help will be highly appreciated.
Regards,
Jessica SamThanks a lot for your valuable suggestions Richu2026
I agree with you Rich that web services would be a better option. But I need to send this file to an external third party and they dont have web services.
They are telling us that either we can send them an XML file or a CSV file in the format that they want. We decided to go with XML file format.
I am done with formatting the Purchase Order details in the format that they want. Now the challenge is that I need to send this FTP file to them and it should be a Secure FTP when our fire wall is enabled,
When you say
1) Run an ABAP program to generate the XML file and put it on the local PC
2) Log into the FTP site via some FTP client, could simply be windows as well.
3) Manually cut/paste the file from the PC to the FTP site.
For Step 1 running ABAP Program can I schedule a batch job?
For Step 2 and Step 3 can I automate it in any other way..if not in ABAP?
Can I advice my company to follow any alternate method in which they can automate this step 2 and step 3u2026if not in ABAP can it be possible in any other way as the third party does not have web services I now have no other alternative.
Please Helpu2026
Regards,
Jessica Sam -
Problem in JAXB for processing XML files
hello
I have been working on a project where i need to process data in XML format. the flow goes thus
I have 28 data elements that i need to represent as a XML so i compile the schema files and generate the class files for each of the tags and thus i can use the get and set methods to read and write to a XML file respectively(example getName and setName)......
Now the problem is that my coding is done if i change my xml file and add say 2 more tags how do i handle it in my code.........
1>Do i have recomplie the schema file and generate new class files every time the xml structure changes. can i avoid this recompiling process and use a one time genrated class files even if the xml structure changes.
2>Now i have hard coded the get and set methods for processing the xml file if i add new tags to my xml i wouldnt have the get set methods for the new tags in my code(say i add a new tag as Phone then i wouldnt have the codes getPhone and setPhone called in my code and this tage was added after the coding was done)........how do i handle this situation. Is is possible that i can get and set data without using these methods and use some sort of a dynamic way of getting and setting data.............
3>Any other approach available to meet the above requirements other than JAXB.
Please help for the above problem
Thank youhi,
i had written a xml and schema to validate.
my xml would be
<output>
<table>
<row>
<column></column>
<column></column>
</row>
</table>
<document>
<properties>
</properties>
<contents>
</contents>
</document>
<table>
<row>
<column></column>
<column></column>
</row>
</table>
<document>
<properties>
</properties>
<contents>
</contents>
</document>
<table>
<row>
<column></column>
<column></column>
</row>
</table>
<document>
<properties>
</properties>
<contents>
</contents>
</document>
</output>
schema should validate : each table should contain atleast one row element and each row element should have atleast one column. similarly, each document should have atleast one properties and contents element.
if any of these things occur. for ex: if there is no row element in table, i need to delete the table tag. similary if there is no properties/content or both element in document it should delete the corresponding document from the xml.
i tried for table if there is no row element am getting the line number of the </table> tag, based on that am deleting the table element. if there is no properties tag and contents tag is there. am getting the line number for <contents>start tag, with which i could not able to delete the whole document.
can anybody plz help me out for this requirement
Maybe you are looking for
-
I established a dial up connection by updating to automatic the remote managers and telephony in administrative tool services area on my XP system according to firefox help instructions. At first I had a dial up connection but I unchecked an item in
-
Formula variable with replacement path on system date
Hi Experts, I got a requirement to calculate "Days without payment" in report level. Days without payment = System Date - Payment Date. (Payment date field is available in CUBE, but system date field is not available in the CUBE) As we know, the diff
-
Integration Builder XML Problem
Hi all, after upgrading our XI installation to SP 11 I get the following error: I can't work with XML data anymore. For example if i try to import external message definition from a WSDL file with the Integration Builder (IB), the IB loses it's conne
-
White background in composition window while rendering
I've got some footage that, while rendering, the composition windows background (not the comp background) turns white. I think remember from somewhere that this is a sign of a codec issue? I can't seem to find the correct search criteria to find this
-
ClassNotFoundException - NoClassDefFoundError: AdfResourcebundleConfig
Before this time I used to get a ClassNotFoundException on AdfResourceBundleConfig which is different from AdfResourcebundleConfig, the class name I found in the resourcebundle directory. I traced this, called up the particular java file in jdevelope