Stylesheet namespace problem
Hi all
I am having a very strange problem. I am using the following XSL in TRANSFORM activity.
<xsl:stylesheet version="1.0"
xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ora="http://schemas.oracle.com/xpath/extension"
xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/db/drfsdf"
xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
xmlns:ns0="http://www.niku.com/xog/Object"
xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
exclude-result-prefixes="xsl xsd ns1 ns0 xref xp20 bpws ora ehdr orcl ids hwf" >
<xsl:template match="/">
<ns0:NikuDataBus>
<xsl:for-each select="/ns1:drfsdfOutputCollection/ns1:drfsdfOutput">
<ns0:NikuDataBusReadType>
<ns0:EmployeeINFO>
<xsl:attribute name="EMP_ID">
<xsl:value-of select="ns1:EMPLID"/>
</xsl:attribute>
<xsl:attribute name="EMP_NAME">
<xsl:value-of select="ns1:NAME"/>
</xsl:attribute>
</ns0:EmployeeINFO>
<ns0:others>
<xsl:attribute name="SUPERVISOR_ID">
<xsl:value-of select="ns1:SUPERVISOR_ID"/>
</xsl:attribute>
<xsl:attribute name="SUPERVISOR_NAME">
<xsl:value-of select="ns1:SUPERVISOR_NAME"/>
</xsl:attribute>
</ns0:others>
</ns0:NikuDataBusReadType>
</xsl:for-each>
</ns0:NikuDataBus>
</xsl:template>
</xsl:stylesheet>
Now the problem is, after transformation I am getting the result like this
<ns0:NikuDataBus >
<ns0:NikuDataBusReadType>
</ns0:NikuDataBusReadType>
</ns0:NikuDataBus>
I don't want elements prefixed with anything. If I make this namespace default in xsl file and remove all "ns0:" from elements then result is correct but I wont be able to see this XSL file into designer. Gets the error "Error: XML map generation failed Please use the source editor to correct the problem and return to the design editor".
What should I do now?
Thanks.
Hi,
Your approach of making the namespace default is right. You wont see mappings in the design view. However, this works perfectly on the server.
In fact, if you give any element name in the xsl, which is not even in the target schema, the generated xml will contain that element.
Deepak
Similar Messages
-
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 -
Please help with namespace problem
Hello,
I am trying to display a gif image an I have a namespace problem.
Here is my xml document:
<?xml version='1.0'?>
<?xml-stylesheet type="text/xsl" href="authors.xsl"?>
<authors>
<author>
<name>Mike Galos</name>
<nationality>French</nationality>
</author>
<author>
<name>Cynthia Randall</name>
<nationality>Canadian</nationality>
</author>
</authors>
Here is my xsl stylesheet:
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="//author">
<image xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:type="simple"
xlink:href="logo.gif"
xlink:show="embed"/>
</xsl:template>
</xsl:stylesheet>
I want the browser to diplay the gif image but it is only showing the image icon and not the actual gif image.
Can anyone please help??
Thanks in advance,
Balteo.do you use a special browser?
if not, do you really expect a standard browser to understand this kind of non-HTML image tag?
<image xmlns:xlink="http://www.w3.org/1999/xlink" xlink:show="embed" xlink:href="logo.gif" xlink:type="simple">check HTML 4.0 (http://www.devguru.com/Technologies/html/quickref/html_img.html)
or XHTML(http://www.devguru.com/Technologies/xhtml/quickref/xhtml_img.html)
for the correct tag syntax. -
Revision: 1313
Author: [email protected]
Date: 2008-04-20 09:41:41 -0700 (Sun, 20 Apr 2008)
Log Message:
Fix for the use namespace problems we've been having with ASC (I hope). The problem was that the use directive was being defined after we had called finish package. The UseDirectiveNode has a pkgdef ptr, and does different things depending if that ptr is null or not. It should not be null when the UseDirective is inside the package - but since we were generating the UseDirectiveNode after we had called finishPackage the UseDirectiveNode didn't have it's pkgdef ptr set, and so things went awry as the package didn't get set up with all the correct open namespaces. I haven't tested this in authoring/flex but I am pretty sure that this will fix all the problems we're seeing.
Modified Paths:
flex/sdk/trunk/modules/asc/src/java/macromedia/asc/parser/Parser.javaMany thanks.
With those symptoms, I'd try the following document:
Apple software on Windows: May see performance issues and blank iTunes Store
(If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.) -
Namespace problem while updating a desktop app
Hello,
I've searched on a lot of forums but didn't find anything accurate on my problem.
I have an old AIR 2.0 desktop app that updated itself.
I want to update it to the last 3.4 framework. So I followed instructions for the intermediate application to update (between 2.0 and 2.5).
I manage to update from 2.0 to a Air 2.5 intermediate application, while still having the 2.0 namespace in the app descriptor file.
But it is impossible for me to update this 2.5 application (with 2.0 namespace) to a 2.5 namespace !!
Here si my update descriptor file :
<?xml version="1.0" encoding="UTF-8"?>
<update xmlns="http://ns.adobe.com/air/framework/update/description/2.5">
<versionNumber>0.3.2</versionNumber>
<versionLabel>Version for 0.3.2</versionLabel>
<url>http://www.mywebsite/app.air</url>
<description><![CDATA[
Final test
]]></description>
</update>
But I'm having the error 16831 : "Application namespace and update.xml namespace are not compatible".
It seems that my application only wants to update to another one with the exact same namespace.
How this can be ?
Thanks !
I must say that I publish to AIR 2.5 with Flash CS5 and flashpro extension for air (in beta version) as Flash CS6 always overwrite the app descriptor while publishing (so it is impossible to change the namespace to 2.0 for example)Ok, after having searched a lot, I managed to understand what was going on....
To those interested, the update descriptor must stay in a 1.0 namespace until the end of the process.
When all is updated (app namespace to 2.5), you can use the 2.5 update descriptor namespace.... -
XSLT mapping - namespace problem?
Hello,
I am trying to proces a message with the following format:
<XMLMESSAGE xsi:nonamespaceSchemalocation='schema.xsd' >
<ORDER>
<HEADER>
</HEADER>
<ITEM>
</ITEM
</ORDER>
<XMLMESSAGE>
the mapping (XSLT or message mapping) throws an exception. During runtime or test, this is the same.
The problem occurs, I think, because of the nonamespace atriibute. If a change or remove the value, the mapping is fine.
Does anybody know if I should save the file mentioned in the attribute somewhere? Or is there a workaround for this problem?
thnx, Paul
PS: we are using PI 7.0.Hi Russ (and others),
I tested it in the real example, but it still throws the same error on the java (=compiled) mapping.
this is my input:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ORDER [
<!ENTITY % iso-lat1 PUBLIC "ISO 8879:1986//ENTITIES Added Latin 1//EN//XML" "http://www.oasis-open.org/docbook/xmlcharent/0.3/iso-lat1.ent">
%iso-lat1;
]>
<XMLMESSAGE xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:noNamespaceSchemaLocation="OrderBericht.xsd">
<ORDER>
<HEADER>
<ACCOUNT_NUMBER></ACCOUNT_NUMBER>
</HEADER>
<LINE_ITEMS>
<ITEM>
<LINE>1</LINE>
</ITEM>
</LINE_ITEMS>
</ORDER>
</XMLMESSAGE>
this is my xslt:
<?xml version='1.0' ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" version="1.0" encoding="UTF-8" omit-xml-declaration="no" standalone="no" indent="yes"/>
<xsl:template match="/">
<ORDERS05 xmlns="com:root">
<IDOC BEGIN="1">
<xsl:call-template name="CrtEDIDC40"/>
</IDOC>
</ORDERS05>
</xsl:template>
<xsl:template name="CrtEDIDC40">
<EDI_DC40 SEGMENT="1">
<TABNAM>EDI_DC40</TABNAM>
<SNDPRT>LS</SNDPRT>
<SNDPRN>XIDCLNT300</SNDPRN>
</EDI_DC40>
</xsl:template>
</xsl:stylesheet>
and this is the error:
18:00:41 Start of test
Creating XSLT mapping mindef_test
Call XSLT processor with stylsheet mindef_test.xsl.
Method error called terminate transformation
javax.xml.transform.TransformerException: IOException occurred while parsing stream. An empty document will be used! at com.sap.engine.lib.jaxp.TransformerImpl.transformWithStylesheet(TransformerImpl.java:351) at com.sap.engine.lib.jaxp.TransformerImpl.transform(TransformerImpl.java:240) at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingTransformer.transform(RepMappingTransformer.java:150) at com.sap.aii.ibrep.server.mapping.ibrun.RepXSLTMapping.execute(RepXSLTMapping.java:81) at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingHandler.run(RepMappingHandler.java:80) at com.sap.aii.ibrep.server.mapping.rt.MappingHandlerAdapter.run(MappingHandlerAdapter.java:107) at com.sap.aii.ibrep.server.mapping.ServerMapService.transformInterfaceMapping(ServerMapService.java:127) at com.sap.aii.ibrep.server.mapping.ServerMapService.transform(ServerMapService.java:104) at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.transform(MapServiceBean.java:40) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.transform(MapServiceRemoteObjectImpl0.java:167) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0p4_Skel.dispatch(MapServiceRemoteObjectImpl0p4_Skel.java:104) at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:320) at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:198) at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170) Caused by: java.io.IOException: Failed to load resource from the context classloader of the current thread! Loading from classloader was caused by: java.net.UnknownHostException: www.oasis-open.org at com.sap.engine.lib.xml.parser.URLLoaderBase.resolveEntity(URLLoaderBase.java:148) at com.sap.engine.lib.xml.parser.helpers.AdvancedXMLStreamReader.addInputFromEntity(AdvancedXMLStreamReader.java:393) at com.sap.engine.lib.xml.parser.XMLParser.handleDTDReference(XMLParser.java:2267) at com.sap.engine.lib.xml.parser.XMLParser.scanIntSubset(XMLParser.java:1057) at com.sap.engine.lib.xml.parser.XMLParser.scanDTD(XMLParser.java:1246) at com.sap.engine.lib.xml.parser.XMLParser.scanProlog(XMLParser.java:2795) at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2830) at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:229) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:145) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:160) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:261) at com.sap.engine.lib.jaxp.TransformerImpl.transformWithStylesheet(TransformerImpl.java:347) ... 19 more --------- java.io.IOException: Failed to load resource from the context classloader of the current thread! Loading from classloader was caused by: java.net.UnknownHostException: www.oasis-open.org at com.sap.engine.lib.xml.parser.URLLoaderBase.resolveEntity(URLLoaderBase.java:148)
any ideas? I am totally lost here. -
Xsl/stylesheet transformation problem in soap response(usinf xmlx-tags.tld)
Hi,
I have problem in transforming the soap response using xmlx-tags.tld.....
I was not able to read the <EmpName> value from the returned xml...
The stylesheet / xsl does not return any elements if I use other then "/" in match
attribute : <xsl:template match="/">
here is my soap call and stylesheet in JSP:
<x:xslt media="html">
<x:xml>
<ws:soap ttl="360000">
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
... making soap call here...
</soap:Body>
</soap:Envelope>
</ws:soap>
</x:xml>
<x:stylesheet media="html">
<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:output method="xmll" omit-xml-declaration="no"
doctype-public="-//W3C//DTD HTML 4.0 Transitional//EN" indent="yes" />
<xsl:template match="GetEmpResult">
<html>
<body>
Result: <B>Symbol <xsl:value-of select="EmpName"/></B>
</body
</html>
</xsl:stylesheet>
</x:stylesheet>
</x:xslt>
the SOAP response looks like this:
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetEmpResponse xmlns="http://ws.cdyne.com/">
<GetEmpResult>
<EmpID>string</EmpID>
<EmpName>string</EmpName>
<SalAmount>decimal</SalAmount>
<Error>boolean</Error>
</GetEmpResult>
</GetEmpResponse>
</soap:Body>
</soap:Envelope>
I tried all the possibilities of template matches, but not succeeded....
Can somebody help me the correct <xsl:template> to access EmpName from the above
SOAP responses...
regards
VijayHi,
Dynamic xslt are not quite supported in OSB, there are some approaches that may be helpful for your case though...
Have a look at these...
http://atheek.wordpress.com/2011/12/21/using-xalanevaluate-to-parametrize-xpath/
http://beatechnologies.wordpress.com/2010/12/01/dynamic-xquery-in-oracle-service-bus/
Let me know how you go...
Cheers,
Vlad -
Namespace Problem? Namespace prefix used but not declared.
Hello Guru's,
I am new to XSL templates, while genrating XML publisher report with these template, I am getting below "namespace" error:
If I remove the "set:"/"str:" expressions from the template, it works fine. Is there anything syntactically wrong in the expression? but not getting the results
Getting "Caused by: oracle.xdo.parser.v2.XMLParseException: Namespace prefix 'str' used but not declared." error while using this code
<xsl:call-template name="str:generate-string">
<xsl:with-param name="text" select="'Â '"/>
<xsl:with-param name="count" select="30"/>
</xsl:call-template>
Getting "Caused by: oracle.xdo.parser.v2.XMLParseException: Namespace prefix 'set' used but not declared." error while using this code
<xsl:template name="distinct">
<xsl:param name="nodes" select="/.."/>
<xsl:param name="distinct" select="/.."/>
<xsl:choose>
<xsl:when test="$nodes">
<xsl:call-template name="distinct">
<xsl:with-param name="distinct" select="$distinct | $nodes[1][not(. = $distinct)]"/>
<xsl:with-param name="nodes" select="$nodes[position() > 1]"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="$distinct" mode="set:distinct"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
I would appreciate any help in this regard.
SADeclare them in the namespace :)
<?xml version='1.0' encoding='windows-1252'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template name="distinct">
<xsl:param name="nodes" select="/.."/>
, </xsl:stylesheet> -
Namespace problem with bpelx:rename typeCastTo
Hi!
I have j2ee web service which accepts types derived from one base type. Therefore i need to pass argument like request xsi:type="derivedType", where request is super type.
After long searching i found out this can be done via bpelx:rename typeCastTo ... my problem is that if i use this action:
<bpelx:rename typeCastTo="ns3:UserOutgoingCallingPlanOriginatingModifyRequest">
<bpelx:target variable="Invoke_1_transaction_InputVariable" part="parameters" query="/ns2:transactionElement/ns2:_req"/>
</bpelx:rename>
in audit console after running he process i see
<_req xmlns="http://bwproxy.unient.com/types/" xsi:type="ns3:UserOutgoingCallingPlanOriginatingModifyRequest" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
but namespace prefix ns3 is nowhere defined in the message. It is defined only in source ov bpel process, but it is not propagated to the soap message, therefore web service throws a exception:
Caught exception while handling request: unexpected element type: expected=, actual=UserOutgoingCallingPlanOriginatingModifyRequest
Is this bug, or am i doing something wrong?
thanks
TomasHi,
You could try to use HttpClient to consume wcf in windows phone 8.
Here is an exsample you could refer:
http://stackoverflow.com/questions/21536825/windows-phone-8-call-wcf-web-service
Besides, you could refer to :
http://www.codeproject.com/Questions/691619/Consuming-WCF-Service-from-Windows-Phone
Since this issue is more related to Windows Phone, If my reply no help, please move to Windows Phone forum for a better support, It is appropriate and more experts will assist you.
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Namespace problem with added header
I have a client request handler which needs to add an authentication header of the form:
<Security>
<UsernameToken>
<Username>username</Username>
<Password>password</Password>
</UsernameToken>
</Security> The key code which does this in the request handler is:
SOAPHeaderElement she = shd.addHeaderElement(senv.createName(SIGN_HEADER_NAME));
she.setMustUnderstand(true);
she.addNamespaceDeclaration("", SIGN_HEADER_URI);
SOAPElement selToken = she.addChildElement(SIGN_HEADER_TOKEN);
SOAPElement selUser = selToken.addChildElement(SIGN_HEADER_USERNAME);
selUser.addTextNode(username);
selUser = selToken.addChildElement(SIGN_HEADER_PASSWORD);
selUser.addTextNode(password);But what I end up with is:
<Security soapenv:mustUnderstand="1" xmlns:soapenv=...
xmlns="http://demo">
<UsernameToken xmlns="">
<Username>username</Username>
<Password>password</Password>
</UsernameToken>
</Security> The attributes on the Security element are correct, but the xmlns="" attribute on the UsernameToken element is the problem. The SOAP classes/methods are clearly namespace aware and are essentially saying with xmlns="" that it doesn't know the namespace of UsernameToken and the following elements.
I tried dropping some wsdl for the security elements in the wsdl directory of the client, but it seems to need some programmatic hookup.
I have defined the handler in the webservicesclient.xml as:
<handler id="Handler_1128108948956">
<description>Adds an authentication header with username & password</description>
<handler-name>utils.SOAP_Auth_Handler</handler-name>
<handler-class>utils.SOAP_Auth_Handler</handler-class>
<soap-header id="SOAPHeader_1128460509232">
<namespaceURI>http://demo</namespaceURI>
<localpart>Security</localpart>
</soap-header>
</handler>How do I keep the soap methods from adding on the xmlns="" to the UsernameToken element?
I'm running WebSphere App Developer 5.0.2.9.
Thanks,
-- FrankCan't you use the removeNamespaceDeclaration method?
public boolean removeNamespaceDeclaration(String prefix)Removes the namespace declaration corresponding to the given prefix.
Parameters:
prefix - a String giving the prefix for which to search
Returns:
true if the namespace declaration was removed successfully; false if it was not
Gabsaga -
A namespace problem when doing Create InfoArea in bw system
Dear all,
we met a problem when excute a process in our bw system:
our process as follow:
rsa1(Data Warehousing Workbench:Modeling) --> InfoProvider --> Create InfoArea
then a error message window came out as below.
error in object editing
No valid change license available for n
/BPR3R/
Choose 'Display object' or 'Cancel'.
its detail message is as follow:
Message no. TO127
Diagnosis
You cannot edit the object AREA 0INDUSTRIES. This may be due to the following reasons:
The corresponding namespace /BPR3R/ is not entered in the namespace table with a valid change license.
In the namespace table there is no entry with a valid change license that matches the template /BPR3R/.
System Response
The function terminates.
Procedure
Check the name of the object AREA 0INDUSTRIES. If necessary, choose another object name.
Otherwise, let the system administrator check the change licenses of the namespaces in your SAP system.
Maintain the namespaces in the Tools of the Transport Organizer under Administration -> Display/Change Namespaces.
You need to check and correct the entries that match the template /BPR3R/.
You need to distinguish between the following cases:
The namespace is /0SAP/:
Make sure that the namespace role is C (recipient) and the flags SSCR popup and SAP standard are activated. The license fields remain empty.
You did not create the namespace yourself. Instead, the namespace owner is SAP or another software vendor.
Make sure that the namespace role is C (recipient). The field Repair license must either contain the valid license, or the flag SSCR popup must be activated. Contact the namespace owner and ask what you should now do, and what the valid repair license is.
You are the namespace owner:
Proceed according to the documentation on applying for and setting up namespaces. If the namespace role is P (producer) then you need a valid development license. For information on this, see the SAP Library under BC - Basis Components -> Change and Transport System -> BC - Namespaces and Naming Conventions -> Reservation of Namespaces).
Then we did the below action:
se06 --> system change option
in this view, we found /BPR3R/ this Prefix.
And it is empty in /BPR3R/ 's namespace/name range volume.
What is next action we should take to solve this problem?
Anyone experienced or expert,
Please kindly give advice.
Regards,
AllenHello Allen,
Cold you please check the following notes which explain about this namespace creation and transport ?
401778 - Using namespaces to develop individual BW objects
150451 - Setting up development namespaces
105132 - Reserving namespaces
150451 - Setting up development namespaces
Best regards,
Rafa -
Namespace problem in SRM scenario.
Hi Experts,
I am using the RFQ scenario on SRM (Proxy) to PI to RFC.
The scenario is standard SRM Scenario.
The problem is with namespace, coming from SRM Proxy is http://sap.com/xi/SRM/Sourcing/Global
using same message Type on PI, but XML namespace here in PI is different for this message, it is http://sap.com/xi/SAPGlobal/Global
As the namespaces are not matching, the message is in RED.
How I can solve this ?
Study SAPHi Vijaykumar,
Thanks for your reply.
But it is standard proxy structure, Is it fine to modify this ?
& it is proxy, so we have to regenerate it in SRM also.
is it fine ?
Study SAP -
Hi,
I'm facing a problem while reading an xpath element which has namespace attached.
The xml document is as follows
<ns0:_root xmlns:ns0="http://www.oracle.bt.bp.osm/GPRLN">
<ns0:Port_and_Routing_Details_g>
<ns0:Action_Code>
<ns0:Code1>Add</ns0:Code1>
<ns0:Code2>Delete</ns0:Code2>
<ns0:Code3>Update</ns0:Code3>
</ns0:Action_Code>
</ns0:Port_and_Routing_Details_g>
<ns0:Extended_Quantity>1</ns0:Extended_Quantity>
<ns0:Status>Pending</ns0:Status>
<ns0:Description/>
</ns0:_root> In the above xml document i want to capture the text node of <ns0:Code3>Update</ns0:Code3> i.e. I want to get Update as a result.
I'm using the following java program to to get the value by using xpath but not succeeded.
public class XMLParsing {
public static void main(String[] args)
try {
DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();
domFactory.setNamespaceAware(true);
DocumentBuilder builder = domFactory.newDocumentBuilder();
Document doc = builder.parse("E:\\sample.xml");
XPathFactory factory = XPathFactory.newInstance();
XPath xpath = factory.newXPath();
XPathExpression fax = xpath.compile("//ns0:Port_and_Routing_Details_g/ns0:Action_Code/ns0:Code3/text()");
Object result = fax.evaluate(doc, XPathConstants.NODESET);
NodeList nodes = (NodeList) result;
int len = nodes.getLength();
System.out.println(len);
for (int i=0; i<len;i++){
System.out.println(nodes.item(i).getNodeValue());
catch (ParserConfigurationException e) {
e.printStackTrace();
catch(SAXException e){
e.printStackTrace();
catch(IOException e) {
e.printStackTrace();
catch(XPathExpressionException e){
e.printStackTrace();
}Anybody please help me on this issue
ThanksHi,
put bolded code in your program.
It will resolve your problem
public class XMLParsing {
public static void main(String[] args)
try {
DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();
domFactory.setNamespaceAware(true);
DocumentBuilder builder = domFactory.newDocumentBuilder();
Document doc = builder.parse("E:\\sample.xml");
*NamespaceContext ctx = new NamespaceContext() {*
*public String getNamespaceURI(String prefix) {*
String uri;
if (prefix.equals("ns0"))
uri = "http://www.oracle.bt.bp.osm/GPRLN";
else if (prefix.equals("ns2"))
uri = "http://www.davber.com/sales-format";
else
uri = null;
return uri;
*public Iterator getPrefixes(String val) {*
* return null;*
*// Dummy implemenation - not used!*
*public String getPrefix(String uri) {*
return null;
XPathFactory factory = XPathFactory.newInstance();
XPath xpath = factory.newXPath();
xpath.setNamespaceContext(ctx);
XPathExpression fax = xpath.compile("//ns0:Port_and_Routing_Details_g/ns0:Action_Code/ns0:Code3/text()");
Object result = fax.evaluate(doc, XPathConstants.NODESET);
NodeList nodes = (NodeList) result;
int len = nodes.getLength();
System.out.println(len);
for (int i=0; i<len;i++){
System.out.println(nodes.item(i).getNodeValue());
catch (ParserConfigurationException e) {
e.printStackTrace();
catch(SAXException e){
e.printStackTrace();
catch(IOException e) {
e.printStackTrace();
catch(XPathExpressionException e){
e.printStackTrace();
} -
Delete(xml) in Flex namespace problem
hihi
I have problem with AS3 xml
I want delete nodes in the folowing XML, which has title
"undefined". A sample from the xml:
<xml>
<page>
<title>Szabályalapú
reprezentáció</title>
<id>tudásterület_74</id>
<revision>
<id>1</id>
<timestamp>2008-05-27T09:58:13Z</timestamp>
<contributor>
<ip>Wikiadmin</ip>
</contributor>
<text aaa:space="preserve"></text>
</revision>
</page>
<page>
<title>undefined</title>
<id>tudásterület_22</id>
<revision>
<id>1</id>
<timestamp>2008-05-27T09:58:13Z</timestamp>
<contributor>
<ip>Wikiadmin</ip>
</contributor>
<text aaa:space="preserve"></text>
</revision>
</page>
<page>
<title>Döntési folyamat</title>
<id>tudásterület_22</id>
<revision>
<id>1</id>
<timestamp>2008-05-27T09:58:13Z</timestamp>
<contributor>
<ip>Wikiadmin</ip>
</contributor>
<text aaa:space="preserve"></text>
</revision>
</page>
</xml>
I tried this script but didnt worked:
delete xml.*::page.(title=="undefined")
In a basic this shuold be like:
delete xml.page.(title=="undefined")
How does it work in xmls with namespace?"rtalton" <[email protected]> wrote in
message
news:gecgfa$3rs$[email protected]..
> Sure thing. I tried to find a one-line method but
couldn't. E4x syntax
> supports
> filtering using expressions, but not the delete command
as far as I could
> tell.
> Maybe someone else knows more. Good luck.
I think the problem is the filter expression returns an
XMLList. You can
only delete a single node. So try:
delete yourNodesFilteredByExpression[0];
HTH;
Amy -
Namespace problem The result is empty for the XPath expression
I have a problem with BPEL namespaces. The webservice that my BPEL process is using has changed namespaces (i.e. the java code package names changed and therefore the namespaces associated with the packages.)
Before there was only one namespace associated with this web services; now there are multiple namespaces.
I have changed the namespaces in my .bpel file; however I get the result is empty for XPath expression:
/nsxml0:getMailResponse/nsxml0:getMailReturn/nsxml1:mailOut
Any help appreciated...:(hey b-o-s-t-o-n,
have your verified that the namespace import is correct, and with the right prefix
you xpath contains 2 namespace prefixes
/nsxml0:getMailResponse/nsxml0:getMailReturn/nsxml1:mailOut
so check the bpel file and maybe the wsdl that has been generated (that inclused the plnk extensions for your external service)
this is the most common issue ..
hth clemens
Maybe you are looking for
-
I am signed into the App Store on my iphone 4 and one of my apps need updating and my brother is signed into it because I didn't have any credit to make an ID so he signed in so I could download apps but its like its locked to his Apple ID I have tri
-
Replacement for HELP_VALUES_GET_WITH_MATCHCODE in ECC 6.0
Hi Friends, should the FM HELP_VALUES_GET_WITH_MATCHCODE bereplaced with the new one in ECC 6.0 or not.if so what is the replacement for it.Please provide. Regards, Pradeep P
-
IMovie New Event in Previous Year
I have my library sorted by date. How do I add an event to a year other than today's date? I want to organize my events in the library, but iMovie seems to have it's own idea how to sort my events. It's a mess!
-
Analyzer 7 Across the WAN using NAT addresses
We have acquired several companies that have their own internal ip addresses that are duplicates of some of our internal ip addresses. To overcome this we use Network Address Translation (NAT). However, we cannot get Analyzer to work with these NAT a
-
Cant run OCMS SipAS - OC4J 10.1.3 from eclipse WTP 1.5
Hello I Installed OCMS coorectly , and its pluging for eclipse WTP 1.5 I succefuly created in this eclipse a new server OCMS SipAS - OC4J 10.1.3 also , I succefuly created a new SIP servlet project to perform a test BUT THE PROBLEME THAT WHENE I TRY