Avoid namespace in Output.

10-11  Source: Network gathering  Views:0 

Advertisement
Hi,
I am using a transformation to eliminate one of the attributes "ErrorMessage" from <PersonImage> using a "if" condition. Refer to OTN : Hiding XML attribute if no data/value exists
I am getting an expected result as follows:
<outputVariable>
- <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload">
- <Response xmlns="http://xmlns.monash.edu.au/its/rms/ImageProcessResponse">
- <Summary>
- <Totals>
<Processed>4</Processed>
<Faulty>0</Faulty>
<Successful>4</Successful>
- <Server1 Machine="1" Name="Basil1">
<Successful>4</Successful>
<Failed>0</Failed>
</Server1>
- <Server2 Machine="2" Name="Basil2">
<Successful>4</Successful>
<Failed>0</Failed>
</Server2>
</Totals>
<Terminate/>
</Summary>
- <Detail>
- <PersonImage>
<rms:PersonImage ID="12410276" FileName="12410276.jpg" Fetched="Y" S1="Y" S2="Y" xmlns:rms="http://xmlns.monash.edu.au/its/rms/ImageProcessResponse"/>
<rms:PersonImage ID="12620203" FileName="12620203.jpg" Fetched="Y" S1="Y" S2="Y" xmlns:rms="http://xmlns.monash.edu.au/its/rms/ImageProcessResponse"/>
<rms:PersonImage ID="12790974" FileName="12790974.jpg" Fetched="Y" S1="Y" S2="Y" xmlns:rms="http://xmlns.monash.edu.au/its/rms/ImageProcessResponse"/>
<rms:PersonImage ID="12983233" FileName="12983233.jpg" Fetched="Y" S1="Y" S2="Y" xmlns:rms="http://xmlns.monash.edu.au/its/rms/ImageProcessResponse"/>
</PersonImage>
</Detail>
</Response>
</part>
</outputVariable>
But I am unable to eliminate the namespace after each <PersonImage> output. I wanted the output as follows:
<outputVariable>
- <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload">
- <Response xmlns="http://xmlns.monash.edu.au/its/rms/ImageProcessResponse">
- <Summary>
- <Totals>
<Processed>4</Processed>
<Faulty>0</Faulty>
<Successful>4</Successful>
- <Server1 Machine="1" Name="Basil1">
<Successful>4</Successful>
<Failed>0</Failed>
</Server1>
- <Server2 Machine="2" Name="Basil2">
<Successful>4</Successful>
<Failed>0</Failed>
</Server2>
</Totals>
<Terminate/>
</Summary>
- <Detail>
- <PersonImage>
<rms:PersonImage ID="12410276" FileName="12410276.jpg" Fetched="Y" S1="Y" S2="Y" />
<rms:PersonImage ID="12620203" FileName="12620203.jpg" Fetched="Y" S1="Y" S2="Y" />
<rms:PersonImage ID="12790974" FileName="12790974.jpg" Fetched="Y" S1="Y" S2="Y" />
<rms:PersonImage ID="12983233" FileName="12983233.jpg" Fetched="Y" S1="Y" S2="Y" />
</PersonImage>
</Detail>
</Response>
</part>
</outputVariable>
Much appreciate your help in this.
Thanks and Regards,
Rakesh
You are syaing that you want to remove the namesspace defintion, but keep the namespace alias in the XML. This results in a invalid namespace. I shouyld keep it as is, this is a valid XML messages. You shoudl changes the caller application to be aligend to the XML standards.
BTW:
http://orasoa.blogspot.com/2008/12/remove-namespaces-in-osb-and-bpelesb.html
Marc
Related articles
  • Avoid namespace in Output. 10-11

    Hi, I am using a transformation to eliminate one of the attributes "ErrorMessage" from <PersonImage> using a "if" condition. Refer to OTN : Hiding XML attribute if no data/value exists I am getting an expected result as follows:

  • Urgent Please - How avoid namespace tag in XML Content 10-11

    Hi XI Experts, <?xml version="1.0" encoding="UTF-8"?> <b><ns0:AAA xmlns:ns0="http://Abc.com"></b> <DocHeader><ClientID>ABC</ClientID><ClientDocID>null</ClientDocID><Use

  • Namespace in output xml file problem? 10-11

    Hi, i imported an xsd in IR for developing an interface and the output was satisafactory except for a small problem in the namesapce which the file contains. My xml file output looks like <?xml version="1.0" encoding="UTF-8" ?> -

  • Unwanted namespace in output file 11-30

    Hi all experts! I'm having a B1-to-File scenario in B1iSN 8 PL8 where the demand for namespace is: <m:b24bufferMessage xmlns:m="http://b24commerce.com/schemas/buffer/3.2"> </m:b24bufferMessage> In the XSL file I'm using the b1im_file

  • How to avoid zeros in output for a field with Decimal type 10-11

    Hi Friends In a  Report one output field is declared with decimal type. Whenver that field is not filled with any values zeros will be displayed in the output. I tried to change the data type to char but i am facing some issues in calculations and sh

  • How to avoid dependance between output digital port with a PCI 1200 daq card? 10-11

    Hello, I don't manage to fix the state of a line on one port (PA0 for ex) without change the state of another line of another digital port (PB0 for ex) I use a PCI 1200 Daq card with Labview 5.0.1 (under Windows 98) How to configure a robust state (h

  • How to set input/output "use" attribute in the WSDL file of BPEL process? 10-11

    Hello, I have a BPEL process that I want to deploy it as an RPC web service. I want to access it from a Java module (via an automatic generated Java stub from the WSDL file exposed by the BPEL process). I wrote manually the corresponding WSDL file fo

  • Different Namespaces in request and response of a webservice in BPEL 10-11

    Hello I have created  a  piece of code in BPEL in JDeveloper where i invoke a partner link. The namespaces of the request differs from the name space of response of the wsdl.I have tried to just change the namespace of output variables to the require

  • Namespaces in TransformerHandler? 11-30

    Are SAX namespace events correctly handled by javax.transformer.sax.TransformerHandler? Given the following class: import javax.xml.transform.sax.TransformerHandler; import javax.xml.transform.sax.SAXTransformerFactory; import javax.xml.transform.str

  • How to limit default xmlnamespaces? 10-11

    I have the following Tsql script: ; with xmlnamespaces ( default 'http://www.tn.gov/mental/Schemas/CrisisAssessment', 'http://www.w3.org/2001/XMLSchema-instance' as xsi) , prov as ( select NPI,FileCreationDate, cast(FileCreationTime as time) FileCrea

  • JAXB Problem: xjc gives an error 10-11

    Hello everyone, I would like to use JAXB to extract various information from a class of XML documents that conform to a schema. After tweaking the schema so that I avoid namespace conflicts with xjc, I settled the namespace conflicts, but I got the f

  • Java package concept in ABAP Objects 10-11

    Hi, just a question on grouping of classes in ABAP Objects. In Java, you can group classes by "package" to avoid namespace collision, my question, in ABAP Objects, how do you group classes to avoid namespace collision? I know that there is packa

  • Help needed with wsdl compilation problem 10-11

    Hi all, I am trying to perform a wsdl2java run on a wsdl, but it keeps failing and I can't work out why. Can anyone help me spot the problem? Here is the problem I get: [WARN] Type {http://Input.LeaseBaseGetMntcHistory.remarketing.gf.com}MntcHistory

  • Sum function do not work in oracle reports enhanced spreadsheet format 10-11

    we are using oracle reports 10.1.2.3 in our oracle application server 10gr2 and we are creating enhanced spreed sheet.And the report opens in MS excel fine.But we can not apply any formula like VALUE,SUM,AVG on that report after opening it into excel

  • Problem to generate classes from a gsoap server's wsdl with wsimport 10-11

    Hello, I trie for a long time to generate my client classes from a wsdl file with wsimport. The wsdl file was generated by gsoap. Here, the wsdl file : <?xml version="1.0" encoding="UTF-8"?> <definitions name="form"

  • How to configure Oracle Datasource in Tomcat 10-11

    Hello, My configuration of a Tomcat Datasource (oracle) appears to be wrong. Either that or my oraclejdbc.jar file is in the wrong place. Perhaps my classpath setting is wrong. Any help is appreciated. Tomcat console error: 20070423 20:46:22.514 http

  • How to split the messages in the mapping 10-11

    Hi Gurus, I need to split the message into two XML message based on the value in  the plant and sent it to two receivers.   How to do using Graphical mapping. Im working in PI7.0. I dont know how to use the enhanced receiver determination. PL guide m

  • I tried to invoke WS from BPEL process 10-11

    I tried to invoke WS from BPEL process. And error occurred when I deployed the process. Error: [ERROR ORABPEL-10902]: COMPILING FAILED. [NOTE]: IN "bpel.xml", XML syntax analysis failed. The reason is "Part Element not defined". In &qu

  • Need to add xml tag in the request message 10-11

    Hello Experts, Need ur help. Right now i am working on the scenario Http -> to -> Proxy. Whatever request i am getting is not having XML tag in it, and because of that my mapping is failing. Can you tell me that how can i add XML tag in my request s

  • More than one operation defined. Unable to resolve operation 10-11

    Hi, Using the attached WSDL to define a BPEL sequence I allways get the following error message: More than one operation defined. Unable to resolve operation: This occured in the moment i introduced a seconde operation. With one operation everything