Mapping to intermediate XML

Hi,
I am reading a flat file and converting it to XML. I use a file adapter to read flat file and write to flat file in this scenario.
Now I want to insert the XML into database as CLOB. Can I do this in one SOA composite canvas? I can put file adapter on left lane and DB adapter on right, but how will I map between source and target XML structure when I do not have File adapter on right lane of the canvas.
Edited by: NRJ on Apr 8, 2010 12:47 PM

Hi,
The contents of the flat file are mapped into a custom XML (which is significantly different from the the flat file layout) and I have some substring and concatenate operations on the data as well. So simple copy operation will not work.
Flat file contains multiple records which will result in multiple child-node's in the custom XML. (I need to find a suitable approach for this step).
After the contents of the flat file are mapped into the custom XML, this XML data has to be loaded as CLOB in DB (which is simple operation).
Thanks

Similar Messages

  • Error in Java Mapping for Single XML conversion

    We are working on ABAP Proxy --> SAP PI 7.1 --> SOAP (Synchronous Scenario).
    (ECC -> PI -> Legacy CRM)
    Client has provided a WSDL with Single Node of XML and asking us to pass the whole structure as an single string along with all the nodes of data structure. To perform mapping we are using Java Mapping.
    Message which we are getting after Java Mapping:
    Input
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_SOReject_Sender xmlns:ns0="http://MTSINDIA/TC/SalesOrderReject">
       <ITEM>
          <sSlsOrderCode>1001</sSlsOrderCode>
          <sDlrCode>A250</sDlrCode>
          <sRejectReason>Z2</sRejectReason>
          <nCircleCode>2</nCircleCode>
       </ITEM>
    </ns0:MT_SOReject_Sender>
    Output
    <?xml version="1.0" encoding="UTF-8"?><MT_Trg xmlns:ns="urn:Test_File_to_File"><stringinp>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;ns0:MT_SOReject_Sender xmlns:ns0="http://MTSINDIA/TC/SalesOrderReject"&gt;&lt;ITEM&gt;&lt;sSlsOrderCode&gt;1001&lt;/sSlsOrderCode&gt;&lt;sDlrCode&gt;A250&lt;/sDlrCode&gt;&lt;sRejectReason&gt;Insufficient Stock Balance&lt;/sRejectReason&gt;&lt;nCircleCode&gt;2&lt;/nCircleCode&gt;&lt;/ITEM&gt;&lt;/ns0:MT_SOReject_Sender&gt;</stringinp></MT_Trg>
    Is ther any way from which we can convert &gt; as u201C>u201D and &lt; as u201C<u201D.  Required result is as follows
    Required Output
    <?xml version="1.0" encoding="UTF-8"?><MT_Trg xmlns:ns="urn:Test_File_to_File"><stringinp><?xml version="1.0" encoding="UTF-8"?><ns0:MT_SOReject_Sender xmlns:ns0="http://MTSINDIA/TC/SalesOrderReject"><ITEM><sSlsOrderCode>1001</sSlsOrderCode><sDlrCode>A250</sDlrCode><sRejectReason>Insufficient Stock Balance</sRejectReason><nCircleCode>2</nCircleCode></ITEM></ns0:MT_SOReject_Sender></stringinp></MT_Trg>
    We are using following Java Code for the same.
    import java.io.BufferedReader;
              import java.io.FileInputStream;
              import java.io.FileOutputStream;
              import java.io.InputStream;
              import java.io.InputStreamReader;
              import java.io.OutputStream;
              import java.util.Map;
              import javax.xml.parsers.DocumentBuilder;
              import javax.xml.parsers.DocumentBuilderFactory;
              import javax.xml.transform.Transformer;
              import javax.xml.transform.TransformerFactory;
              import javax.xml.transform.dom.DOMSource;
              import javax.xml.transform.stream.StreamResult;
              import org.w3c.dom.Element;
              import org.w3c.dom.Document;
              import org.w3c.dom.Text;
              import com.sap.aii.mapping.api.*;
              import com.sap.aii.mapping.api.StreamTransformation;
    public class SingleStr implements StreamTransformation{
          * @author user
          * To change the template for this generated type comment go to
          * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
                    public static void main(String args[]) throws Exception {
                FileInputStream inFile =
                 new FileInputStream("C:/Documents and Settings/user.HR0102WILT00033/Desktop/Input.XML");
                FileOutputStream outFile =
                 new FileOutputStream("C:/Documents and Settings/user.HR0102WILT00033/Desktop/Output.XML");
                 SingleStr xml = new SingleStr();
                xml.execute(inFile, outFile);
                System.out.println("Success");
               public void setParameter(Map param) {
                Map map = param;
               public void execute(InputStream in, OutputStream out)
                throws com.sap.aii.mapping.api.StreamTransformationException {
                try {
                 //************************Code To Generate The XML Parsing Objects*****************************//    
                 DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
                 DocumentBuilder db = dbf.newDocumentBuilder();
                 TransformerFactory tf = TransformerFactory.newInstance();
                 Transformer transform = tf.newTransformer();
                 //Document doc = db.parse(in);
                 Document docout = db.newDocument();
                 Element root = docout.createElement("MT_Trg");
                 root.setAttribute("xmlns:ns","urn:Test_File_to_File");
                 docout.appendChild(root);
                 Element stringinp = docout.createElement("stringinp");
                 root.appendChild(stringinp);
                 BufferedReader inpxml = new BufferedReader(new InputStreamReader(in));
                 StringBuffer buffer = new StringBuffer();
                 String line="";
                 while ((line = inpxml.readLine()) != null)
                 buffer.append(line);
                 String inptxml=buffer.toString();
                 Text srcxml = docout.createTextNode(inptxml);
                 stringinp.appendChild(srcxml);
                 DOMSource domS = new DOMSource(docout);
                 transform.transform((domS), new StreamResult(out));
                 } catch (Exception e) {
                   System.out.print("Problem parsing the file: " + e.getMessage());
                   e.printStackTrace();
    Please help!!

    We are using following Java Code for the same.
    import java.io.BufferedReader;
              import java.io.FileInputStream;
              import java.io.FileOutputStream;
              import java.io.InputStream;
              import java.io.InputStreamReader;
              import java.io.OutputStream;
              import java.util.Map;
              import javax.xml.parsers.DocumentBuilder;
              import javax.xml.parsers.DocumentBuilderFactory;
              import javax.xml.transform.Transformer;
              import javax.xml.transform.TransformerFactory;
              import javax.xml.transform.dom.DOMSource;
              import javax.xml.transform.stream.StreamResult;
              import org.w3c.dom.Element;
              import org.w3c.dom.Document;
              import org.w3c.dom.Text;
              import com.sap.aii.mapping.api.*;
              import com.sap.aii.mapping.api.StreamTransformation;
    public class SingleStr implements StreamTransformation{
               public static void main(String args[]) throws Exception {
                FileInputStream inFile =
                 new FileInputStream("C:/Documents and Settings/user.HR0102WILT00033/Desktop/Input.XML");
                FileOutputStream outFile =
                 new FileOutputStream("C:/Documents and Settings/user.HR0102WILT00033/Desktop/Output.XML");
                 SingleStr xml = new SingleStr();
                xml.execute(inFile, outFile);
                System.out.println("Success");
               public void setParameter(Map param) {
                Map map = param;
               public void execute(InputStream in, OutputStream out)
                throws com.sap.aii.mapping.api.StreamTransformationException {
                try {
                 DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
                 DocumentBuilder db = dbf.newDocumentBuilder();
                 TransformerFactory tf = TransformerFactory.newInstance();
                 Transformer transform = tf.newTransformer();
                 //Document doc = db.parse(in);
                 Document docout = db.newDocument();
                 Element root = docout.createElement("MT_Trg");
                 root.setAttribute("xmlns:ns","urn:Test_File_to_File");
                 docout.appendChild(root);
                 Element stringinp = docout.createElement("stringinp");
                 root.appendChild(stringinp);
                 BufferedReader inpxml = new BufferedReader(new InputStreamReader(in));
                 StringBuffer buffer = new StringBuffer();
                 String line="";
                 while ((line = inpxml.readLine()) != null)
                 buffer.append(line);
                 String inptxml=buffer.toString();
                 Text srcxml = docout.createTextNode(inptxml);
                 stringinp.appendChild(srcxml);
                 DOMSource domS = new DOMSource(docout);
                 transform.transform((domS), new StreamResult(out));
                 } catch (Exception e) {
                   System.out.print("Problem parsing the file: " + e.getMessage());
                   e.printStackTrace();
    Please help!!

  • Java Mapping with an xml array as input

    Hi Gurus,
    I have to perform a java mapping to map some input xml contained in an array with a target message type. I have found a good java mapping example here:
    Re: Please provide Java Mapping example
    but my mapping input is not a single XML, but an XML array, thus I have a doubt...
    How can I map multiple XML contained in an array with a target XML? I have to solve this problem into a Java mapping prospective.
    Thanks to all!
    Message was edited by:
            Gabriele Morgante

    Hey Stefan, I think he is refering to a n:1 multimapping.
    If that is indeed the case, Gabriele, you will have to consider the initial tags inserted by mapping runtime to treat multimappings.
    Suppose your XML message is like
    <myMT xmlns="urn:mynamespace">
      <value>xpto</value>
    </myMT>
    Then, if your source message interface occurrence is defined as unbounded in your interface mapping, your mapping program (message mapping, xslt, java mapping, whatever) will receive, from mapping runtime, a message like this:
    <Messages xmlns="http://sap.com/xi/XI/SplitAndMerge">
      <Message1>
        <myMT xmlns="urn:mynamespace">
          <value>xpto1</value>
        </myMT>
        <myMT xmlns="urn:mynamespace">
          <value>xpto2</value>
        </myMT>
        <myMT xmlns="urn:mynamespace">
          <value>xpto3</value>
        </myMT>
      </Message1>
    </Messages>
    Also, if you have more than 1 message type as source of your interface mapping, your mapping program will receive the other message types in <Message2>, <Message3>... tags.
    The <Messages> and <MessageX> tags will always be automatically generated by mapping runtime when dealing with multimappings, which are mappings from m XML messages to n XML messages, with either m, n or both different of 1 (note that this definition includes mappings from 1 type to 1 type, when either source, target or both message types have max occurrence = ubounded).
    Finally, remember that the output that your mapping program generates will also have to include these <Messages> and <MessageX> tags (with proper namespace), since mapping runtime will be expecting them. Message mappings treat those by default, but your xslt and java multimappings will have to explicitely include these tags in the output.
    Regards,
    Henrique.

  • Mime mapping in web.xml not working for csv/excel

    I am using the weblogic 8.1 app server. I want to serve up some static content
    from an "exploded" web application (dir structure instead of a war file). This
    static content includes html files and csv files that cause the browser to give
    an option to the user to open the file in excel or download to disk. I have inserted
    the following mapping inside web.xml in the exploded directory structure...
    <web-app>
    <mime-mapping>
    <extension>csv</extension>
    <mime-type>application/vnd.ms-excel</mime-type>
    </mime-mapping>
    </web-app>
    I redeployed the "web application". When I try to access a csv file, instead of
    giving me the save/open dialog, the browser displays the ASCII contents of the
    csv in the browser like an HTML file. Am I missing a step? Is the xml above not
    for the functionality that I am trying to implement here?
    Thanks.

    Hi All:
    Thanks for all your help regarding the adfAuthentication success_url. Now I am able to configure to make this work. But now I am facing another issue i.e. I am getting 401 Not authorized message when the success_url is pointed to the jspx page.
    Note: I am using custom login module similar to DBProcOraDataSourceLoginModule so my roles are stored in the custom Role class. So I am not sure how to pass this role info to the security in ADF in order to authorize the page to be viewed.
    Could you please help and can you point me to any specific link.
    Thanks & Regards
    Sridhar Doki

  • Message Mapping from flat XML to a Record structure

    Hi All,
    We have a scenario in which the input message is a PDF document. we are following below the blog to convert PDF to XML format which uses <b>PDF box utitlity</b>.
    /people/sap.user72/blog/2005/07/31/xi-read-data-from-pdf-file-in-sender-adapter
    We are able to convert the PDF doc to a flat XML file.
    Now we have the following queries...
    what are the different ways to map the flat XML to our record structure?
    Do we have any utitlity in PDF box to do that?
    Regards,
    Rakesh.

    Hi Rakesh,
    You have Graphical mapping, Java mapping, ABAP mapping and XSLT mapping. The choice depends on the scenario and what target result you require.
    <b>Message mapping using graphical mapping editor:</b>
    http://help.sap.com/saphelp_nw04/helpdata/en/49/1ebc6111ea2f45a9946c702b685299/frameset.htm
    <b>XSLT mapping:</b>
    http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/frameset.htm
    <b>Java Mapping:</b>
    http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm
    <b>ABAP mapping:</b>
    http://help.sap.com/saphelp_nw04/helpdata/en/ba/e18b1a0fc14f1faf884ae50cece51b/frameset.htm
    As said earlier, graphical mapping is the simplest and quite a few built in options are available with it, explore it and see which is suitable for your scenario.
    Regards,
    Chandra

  • How to map a deep xml structure to flat structure

    Hi, I'm trying to map a deep xml structure to a flat file structure. See this:
    <SalesPoint>
             <header>
                  <idTx></idTx>
                  <opCode></opCode>
             </header>
             <body>
              <DataSet>
                   <codOperacion></codOperacion>
                   <codCanalDeVenta></codCanalDeVenta>
                   <cuitDeposito>
                   <docMinorista>
                   <fechaOperacion>
                   <codCC>
                   <Details>
                         <Dato>
                                        <nroSerieEquipo></nroSerieEquipo>
                            <codNMU></codNMU>
                            <codOrigenEquipo></codOrigenEquipo>
                            <codConcepto></codConcepto>
                             <codSegmento></codSegmento>
                            <motivoSiniestro></motivoSiniestro>
                         </Dato>
                   </Details>
              </DataSet>
             </body>
    </SalesPoint>
    to:
    <SalesPoint>
            <idTx></idTx>
            <opCode></opCode>
         <codOperacion></codOperacion>
         <codCanalDeVenta></codCanalDeVenta>
         <cuitDeposito></cuitDeposito>
         <docMinorista></docMinorista>
         <fechaOperacion></fechaOperacion>
         <codCC></codCC>
            <nroSerieEquipo></nroSerieEquipo>
            <codNMU></codNMU>
         <codOrigenEquipo></codOrigenEquipo>
         <codConcepto></codConcepto>
         <codSegmento></codSegmento>
         <motivoSiniestro></motivoSiniestro>
    </SalesPoint>
    Thanks in advance!!!!

    I do not think this is a complex XML structure. All that you need to take care is about the contexts. How ever it is not possible to give u the complete mapping here. If you have tried mapping already and facing some issues.. please put it here.. so that some one can help you.
    VJ

  • HOW TO MAP IDOC TO XML

    Hi,
      I need to map IDOC to xml but the problem is I have 400 fields in IDOC which  are to be mapped to 20 elements in XML.
          As it a tedious process to go to 400 fields for each xml element.Is their any better way to find correct field in IDOC with very minial time rather going 400 fields for each xml element.
    thanks
    sreeram

    hi,
    >>1)Even SAP it self does not encourage to use ABAP >>MAPPING and
    i dont know where you have read this, but ABAP mapping is one of the most popular/ most efficient and highly recomended by SAP. I have used it in tons of places.
    >>2)More over Iam not ABAP resource.
    you could also do a java mapping.
    there is no other easy way if you are not doing abap/java mapping. you are then left with the only option of using the graphical editor.
    cheers,
    Naveen
    Message was edited by: Naveen Pandrangi

  • Order of servlet mapping in web.xml

    Hello,
    is the order of multiple <servlet-mapping> in web.xml important? Or it doesn't matter in which order they are declared?
    For example, if i have two controllers, one is
    <servlet-name>Faces Servlet</servlet-name>
      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      <load-on-startup>1</load-on-startup>
    </servlet>
    and the second:
      <servlet>
        <servlet-name>FrontController</servlet-name>
        <servlet-class>servlets.FrontController</servlet-class>
      </servlet>
    and the mapping are:
       <servlet-mapping>
        <servlet-name>FrontController</servlet-name>
        <url-pattern>/jsf/*</url-pattern>
      </servlet-mapping>
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
      </servlet-mapping>where /jsf/ contains jsp pages containing jsf components.
    is the order important?
    And may second question is:
    if i call the jsp page test.jsf in /jsf/test.jsp , which controller is responseble? Faces servlet or Frontcontroller?

    Here is what the 2.4 specification says on the matter (section SRV.11.1):
    >
    The path used for mapping to a servlet is the request URL from the request
    object minus the context path and the path parameters. The URL path mapping rules below are used in order. The first successful match is used with no further matches attempted:
    1. The container will try to find an exact match of the path of the request to the
    path of the servlet. A successful match selects the servlet.
    2. The container will recursively try to match the longest path-prefix. This is done by stepping down the path tree a directory at a time, using the �/� character as a path separator. The longest match determines the servlet selected.
    3. If the last segment in the URL path contains an extension (e.g. .jsp), the servlet container will try to match a servlet that handles requests for the extension. An extension is defined as the part of the last segment after the last �.� character.
    4. If neither of the previous three rules result in a servlet match, the container will attempt to serve content appropriate for the resource requested. If a "default" servlet is defined for the application, it will be used.
    The container must use case-sensitive string comparisons for matching.
    It also notes that in prior versions of the specification these were only a suggestion so if you are on servlet 2.3 or prior, you need to consult the documentation for your container.
    So, to answer your questions, no, order in the descriptor is not important.
    Also, based on the rules above, using your mappings, any URL starting with /jsf will be handled by FrontController including /jsf/test.jsp and /jsf/test.jsf.

  • Mapping of unkown XML Content

    First of all sorry for my bad English. 
    I have a mapping problem. I call a Biz Talk Web Service and the problem is that the response type is not well-defined. The relevant part of the WSDL is:
                   <xsd:complexType name="SqlXml" mixed="true">
                        <xsd:sequence>
                             <xsd:any/>
                        </xsd:sequence>
                   </xsd:complexType>
                   <xsd:simpleType name="SqlResultCode">
    I have response messages like that:
      <ns0:P_VISH_MASTERResult>
        <ns1:SqlXml>
          <Value1>1</Value1>
          <Value2>1</Value2>
        </ns1:SqlXml>
        <ns1:SqlResultCode xsi:type="sqltypes:SqlResultCode">0</ns1:SqlResultCode>
      </ns0:P_VISH_MASTERResult>
    My target xsd  for the mapping of these response message is:
         <xsd:complexType name="DT_SAP_BTGINFO">
              <xsd:sequence>
                   <xsd:element name="SqlResultCode" type="xsd:int"/>
                   <xsd:element name="SqlXml" type="xsd:string" minOccurs="0"/>
                   </xsd:element>
              </xsd:sequence>
         </xsd:complexType>
    So I simply map SqlResultCode to SqlResultCode and SqlXml to sqlXml. When I test this mapping with simple Strings all works fine. When I load the example from above the mapping for SqlXml doesn't work. After Loading the example I get sub nodes Value1 and Value2 and there are naturally no mappings for these nodes.
    The question is: How can I map the unknown XML Content of the node SqlXml? Thanks for help!

    > Hi Gil,
    >
    > If the SqlXml always contains the two value nodes,
    > you need to modify your structure to have those two
    > nodes instead of just "Any". ....
    >
    > Hope this helps.
    >
    > Hart
    This was my first Idea because I know all possible fieldnames (value1, value2 …). I have to post a little bit more of my WSDL to explain my problem with this solution.
              <xsd:schema targetNamespace="http://LK-ZEHFGENIF1/VISH/VISH_WS" elementFormDefault="qualified" attributeFormDefault="qualified">
                   <xsd:import namespace="http://www.w3.org/2001/XMLSchema"/>
                   <xsd:import namespace="http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types"/>
                   <xsd:import namespace="http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types/SqlMessage"/>
                   <xsd:import namespace="http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types/SqlResultStream"/>
                   <xsd:element name="P_VISH_MASTERResponse">
                        <xsd:complexType>
                             <xsd:sequence>
                                  <xsd:element minOccurs="1" maxOccurs="1" name="P_VISH_MASTERResult" type="sqlresultstream:SqlResultStream"/>
                             </xsd:sequence>
                        </xsd:complexType>
                   </xsd:element>
              </xsd:schema>
              <xsd:schema targetNamespace="http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types/SqlResultStream" elementFormDefault="qualified" attributeFormDefault="qualified">
                   <xsd:import namespace="http://www.w3.org/2001/XMLSchema"/>
                   <xsd:import namespace="http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types"/>
                   <xsd:import namespace="http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types/SqlMessage"/>
                   <xsd:complexType name="SqlResultStream">
                        <xsd:choice minOccurs="1" maxOccurs="unbounded">
                             <xsd:element name="SqlRowSet" type="sqltypes:SqlRowSet"/>
                             <xsd:element name="SqlXml" type="sqltypes:SqlXml"/>
                             <xsd:element name="SqlMessage" type="sqlmessage:SqlMessage"/>
                             <xsd:element name="SqlResultCode" type="sqltypes:SqlResultCode"/>
                        </xsd:choice>
                   </xsd:complexType>
              </xsd:schema>
              <xsd:schema targetNamespace="http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types" elementFormDefault="qualified" attributeFormDefault="qualified">
                   <xsd:import namespace="http://www.w3.org/2001/XMLSchema"/>
                   <xsd:complexType name="SqlXml" mixed="true">
                        <xsd:sequence>
                             <xsd:any/>
                        </xsd:sequence>
                   </xsd:complexType>
              </xsd:schema>
    So I modify the SqlXml definition in that way:
              <xsd:schema targetNamespace="http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types" elementFormDefault="qualified" attributeFormDefault="qualified">
                   <xsd:import namespace="http://www.w3.org/2001/XMLSchema"/>
                   <xsd:complexType name="SqlXml" mixed="true">
                        <xsd:sequence>
                                <xsd:element name="Value1" type="xsd:string"/>
                             <xsd:element name="Value2" type="xsd:string"/>
                        </xsd:sequence>
                   </xsd:complexType>
              </xsd:schema>
    After importing this modified WSDL I use the message type P_VISH_MASTERResponse for mapping. When I generate a test message with the mapping tool all works fine. Here is an example for such a generated test message:
    <ns0:P_VISH_MASTERResponse xmlns:ns0="http://LK-ZEHFGENIF1/VISH/VISH_WS">
      <ns0:P_VISH_MASTERResult xmlns:ns1="http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types/SqlResultStream">
        <ns1:SqlXml xmlns:ns2="http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types">
          <ns2:Value1/>
          <ns2:Value2/>
        </ns1:SqlXml>
        <ns1:SqlResultCode />
      </ns0:P_VISH_MASTERResult>
    </ns0:P_VISH_MASTERResponse>
    But the response of the web service looks like that:
    <tns:P_VISH_MASTERResponse xmlns:tns="http://LK-ZEHFGENIF1/VISH/VISH_WS" xmlns:sqlresultstream="http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types/SqlResultStream" xmlns:sqlmessage="http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types/SqlMessage" xmlns:sqltypes="http://schemas.microsoft.com/SQLServer/2001/12/SOAP/types" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <tns:P_VISH_MASTERResult xsi:type="sqlresultstream:SqlResultStream">
        <sqlresultstream:SqlXml xsi:type="sqltypes:SqlXml">
          <Value1>bla blabla</Value1>
          <Value2>bla blabla</Value2>
        </sqlresultstream:SqlXml>
        <sqlresultstream:SqlResultCode xsi:type="sqltypes:SqlResultCode">0</sqlresultstream:SqlResultCode>  </tns:P_VISH_MASTERResult>
    </tns:P_VISH_MASTERResponse>
    The difference is the namespace specification of Value 1 and Value 2. The response message of the web service hasn't this specification. That's the reason why the mapping of Value1 and Value2 won't work.

  • Regular Expression Filter Mapping In Web.xml

    I have a situation where I need to filter URL's that don't have a file extension. There are hundreds of URL's, so i can't specify each one separately.
    From what I understand, you can have a filter mapping in web.xml to map certain file extensions to a filter, such as :
    <filter>
    <filter-name>MyFilter</filter-name>
    <filter-class>com.filters.MyFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>MyFilter</filter-name>
    <url-pattern>*.esi</url-pattern>
    </filter-mapping>
    ...where all files of extension .esi go through the filter. Additionally, I want to map all url's WITHOUT a file extension to pass through this filter. So if I have a request for "http://myserver.com/home" it will pass through the filter.
    Does weblogic support regular expressions for pattern matching in filter-mapping? If so, can you provide examples or links to documentation?
    Thanks,
    Jim

    No, regular expressions are not supported. You can specify the mapping with extensions, or with paths, not at the same time in the same mapping specification. However, you can specify two servlet mappings, one with extension, and one with path.
    The exact wording from the spec (2.4) is as follows:
    In the Web application deployment descriptor, the following syntax is used to define
    mappings:
    • A string beginning with a ‘/’ character and ending with a ‘/*’ suffix is used
    for path mapping.
    • A string beginning with a ‘*.’ prefix is used as an extension mapping.
    • A string containing only the ’/’ character indicates the "default" servlet of
    the application. In this case the servlet path is the request URI minus the context
    path and the path info is null.
    • All other strings are used for exact matches only.

  • Not able to map contents of xml to output using file adapter

    Hi
    i m not able to map the output of file adapter to a variable when reading an xml. the data is coming in the file adapter output variable but it is not mapping to other variable in assign or transform activity.I m using jdeveloper 11.1.1.4.0.Can anbody help me plz.
    Regards
    Sourbh

    i am using file adapter as reference to synchronously read an xml file. i am able to see the flow trace in em console. the output variable of file adapter contains the data but when i m trying to assign the value to a variable i getting error. saying that some xpath is not returing any value.
    i tried with transform activity also but same case is there.

  • XSLT-transformation in Java-Mapping with javax.xml

    Hi,
    we wanna use javax.xml for transformations in Java-Mapping.
    Inside the Java-mapping we read in XSL-files to transform a XML-stream. With XSLT 1.0 everything works fine - but with XSLT 2.0 we are getting runtime errors.
    Is it possible that javax.xml only supports XSLT 1.0?
    Regards
    Wolfgang

    Hi ,
    Jaxp 1.3 is available in this link -
    http://java.sun.com/webservices/jaxp/
    Use these jar files to process XSLT 2.0.
    Nanda

  • XSLT Mapping By Altova XML SPY

    Hi Gurus,
    I am new to XLST mapping, I want to know how to debug the XSLT mapping by using the Altova XML spy . please explain me in detail.
    I have studied in the Altova XML Spy site but i didn't understood .
    Thanks and Regards,
    Ram.

    Hi,
    there is a video showing how to do that :
    http://www.altova.com/videos.asp?type=0&video=xslt
    is it any clearer now ?
    Regards,
    Michal Krawczyk

  • Problem in message mapping file to xml

    Hi all,
    I´m new to XI and need to do a mapping from a file like structure to a nested xml structure.
    The weblog (splitbyvalue----
    >formatbyexample->
    ......................................................Constant(1)----
    >equalsS->createif->tk
    Is that right?
    How can I map for ? I don´t get the correct itens to the correct tk...
    Thanks,
    Marco Galhardi.

    Sorry,
    I´ve only written a model like in Integration Builder Design Message Mapping.
    Here is the expected xml result:
    Thanks again

  • ExcelXML mapping---problem with XML maps in Excel sheet

    Hi Friends,
    I have one issue with ExcelXML mapping in Xcelsius.
    The problem is I have designed one dashboard using ExcelXML mapping and everything is working fine but I was afraid that  I could not able to find the mappings which were embedded in Excel.It happened many times.What I was doing is everytime Im re-mapping.I could be a big problem for me to do this procedire for everytime.How to recover my XML maps into excel sheet.Can anyone please provide the solution to achieve this.

    Shouldnt it be equivalent ? I mean, as far as I know the ns0: shouldnt be a problem
    when you have a namespace in the message then you need to associate it with some prefix....since ns0 (or any other prefix) is not present you are getting the error....having the namespace but not ns0 is the problem.
    XMLAnonymizer bean may help you to add the namespace prefix...

Maybe you are looking for

  • Issue in mapping the same source and target fields

    Hi All, I am working on PI 7.0 and currently I am connecting to PI 7.0 via citrix desktop . Problem here is : in the mapping , direct mapping option that is available to map the same source and target fields is disabled . I do know that this is due t

  • 865 PE NEO2 no video

    just purchased an 865pe neo 2, i have nothing but a stick of 256mb ddr and my agp videocard installed on the mobo no drives or anything and i cant get any video. I have tried different ram and also 2 pci video cards and have gotten the same results p

  • FaceTime not able to end calls

    when using face time I can video call with good quality but when unable to end call or change camera the touch screen is frozen the other person has to end the call using a 16gb iPad air with 8.1.3

  • I'm trying to download iTunes to an external harddrive but it wont let me change to this drive. WHY?

    I'm trying to download iTunes to an external harddrive but it wont let me change to this drive. WHY? There isn't enough room on my laptop and I have deleted all traces of previous iTunes

  • Notes in the lower left corner?

    The frame in the lower left corner of iCal can be a calender or notes. I don't get the notes I'm adding to an entrance in the calender (ex a meeting) to show up in the lower left frame - or isn't this the purpose. What is supposed to appear in the "n