OWSM: it's possible manipulate a xml string date with a policies ?

Hello,
It's the first time that i use the OWSM. The objecties of my project is reuse a old webservice deploy in the old application. The authentication of websercice is inside the structure string xml type. For example any service are the follow soap structure:
<n:getInformation>
<data xsi:type="xs:string">..................</data>
</n:getInformation>
The type string the data is based on the xsd schema rules where among other there is the authentication info (user and pwd)
<authentication>
<user>hello<user>
<password>xxx<password>
<inputdata>
<inputdata>
My question is : It's possible create an agent or gateway policy without affect the webservice ? I wish manipulate a xml string type and add with a policy a xml data authentication information......
Thanks in advance.

Yeah you can certainly do that, but I can tell you that OWSM is not right place to do this.
- You can create custom step and get hold on the entire payload and change
- You can create XSLT to do the transformation from old to new.
HTH,
Chintan

Similar Messages

  • Manipulati​ng SequenceFi​le Data with DOM (XmlDocume​nt)

    Hi,
    I like to change some Step-data settings via xml.
    I have saved my seq-file as xml. So i can access it via .Net(2.0) XmlDocument Class.
    Accessing and Manipulation is working well, BUT
    After saving all attributes have " " (double quotes)  Instead of Ni's  ' ' (single quotes)
    so TS will not be able to open the file again !!
    NI:
    <teststandfileheader type='SequenceFile' fileversion='416' productname='TestStand' productversion='4.0 (4.0.0.326)' compatibleversion='4.0.0.0' buildversion='4.0.0.326' origfilepath='D:\test.seq' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.ni.com/TestStand/4.0.0/SequenceFile">
    <typelist> .......  
    DOM: 
    <teststandfileheader type="SequenceFile" fileversion="416" productname="TestStand" productversion="4.0 (4.0.0.326)" compatibleversion="4.0.0.0" buildversion="4.0.0.326" origfilepath="D:\test_Modif.seq" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.ni.com/TestStand/4.0.0/SequenceFile"><typelist> ...... 
    Do you know how i can slove this behaviour ?
    regards
    Juergen
    Message Edited by j_dodek on 11-19-2009 04:49 AM
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=
    Solved!
    Go to Solution.

    Hi Doug,
    you are right it. It doesnt care if you are using single or double qoutes or even utf
    my Test.seq(just 1 Step) is running in all ways. (Original has 400 steps inside)
    But i realizsed (feeling, no speedmeasure) that single and utf are opened faster than the others.
    I think i should have to way a few minutes more before posting this thread.
    Regards
    juergen
    Message Edited by j_dodek on 11-20-2009 01:59 AM
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=
    Attachments:
    TestXml.zip ‏36 KB

  • XML Meta data integration in Web Dynpro ABAP

    Hello,
    Is it possible to integrate XML Meta data with UI definitions in Web Dynpro for ABAP like Project Import in Development Studio?
    Thanks!
    Y. Hryhorovych

    Hi Yuriy,
    Web Dynpro components and applications are normal development objects. This means, you can transport them to any system using the change and transport system. There is no need to work with a separare xml representation.
    Best regards,
    Thomas

  • XML string from Java

    Hi
    I have requirement in which i have a jsp that i use to get information from users. I need to convert the info to XML data into a String , whihc i later use to pass as messages using AQ.
    I also have to, at a later point retreive the data from the XML String, update some information and recreate the XML string object with the new data.
    I do not want to use the XML SQL Utility as this could provide too costly in terms of database hits .
    Is there some XML Parser methods i can use to do the generation and retrieval of XML data into Strings.
    Thanks
    null

    Sort of hack but the way I did it was
    Convert to String:
    Construct a ByteArrayOutputStream
    print your documenet to this,
    and then call the toString() on the
    ByteArrayOutputStream.
    Convert from String to an XMLDocument:
    Construct a StringReader(String s)
    Construct a DOMParser and parse the
    StringReader.
    Hope this helps.
    null

  • Escaping characters in SOAP Envelope XML string

    Hello,
    I have a manual web service reference (i.e. a XML String parametrized with more fields from my apex page). Sometimes the web service call fails because the user can enter special XML characters in the text field (this in consequence makes the XML String invalid XML). Do you know any elegant way to deal with this problem? Having a process that does htf.escape_sc for each text field in the same page I have my text field is a bit complcated in my case.
    Are there any other options?
    Many thanks in advance

    Hi "user11085282",
    you might try to wrap the user input in CDATA sections ... this is the "XML way" to have special characters in a document without escaping them. CDATA sections look
    as follows
    <tag><![CDATA[& & < <> >]]></tag>
    http://www.w3schools.com/xml/xml_cdata.asp
    Hope this helps ...
    Carsten Czarski
    Deutschsprachige APEX-Community: Tipps, Tricks, Best Practice
    http://tinyurl.com/apexcommunity
    SQL und PL/SQL: Tipps, Tricks & Best Practice
    http://sql-plsql-de.blogspot.com
    Twitter: @cczarski @oraclebudb                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Load XML Videos data on tilelist(component) click

    Is this possible to load XML Videos data on tilelist(component) click..?

    yes. works for me:
    import fl.video.FLVPlayback;
    var flv_pb1:FLVPlayback = new FLVPlayback();
    var flv_pb2:FLVPlayback = new FLVPlayback();
    var flv_pb3:FLVPlayback = new FLVPlayback();
    flv_pb1.source="z_flvs/water.flv";
    flv_pb2.source="z_flvs/sample.mp4";
    flv_pb3.source="z_flvs/water.flv";
    tl.addItem({alt:"v 1", src: flv_pb1});
    tl.addItem({alt:"v 2", src: flv_pb2});
    tl.addItem({alt:"v 3", src: flv_pb3});
    tl.labelField = "alt";
    tl.sourceField = "src";
    tl.columnWidth = 400;
    tl.rowHeight = 600;
    tl.columnCount = tl.length;
    tl.rowCount = 1;
    tl.move(10, 10);

  • XML SQL Utility with Oracle 8.0.5

    hi,
    Is it possible to use XML SQL Utility with Oracle 8.0.5.
    Thanks,
    -Mourad
    null

    Yes. You need to use the Oracle8i 8.1.6 JDBC driver with XSU, but it can connect to an 8.0.5 instance.

  • How to get XMP MetaData as an XML String in a process?

    Hi there,
    I have a process where I would like to export a documents XMP MetaData, manipulate the XMP MetaData and then import the MetaData again to the document.
    I thougt first I will use the service Name "XMPUtilityService" with the Service Operation "Export XMP" to export the XMP MetaData as a document.
    Hoewer I am not sure how to manipulate the output document from the Export XMP service.
    When I print out the document.toString() in a execute Script Service I get the following:
    <document state="active" senderVersion="0" persistent="false" senderPersistent="false" passivated="false" senderPassivated="false" deserialized="false" senderHostId="null" callbackId="0" senderCallbackId="0" callbackRef="null" isLocalizable="true" isTransactionBound="false" defaultDisposalTimeout="600" disposalTimeout="600" maxInlineSize="65536" defaultMaxInlineSize="65536" inlineSize="3440" contentType="null" length="-1"><cacheId/><localBackendId/><globalBackendId/><senderLocalBackendId/><senderGl obalBackendId/><inline><?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
    <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="A...</inline><senderPullServantJndiName/><attributes/></document>
    Actually I expected something like this:
    <?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
    <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.0-jc006 DEBUG-1.0, 2009 Jun 23 11:07:21-PDT">
       <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
          <rdf:Description rdf:about=""
                xmlns:pdf="http://ns.adobe.com/pdf/1.3/">
             <pdf:Producer>Adobe LiveCycle PDF Generator ES2</pdf:Producer>
          </rdf:Description>
          <rdf:Description rdf:about=""
                xmlns:xmp="http://ns.adobe.com/xap/1.0/">
             <xmp:ModifyDate>2010-04-20T20:43:59+02:00</xmp:ModifyDate>
             <xmp:MetadataDate>2010-04-20T20:43:59+02:00</xmp:MetadataDate>
          </rdf:Description>
          <rdf:Description rdf:about=""
                xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/">
             <xmpMM:DocumentID>uuid:0cf2c6c6-2fba-2b39-5fb6-33ad8ccf58aa</xmpMM:DocumentID>
             <xmpMM:InstanceID>uuid:187bc5a2-acb0-2fa9-711d-33ad8ccf58aa</xmpMM:InstanceID>
          </rdf:Description>
       </rdf:RDF>
    </x:xmpmeta>
    <?xpacket end="w"?>
    What do I need to do to get the XMPMeta data as an XML String from a document within a process?
    Thanks in advance!
    Paul

    Hi,
    thanks for the answer.
    I know that I can retrieve the XMPUtilityMetadata object, but this object provides only access to a few information suche as creator, subject, producer, etc.
    However I would like to retrieve the whole XML String of the XMP Metadata.
    How is this possible?
    Thanks.
    Paul

  • How to get an XML string from a Java Bean without wrting to a file first ?

    I know we can save a Java Bean to an XML file with XMLEncoder and then read it back with XMLDecoder.
    But how can I get an XML string of a Java Bean without writing to a file first ?
    For instance :
    My_Class A_Class = new My_Class("a",1,2,"Z", ...);
    String XML_String_Of_The_Class = an XML representation of A_Class ?
    Of course I can save it to a file with XMLEncoder, and read it in using XMLDecoder, then delete the file, I wonder if it is possible to skip all that and get the XML string directly ?
    Frank

    I think so too, but I am trying to send the object to a servlet as shown below, since I don't know how to send an object to a servlet, I can only turn it into a string and reconstruct it back to an object on the server side after receiving it :
    import java.io.*;
    import java.net.*;
    import java.util.*;
    class Servlet_Message        // Send a message to an HTTP servlet. The protocol is a GET or POST request with a URLEncoded string holding the arguments sent as name=value pairs.
      public static int GET=0;
      public static int POST=1;
      private URL servlet;
      // the URL of the servlet to send messages to
      public Servlet_Message(URL servlet) { this.servlet=servlet; }
      public String sendMessage(Properties args) throws IOException { return sendMessage(args,POST); }
      // Send the request. Return the input stream with the response if the request succeeds.
      // @param args the arguments to send to the servlet
      // @param method GET or POST
      // @exception IOException if error sending request
      // @return the response from the servlet to this message
      public String sendMessage(Properties args,int method) throws IOException
        String Input_Line;
        StringBuffer Result_Buf=new StringBuffer();
        // Set this up any way you want -- POST can be used for all calls, but request headers
        // cannot be set in JDK 1.0.2 so the query string still must be used to pass arguments.
        if (method==GET)
          URL url=new URL(servlet.toExternalForm()+"?"+toEncodedString(args));
          BufferedReader in=new BufferedReader(new InputStreamReader(url.openStream()));
          while ((Input_Line=in.readLine()) != null) Result_Buf.append(Input_Line+"\n");
        else     
          URLConnection conn=servlet.openConnection();
          conn.setDoInput(true);
          conn.setDoOutput(true);           
          conn.setUseCaches(false);
          // Work around a Netscape bug
          conn.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
          // POST the request data (html form encoded)
          DataOutputStream out=new DataOutputStream(conn.getOutputStream());
          if (args!=null && args.size()>0)
            out.writeBytes(toEncodedString(args));
    //        System.out.println("ServletMessage args: "+args);
    //        System.out.println("ServletMessage toEncString args: "+toEncodedString(args));     
          BufferedReader in=new BufferedReader(new InputStreamReader(conn.getInputStream()));
          while ((Input_Line=in.readLine()) != null) Result_Buf.append(Input_Line+"\n");
          out.flush();
          out.close(); // ESSENTIAL for this to work!          
        return Result_Buf.toString();               // Read the POST response data   
      // Encode the arguments in the property set as a URL-encoded string. Multiple name=value pairs are separated by ampersands.
      // @return the URLEncoded string with name=value pairs
      public String toEncodedString(Properties args)
        StringBuffer sb=new StringBuffer();
        if (args!=null)
          String sep="";
          Enumeration names=args.propertyNames();
          while (names.hasMoreElements())
            String name=(String)names.nextElement();
            try { sb.append(sep+URLEncoder.encode(name,"UTF-8")+"="+URLEncoder.encode(args.getProperty(name),"UTF-8")); }
    //        try { sb.append(sep+URLEncoder.encode(name,"UTF-16")+"="+URLEncoder.encode(args.getProperty(name),"UTF-16")); }
            catch (UnsupportedEncodingException e) { System.out.println(e); }
            sep="&";
        return sb.toString();
    }As shown above the servlet need to encode a string.
    Now my question becomes :
    <1> Is it possible to send an object to a servlet, if so how ? And at the receiving end how to get it back to an object ?
    <2> If it can't be done, how can I be sure to encode the string in the right format to send it over to the servlet ?
    Frank

  • Convert XML string into XML

    Hi All,
    Can you please let me know for any sample code in xslt/java mapping for converting XML string into XML. We use SAP Pi 7.0
    My XML string starts like this
    <?xml version="1.0" encoding="UTF-8" ?> 
    - <ns0:MT_ReceiverFileStructure <namespace>"><Output><?xml version="1.0" encoding="ISO-8859-9"?><?xml-stylesheet type="text/xsl" href="<xsl>"?><Tarih_Date Tarih="11.09.2014" Date="09/11/2014>
       Thanks,
       Pavithra

    Thanks Praveen. It worked.
    However, the xml i have is an extract from a exchange rate URL and it has the reference to a xsl in it as below
    <?xml version="1.0" encoding="ISO-8859-9"?><?xml-stylesheet type="text/xsl" href="<ABC.xsl>"?>.
    So there is an error in sxmb_moni. Is it possible to remove this.

  • Passing XML String via HTTP Sender

    Hello everyone,
    currently we try to find a solution on the following requirement - maybe you have useful advice for us:
    8 different business documents can be sent via a web-interface to SAP XI via the http sender adapter. We already have a customized JCo Class that takes only one input parameter (containining the XML string of the business document).
    I think the easiest way would be to receive the XML string from the web-interface and pass it directly on to the JCo-Class in a Java Mapping.
    Is it possible to create a generic message type for all 8 types of XML documents that contains just one element holding the XML as string? By doing so we could use the same URL for all 8 different XML types and pass it directly on as input paramenter to the JCo Class.
    Do you have any idea how to do this?
    Thank you very much.

    Does the HttpURLConnection conn send the string along with the headerYes.

  • Create Business Partner from XMl String not a file

    Hi,
    Is it possible to create a BP from an XML string. 
    I know about GetBusinessPartnerFromXml(string FileName, int index)
    but I dont want to save the string in a file before creating a BP from it
    Hope there's a method to do that

    Marc,
    This looks like it is a duplicate of this post, so I am closing this thread as it looks like you answered your own question!
    Create Business Partner from XMl String not a file
    Eddy

  • Getting a complete portion of an XML String (With tag names)

    Im working on an application that processes a huge amount of xml strings. Im using xpath since it makes it much easier to select and navigate through the tags. The only thing I can't do is get a complete portion of an XML string, for example, if i have
    <article>
    <articlebody>
    </articlebody>
    <references>
    <reference id="1"> ... </reference>
    <reference id="1"> ... </reference>
    <reference id="1"> ... </reference>
    </references>
    </article>
    I need to get the complete <reference> portion to parse later, so i need the following string:
    <references>
    <reference id="1"> ... </reference>
    <reference id="1"> ... </reference>
    <reference id="1"> ... </reference>
    </references>
    How can i do this using xpath? is it even possible? if not how else can i do it? (don't want to use regular expressions and string manipulation)
    Thanks for you help

    Im not sure if this really qualifies as using DOM, but this is all i do to get the data i want from the files (when i only want to get the text value of an element:
    InputSource inputSource = new InputSource(new StringReader(metadata));
    return xpath.evluate(expression, inputSource, returnType);where metadata is a String containing meta data, and return type is usually string or number.
    Im using Java 5 and
    Could you please explain a little more how to do this?
    Thank you

  • Can't get unparsed (XML string) BPEL response in servlet

    (Reposted from "OC4J and Java EE" forum)
    I'm trying to invoke a two-way BPEL process from within a servlet like so:
            NormalizedMessage requestMessage = new NormalizedMessage();
            requestMessage.addPart("payload", requestXml);
            Locator lctr = new Locator(domainId, password);
            IDeliveryService dService = (IDeliveryService) lctr.lookupService(IDeliveryService.SERVICE_NAME);
            NormalizedMessage responseMessage = dService.request(bpelId, operationId, requestMessage);I would like to retrieve the unparsed XML String response. I thought that would be possible using the following:
            String responsePayload = responseMessage.getPayloadString();but that returns null. responseMessage.getPayload() returns a Map from which I can successfully obtain the payload XMLElement, so the BPEL process is definitely working.
    Any ideas why getPayloadString is not working as I expect it to? SOA suite is version 10.1.3.1. Thanks!

    hmm, if you poke around in decomiled version of DeliveryBean and NormalizedMessage, you can see that NormalizedMessage mPayloadString is not set by anybody, may be that is the cause.
    Probably you can write your own function:
    e.g. something like:
    NonSyncStringBuffer buf = new NonSyncStringBuffer();
    Iterator it = mPayload.keySet().iterator();
    buf.append("<part>");
    int i = 0;
    for(int size = mPayload.size(); size > 0;)
    String key = (String)it.next();
    if(i > 0)
    buf.append(", ");
    buf.append(key).append('=').append(mPayload.get(key));
    size--;
    i++;
    buf.append('</>');
    return buf.toString();

  • Escaping xml string

    how to escape <,> in xml string to &lt; ,
    &gt;.is it possible to convert the entire xml string into this
    format
    ex:
    <root> <sample><id> 89
    </id></sample></root>
    this has to be converted into
    &lt; root&gt;. &lt; sample&gt;. &lt;
    id&gt;. 89 &lt; /id&gt;. &lt; /sample&gt;.
    &lt; /root&gt;.

    myString="<root> <sample><id> 89
    </id></sample></root>";
    myString.split("<").join("&lt;");

Maybe you are looking for

  • DVI to ADC adapter

    This one is a little tricky...i have a 20" Apple Display with an ADC connection.....my friend who owns an older G4 believeed to have a DVI-D and VGA connection wants to buy it but we're wondering if there is any way to hook it up.....I have an Apple

  • Quicktime will not play any video files

    When trying to play any compatible video files .mov, .mp4 etc... all I get is a small black box in the upper left corner of the screen. The computer is not frozen I can close the window with the red x. I can open Quicktime and the web stuff opens but

  • Link to Folder in Folder Portlet

    We display our folder contents within a portlet. It's important that all of those links present their contents in the portlet. This typically works. However, if an item is linking to another folder, the link presents its content on the entire page, n

  • Authorization to a single Transaction

    Hi, I am novice in the authorization issue but i have a need that i will describe in the following lines: i need to atrib t-code FDTA to a single user. How can do that? and How can i know what users are using the t-code in a single moment Thank you f

  • How to solve this internal error in exporting?

    Each time I export photos to my hard drive, there's always an error message displayed at the end of exporting shows: Does anyone know how to solve this problem? It troubled me for a long time... Any reply would be highly appreciated!