XML sendAndLoad problem
I have a simple sendAndLoad XML request that works perfectly
on 95% of the computers I have used. I have check crosssite stuff
and everything i can think of. Its not browser specific ,os
specific, or flash version specific. On these computers I can run
the same flash file on a standalone player and everything works
flawlessly but inside of any browser it makes the request for the
XML file and stops right there. After a while like 10 minutes flash
gets tired of waiting and returns not found. I can navigate to the
xml file via the same browser. Upgrading Flash doesn't help. The
only thing consistent is it only happens to windows computers. The
requested URL is the complete URL. I have changed this and still
the same. IE or Firefox still the same. Version 9 player in both. I
have montiored network traffic and see the request made and maybe a
response but flash has moved.
Any Help would be appreciated.
ANSWER: I figured it out myself. I am just replying to let
everybody else know how I fixed it. I had the full URL in the load
request and apparently some Flash players don't like this. I put a
link to the file without the domain name and everybody is working
fine. The load function, Flash, or something could not resolve the
domian correctly and could not find the XML file. I was not getting
a request for the file from the Flash movie so I knew it had to be
soemthing in Flash.
Similar Messages
-
XML.sendAndLoad - (Security-related) Error Opening URL
Hi All,
I know this is a common problem (I've searched), but I'm
hoping you can help me out.
1. What my Application Does
My Flash app uses XML.sendAndLoad() to communicate with a
Java Servlet on the same domain, in the same webapp.
2. What happens when I run it on my (developer) machine
It works.
I connect to a url "
http://localhost:8080/webapp1/servlet/FlashServlet"
perfectly and pass around XML between Flash and Java
3. What Happens on the Real Machine
The Real Machines equivalent URL is
http://int-tzn:8101/webapp1/servlet/FlashServlet
The XML.sendAndLoad() cannot connect, with a "Error Opening
URL" error.
4. What I've Tried
4.1. Using a
crossdomain.xml on Real Machine
(not sure if I've got in correct place, but i
can see it at
http://int-tzn:8101/crossdomain.xml
4.2. Tried a StandAlone (Projector) WITH Network Access
4.3. Tried using
LocalContentUpdater to confirm and set
network access
4.4. Have set in my ActionScript :
System.security.allowDomain("*");
Please help.
This needs to go into a large Production Environment in 2
days and there are large amounts of money behind it.
Thanks in advance.
- Laven PillayOK the deal is:
When using TLF, a user visiting your webpage will download the TLF's SWZ file, if the user already has that file it will be downloaded from the adobe site, if the adobe site is down then it will search the .swz from where the website is hosted on.
Have a read here:
http://help.adobe.com/en_US/flash/cs/using/WSb03e830bd6f770ee-4b0db644124bbdb363d-8000.htm l#WSb03e830bd6f770ee72b69dc71257a25aa72-8000 -
WIJ 20002 xml Parser Problem - Rich Client
Hi,
I have a problem with the rich client on a new installation:
Business Objects Enterprise XI 3.1 SP3 on Windows 2008 Standard.
If I connect with the rich client "import document"is disabled.
if I try to create a new document from the rich client it returns the error below (I used the rich client on two workstations):
WIJ 20002
Version: null
Analisi dello stack:
java.lang.RuntimeException: java.lang.RuntimeException: XML parser problem:
XMLJaxpParser.parse(): Element type "ABOUT_Patentnumbers" must be followed by either attribute specification, ">" or "/>".
at com.businessobjects.wp.xml.jaxp.XMLJaxpParser.parse (Unknown Source)
at.com.businessobjects.webi.richclient.XMLviaOccaRC.getServerConfiguration (Unknown Source)
Have you any solution?The fixpack 3.5 client resolves the problem.
-
I'm exporting a xml document that I'm creating dynamically in my application.
I'm having the following problems (working with 30M.2).
1)
It's not possible to edit a DTD (or creating one run time) so I have to write a
template doc XML to have it.
I'm afraid that this is a costraint on the DOM1 so ...
2)
Once I complete the construction of the doc, I need to write it down (let's say
on a file, but could be also in memory to send it on http).
When I write it (using exportdocument function) I just find the root element
with all it's children, no haeder (<?xml version="1.0" ?><!DOCUMENT ...>) so I
cannot have the dtd information on the stream, and cannot enforce validation of
the doc when someone read it afterwards.
I admit I'm new of the subject, but or I miss something or something is wrong:
having trouble to get a dtd and not being able to code it's information.
Anyone has some ideas?
TIA
LucaI'm interested in DTDs. For example in the reported situation, why, if you
know you've created a valid XML document would you want to give a DTD to
someone at the other end? If someone has a DTD at the other end and want to
use it to validate your XML then fine but if you create the XML and are
controlling the format then wouldn't they just assume the XML correct if the
DTD wasn't being controlled by a 3rd party or themselves?
DTDs don't help you create a document but just validate it, I'd thought. If
there is more to DTDs I'd appreciate if someone felt like ellaborating.
Thanks.
Matthew Middleton
OrYx Software Consultant
Lawpoint Pty. Limited
A Solution 6 Company
Ph: +61 2 9239 4972
Fax: +61 2 9239 4900
E-mail matthewmwriteme.com
----- Original Message -----
From: Luca Gioppo <Luca.GioppoCSI.IT>
To: <forte-userslists.xpedior.com>
Sent: Tuesday, August 08, 2000 8:24 PM
Subject: (forte-users) XML - ExportDocument problem
>
>
I'm exporting a xml document that I'm creating dynamically in myapplication.
I'm having the following problems (working with 30M.2).
1)
It's not possible to edit a DTD (or creating one run time) so I have towrite a
template doc XML to have it.
I'm afraid that this is a costraint on the DOM1 so ...
2)
Once I complete the construction of the doc, I need to write it down(let's say
on a file, but could be also in memory to send it on http).
When I write it (using exportdocument function) I just find the rootelement
with all it's children, no haeder (<?xml version="1.0" ?><!DOCUMENT ...>)so I
cannot have the dtd information on the stream, and cannot enforcevalidation of
the doc when someone read it afterwards.
I admit I'm new of the subject, but or I miss something or something iswrong:
having trouble to get a dtd and not being able to code it's information.
Anyone has some ideas?
TIA
Luca
For the archives, go to: http://lists.xpedior.com/forte-users and use
the login: forte and the password: archive. To unsubscribe, send in a new
email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com -
I want to generate a xml file with text from a txt file but i have problems with special characters such as &, <... I'd like to know if there�s any class or library to filter the text in order to generate my xml without problems.
Thank you.Use JDOM to generate your XML. It will worry about escaping issues for you.
Here's a (probably rather inelegant) example for you to play around with:
import javax.xml.parsers.*;
import javax.xml.transform.*;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import org.w3c.dom.*;
public class DateBoom {
public static void main(String[] args)
throws Exception
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
String dodgyText = "< & '";
Document document = builder.newDocument();
Element root = document.createElement("root");
root.setAttribute("dodgy",dodgyText);
document.appendChild(root);
Element child = document.createElement("child");
root.appendChild(child);
child.appendChild(document.createTextNode(dodgyText));
Transformer transform = TransformerFactory.newInstance().newTransformer();
Source source = new DOMSource(document);
Result result = new StreamResult(System.out);
transform.transform(source,result);
}Your alternative is to use something like String regular expressions (regex) to do this manually, but the XML oriented libraries will catch more corner cases than you're likely to anticipate, making them more reliable. -
hi
I have developed an gaming web application, I load a swf in
jsp page which makes a xml.sendandLoad() request after loading.
i use struts and jboss , from the swf using sendandLoad() a
request is make to server and in response it gets an xml
its working perfectly when its HTTP but when it comes to
HTTPS the request is hitting the server but the response is not
coming the SWF is going on wainting for the response.
my server side code i generating an xml and setting it in the
printWriter of the response.
I even tried crossdomain.xml for the security policy it is
not working .
iam stuck up please help me to resolve this issue.Here's something that might help you:
http://www.northcode.com/forums/showthread.php?s=&threadid=3803
Dan Mode
--> Adobe Community Expert
*Flash Helps*
http://www.smithmediafusion.com/blog/?cat=11
*THE online Radio*
http://www.tornadostream.com
<--check this
*Must Read*
http://www.smithmediafusion.com/blog
"arovinth" <[email protected]> wrote in
message
news:erhrg0$fm6$[email protected]..
> hi
> I have developed an gaming web application, I load a swf
in jsp page which
> makes a xml.sendandLoad() request after loading.
>
> i use struts and jboss , from the swf using
sendandLoad() a request is
> make to
> server and in response it gets an xml
>
> its working perfectly when its HTTP but when it comes to
HTTPS the request
> is
> hitting the server but the response is not coming the
SWF is going on
> wainting
> for the response.
>
> my server side code i generating an xml and setting it
in the printWriter
> of
> the response.
>
> I even tried crossdomain.xml for the security policy it
is not working .
>
> iam stuck up please help me to resolve this issue.
>
>
> -
Saving XML from Flash XML.sendAndLoad
I'm new to XML and haven't a clue how to integrate Flash xml
and Coldfusion 7. There is a Flash app ( I didn't develop it) that
is sending xml.sendAndLoad formatted data like this to a cf page
setSummaryQuiz.cfm
<?xml version="1.0" encoding="UTF-8"?>
<result lessonID="19" userID="56">
<word id="281" value="1" />
<word id="282" value="1" />
<word id="283" value="5" />
<word id="284" value="5" />
<word id="285" value="3" />
<word id="286" value="7" />
<word id="287" value="3" />
<word id="288" value="8" />
<word id="289" value="7" />
<word id="290" value="4" />
<word id="291" value="8" />
<word id="292" value="2" />
<word id="293" value="5" />
<word id="294" value="4" />
<word id="295" value="1" />
<word id="296" value="4" />
<word id="297" value="8" />
<word id="298" value="1" />
<word id="299" value="7" />
<word id="300" value="1" />
</result>
My page is supposed to return saved = true or false like
this:
<? xml version = " 1.0" encoding = "UTF-8"?>
<result saved = "true"/>
Can someone help me or point me to a tutorial or code snippet
where I can see how CF reads and parses the XML data from
Flash?In ASP setting the response type to "text/xml" you can do a
response.write command to send back XML to Flash if you were
performing an XMLSendAndLoad command ie. send XML from Flash,
processed by ASP and receive an XML response from the ASP - good
for Flash to know if something worked or an error resulted in
processing the info. -
!DOCTYPE !ENTITY war file xml splitting problem
Hi,
I am trying to split a file - struts-config.xml - which eventually gets
located into my war file.
Here is the xml file.
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts
Configuration 1.0//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd"
<!ENTITY struts_FormBeans SYSTEM "./struts_FormBeans.xml">
<!ENTITY struts_GlobalForwards SYSTEM
"./struts_GlobalForwards.xml">
<!ENTITY struts_ActionMappings SYSTEM
"./struts_ActionMappings.xml">
>
The problem that I run into is that the xml parser at deploy time cannot
locate the struts_FormBeans.xml file which is located in the same place as
the struts-config.xml file.
Does anyone know a way to tell it to look in the war file?
or Does anyone know a better place to post a question like this?
Thanks in advance!!The problem that I run into is that the xml parser at deploy time cannot
locate the struts_FormBeans.xml file which is located in the same place as
the struts-config.xml file.Uh-uh. Ran into this also.
Does anyone know a way to tell it to look in the war file?Not me, but I wish I could.
or Does anyone know a better place to post a question like this?This seems more like a Struts issue to me. Look here:
http://marc.theaimsgroup.com/?l=struts-user&m=100016330124990
and follow the thread. Someone suggested a patch to the ActionServlet, I
haven't tried it yet. It sounds good and will probably do what you want.
--Renaud
"IH" <[email protected]> wrote in message news:[email protected]..
Hi,
I am trying to split a file - struts-config.xml - which eventually gets
located into my war file.
Here is the xml file.
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts
Configuration 1.0//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd"
<!ENTITY struts_FormBeans SYSTEM "./struts_FormBeans.xml">
<!ENTITY struts_GlobalForwards SYSTEM
"./struts_GlobalForwards.xml">
<!ENTITY struts_ActionMappings SYSTEM
"./struts_ActionMappings.xml">
>
The problem that I run into is that the xml parser at deploy time cannot
locate the struts_FormBeans.xml file which is located in the same place as
the struts-config.xml file.
Does anyone know a way to tell it to look in the war file?
or Does anyone know a better place to post a question like this?
Thanks in advance!! -
Using Flash's xml.sendAndLoad behind a proxy
We have a product that uses Directory and Flash to collect
data and then we send that data to a web server via a soap call. We
had been using an external perl script to do the soap call for many
years and are wanting to move the code in to Flash or Directory so
we can give the user better feed back about what is happening with
the soap call.
I created som flash scripts that use the XML object and the
sendAndLoad function to do the calls. The problem I am finding is
that if the client is behind a proxy the call fails. Is there a way
to fix this and correctly authenticate with the proxy server so
that the soap call goes through?I don't know how you'd do this using a Flash object, but
Director's
built-in NetLingo xtra can handle SOAP requests as of version
10.1 and
this, in conjunction with the proxyServer() command, should
be all you
need - assuming you have access to proxy details.
<
http://www.adobe.com/devnet/director/articles/webservices.html> -
Give a reference to (LoadVars||XML).sendAndLoad
I write a class to manage several HTTP echanges.
It's a stack of url:String, method:String, datas:object and
what-should-be-a-reference:object.
Stacking function interface : public function
push(url:String, method:String, datas:object, receiver:object):Void
While unstacking, I call the sendAndLoad corresponding to the
datas&receiver instanceof.
The datas in the stack are a object copy of the original one
passed to the push function and it doesn't matter.
public function push(url:String, method:String, datas:object,
receiver:object):Void {
var entry = new Object();
entry.receiver = receiver; /* MUST be a reference */
stack.push(entry);
In both cases, XML or LoadVars, I got the problems that when
I modifie the .receiver variable stocked in the stack, it doesn't
affect the original one passed to the function.
lv.sendAndLoad(currentEntry.url, currentEntry.receiver,
currentEntry.method);
Is there a way to declare that I don't want a copy of the
given param but a reference ? (or to pass a reference to a
function)What is the full path to the dll file you're trying to add?
System.xml.linq is part of the default reference libraries for a Windows Phone 8 project so you should not need to add this reference.
Eric Fleck, Windows Store and Windows Phone Developer Support. If you would like to provide feedback or suggestions for future improvements to the Windows Phone SDK please go to http://wpdev.uservoice.com/ where you can post your suggestions and/or cast
your votes for existing suggestions. -
Hi, my problem is :
In my Application i want to parse an XML file with DOM parser. The problem is that in my Project "MyProject -> Project Properties -> Libraries and Classpath"
I have included some 15 libraries which are useful for my Application: ADF Faces Runtime 11, ADF Web Runtime and etc.
Problems are causing the libraries: BC4J Runtime,ADF Model Runtime, MDS Runtime Dependencies
because when added my source which is parsing an XML file stops working.The source code is:
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
File file =
new File("C:\\Documents and Settings\\ilia\\Desktop\\begin.xml");
Document doc = db.parse(file);
Element root = doc.getDocumentElement();
NodeList dots = root.getElementsByTagName("w:t");
Element firstDot = (Element)dots.item(0);
String textValue = firstDot.getFirstChild().getNodeValue();
I use DOM because i need to change some values in the XML file, but its not working neither for reading nor for writing.When debugging I see that it gets the root of the xml but " firstDot.getFirstChild().getNodeValue() " returns null and it breaks with NullPointerException. And that's only when the libraries mentioned above are added to the project. Without them it works just fine !
I don't know, it's like when added the parser validates my xml against some schema and returns null.
The xml file is very simple MS Word Document saved as .xml .But I don't think that's the problem.
Thanks in advance !
iliyaHi all,
I found the solution to my problem.The right way to parse and change an XML file with DOM parser using the Oracle XML Parser v2 should look like this:
JXDocumentBuilderFactory factory =
(JXDocumentBuilderFactory)JXDocumentBuilderFactory.newInstance();
JXDocumentBuilder documentBuilder =
(JXDocumentBuilder)factory.newDocumentBuilder();
File file = new File("c:/Documents and Settings/ilia/Desktop/begin.xml");
InputStream input =
new FileInputStream(file);
XMLDocument xmlDocument = (XMLDocument)(documentBuilder.parse(input));
System.out.println("Encoding: " + xmlDocument.getEncoding());
System.out.println("Version: " + xmlDocument.getVersion());
NodeList namespaceNodeList =
xmlDocument.getElementsByTagNameNS("http://schemas.microsoft.com/office/word/2003/wordml","t");
XMLElement namespaceElement17 = (XMLElement)namespaceNodeList.item(17);
namespaceElement17.getFirstChild().setNodeValue("someString"); -
XML Parsing - problem with a value of an element if starting with space
Hi Experts,
I need your valuable guidence to get out of a problem in parsing an XML file.
An XML file is read into xstring variable and it is processed to be split into the corresponding itab.
Please find the code below
types: begin of ty-itab,
field(4096),
end of ty-itab.
Data:
g_ixml TYPE REF TO if_ixml,
g_ixmldocument TYPE REF TO if_ixml_document,
g_ixmlstreamfactory TYPE REF TO if_ixml_stream_factory,
g_ixmlstream TYPE REF TO if_ixml_istream,
g_ixmlparser TYPE REF TO if_ixml_parser,
g_ixmlnodemainlist TYPE REF TO if_ixml_node_list,
g_ixmlnodelistmainelement TYPE REF TO if_ixml_node_list,
g_sxmldata TYPE string,
g_ixmlnode TYPE REF TO if_ixml_node.
DATA: wa_xmltab TYPE xstring,
itab type table of ty-itab.
OPEN DATASET l_file IN BINARY MODE FOR INPUT MESSAGE v_msg.
READ DATASET l_file INTO wa_xmltab.
PERFORM f_create_xmltable USING wa_xmltab
CHANGING v_msg.
IF NOT v_msg IS INITIAL.
msg = v_msg.
EXIT.
ELSE.
itab[] = it_xmldata[].
ENDIF.
CLOSE DATASET l_file.
Subroutine to convert xstring to char type ITAB.
FORM f_create_xmltable USING value(pi_inputxmlstring) TYPE xstring
CHANGING v_msg.
*-- create the main factory
g_ixml = cl_ixml=>create( ).
*-- create the initial document
g_ixmldocument = g_ixml->create_document( ).
*-- create the stream factory
g_ixmlstreamfactory = g_ixml->create_stream_factory( ).
*create input stream
g_ixmlstream = g_ixmlstreamfactory->create_istream_xstring( string =
pi_inputxmlstring ).
*-- create the parser
g_ixmlparser = g_ixml->create_parser( stream_factory =
g_ixmlstreamfactory
istream = g_ixmlstream
document = g_ixmldocument ).
*-- parse the stream
IF g_ixmlparser->parse( ) NE 0.
*if parser cannot be created then give error exit
IF g_ixmlparser->num_errors( ) NE 0.
EXIT.
ENDIF.
ENDIF.
*-- we don't need the stream any more, so let's close it...
CALL METHOD g_ixmlstream->close( ).
CLEAR g_ixmlstream.
*get the number of main nodes of the XML document
g_ixmlnodemainlist = g_ixmldocument->get_children( ).
*set number of elemtns
g_inummainelements = 0.
g_imainelementsctr = 0.
g_inummainelements = g_ixmlnodemainlist->get_length( ).
g_ifirstlevelctr = 0.
*loop through the document till all have nodes have been covered.
WHILE g_ifirstlevelctr LT g_inummainelements.
*get the first node
g_ixmlnode = g_ixmlnodemainlist->get_item( g_ifirstlevelctr ).
*check the type of node
g_isnodeelement = g_ixmlnode->get_type( ).
*if node is not of type Element then continue
*because we have got to read only text from element nodes.
IF g_isnodeelement NE c_nodeelement.
g_ifirstlevelctr = g_ifirstlevelctr + 1.
CONTINUE.
ENDIF.
*get nodes of the element just found.
g_ixmlnodelistmainelement = g_ixmlnode->get_children( ).
*get number of children of main element
g_inumchildelements = g_ixmlnodelistmainelement->get_length( ).
*loop trhough the number of children
WHILE g_imainelementsctr LT g_inumchildelements.
g_ixmlnodemainelement = g_ixmlnodelistmainelement->get_item(
g_imainelementsctr ).
*get type of node
g_isnodeelement = g_ixmlnodemainelement->get_type( ).
IF g_isnodeelement NE c_nodeelement.
g_imainelementsctr = g_imainelementsctr + 1.
CONTINUE.
ENDIF.
*get name of the node.
g_selementvalue = g_ixmlnodemainelement->get_name( ).
*get children of node
g_childnodelist = g_ixmlnodemainelement->get_children( ).
g_inumchildren = g_childnodelist->get_length( ).
g_ichildelementcounter = 0.
*while there are number of children of node.loop through
WHILE g_ichildelementcounter LT g_inumchildren.
*get the child node
g_childnode = g_childnodelist->get_item(
g_ichildelementcounter ).
*check the type of node
g_isnodeelement = g_childnode->get_type( ).
*if node is not of element type continue
IF g_isnodeelement NE c_nodeelement.
g_ichildelementcounter = g_ichildelementcounter + 1.
CONTINUE.
ENDIF.
*otherwise get element name
g_selementname = g_childnode->get_name( ).
*get value stored in this node.
g_selementvalue = g_childnode->get_value( ).
g_numelem = g_inumchildren - 1.
IF g_ichildelementcounter EQ g_numelem.
CONCATENATE: g_slinedata g_selementvalue
INTO g_slinedata.
ELSE.
* store the value of noide in delimiter ~ line
* Check for Invalid characters in file
IF g_selementvalue CA '&'.
REPLACE ALL OCCURRENCES OF '&' IN g_selementvalue WITH
endif.
*if value contains delimiter then error
IF g_selementvalue CA '~'.
V_MSG = text-003.
EXIT.
ELSE.
CONCATENATE: g_slinedata g_selementvalue '~' .
INTO g_slinedata.
ENDIF.
ENDIF.
*continue
g_ichildelementcounter = g_ichildelementcounter + 1.
ENDWHILE.
g_ichildelementcounter = 0.
*increment the main element counter by one to go to the next node
g_imainelementsctr = g_imainelementsctr + 1.
*move the current delimiter line creted to internal table to be given
*back to the calling program
MOVE g_slinedata TO wa_xmldata-data.
APPEND wa_xmldata TO it_xmldata.
MOVE '' TO g_slinedata.
MOVE '' TO wa_xmldata-data.
ENDWHILE.
*increment counter to move to hte next node.
g_ifirstlevelctr = g_ifirstlevelctr + 1.
g_imainelementsctr = 0.
ENDWHILE.
ENDFORM. "f_create_xmltable
XML structure
<?xml version="1.0" encoding="utf-8"?>
<ABCInbound xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\XYZSchema\ABCInbound.xsd">
<HH>
<RecordType>HH</RecordType>
<Source>ABC</Source>
<Destination>XYZ</Destination>
<TimeStamp>20050909220546</TimeStamp>
</HH>
<BH>
<RecordType>BH</RecordType>
<DocType>AB</DocType>
<Reference>2205516125</Reference>
<DocumentDate>20080909</DocumentDate>
<PostingDate></PostingDate>
<CompanyCode>ABC</CompanyCode>
<Currency>INR</Currency>
<ExchangeRate>1.0000</ExchangeRate>
<Park></Park>
<ItemNumber>2</ItemNumber>
</BH>
<BL>
<RecordType>BL</RecordType>
<Reference>2205516125</Reference>
<RefLineItem>1</RefLineItem>
<AcctType>K</AcctType>
<DrCrIndicator>H</DrCrIndicator>
<Account>01000003</Account>
<Amount>364.00</Amount>
<VendorName-1>TOM & JERRY IS MY</VendorName-1>
<VendorName-2> NAME TO BE PAID</VendorName-2>
<VendorName-3>1987566Z</VendorName-3>
<VendorName-4>22</VendorName-4>
<Street>UCX STREET</Street>
<City>ROAD 4</City>
<PostalCode>515004</PostalCode>
<Country>IND</Country>
<ContactPerson></ContactPerson>
<AlternatePayeeCode></AlternatePayeeCode>
<AlternatePayeeName-1></AlternatePayeeName-1>
<AlternatePayeeName-2></AlternatePayeeName-2>
<AlternatePayeeName-3></AlternatePayeeName-3>
<PaymentTerms></PaymentTerms>
<BaselineDate></BaselineDate>
<PaymentMethods></PaymentMethods>
<Allocation></Allocation>
<LineItemText>item text</LineItemText>
<TaxCode></TaxCode>
<TaxAmount>0.00</TaxAmount>
<WHTaxCode></WHTaxCode>
<WHTaxbase>0.00</WHTaxbase>
<Fund></Fund>
<FundCenter></FundCenter>
<CostCenter></CostCenter>
<InternalOrder></InternalOrder>
<TaxAutomatically></TaxAutomatically>
<SpecialGLIndicator></SpecialGLIndicator>
</BL>
<TT>
<RecordType>TT</RecordType>
<TotalRecords>1</TotalRecords>
<TotalValue>222</TotalValue>
</TT>
</ABCInbound>
when the above xml file is read and populated into ITAB, for element vendorname-2 which has a space in first position , that space is ignored.
This is being used for a FB01 posting and vendor is paid based on Name1+Name2 printed on cheque and due to the space ignoring problem, the vendor name is displayed wrongly thus causing problems.
I appreciate if someone could guide me thru and help me in solving this problem.
How to preserve the leading or trailing space.
g_selementvalue = g_childnode->get_value( ).
when i check g_selementvalue, space is ignored.
i will be greateful if someone could guide me through.
Regards,
Simha
Edited by: Simha on Dec 11, 2008 10:49 AM0.02: A C C E P T: Request="NEXT"
0.06: Fetch session state from database
0.08: ...Check session ... owner
0.08: ...Metadata: Fetch Page, Computation, Process, and Branch
0.08: Session: Fetch session header information
0.08: ...Metadata: Fetch page attributes for application ..., page 330
0.08: ...Validate item page affinity.
0.08: ...Validate hidden_protected items.
0.08: ...Check authorization security schemes
0.08: Session State: Save form items and p_arg_values
0.08: ...Session State: Save "P330_PROJECT" - saving same value: ""
0.09: ...Session State: Saved Item "P330_SHUTTLE" New Value=""
0.09: Processing point: ON_SUBMIT_BEFORE_COMPUTATION
0.09: Branch point: BEFORE_COMPUTATION
0.09: Computation point: AFTER_SUBMIT
0.09: Tabs: Perform Branching for Tab Requests
0.09: Branch point: BEFORE_VALIDATION
0.09: ...Evaluating Branch: BEFORE_VALIDATION type: "REDIRECT_URL" button: 12904321314585385 branch: (Unconditional)
0.09: Perform validations:
0.09: ...Item Not Null Validation: P330_SHUTTLE
0.09: ...Validation did NOT pass
This is from debugging, what does the point "0.09: ...Session State: Saved Item "P330_SHUTTLE" New Value="" "
mean ? I think it means, that the Shuttle somehow sets itself to null ?! but i dont understand why...
There is no computation or anything that deletes the shuttle, the page is quite small, there is not much more than the shuttle and the validations and computations to give default value and transforming the shuttle items into a collection to continue working with the IDs.
I dont check whats the problem
Edited by: user12154443 on 21.07.2010 09:47 -
am using XML parser for PL/SQL in Oracle9i Enterprise Edition Release 9.0.1.1.1
When i run the sample xml program, i get error which is as follows. While compiling no errors. But while executing it reports error as given below.
SQL> execute domsample('c:\xml', 'family.xml', 'errors.txt');
begin domsample('c:\xml', 'family.xml', 'errors.txt'); end;
ORA-20100: Error occurred while parsing: No such file or directory
ORA-06512: at "COMMODITYBACKCONNECT.XMLPARSER", line 22
ORA-06512: at "COMMODITYBACKCONNECT.XMLPARSER", line 79
ORA-06512: at "COMMODITYBACKCONNECT.DOMSAMPLE", line 80
ORA-06512: at line 1
What need to be done to rectify the above problem.
when i do the following validation check
SQL>
SQL> select substr(dbms_java.longname(object_name),1,30) as class, status
2 from all_objects
3 where object_type = 'JAVA CLASS'
4 and object_name = dbms_java.shortname('oracle/xml/parser/v2/DOMParser')
5 ;
CLASS STATUS
oracle/xml/parser/v2/DOMParser VALID
oracle/xml/parser/v2/DOMParser VALID
Please advice to how remove the following error:
ORA-20100: Error occurred while parsing: No such file or directoryFound the solution on metalink. There is a file under /$ORACLE_HOME/javavm/install/init_security.sql
which needs to be run under username where you are installing xml parser.
This step is not in readme.txt file provided as a part of download from the OTN website. -
XML File - Problem.with naming tags with XI standard functions
Hello,
simple (?) problem:
Receiver expects an XML file via file adapter.
(The source data comes from an RFC connect to XI.)
In the XML tags like these are expected (following W3C definitions):
A) </gdt:ValueGroup>
How to define a data type with a ":" in its name or to convert it to the required tag?
B) <gdt:ExtendedAttribute gdt:guid="4c102d6b077de7c1f0e27391e40bb80f" gdt:code="X01" >GR2 LI3</gdt:ExtendedAttribute>
This one is a real nice one. The part with "gtd:guid=" within the tag is variable. How to add such values into tag names?
Any ideas if this is possible with standard and how.
If this is the limit of XI I think we need an XSLT- or JAVA-maping program to generate the required file.
Thank you for any help!
Best regards
DirkHi Dirk,
just one thing:
>>>>The part with "gtd:guid=" within the tag is variable.
this is ok as it's just an attribute
of the ExtendedAttribute tag's name
so it can be variable without any problems
(you can fill it in the mapping for example)
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a> -
Data Services Fix Pack 12.2.1.2 issued to resolve XML loader problem
We've had a few customers contacting us about the following error message:
"The message type for datastore <my_ds> has not been set". Please notify Customer Support"
Note that the text "<my_ds> will be the name of the XML loader you have in your dataflow. This error occurs when you are adding a new loader to a dataflow that is an XML type.
The customers that have reported this issue were all building real-time jobs and the loader type was XML Message Target.
In order to address this issue you will need to download and install the latest update which is 12.2.1.2. The above issue was introduced in 12.2.1.1 (3.2 SP1). You will ONLY have to install the client components (Designer) in order to address this issue. no updates are necessary to the server side of the application to address this problem.
An SAP Note has also been written up on this issue: [1423045|https://bosap-support.wdf.sap.corp/sap/support/notes/1423045]
Thanks,
Ryanthere is a connection timeout when trying to contact the laptop.the last lines it shows are:
PCI: setting IRQ 0 as level-triggered
ALI15X3: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0x8080-0x8087, BIOS settings: hda: DMA, hdb:pio
ide1: BM-DMA at 0x8088-0x808f, BIOS settings: hdc: pio, hdd: pio
hda: IC25N060ATMR04-0, ATA DISK drive
Maybe you are looking for
-
Changing BP data to different tabs in transaction BP
Hi everyone, I'm trying to swap around some data in the bp screen. Mainly, when an account is entered I want some of the information that I currently have showing up under a tab 'marketing attributes' to show in a different tab 'customers', which I a
-
Using iMac as display for Windows 7 (thunderbolt to thunderbolt)
I currently have a 27-inch Mid 2011 iMac running OS X Yosemite, and my company has issued me a Lenovo W540 that is running Windows 7 and has a thunderbolt port (not mini-display -- yes, I'm sure). I have spend countless hours trying to use my iMac as
-
HT4101 Using a new lightning to SD card reader - nothing happens
Just get nothing when I connect the SD card reader. Seems to be a common problem? No error message, no photos automatically come up. Latest iPad and reader purchased from an Apple store 2 weeks ago. Tried 2 different SD cards on 2 different iPads. No
-
Can't find subFieldPoint.vi in Labview2013
I have updated my computer to LabVIEW2013 and I need to move a FieldPoint application over to Windows 7. My old vi says the subFieldPoint vi are no good. OK, so where are the new ones? I updated Field Point as well. Solved! Go to Solution.
-
Hi, just recently discovered that the info-window in finder, when highlighting an object looks totally corrupted. Also, the mail-window...when looking at content with html-links in it are weird. And when loading a page of the internet... And facetime