Xmdom problem, xmlns = "" !
Firstly sorry if am use the wrong terminology (newbie)
I am using xmldom to create XML documents, I need to set a xmlns attribute againt the root node, but when generating the xml, the children nodes are inheriting the namespace attribute, and setting it to null (xmlns = ""). I read this is default behaviour but our client will not accept xml like this. On Oracle 8i I was not getting this, but I am getting it with 9.2 ? Any ideas ? Any workarounds ?
Ed
Sorry I dont know how do do that in PLSQL , I am using the XMLDOM package , i am trying to get this
<?xml version = '1.0' encoding = 'ASCII'?>
<UpdateParameters xmlns="http://schemas//UpdateParamete
rs.xsd">
<ADD>
<Category>TMSDBTEST2</Category>
</ADD>
</UpdateParameters>
but I get <ADD xmlns=""> instead of <ADD>
Any ideas ? cheers !
Similar Messages
-
Problem with XML loading and xmlns
I'm having a problem with loading an XML file that was created by Filemaker. Filemaker will output an XML file using one of two different grammars. One outputs in a mostly standard form that I can use with one glitch. Flash CS4 AS3 seems to have a problem with the xmlns in one of the nodes.
Specifically:
<FMPDSORESULT xmlns="http://www.filemaker.com/fmpdsoresult">
If I remove the xmlns="http://www.filemaker.com/fmpdsoresult" the file loads properly and I can access the various fields with no problem. However, when I leave the xmlns=... in, it will trace out the XML properly but I can't access the fields using the code listed below. This is driving me crazy!
With the xmlns part in the XML file I get the following error when it tries to load the thumbnail files:
TypeError: Error #1010: A term is undefined and has no properties.
I need to have it so that the user can enter/edit data and simply output the XML file from Filemaker and then Flash will load up the unaltered XML file and show the info requested by the user. That is to say I could have the user open the XML file in a word processing application and have them delete the xmlns..., but that is rather cumbersome and not very user friendly.
I've tried every xml.ignore function I could find but it doesn't help. Hopefully someone out there can help
Thanks,
-Mark-
Partial XML:
XML From Filemaker Export:
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This grammar has been deprecated - use FMPXMLRESULT instead -->
<FMPDSORESULT xmlns="http://www.filemaker.com/fmpdsoresult">
<ERRORCODE>0</ERRORCODE>
<DATABASE>Sport.fp7</DATABASE>
<LAYOUT></LAYOUT>
<ROW MODID="1" RECORDID="1">
<FirstName>Mark</FirstName>
<LastName>Fowle</LastName>
<Sport>Sailing</Sport>
<Medal>None</Medal>
<CourseOfStudy>Design</CourseOfStudy>
<Year>1976-1978</Year>
<HomeState>California</HomeState>
<ImageName>93</ImageName>
</ROW>
</FMPDSORESULT>
AS3 Code:
import fl.containers.UILoader;
var aPhoto:Array=new Array(ldPhoto_0,ldPhoto_1,ldPhoto_2,ldPhoto_3,ldPhoto_4,ldPhoto_5);
var toSet:int=10;//time out set time
var toTime:int=toSet;
var photoPerPage:int=6;
var fromPos:int=photoPerPage;
var imgNum:Number;
//var subjectURL:URLRequest=new URLRequest("testData_FM8.xml");
var subjectURL:URLRequest=new URLRequest("Sports.xml");
var xmlLoader:URLLoader=new URLLoader(subjectURL);
xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
var subjectXML:XML = new XML();
subjectXML.ignoreWhitespace=true;
subjectXML.ignoreComments=true;
subjectXML.ignoreProcessingInstructions=true;
function xmlLoaded(evt:Event):void {
subjectXML=XML(xmlLoader.data);
if (root.loaderInfo.bytesTotal==root.loaderInfo.bytesLoaded) {
removeEventListener(Event.ENTER_FRAME, xmlLoaded);
trace("XML Data File Loaded");
trace(subjectXML);
} else {
trace("File not Found");
imgNum=2;//subjectXML.ROW.length;
trace(subjectXML);
loadThumb(0);
function loadThumb(startPos:int):void {
var count:Number=aPhoto.length;
trace(subjectXML.DATABASE);
for (var i=0; i<count; i++) {
try{
aPhoto[i].source="images/"+subjectXML.ROW[startPos+i].ImageName+"_main.jpg";
}catch (e:Error){
trace(e);
aPhoto[i].mouseChildren=false;
aPhoto[i].addEventListener(MouseEvent.MOUSE_DOWN, onThumbClick);
trace("Current mem: " + System.totalMemory);
ldAttract.visible=false;
function unloadThumb():void {
var count:Number=aPhoto.length;
for (var i=0; i<count; i++) {
aPhoto[i].unload();
aPhoto[i].removeEventListener(MouseEvent.MOUSE_DOWN, onThumbClick);
trace("Current mem: " + System.totalMemory);
function onThumbClick(evt:MouseEvent) {
var i:Number;
//trace("Thumbnail Clicked " + evt.target.name);
i=findPos(evt.target.name);
ldLrgPhoto.source="images/"+subjectXML.ROW[i+fromPos].LOCAL_OBJECT_ID+"_main.jpg";
ldLrgPhoto.visible=true;
btnPrev.visible=false;
btnNext.visible=false;
gotoAndStop("showPhoto");
function findPos(thumb:String):Number {
var pos:Number;
var count:Number=aPhoto.length;
for (var i:Number=0; i<count; i++) {
if (thumb==aPhoto[i].name) {
pos=i;
return pos;Hi,
I was trying to use xml namespaces, so in my application I receive an XML file from the server. The file has a namespace, so when I parse the file I need to specify the namespace:
I got the following piece of xml:
<ls:exchange xmlns:ls=".../tsw" xmlns:tm="http://kxa">
<ls:projects>
<tm:annotation id="" date="" action="getprojects" status="responseok"/>
<ls:project id="" name="proj" description="..." owner="asss" release="2" />
<ls:projectV id="" version="" creationdate="" modificationdate=""/ >
</ls:project>
</ls:projects>
</ls:exchange>
and the following code
<mx:VBox label="WELCOME" verticalScrollPolicy="off" horizontalScrollPolicy="off">
<mx:Tree id="tree" dataProvider="{srv.lastResult.project}" labelField="@name" width="300" height="100%" itemOpen="itemOpenEvt(event);" />
</mx:VBox>
So i want to display the content of the xml (project nodes”) in a tree view, but i don’t know how to includes the namespace"ls:" in the data provider “srv.lastResult.project”. can u help me it’s urgent.
sincerly
Celine -
Problem with ora:output and xmlns attribute
Using lastest XDK.
I am using the built in extension ora:output in a stylesheet running via XSQL called from a small java prg.
I am using this to generate several html fragments that will get processed later on not by xsql or xml/xsl but by another java prg.
I have specifed the output as html BUT when I look at the output some of the elements have an xmlns attribute added i.e. xmlns:ora="http://www.oracle.com/XSL/Transform/java"....
Strange thing its not on all elements, "a", "tr", "td" tags are ok but "b", "br" and "table" have this attribute added.... HELP!!
How do I stop this attribute getting added...
Many thanks
Rob
PS I know if I use an "html" tag to wrap the output then only that element ends up with the xmlns attribute but I cant/dont want to do this as the prg running later will combine many of these fragments to create a single "real" html page.I'm not sure whether i understand your problem,
It doesnot need using the binding attribute If you wanna updating the value of each rows in the datatable.
below is a sample that updating each rows of a datatable
jsp file
<h:dataTable value="#[sampleBean.data}" var="row">
<h:column><h:inputText value="#{row.col1}"/></h:column>
</h:dataTable>
<h:commandButton value="update" action="#{sampleBean.update}"/>BackingBean:
SampleBean.java
public class Samplebean{
private SampleRow[] rows[];
public SampleRow[] getData{
return rows;
public String update(){
for(int i=0; i<rows.length; i++){
rows.update();
return "success";
SampleRow.java
public class SampleRow{
private String col1;
public String getCol1(){
return col1;
public void setCol1(String col1){
this.col1 = col1;
public void update(){
//write your code to save one row data to db/file here -
Intresting problem with JDOM and xmlns in root element.
Hi all,
I am trying to parse a xml file using a jdom java code.This code works fine if I remove xmlns attribute in the root element.Please tell me how to fix this issue.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Xml
<process name="CreateKBEntryService" targetNamespace="http://serena.com/CreateKBEntryService" suppressJoinFailure="yes" xmlns:tns="http://serena.com/CreateKBEntryService" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:bpelx="http://schemas.oracle.com/bpel/extension" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:nsxml0="http://localhost:8080/axis/services/CreateKBEntryService" xmlns:nsxml1="http://DefaultNamespace" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
<partnerLinks>
<partnerLink name="client" partnerLinkType="tns:CreateKBEntryService" myRole="CreateKBEntryServiceProvider"/>
<partnerLink name="CreateKBEntryPartnerLink" partnerLinkType="nsxml0:CreateKBEntryLink" partnerRole="CreateKBEntryProvider"/>
</partnerLinks>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
Java:
import java.io.*;
import java.util.*;
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.input.SAXBuilder;
public class sample1 {
public static void main(String[] args) throws Exception {
// create a XML parser and read the XML file
SAXBuilder oBuilder = new SAXBuilder();
Document oDoc = oBuilder.build(new File("file location "));
Element root = oDoc.getRootElement();
System.out.println(root.getName());
String tgtns= root.getAttributeValue("targetNamespace");
System.out.println("tgt ns "+ tgtns);
List list= root.getChildren("partnerLinks");
Iterator it1= list.iterator();
System.out.println(list.size());
while(it1.hasNext()){
Element partnerlinks = (Element)it1.next();
List list2= partnerlinks.getChildren("partnerLink");
System.out.println(list2.size());
Iterator it2= list2.iterator();
String[][] partnerLinkval = new String [2][list2.size()];
int i=0,j=0;
while(it2.hasNext())
Element el2= (Element)it2.next();
String ElementName = el2.getName();
partnerLinkval[i][j]= ElementName;
j++;
String Attribute = el2.getAttributeValue("myRole");
partnerLinkval[i][j]= Attribute;
i++;
j--;
System.out.println("Saving in array "+el2.getName());
System.out.println("Saving in array "+Attribute);
System.out.println("array length"+partnerLinkval.length);
for (int l=0;l<2;l++){
for(int k=0;k<partnerLinkval.length;k++)
System.out.println(partnerLinkval[l][k]);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Result:
Without Xmlns in xml file
process
tgt ns http://serena.com/buildserviceflow
1
2
Saving in array partnerLink
Saving in array BpelServiceFlowProvider
Saving in array partnerLink
Saving in array null
array length2
partnerLink
BpelServiceFlowProvider
partnerLink
null
Result with xmlns:
process
tgt ns http://serena.com/CreateKBEntryService
0Hi,
I am also having the same problem using jdom, my code works fine when there is no xmlns attribute but when i put the xmlns attribute back in doesn't work.
Did you manage to find a way to solve this problem? -
XSLT Transformer xmlns namespace problem
Hi,
I have the following xml document
<PIPEDocument Version="2.0" DocumentReferenceNumber="2001" CreationDate="2002070401251212245"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.oeb.gov.on.ca/">
<MarketParticipantDirectory>
</MarketParticipantDirectory>
</PIPEDocument>
and the following xsl stylesheet
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform"
xmlns ="http://www.oeb.gov.on.ca/"
version = "1.0">
<xsl:output method = "xml" indent = "yes" />
<xsl:template match = "/" >
<PIPEFunctionalAcknowledgement>
<xsl:apply-templates select="//MarketParticipantDirectory"/>
</PIPEFunctionalAcknowledgement>
</xsl:template>
<xsl:template match = "MarketParticipantDirectory" >
</xsl:template>
</xsl:stylesheet>
My problem is, using JAXP1.2.0-EA2 (from JWSDP1-0-ea2), javax.xml.transform.Transformer will not find a match on the element name within the template unless I put a prefix on the target namespace i.e.
if my xml is changed to include a prefix (:xyz in example below)
<PIPEDocument Version="2.0" DocumentReferenceNumber="2001" CreationDate="2002070401251212245"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xyz="http://www.oeb.gov.on.ca/">
<MarketParticipantDirectory>
</MarketParticipantDirectory>
</PIPEDocument>
and my stylesheet is changed also to include the prefix
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform"
xmlns:xyz ="http://www.oeb.gov.on.ca/"
version = "1.0">
</xsl:stylesheet>
then the transfomer works correctly and find a match on the element name "MarketParticipantDirectory" within the template (even though the element doesn't have the prefix xyz:MarketParticipantDirectory).
Could anyone tell me why this is the case?
I would have expected XSLT to match the elements from the namespace xmlns ="http://www.oeb.gov.on.ca/" without the prefix.
Any comments would be much appreciated.
Thanks
Sinead CaseyMatching an element on a Default Namespace requires Explicit Prefix.
http://www.w3.org/TR/xslt20req -
Problem with the namespace in the soap message ' xmlns:p1'
Hi,
I have released a WSDL file which the siebel system is consuming to send the data to SAP XI .
the extract of the WSDL file is as below
<b><?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="MI_Customer" targetNamespace="http://ofcom.co.uk/unify/CustomerMaster" xmlns:p1="http://ofcom.co.uk/unify/CustomerMaster" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"><wsdl:types><xsd:schema targetNamespace="http://ofcom.co.uk/unify/CustomerMaster" xmlns="http://ofcom.co.uk/unify/CustomerMaster" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:element name="MT_Customer" </b>
if we see in the there is a attribute called xmlns:p1 which is creaing the problem as data sent is as below
<b> <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Inbound Message
-->
- <MT_Customer xmlns="http://www.siebel.com/xml/MT_Customer" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <Customer>
<Cust_No>0005000013</Cust_No>
<Title>Mr.</Title>
</b>
due to this the XI system is not triggring the mapping.
as XI expects the data in the below format which we generated with the stylus studio tool
<b> <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Inbound Message
-->
- <p1:MT_Customer xmlns:p1="http://ofcom.co.uk/unify/CustomerMaster" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
- <Customer>
<Cust_No>1232</Cust_No>
<Title>mr.</Title>
</b>
If anyone has any Idea as to how can we overcome this problem
Thanks
Nikhiljust a thought..... did u try removing xmlns:p1="http://ofcom.co.uk/unify/CustomerMaster" from your WSDL file ?
Try to remove that and proceed in your development. -
XSLT Mapping: Problem in appending xmlns attribute
Hi
This is my source message
<?xml version="1.0" encoding="UTF-8"?>
<soap-env:Envelope xmlns:soap-env= "http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Body>
<OrderID xmlns="http://dummyvalue">12345</OrderID>
</soap-env:Body>
My XSLT mapping
<?xml version='1.0' ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" />
<xsl:template match="/">
<soap-env:Envelope>
<soap-env:Body>
<OrderID>
<xsl:attribute name = "xmlns" >
<xsl:value-of select="@xmlns"/>
</xsl:attribute>
<xsl:text>12345</xsl:text>
</OrderID>
</soap-env:Body>
</soap-env:Envelope>
</xsl:template>
</xsl:stylesheet>
I am getting the error message as
ERROR: Description: The value of the 'name' attribute may not be 'xmlns'.
Please help me how to append xmlns attribute in OrderID element ??Hi,
Use <xsl:element> to create a node in the output and specify the namespace.
<xsl:element
name="name"
namespace="URI"
use-attribute-sets="namelist"> <!-- Content:template --></xsl:element>
Thanks,
Beena. -
Xmlns problem in XML manipulation
Hi
I notice that if a xml (element having xmlns), and each time you assign, append or replace the child element you will always get xmlns in your child. For ex
<a xmlns="http://www.w3.org/1999/xhtml">
<b/>
</a>
new element:
<c> test </c>
Appending <c> test </c> to </b > in A (<b>) will result
<a xmlns="http://www.w3.org/1999/xhtml">
<b>
<c xmlns=""> test </c>
</b>
</a>
Why does the element <c xmlns=""> test </c> having xmlns?? Could it be a bug of MII ?
Edited by: Seng Kiang Hoe on Jun 30, 2011 5:00 PMYou are trying to insert a node of xml inside other xml node which is using namespace http://www.w3.org/1999/xhtml.
Node C is not containing the same namespace.
if the parse will not add xmlns="" then it will use the namespace as a node which is not correct.
it your c node will also using the same namespace as
<c xmlns="http://www.w3.org/1999/xhtml"> test </c>
then you will find output
<a xmlns="http://www.w3.org/1999/xhtml">
<b>
<c> test </c>
</b>
</a>
Thanks
Anshul -
Xmlns attr for element nodes creating problem with xslt
Hi all,
I m facing a small issue. I have a xml file for which i have written a xsl file to transform to another xml(demo.xml).I am not able to select the nodes which have xmlns attribute. Can u tell me what has to be done.Snapshot of files:
xml file:
<ROWSET>
<ROW>
<INDEX version="1.0" >
<SCHEMA>AD Design</SCHEMA>
<NAME>AD_FILES_N1I</NAME>
</INDEX>
<INDEX version="1.0" xmlns:doc="http://xmlns.oracle.com/ku">
<SCHEMA>AD Design</SCHEMA>
<NAME>AD_FILES_N1I</NAME>
</INDEX>
</ROWSET>
</ROW>
xsl File
<?xml version='1.0' encoding='utf-8' ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml"/>
<xsl:template match="/ROWSET">
<xsl:apply-templates select="ROW/INDEX"/>
</xsl:template>
<xsl:template match="ROW/INDEX">
<xsl:copy-of select="."/>
</xsl:template>
</xsl:stylesheet>
O/P xml:
<?xml version="1.0" encoding="UTF-8"?>
<INDEX version="1.0" >
<SCHEMA>AD Design</SCHEMA>
<NAME>AD_FILES_N1I</NAME>
</INDEX>Got the solution ..
use these code:
<xsl:template match="INDEX|INDEX[namespace-uri(.)='http://xmlns.oracle.com/ku']">
<xsl:copy-of select="."/>
</xsl:template>
Cheers,
Dhanu -
I'm using share point 2007 under windows server 2008 R2(one web server, another db server).When I publish a excel(*.xlsx) to report library or view it in web browser with the same error as bellows:
Excel Web Access
An error has occurred.
Please contact your system administrator if this problem persists.
Please kindly support to guide how to fix it with bellow information in details such as log.Many thanks!
1. The 12/logs file is as bellows:
10/10/2014 09:53:55.18 w3wp.exe (0x6528) 0x5C08 Excel Services
Excel Calculation Services 2u7d Medium ExcelServerSharedWebApplication.Local: An exception was thrown by configdb infrastructure: System.InvalidOperationException: ExcelServerSharedWebApplication.Local: Could
not get ServerContext.Current, which indicates that either SharePoint or the SSP infrastructure isn't provisioned correctly or that we're running outside of a web context. at Microsoft.Office.Excel.Server.ExcelServerSharedWebApplication.get_Local().
10/10/2014 09:53:55.18 w3wp.exe (0x6528) 0x5C08 Excel Services
Excel Services Administration 8tqh Critical Excel Services: Unexpected exception while trying to access Shared Services Database;. Error = ExcelServerSharedWebApplication.Local: Could not get ServerContext.Current, which indicates that
either SharePoint or the SSP infrastructure isn't provisioned correctly or that we're running outside of a web context..
10/10/2014 09:53:55.18 w3wp.exe (0x6528) 0x5C08 Excel Services
Excel Web Access 6nfi Unexpected InternalEwr.OpenWorkbook - An unexpected exception in the ECS Proxy occurred. Message: Microsoft.Office.Excel.Server.ExcelServerSettingException:
An error has occurred. ---> System.InvalidOperationException: ExcelServerSharedWebApplication.Local: Could not get ServerContext.Current, which indicates that either SharePoint or the SSP infrastructure isn't provisioned correctly or that we're running
outside of a web context. at Microsoft.Office.Excel.Server.ExcelServerSharedWebApplication.get_Local() --- End of inner exception stack trace --- at Microsoft.Office.Excel.Server.ExcelServerSharedWebApplication.get_Local()
at Microsoft.Office.Excel.Server.ExcelServerSettings.get_Settings() at Microsoft.Office.Excel.Server.ExcelServerSettings.get_EcsList() at Microsoft.Office...
2.the event in event viewer is:
Log Name: Security
Source: Microsoft-Windows-Security-Auditing
Date: 2014/10/10 9:49:43
Event ID: 4625
Task Category: Logon
Level: Information
Keywords: Audit Failure
User: N/A
Computer: ***.net
Description:
An account failed to log on.
Subject:
Security ID: NULL SID
Account Name: -
Account Domain: -
Logon ID: 0x0
Logon Type: 3
Account For Which Logon Failed:
Security ID: NULL SID
Account Name: ***
Account Domain: ***
Failure Information:
Failure Reason: An Error occured during Logon.
Status: 0xc000006d
Sub Status: 0x0
Process Information:
Caller Process ID: 0x0
Caller Process Name: -
Network Information:
Workstation Name: ***
Source Network Address: ***
Source Port: 63664
Detailed Authentication Information:
Logon Process:
Authentication Package: NTLM
Transited Services: -
Package Name (NTLM only): -
Key Length: 0
This event is generated when a logon request fails. It is generated on the computer where access was attempted.
The Subject fields indicate the account on the local system which requested the logon. This is most commonly a service such as the Server service, or a local process such as Winlogon.exe or Services.exe.
The Logon Type field indicates the kind of logon that was requested. The most common types are 2 (interactive) and 3 (network).
The Process Information fields indicate which account and process on the system requested the logon.
The Network Information fields indicate where a remote logon request originated. Workstation name is not always available and may be left blank in some cases.
The authentication information fields provide detailed information about this specific logon request.
- Transited services indicate which intermediate services have participated in this logon request.
- Package name indicates which sub-protocol was used among the NTLM protocols.
- Key length indicates the length of the generated session key. This will be 0 if no session key was requested.
Event Xml:
<Event xmlns="">
<System>
<Provider Name="Microsoft-Windows-Security-Auditing" Guid="{54849625-5478-4994-A5BA-3E3B0328C30D}" />
<EventID>4625</EventID>
<Version>0</Version>
<Level>0</Level>
<Task>12544</Task>
<Opcode>0</Opcode>
<Keywords>0x8010000000000000</Keywords>
<TimeCreated SystemTime="2014-10-10T01:49:43.563436300Z" />
<EventRecordID>37602685</EventRecordID>
<Correlation />
<Execution ProcessID="532" ThreadID="26096" />
<Channel>Security</Channel>
<Computer>***.net</Computer>
<Security />
</System>
<EventData>
<Data Name="SubjectUserSid">S-1-0-0</Data>
<Data Name="SubjectUserName">-</Data>
<Data Name="SubjectDomainName">-</Data>
<Data Name="SubjectLogonId">0x0</Data>
<Data Name="TargetUserSid">S-1-0-0</Data>
<Data Name="TargetUserName">***</Data>
<Data Name="TargetDomainName">***</Data>
<Data Name="Status">0xc000006d</Data>
<Data Name="FailureReason">%%2304</Data>
<Data Name="SubStatus">0x0</Data>
<Data Name="LogonType">3</Data>
<Data Name="LogonProcessName">
</Data>
<Data Name="AuthenticationPackageName">NTLM</Data>
<Data Name="WorkstationName">***</Data>
<Data Name="TransmittedServices">-</Data>
<Data Name="LmPackageName">-</Data>
<Data Name="KeyLength">0</Data>
<Data Name="ProcessId">0x0</Data>
<Data Name="ProcessName">-</Data>
<Data Name="IpAddress">***</Data>
<Data Name="IpPort">63664</Data>
</EventData>
</Event>Hi Tracy,
Have you changed something on your SharePoint 2007 environment recently before this issue occurred?
This issue may be related to Alternate Access Mappings settings like the following similar post, if you have configured AAM, you can check if this issue happened to some URLs, if it's the case, please add the problematic URLs as a Publish URLs for the default
zone for your web application, and also add these URLs as trusted locations, then check results again.
If above doesn't work, please enable ULS log on verbose level to get more useful log errors which time are corresponding to the errors occur.
https://social.technet.microsoft.com/Forums/en-US/c9ab4818-65c9-444d-be50-1bfed1f1509b/excel-web-access-web-part-works-on-intranet-but-not-internet?forum=sharepointgenerallegacy
http://blog.bugrapostaci.com/2011/09/08/how-to-enable-verbose-log-mode-on-moss-2007/
Thanks
Daniel Yang
TechNet Community Support -
Problem in variable substitution
Hi experts,
I need help for a strange problem:
I have a proxy to file scenario in which I create an xml file; I need to use a field of the mapping to create filename.
In Receiver CChannel I have used variable substitution, but in message monitoring I got this error:
Delivery of the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: Folio: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: Folio.
FileName Scheme is: DM65_%Folio%.xml
In variable substitution I have used this reference:
Folio = payload:MT_MexicanElectronicInvoice_MyFirm,1,CABFAC,1,Folio,1
This is the payload of the message that ends in error:
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_MexicanElectronicInvoice_MyFirm xmlns:ns0="urn:MyFirm-EDICOM:MexElectronicInvoice">
- <CABFAC>
<IdLabel>CABFAC</IdLabel>
<Version>3.0</Version>
<Folio>2100000003</Folio>
<FecHac>16-11-2011 17:11:17</FecHac>
<FPago>Advance payment</FPago>
<Subtotal>9.976,00</Subtotal>
<TotalFac>11.568,16</TotalFac>
What is the problem? wrong reference?
thanks
FabioHi,
Everything looks fine.
Make sure that there is no extra space after your "%Folio%" under the Variable Substitution.
Make sure that "Adapter Specific message Attributes" is unchecked in the CC.
You can do a change in message mapping to create a header field<occurence: 1> map to a constant and call it in var substitution.
As Mickael suggested above make sure using only lowercase on your variant name %folio% instead of %Folio%.
For 1:N muti-mapping with variable substition go through the below links:
Re: 1: N File Scenario..
Using Variable Substitution
i hope it will help you.
regards,
ganesh. -
Mapping problem due to FCC in sender file adapter
Hi All
I am doing File( Flat File ) to RFC Scenario.it is working fine..
the problem comes in mapping with multiple records.
FCC at sender file adapter is used
my Data Type are :
Source DT Target RFC import parameter(table).
E2ED20* ITEM*
KEY VBELN
VBELN POSNR
E2E24* CHARG
KEY
POSNR
CHARG
<b>*->>multiple occurence
E2ED20 and E2E24 are 2 segment ,KEY is used in FCC to identify E2EDL20 & E2EDL24</b>
My source text file is like this :
E2EDL20 0200
E2EDL24 xyz
E2EDL20 0201
E2EDL24 abc
E2EDL24 efg
E2EDL24 mln
E2EDL20 0202
E2EDL24 gty
so the payload should be :
0200 xyz
0201 abc
0201 efg
0201 mln
0202 gty
in <i>FCC ignoer record set= true</i>
otherwise is not called...
i try to use split by value & use oneasmany , not helpfull.
in message mapping when i checked th field VBELN -> display queue
i am getting an array 0200
0201
0202 in white fields
thanks & regards
Ashutosh Rawat<b>Source payload</b>
<?xml version="1.0" encoding="utf-8" ?>
- <ns:MT_MATNO_FILE xmlns:ns="urn:abc:xxx">
- <E2ED20>
<KZ>E2EDL20</KZ>
<FIELD1>020</FIELD1>
<b><VBELN>0083662685</VBELN></b>
</E2ED20>
- <E2E24>
<KZ>E2EDL24</KZ>
<FIELD2>020</FIELD2>
<POSNR>900001</POSNR>
<CHARG>1078629</CHARG>
<LFIMG>3200</LFIMG>
<MEINS>PCE</MEINS>
</E2E24>
- <E2E24>
<KZ>E2EDL24</KZ>
<FIELD2>020</FIELD2>
<POSNR>900002</POSNR>
<CHARG>1078630</CHARG>
<LFIMG>1895</LFIMG>
<MEINS>PCE</MEINS>
</E2E24>
- <E2E24>
<KZ>E2EDL24</KZ>
<FIELD2>020</FIELD2>
<POSNR>900003</POSNR>
<CHARG>1079145</CHARG>
<LFIMG>1883</LFIMG>
<MEINS>PCE</MEINS>
</E2E24>
- <E2E24>
<KZ>E2EDL24</KZ>
<FIELD2>020</FIELD2>
<POSNR>900004</POSNR>
<CHARG>1079146</CHARG>
<LFIMG>3195</LFIMG>
<MEINS>PCE</MEINS>
</E2E24>
- <E2ED20>
<KZ>E2EDL20</KZ>
<FIELD1>020</FIELD1>
<b> <VBELN>0083662648</VBELN></b>
</E2ED20>
- <E2E24>
<KZ>E2EDL24</KZ>
<FIELD2>020</FIELD2>
<POSNR>900011</POSNR>
<CHARG>1001450</CHARG>
<LFIMG>2946</LFIMG>
<MEINS>8PC</MEINS>
</E2E24>
- <E2ED20>
<KZ>E2EDL20</KZ>
<FIELD1>020</FIELD1>
<b> <VBELN>0083673936</VBELN></b> </E2ED20>
- <E2E24>
<KZ>E2EDL24</KZ>
<FIELD2>020</FIELD2>
<POSNR>900012</POSNR>
<CHARG>1073953</CHARG>
<LFIMG>2458</LFIMG>
<MEINS>PCE</MEINS>
</E2E24>
</ns:MT_MATNO_FILE>
<b>at target what required is</b>
<item>
<b><VBELN>0083662685</VBELN></b>
<POSNR>900001</POSNR>
</item>
<item>
<b><VBELN>0083662685</VBELN></b>
<POSNR>900002</POSNR>
</item>
<item>
<b><VBELN>0083662685</VBELN></b>
<POSNR>900003</POSNR>
</item>
<item>
<b><VBELN>0083662685</VBELN></b>
<POSNR>900004</POSNR>
</item>
<item>
<b><VBELN>0083662648</VBELN></b>
<POSNR>900011</POSNR>
</item>
<item>
<b><VBELN>0083673936</VBELN></b>
<POSNR>900012</POSNR>
</item>
in Sender FCC
E2ED20.fieldFixedLengths 7,76
E2ED20.fieldNames KZ,VBELN
E2ED20.keyFieldValue E1EDL20
E2ED20.endSeparator 'nl'
E2E24.fieldFixedLengths 7,24,13,7,3
E2E24.keyFieldValue E1EDL24
E2E24.fieldNames KZ,POSNR,CHARG,LFIMG,MEINS
E2E24.endSeparator 'nl'
ignoreRecordsetName true
source file is already there...
Message was edited by:
ashutosh rawat -
Problem with Variable Substitution Receiver Adapter
Hi,
I need to use a dynamic filename so I'm using the variable substitution in my receiver adapter. BUT, the filename can't appear in the file. So i used this blog in reference --> Solution to the problem encountered using Variable Substitution with XI-SP12
The PROBLEM is I still get and extra blank line in the file. How can I eliminate this extra line?
Thanks in advance.
Using XI 7.0Hi Gaurav,
Data Type:
Lines
Line
Config
FileName
XML - example:
<?xml version="1.0" encoding="utf-8"?>
<nr1:MT_TP_TipoCambio_Detalle_ECC_Req xmlns:nr1="urn:erplatam/tipocambio:tp:ecc">
<Lines>
<Line>USDSOL0000000000003.10000013-09-200813-09-2008V</Line>
</Lines>
<Lines>
<Line>USDSOL0000000000002.50000014-09-200814-09-2008V</Line>
</Lines>
<Config>
<FileName>SIGMA_TCSAP_F081031.DAT.TXT</FileName>
</Config>
</nr1:MT_TP_TipoCambio_Detalle_ECC_Req>
Output - File, has 3 lines should have only 2:
USDSOL0000000000003.10000013-09-200813-09-2008V
USDSOL0000000000002.50000014-09-200814-09-2008V
FCC parameters:
RecordSet Structure: Lines,Config
Lines.fieldSeparator 'nl'
Lines.endSeparator 'nl'
Config.fieldSeparator 'nl'
Config.endSeparator 'nl'
Thanks in advance! -
FIle Content Conversion Problem in IDOC-XI-File Scenario
Dear All,
I am doing IDOC-XI-FILE scenario.
I am facing one problem related to File Content Coversion.My requirement was to generate a dynamic file like <b>%store_code%_%current_date%_sitemaster.xml</b> , I have completed the dynamic generation successfully .
Now there is slight change in the requirement ,<b>we have to suppress the current_date node of the xml content</b> . i have tried to suppress the current_date using these <b>DATE.fieldFixedLengths 0 , Date.fixedLengthTooShortHandling Cut</b> , But I am unable to suppress it Can some body provide me the details on this .
The output xml version generated by Reciever file adapter is as below :
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_SITE_MASTER xmlns:ns0="http://sample-xitest.com/sitemaster">
- <SITE_DATA>
<STORE_CODE>N002</STORE_CODE>
<TITLE_MEDI>Company</TITLE_MEDI>
<STORE_NAME>Mount Road</STORE_NAME>
<STREET>Chennai</STREET>
<COUNTRY>IN</COUNTRY>
<SALES_TAX_NO>12345678910</SALES_TAX_NO>
</SITE_DATA>
</ns0:MT_SITE_MASTER>
Plz provide me the code I have to write in the file content conversion .
Thanks in advance
Regards
PrabhatIf u see my earlier reply, I mentioned that u can not suppress the field from the one node.i.e Form SITE_DATA data type u can not suppress the field called CURRENT_DATE.
My suggestion is that , modify the Data type in such a way that you will be having two nodes as I have mentioned earlier. Then use the Suppress Logic for the Current Date.
So it will look like this-
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_SITE_MASTER xmlns:ns0="http://sample-xitest.com/sitemaster">
- <SITE_DATA>
<STORE_CODE>N002</STORE_CODE>
<TITLE_MEDI>Company</TITLE_MEDI>
<STORE_NAME>Mount Road</STORE_NAME>
<STREET>Chennai</STREET>
<COUNTRY>IN</COUNTRY>
<SALES_TAX_NO>12345678910</SALES_TAX_NO>
</SITE_DATA>
<CURR_DATE>
<CURRENT_DATE>20051105</CURRENT_DATE>
</CURR_DATE>
</ns0:MT_SITE_MASTER>
So ur SITE_DATA is not having a field called CURRENT_DATE. This field is in separate node (segment ) called CURR_DATE. Now u can use the Suppress Logic for the same like this.
CURR_DATE.fieldFixedLengths - 0
CURR_DATE.fixedLengthTooShortHanling - Cut
And in your Variable Substitution you can use the date from the other segment called CURR_DATE.
Hope this solves ur problem.
Regards,
Moorthy -
Facing problem while going to catch return result from web-services.
Hi everybody,
I am new to BPEL. I am facing problem while going to catch the attributes of resultsets returning from web-services(QAS). As far as my knowledge, two types of results it should return - XML entities and another is attributes which is coming as the part of XML entitites. I am able to catch the XML entities, but can't catch the attributes under it. Even, I am not able to see whether web-services returning something within that field.
When, I tried to catch the attribute and store to a temporary varilable using the following code:
*<assign name="AssignQASDoGetAddress1">*
*<copy>*
*<from variable="InvokeQAS_DoSearch_OutputVariable"*
part="body"
query="/ns6:QASearchResult/ns6:QAPicklist/ns6:PicklistEntry/@PostcodeRecoded"/>
*<to variable="temp"/>*
*</copy>*
*</assign>*
but, I am facing the following selectionFailure errors after running it:
*"{http://schemasxmlsoap.org/ws/2003/03/business-process/}selectionFailure" has been thrown.*
-<selectionFailure xmlns="http://schemasxmlsoap.org/ws/2003/03/business-process/">
-<part name="summary">
*<summary>*
empty variable/expression result.
xpath variable/expression expression "bpws:getVariableData('InvokeQAS_DoSearch_OutputVariable', 'body', '/ns6:QASearchResult/ns6:QAPicklist/ns6:PicklistEntry/@PostcodeRecoded')" is empty at line 269, when attempting reading/copying it.
Please make sure the variable/expression result "bpws:getVariableData('InvokeQAS_DoSearch_OutputVariable', 'body', '/ns6:QASearchResult/ns6:QAPicklist/ns6:PicklistEntry/@PostcodeRecoded')"is not empty.
*</summary>*
*</part>*
*</selectionFailure>*
Getting this error it seems to me that web-service is returning nothing, but, it returns something as it has been catched using a method called isPostcodeRecoded() Java Code in Oracle ADF. This method has been used as it should return boolean whereas for catching the xml entities using java code we used the method like getPostcode(), getMoniker().
For your information, we are using Jdeveloper as the development tool for building the BPEL process.
Am I doing any syntax error. Please consider it as urgent and provide me asolution.
Thanks in advance.
Chandrachur.Thanks Dave and Marc, for your suggestions. Actually what I found is QAS web-service is returning nothing as attributes when the attributes are set to the default value. For example, following is the part of the wsdl of the result which QAS webservice returns.
<xs:element name="QASearchResult">
- <xs:complexType>
- <xs:sequence>
<xs:element name="QAPicklist" type="qas:QAPicklistType" minOccurs="0" />
<xs:element name="QAAddress" type="qas:QAAddressType" minOccurs="0" />
</xs:sequence>
<xs:attribute name="VerifyLevel" type="qas:VerifyLevelType" default="None" />
</xs:complexType>
</xs:element>
<xs:complexType name="QAPicklistType">
- <xs:sequence>
<xs:element name="FullPicklistMoniker" type="xs:string" />
<xs:element name="PicklistEntry" type="qas:PicklistEntryType" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="Prompt" type="xs:string" />
<xs:element name="Total" type="xs:nonNegativeInteger" />
</xs:sequence>
<xs:attribute name="AutoFormatSafe" type="xs:boolean" default="false" />
<xs:attribute name="AutoFormatPastClose" type="xs:boolean" default="false" />
<xs:attribute name="AutoStepinSafe" type="xs:boolean" default="false" />
<xs:attribute name="AutoStepinPastClose" type="xs:boolean" default="false" />
<xs:attribute name="LargePotential" type="xs:boolean" default="false" />
<xs:attribute name="MaxMatches" type="xs:boolean" default="false" />
<xs:attribute name="MoreOtherMatches" type="xs:boolean" default="false" />
<xs:attribute name="OverThreshold" type="xs:boolean" default="false" />
<xs:attribute name="Timeout" type="xs:boolean" default="false" />
</xs:complexType>
<xs:complexType name="PicklistEntryType">
- <xs:sequence>
<xs:element name="Moniker" type="xs:string" />
<xs:element name="PartialAddress" type="xs:string" />
<xs:element name="Picklist" type="xs:string" />
<xs:element name="Postcode" type="xs:string" />
<xs:element name="Score" type="xs:nonNegativeInteger" />
</xs:sequence>
<xs:attribute name="FullAddress" type="xs:boolean" default="false" />
<xs:attribute name="Multiples" type="xs:boolean" default="false" />
<xs:attribute name="CanStep" type="xs:boolean" default="false" />
<xs:attribute name="AliasMatch" type="xs:boolean" default="false" />
<xs:attribute name="PostcodeRecoded" type="xs:boolean" default="false" />
<xs:attribute name="CrossBorderMatch" type="xs:boolean" default="false" />
<xs:attribute name="DummyPOBox" type="xs:boolean" default="false" />
<xs:attribute name="Name" type="xs:boolean" default="false" />
<xs:attribute name="Information" type="xs:boolean" default="false" />
<xs:attribute name="WarnInformation" type="xs:boolean" default="false" />
<xs:attribute name="IncompleteAddr" type="xs:boolean" default="false" />
<xs:attribute name="UnresolvableRange" type="xs:boolean" default="false" />
<xs:attribute name="PhantomPrimaryPoint" type="xs:boolean" default="false" />
</xs:complexType>
here the attributes like FullAddress, PostcodeRecodedare , etc. are not being return by the web-service when it is getting the default value false. But, if it gets true then , it is being displayed at the BPEL console.
Do you have any idea how can I catch the attributes and its value even when it gets the default value which is already set. Previously, it was returning(it was not being displayed at the console).
Thanks once again for your valuable suggestions...!!!
Chandrachur.
Maybe you are looking for
-
Internet Explorer always wanting to re-download ta...
If I switch from one tab to another in Internet Explorer on my Lumia 635, it will *always* attempt to re-download the tab that I am switching to, even if I was only away from it for a moment. This is a big problem when I try to e.g. brows the interne
-
I'm trying to connect a new Mac mini to 2 displays. The Hdmi cable is connected to a plasma TV and is working great. I bought a mini display port to VGA cable from monoprice and have that connected to a projector. If I go into settings and select mir
-
I'm going to be a senior this year and my school is switching over to the iPad for classroom activities. Which iPad is the best for taking notes, researching, studying, reading, etc?
-
Salut! The scenario is "Find bookmark existed before and recall which bookmarkfolder it is in" Please note the "folder" is for "bookmarks", NOT a file folder of HDD-filesystem 1) I pressed Menu\Bookmarks\ShowAllBookmarks to open bookmarks organizer.
-
My FCP X wont use Pre-Keyed effects.
When I drag the effect down, it works for a minute, then the background turns black. I have not had this problem before...