We have XML,why we need SOAP?

Hi all,
Every Technolgies accept the XML then why we need SOAP.

You refered different concepts by using Xml and SOAP.
SOAP is a type of internet protocol. By using this, you can use Xml Web Services in a secure way. Besides, this protocol provides you to send your action and take your response which is covered by Xml through the HTML protocol.

Similar Messages

  • Why we need SOAP ?

    Hi,
    I have gone through some articles regarding SOAP but not able to find any use of it..I surfed through web but not able to trace the actual point....my confusion is
    "we can work with XML messages directly over HTTP , then why we need SOAP then ?"
    awaiting for your valuable replies...
    Thanks and Regards
    Mahesh.

    Hi Mahesh ,
    <i>If we need SOAP for web services then why we are using SOAP internally in XI ? As we are not working with web services...we are just working with XML messages ?
                   </i>
    The SAP Exchange Infrastructure message format is based on XML. Since a message in SAP XI can also have binary attachments.
    <b>
    XI Message Protocol</b>
    <b>The XI message protocol of SAP Exchange Infrastructure is based on the W3C note SOAP Messages with Attachments (for more information, see: www.w3.org/TR/SOAP-attachments). The Integration Server expects a message that has the following structure:</b>
       <b>    XI  Message</b>
            <b>SOAP Header</b>
           1.Message Header  , which contains SENDER , MODE(SYN/ASYN)
                <b>SOAP Body</b>               
             2. Paylod Main - Contains Actual  Business Data
             3. Payload Trace     
    The SOAP header of a message contains all the important information that the Integration Server requires to forward the message, while the payload contains the actual business data (such as <PurchaseOrder> in the example above). You can also append an unlimited number of attachments to the message before it is sent. Attachments typically comprise non-XML data, for example, pictures, text documents, or binary data.
    The information in the message header must have the correct format for the message to be processed on the Integration Server. The payload is not touched unless a mapping needs to be executed.
              Please refer the following link,
    http://help.sap.com/saphelp_nw70/helpdata/en/b6/0b733cb7d61952e10000000a11405a/frameset.htm
    <b>
      Please Assign Points if helpful*****</b>
    Best Regards .,
    V.Rangarajan

  • Why we need XML?

    hi,
    Why we need XML.?(we have ascii file format is a gentral format, to access all plateform,why not we didn't follow.?)
    like XML:
    <contact>
    <name> java</name>
    <age>25</age>
    </contact>
    flat files:
    contact name:java age:25
    i feel flat file is small and easy .....why we didn't use it.........?

    PS - Jos, how's the weather in your garden today?
    (Rainy and cool here.) Well picture this: both of my parrots are trying to
    sleep in their own hollow
    coconut, slightly disturbed by some silly squeaky
    bird at the other side
    of the barn. The fish in the pond are sort of
    sunbathing between the
    floating leafs, my wife seems to be in a catatonic
    state sleeping all the
    time and then there's me in front of my little laptop
    (protected by a silly
    little green umbrella like thingy, the laptop that is
    ;-)A nice image indeed.
    It's been one wet spring here. It's very cool and overcast, threatening more rain. I'm sitting in my office working away on getting my head around Spring. I've been going through Rob Harrop's "Pro Spring" slowly and carefully, making all the code work and taking little side trips to set it into my head. Rod Johnson's team is doing a great job, in my opinion.
    I still feel that the Spring framework, the web part
    of it, is as some sort
    of a corset, a hindrance. I feel like I'm all
    dressed up but nowere to go
    because Spring or something else I don't know about
    forbids me ... I
    know that I have it wrong alltogether but I can't get
    a grip on it. Not sure what the impediment is, but then I don't understand all the nuances of Spring yet. Maybe their newer web flow stuff might help. It models a UI as a state machine, so you can do more complex flows from page to page. The finite automata underneath will appeal to your inner mathematician. 8)
    btw. it's in
    the lower thirties here (celcius); that makes it in
    the lower nineties (fahrenheit).
    btw, YoGee helped me a lot yesterday.No surprise there. YoGee sure is smart. While I was reading the thread I wished that I had seen it first. You've been so helpful to me so often that I would have enjoyed reducing the trade deficit I have with you. I know that particular problem with Tomcat and JSTL well.
    Yep, I'm working on a large ('Dutch-wise' speaking
    that is) optic fibre
    network. Technically this network works great.
    Managerially speaking
    ahem there's nothing yet: no services, no control
    of services, no
    network checking stuff, no customer (crm) stuff, no
    nothing. Those folks
    want me to do it all. Sounds like a great problem. Could be an engagement to carry you through the summer.
    Yes, that particular part gave me blood behind my
    eyes: I did everyhing
    according to the book and that crap simply refused to
    work. It turned out
    that I was trying to develop something against wrong
    versions of several
    components. In a certain way I'm a believer, i.e.
    when I finally do understand
    what it's all about I "walk this way" when the
    documentation tells me to
    "walk this way". When that turns out not to work at
    all I want my pink
    inflatable axe again (or worse ;-)I like Tomcat, but I think the docs are sketchy. This seems to be a common problem.
    No, I feel reluctant to introduce yet another
    technology while I'm still
    struggling with the ones I found necessary to use.Me, too. I'm overwhelmed by all that I don't know. That's why I'm taking the time to get all the way through Spring once. I've been reading and dabbling, but I haven't given it enough concentrated attention to have it under my fingers. I've got three personal projects lined up once I get through "Pro Spring" that should set it into my head nicely.
    <advertisement>
    By the way, I decided to buy a copy of IntelliJ. I've never paid for an IDE, but since I've gotten used to it at work I don't want to be without it. I've never championed an environment as much as I do this one. I used Eclipse for several years and was glad to have it, but I'd still find myself slipping out and using a text editor to do quick things. IntelliJ doesn't get in my way. It's completely eliminated any temptation to use a text editor. A terrific product that's only getting better with time.
    </advertisement>
    <disclaimer>I'm not related to anyone who works for or affiliated with JetBrains in any way. Just a happy customer.
    </disclaimer>
    I'm not a GUI guy myself, far from that and I'd like
    to stay away from it as
    far as possible. As I wrote above I feel "all dressed
    up but nowhere to go".
    I've got my beans all ready, my DataSources are all
    solid and sound; I
    can see that everything works (from the logs), but
    that darn web stuff
    keeps on pestering me ...I think the UI is always the hardest part. Everything from the service layer back can almost be generated from the beans and tables: Hibernate mappings, DAOs, service layer, JUnit tests for the whole thing. A few nice annotations and you've got the whole thing. Just the UI beast left to tame...
    >
    I think I'll take another Grolsch and chase that
    silly squeaky bird away.
    Enjoy your weekend!
    kind regards,
    JosYou too! Go enjoy some World Cup football!
    %

  • I am not able to register my Apple ID for iCloud and the error is "the maximum no of free accounts have been activated on this phone" can any one help me why I need to do

    I am not able to register my Apple ID for iCloud and the error is "the maximum no of free accounts have been activated on this phone" can any one help me why I need to do

    Sir, your Apple ID can be used as an iCloud account as well. They are both the same thing.
    You can learn more from --> Set up your Apple ID for iCloud and iTunes - Apple Support

  • Can you give me some reasons about why I need to buy an iPod touch 5.Although I have the iPhone ,iPod nano, iPad ,MacBook pro,I think the iPod touch 5 is so attractive that I can't help buying it at once.If I have it,what I can do with it,can you tell me?

    can you give me some reasons about why I need to buy an iPod touch 5.Although I have the iPhone ,iPod nano, iPad ,MacBook pro,I think the iPod touch 5 is so attractive that I can't help buying it at once.If I have it,what I can do with it,can you tell me?

    All I can say is that I REALLY like my Touch 4th gen because I have all sorts of capabilities in a small form: e-mail, web browsing, news, weather, books, magazines, etc. etc.  Plus lots and lots of apps out there, including so many free ones.  I use the Cloud a lot so it's great to have everything sync'd to my MacBookPro (e-mail, Evernote, Pocket, etc.)
    It would be easier, though, to do some of this, especially magazines, on the iPad mini, but, again, I love the small size of the Touch. 
    As for the 5th gen instead of the 4th, the fifth has Siri and the 3D feature in maps, which are great.  And I'm sure it's a lot faster in iOS 6 than the 4th gen.  And cool colors! 
    Don't know if this helps . . .

  • Why I need a code for rent a film and where ist the code? (I dont have a card)

    Why I need a code for rent a film and where ist the code? (I dont have a card)

    it's unclear what you mean
    you say you dont have a card which I guess is you don't have a creditcard
    in which case the other option is to pay by a giftcard which include a code which you put in
    because to rent you have to pay otherwise it's not really renting

  • When I try to upgrade and install to iOS 5.1, error message prompt "operation stop running". I have tried several time but failed. Also, would like to know why always need to have wifi access in order to upgrade the version of iPad iOS, why not 3G ?

    When I try to upgrade and install to iOS 5.1, error message prompt "operation stop running". I have tried several time but failed. Also, would like to know why always need to have wifi access in order to upgrade the version of iPad iOS, what is the purpose of 3G then? This is really nonsense using wifi + 3G iPad. need help ! Thanks.

    The file is too large to download via 3G. There is a 20MB limit with 3G. The purpose of having 3G is that you have internet access everywhere and do not need to be near a WiFi hotspot or network.
    Not every single thing that you do every single minute of the day on the iPad involves downloading files larger than 20MB. You can surf the internet all day long sitting out in a park somewhere with 3G - but not with a WiFi only iPad - unless you use a hotspot with it.
    Try turning off your firewall and anti virus software while you try to download the iOS update.

  • Why we need to use the RMI if you have JSPs? or vice versa

    Hi friends,
    Can anyone please explain me whats the difference between RMI and JSP?
    All I know is how to code and implement them both but can't figure out which one has more advantage than the other.
    Actually this was the Interview question asked to me once,
    The question was "Why we need to use the RMI if you have JSPs? or vice versa"
    Please let me know if you have any answers for this.
    Thank you.

    harsh884 wrote:
    Well I may not have very deep knowledge about them both but from the little bit of coding practice and implementation I know that too, that they are different technology and the implementation is also different. But didnt know what to answer for this question to interviewer.My answer would have been along the lines of using the right tool for the requirements. Use RMI when you want to work with remote objects "directly", but don't want to hassle with handling all the networking manually or restrict yourself to the HTTP protocol and an inappropriate use of the view layer in model 2 applications.
    Thanks anyways for the reply.You're welcome. How did the rest of the interview go?
    ~

  • HT4539 I want to download trevie on my iPad like I have on my iPhone it says I need iOS 5 .   If I can' t have it why is it offered as an app.  I really enjoy it

    I want to download trivia on my iPad like I have on my phone.  It says I need iOS5. I really enjoy playing it on my phone.  If I cannot have it why is it offered as an app?

    Unless the app is only for the iPhone then you can have it on the iPad, you can update it to iOS 5+
    Connect the iPad to your computer's iTunes and copy any purchases off the iPad to your computer via File > Transfer Purchases (you may also want to copy photos off the iPad as well) and then force a backup of the iPad by right-clicking the iPad 'Device' on the left-hand side of iTunes and selecting 'Backup'. You may also want to copy off the iPad any important documents, notes, files etc e.g. via the file sharing section at the bottom of the device's apps tab when connected to iTunes, via wifi, email, dropbox etc - they should be included in the backup, but it's best to have a copy of them outside of the backup just in case.
    You can then start the update by selecting the iPad on the left-hand side of iTunes, and on the Summary tab on the right-hand side clicking the Check For Updates button.
    Updating to iOS 5+ : http://support.apple.com/kb/HT4972

  • XML, XSL, and why I need a URL to create a XSLStylesheet

    In order to convert XML>>HTML I need to specify both the XML (data) and the XSL (stylesheet). Great.
    Before I slap these two together, I need to create an instance of XSLStylesheet, which takes my raw XSL file and a **URL**?
    XSLStylesheet xsl = new XSLStylesheet(xsldoc, xslURL)
    What is this URL used for? Antoher XML processor I'm migrating from does not require this, and it looks like I can't avoid it. (There's no constructor for the XSLStylesheet that DOESN'T need the URL.)
    QUESTIONS:
    - Is there a way to avoid specifying a URL?
    - If there's not a way, can someone tell me what the URL is being used for? All I see from the Javadoc is that it's a "Reference URL for include, import and external entities". Would love to be able to expand on that - leaves me in a fog.
    Thanks!
    Will.

    try using "null" as argument for url
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Will Garnett ([email protected]):
    In order to convert XML>>HTML I need to specify both the XML (data) and the XSL (stylesheet). Great.
    Before I slap these two together, I need to create an instance of XSLStylesheet, which takes my raw XSL file and a **URL**?
    XSLStylesheet xsl = new XSLStylesheet(xsldoc, xslURL)
    What is this URL used for? Antoher XML processor I'm migrating from does not require this, and it looks like I can't avoid it. (There's no constructor for the XSLStylesheet that DOESN'T need the URL.)
    QUESTIONS:
    - Is there a way to avoid specifying a URL?
    - If there's not a way, can someone tell me what the URL is being used for? All I see from the Javadoc is that it's a "Reference URL for include, import and external entities". Would love to be able to expand on that - leaves me in a fog.
    Thanks!
    Will.<HR></BLOCKQUOTE>
    null

  • Support on 'Base64 encoding in XML gateway Web service SOAP content'

    Hi Experts,
    IHAC who's requirement is as follows:
    They are currently using Web service protocol to send order information from Oracle Applications to their trading partner.
    But need to encode the payload in base64 encoding in the SOAP request.
    Further details:
    =====================================================================
    Current SOAP request is,
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:bac="http://backend.ws.gtas.gridnode.com">
    <soapenv:Header/>
    <soapenv:Body>
    <bac:backendImport4>
    <bac:username>?</bac:username>
    <bac:password>?</bac:password>
    <bac:recipient>?</bac:recipient>
    <bac:contentFileName>?</bac:contentFileName>
    <bac:content>
    <EMPLOYEE>
    <EMPLOYEE_DATA>
    <EMAIL_ADDRESS/>
    <EMPLOYEE_ID>81</EMPLOYEE_ID>
    <EMPLOYEE_NUM>2</EMPLOYEE_NUM>
    <FIRST_NAME/>
    <FULL_NAME>Eddi.S,</FULL_NAME>
    <LAST_NAME>Eddi.S</LAST_NAME>
    <MIDDLE_NAME/>
    </EMPLOYEE_DATA>
    </EMPLOYEE>
    </bac:content>
    <bac:docType>?</bac:docType>
    </bac:backendImport4>
    </soapenv:Body>
    </soapenv:Envelope>
    Required SOAP request with base64 encoding is:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:bac="http://backend.ws.gtas.gridnode.com">
    <soapenv:Header/>
    <soapenv:Body>
    <bac:backendImport4>
    <bac:username>?</bac:username>
    <bac:password>?</bac:password>
    <bac:recipient>?</bac:recipient>
    <bac:contentFileName>?</bac:contentFileName>
    <bac:content>
    PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9J25vJz8+DQo8IURPQ1RZUEUgRU1QTE9ZRUU+DQo8IS0tIE9yYWNsZSBlWHRlbnNpYmxlIE1hcmt1cCBMYW5ndWFnZSBHYXRld2F5IFNlcnZlciAgLS0+DQo8RU1QTE9ZRUU+DQogIDxFTVBMT1lFRV9EQVRBPg0KICAgIDxFTUFJTF9BRERSRVNTLz4NCiAgICA8RU1QTE9ZRUVfSUQ+ODE8L0VNUExPWUVFX0lEPg0KICAgIDxFTVBMT1lFRV9OVU0+MjwvRU1QTE9ZRUVfTlVNPg0KICAgIDxGSVJTVF9OQU1FLz4NCiAgICA8RlVMTF9OQU1FPkVkZGkuUyw8L0ZVTExfTkFNRT4NCiAgICA8TEFTVF9OQU1FPkVkZGkuUzwvTEFTVF9OQU1FPg0KICAgIDxNSURETEVfTkFNRS8+DQogIDwvRU1QTE9ZRUVfREFUQT4NCjwvRU1QTE9ZRUU+DQo=
    </bac:content>
    <bac:docType>?</bac:docType>
    </bac:backendImport4>
    </soapenv:Body>
    </soapenv:Envelope>
    The issue in question is the content within the element <bac:content>.
    Base64 encoding of the payload
    <EMPLOYEE>
    <EMPLOYEE_DATA>
    <EMAIL_ADDRESS/>
    <EMPLOYEE_ID>81</EMPLOYEE_ID>
    <EMPLOYEE_NUM>2</EMPLOYEE_NUM>
    <FIRST_NAME/>
    <FULL_NAME>Eddi.S,</FULL_NAME>
    <LAST_NAME>Eddi.S</LAST_NAME>
    <MIDDLE_NAME/>
    </EMPLOYEE_DATA>
    </EMPLOYEE>
    is
    PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9J25vJz8+DQo8IURPQ1RZUEUgRU1QTE9ZRUU+DQo8IS0tIE9yYWNsZSBlWHRlbnNpYmxlIE1hcmt1cCBMYW5ndWFnZSBHYXRld2F5IFNlcnZlciAgLS0+DQo8RU1QTE9ZRUU+DQogIDxFTVBMT1lFRV9EQVRBPg0KICAgIDxFTUFJTF9BRERSRVNTLz4NCiAgICA8RU1QTE9ZRUVfSUQ+ODE8L0VNUExPWUVFX0lEPg0KICAgIDxFTVBMT1lFRV9OVU0+MjwvRU1QTE9ZRUVfTlVNPg0KICAgIDxGSVJTVF9OQU1FLz4NCiAgICA8RlVMTF9OQU1FPkVkZGkuUyw8L0ZVTExfTkFNRT4NCiAgICA8TEFTVF9OQU1FPkVkZGkuUzwvTEFTVF9OQU1FPg0KICAgIDxNSURETEVfTkFNRS8+DQogIDwvRU1QTE9ZRUVfREFUQT4NCjwvRU1QTE9ZRUU+DQo=
    ========================================================================
    Is there a way in XML gateway to encode the payload automatically to base64 encoding so that it can accommodate the unicode
    Is there any way to encode the order information from EBS tables to base64 format in the outbound SOAP request ? Is this supported . If yes, how.?
    Does this involve customization. Is it possible to use encoder/decoder provided in sites such as XSL on top of XML : http://gandhimukul.tripod.com/xslt/base64-xslt.html
    Basically, They are trying to use XML Gateway to send and receive messages to a Trading Partner via SOAP. The issues is
    1. Outbound: The TP web service can only receive xml content that is encoded in base 64 binary format. How do we configure to encode content using base64
    2. Inbound: They want to receive messages using the SOAP architecture into XML gateway.
    Please let us know if you have any detailed configuration document for this purpose. Please advise and share relevant details.
    regards,
    Ajith

    Hi Gurvinder,
    Thanks for looking into this. Just to clarify again.
    example XML content:
    <?xml version="1.0" encoding="UTF-8" standalone='no'?>
    <!DOCTYPE EMPLOYEE>
    <!-- Oracle eXtensible Markup Language Gateway Server -->
    <EMPLOYEE>
    <EMPLOYEE_DATA>
    <EMAIL_ADDRESS/>
    <EMPLOYEE_ID>81</EMPLOYEE_ID>
    <EMPLOYEE_NUM>2</EMPLOYEE_NUM>
    <FIRST_NAME/>
    <FULL_NAME>Eddi.S,</FULL_NAME>
    <LAST_NAME>Eddi.S</LAST_NAME>
    <MIDDLE_NAME/>
    </EMPLOYEE_DATA>
    </EMPLOYEE>
    Sample Soap message that needs to be sent to our service provider is as follows
    <?xml version="1.0" encoding="UTF-8" ?>
    - <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
    - <soapenv:Body>
    - <ns5:backendImport5 xmlns:ns5="http://backend.ws.gtas.gridnode.com">
    <ns5:username>admin</ns5:username>
    <ns5:password>admin1</ns5:password>
    <ns5:recipient>GT424</ns5:recipient>
    <ns5:contentFileName>cabotTest.xml</ns5:contentFileName>
    <ns5:content>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9J25vJz8+DQo8IURPQ1RZUEUgRU1QTE9ZRUU+DQo8IS0tIE9yYWNsZSBlWHRlbnNpYmxlIE1hcmt1cCBMYW5ndWFnZSBHYXRld2F5IFNlcnZlciAgLS0+DQo8RU1QTE9ZRUU+DQogIDxFTVBMT1lFRV9EQVRBPg0KICAgIDxFTUFJTF9BRERSRVNTLz4NCiAgICA8RU1QTE9ZRUVfSUQ+ODE8L0VNUExPWUVFX0lEPg0KICAgIDxFTVBMT1lFRV9OVU0+MjwvRU1QTE9ZRUVfTlVNPg0KICAgIDxGSVJTVF9OQU1FLz4NCiAgICA8RlVMTF9OQU1FPkVkZGkuUyw8L0ZVTExfTkFNRT4NCiAgICA8TEFTVF9OQU1FPkVkZGkuUzwvTEFTVF9OQU1FPg0KICAgIDxNSURETEVfTkFNRS8+DQogIDwvRU1QTE9ZRUVfREFUQT4NCjwvRU1QTE9ZRUU+DQo=</ns5:content>
    <ns5:docType>3C3RN</ns5:docType>
    </ns5:backendImport5>
    </soapenv:Body>
    </soapenv:Envelope>
    . The xml content provided need to be encoded as base 64 encoding. The following is the equivalent of above xml content.
    <ns5:content>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9J25vJz8+DQo8IURPQ1RZUEUgRU1QTE9ZRUU+DQo8IS0tIE9yYWNsZSBlWHRlbnNpYmxlIE1hcmt1cCBMYW5ndWFnZSBHYXRld2F5IFNlcnZlciAgLS0+DQo8RU1QTE9ZRUU+DQogIDxFTVBMT1lFRV9EQVRBPg0KICAgIDxFTUFJTF9BRERSRVNTLz4NCiAgICA8RU1QTE9ZRUVfSUQ+ODE8L0VNUExPWUVFX0lEPg0KICAgIDxFTVBMT1lFRV9OVU0+MjwvRU1QTE9ZRUVfTlVNPg0KICAgIDxGSVJTVF9OQU1FLz4NCiAgICA8RlVMTF9OQU1FPkVkZGkuUyw8L0ZVTExfTkFNRT4NCiAgICA8TEFTVF9OQU1FPkVkZGkuUzwvTEFTVF9OQU1FPg0KICAgIDxNSURETEVfTkFNRS8+DQogIDwvRU1QTE9ZRUVfREFUQT4NCjwvRU1QTE9ZRUU+DQo=</ns5:content>
    See that the content is encoded using the base64 format.
    Please help us to know how we can configure XML gateway to achieve this.
    Regards,
    Ajith

  • Have XML with another embedded XML encoded in base64 - how to extract?

    Hi guys,
    I have a XML-RPC web service that returns a response like this:
    <methodResponse>
    <params>
    <param>
    <value>
    <base64>
    PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHNlYXJjaFJlc3VsdD48bnVtcm93cz4xPC9udW1yb3dzPjxmb3VuZD4xPC9mb3VuZD48d29yZGluZm8+IGJvdMOjbyA6IDU8L3dvcmRpbmZvPjxzZWFyY2h0aW1lPjAuMDA2PC9zZWFyY2h0aW1lPjxmaXJzdGRvYz4xPC9maXJzdGRvYz48bGFzdGRvYz4xPC9sYXN0ZG9jPjx3b3JkaW5mb2FsbD5ib3TDo28gOiA1IC8gNTwvd29yZGluZm9hbGw+PGl0ZW0+PHVybGlkPjE5PC91cmxpZD48dXJsPmh0dHA6Ly9jZW50cmFsL2dhcnJhcy9Rd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Q+PHNpdGVpZD40NjE1ODk0NjE8L3NpdGVpZD48cG9wX3Jhbms+MC4wMDAwMDwvcG9wX3Jhbms+PG9yaWdpbmlkPjA8L29yaWdpbmlkPjwvaXRlbT48L3NlYXJjaFJlc3VsdD4K
    </base64>
    </value>
    </param>
    </params>
    </methodResponse>The base64 value is another XML embedded document that I have to extract.
    I have the following code (don't know if it's the best approach), where l_val is a CLOB and l_xml is XMLTYPE:
    l_val := DBMS_XMLGEN.convert( l_xml.extract('/methodResponse/params/param/value/base64/text()').getclobval(), 1 );How can I decode the base64-encoded contents of the l_val CLOB and store the result into another CLOB that I can then process with xmlsequence() and extract()?
    Thanks in advance. Regards,
    Georger

    Hi mdrake,
    I saw your answer on the other thread :)
    I know about the 32K limitation; that's why I need to store the decoded CLOB in another CLOB, as bigger documents will often be the case. I've been reading about this for a while, to no avail.
    Do you believe BASE64_DECODE_CLOB could be changed to return CLOB rather than VARCHAR2? Regards,
    Georger
    mdrake wrote:
    You'll need to do some work in this if the Encoded XML is bigger than 32K
    SQL> set long 10000 pages 0
    SQL> CREATE OR REPLACE FUNCTION BASE64_DECODE_CLOB (INPUT CLOB)
    2  return VARCHAR2
    3  as
    4    V_RAW_BUFFER RAW(32767);
    5    V_VARCHAR2_BUFFER VARCHAR2(32767);
    6  begin
    7    V_VARCHAR2_BUFFER := DBMS_LOB.SUBSTR(INPUT,32767,1);
    8    V_RAW_BUFFER := UTL_RAW.CAST_TO_RAW(V_VARCHAR2_BUFFER);
    9    V_RAW_BUFFER :=  UTL_ENCODE.BASE64_DECODE(V_RAW_BUFFER);
    10    V_VARCHAR2_BUFFER := UTL_RAW.CAST_TO_VARCHAR2(V_RAW_BUFFER);
    11    return V_VARCHAR2_BUFFER;
    12  end;
    13  /
    Function created.
    SQL> set serveroutput on
    SQL> --
    SQL> with XML as
    2  (
    3  select XMLType(
    4  '<methodResponse>
    5  <params>
    6  <param>
    7  <value>
    8  <base64>
    9  PD94bWwgdmVyc2lvbj0iMS4wIiBl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DsmbHQ7YiZndDtib3TDo28mbHQ7L2ImZ3Q7Jmx0Oy9mb250Jmd0OyBjb20gw61jb25lIE91dmlkby4gQXDDs3MgYWRxdWlyaXIgZSA8L3RleHQ+PHNpemU
    +MTg1MDM8L3NpemU+PHJhdGluZz41LjUwNSU8L3JhdGluZz48bW9kaWZpZWQ+MTAvMDgvMjAwMiAxNjo1ODoxMCAtMDQwMDwvbW9kaWZpZWQ+PG9yZGVyPjE8L29yZGVyPjx
    jcmM+LTE5NjM3MDA5MzQ8L2NyYz48Y2F0ZWdvcnk+PC9jYXRlZ29yeT48bGFuZz5lbi11czwvbGFuZz48Y2hhcnNldD53aW5kb3dzLTEyNTI8L2NoYXJzZXQ+PHNpdGVpZD4
    0NjE1ODk0NjE8L3NpdGVpZD48cG9wX3Jhbms+MC4wMDAwMDwvcG9wX3Jhbms+PG9yaWdpbmlkPjA8L29yaWdpbmlkPjwvaXRlbT48L3NlYXJjaFJlc3VsdD4K
    10  </base64>
    11  </value>
    12  </param>
    13  </params>
    14  </methodResponse>') OBJECT_VALUE
    15  from dual
    16  )
    17  select XMLSERIALIZE(DOCUMENT XMLTYPE(BASE64_DECODE_CLOB(extract(OBJECT_VALUE,'/methodResponse/params/param/value/base64/text()'
    ).getClobVal())) as CLOB INDENT SIZE=2)
    18    from XML
    19  /
    <?xml version="1.0" encoding="UTF-8"?>
    <searchResult>
    <numrows>1</numrows>
    <found>1</found>
    <wordinfo> botπo : 5</wordinfo>
    <searchtime>0.006</searchtime>
    <firstdoc>1</firstdoc>
    <lastdoc>1</lastdoc>
    <wordinfoall>botπo : 5 / 5</wordinfoall>
    <item>
    <urlid>19</urlid>
    <url>http://central/garras/Quem_matou_JFK/artefatos/htm/7505.htm</url>
    <content>text/html</content>
    <title>SoundMAX</title>
    <keywords/>
    <desc/>
    <text>... e comunicaτπo via Internet. Clique no &lt;font color="000088&
    quot;&gt;&lt;b&gt;botπo&lt;/b&gt;&lt;/font&gt; com o logotipo Andrea em ... adqu
    irir uma atualizaτπo, clicando no &lt;font color="000088"&gt;&lt;b&gt;
    botπo&lt;/b&gt;&lt;/font&gt; com o φcone Fone de ouvido. Depois de ... &apos; Vi
    rtual Ear&apos;&apos; , bastando clicar no &lt;font color="000088"&gt;
    &lt;b&gt;botπo&lt;/b&gt;&lt;/font&gt; com φcone Ouvido. Ap≤s adquirir e </text>
    <size>18503</size>
    <rating>5.505%</rating>
    <modified>10/08/2002 16:58:10 -0400</modified>
    <order>1</order>
    <crc>-1963700934</crc>
    <category/>
    <lang>en-us</lang>
    <charset>windows-1252</charset>
    <siteid>461589461</siteid>
    <pop_rank>0.00000</pop_rank>
    <originid>0</originid>
    </item>
    </searchResult>
    SQL>And don't expect it to be the fastest soln in history.

  • Why I need the same pof conf on client+srver if Coherence is used as cache?

    Hi,
    I have first defined my own pof-config.xml only on my client.
    And Coherence wrote me a very ackward msg: "StreamCorruptedException unknown user type 6" !!!????
    I have made another try, while defining my own pof-config.xml on my servers too !
    Then, Coherence has worked smoothly, as expected.
    QUESTION: as I use Coherence as a cache, using no index, no EP... I expect Coherence is not going to dig into my byte[] for the 'server' nodes.
    Then, I expect only the clients have to serialize/deserialize, I expect they send the byte[], and the servers store only them, that is, without needing any pof config.
    If it works as I have written, why Coherence is not working ("StreamCorruptedException unknown user type 6"), if I define my own pof-config.xml only on my client ?
    Thanks.
    Regards,
    Dominique

    Hi Dominique,
    user4947403 wrote:
    Hi Robert,
    robvarga wrote:
    Hi Dominique,
    Coherence does not know what you will do with the data. It has to assume that you may want to send an entry-processor or entry aggregator or query the items with a filter, or you may simply want to get the item from the cache WITHIN the cluster not only via Extend. imho, I feel it as counter-intuitive.
    I have expected something like: as far as no EP is run, no pof config is searched+if no pof config exists in order to deserialize when needed, raise an exception.
    1. There is no such thing as no config. If you don't specify an explicit configuration, default configuration is used, which (depending on whether POF is globally enabled or not) is either a DefaultSerializer, or a ConfigurablePofContext loading stuff from pof-config.xml.
    2. If some data travels across the proxy connection, it has to travel in the serialization format configured for the proxy service. If you put data into a cache, it has to travel on the network in the serialization format configured for the cache service of the cache. Period.
    If this rule was not followed, Coherence would not know what serialization format any piece of data has. Therefore as mentioned below, if the proxy service serialization configuration differs from the cache service serialization configuration, data has to be de- and reserialized on the proxy.
    Again, imagine the case if your logic were followed: Just because you used some service to put data into the cache, Coherence cannot know that you will use the same service to get the data back. If some code inside the cluster tried to deserialize it, it would fail as it has no idea, that it was serialized with the proxy serialization format. It actually doesn't even have an idea that the data came from the proxy, or even that there is a proxy. Also, if you used some other code to put data into the cache which is not coming via the proxy, you would have another piece of data sitting in the cache which was not serialized by the proxy serialization format. If you tried to retrieve that via the TCP*Extend, you could not deserialize it on the client as it is not in the serialization format used by the proxy. Moreover, the client does not even have any chance of even knowing what it was serialized with as the client does not even see the serialization configuration of services inside the cluster.
    Because of this it has to ensure that it can deserialize it with the serializer configured for the cache service within the cluster, so not with the one used for TCP*Extend.Well, in my case, my client is a cluster node+localstorage=false => are the explanations you wrote ok for this case too ?
    It does not matter how your cluster looks like at the moment when you consider consistency checks. Nothing prevents you to start another cluster node, therefore Coherence cannot be lenient in the service configuration consistency checks just before .
    By the way, if you have only a single storage-disabled cluster node (and that means that no cache server node is running) and you tried to put something into a distributed cache then if the serialization error did not happen because you have correct configuration, then you would have received a Storage not configured error instead, as no cache server node is running to actually store your data.
    So if you did not get any errors, then you were either putting the data into a replicated cache where being storage-disabled is not relevant as that is a distributed cache setting, or you had a cache server node running or you only believed that the node was storage disabled.
    Best regards,
    Robert

  • IF Auto Update Statistics ENABLED in Database Design, Why we need to Update Statistics as a maintenance plan

    Hi Experts,
    IF Auto Update Statistics ENABLED in Database Design, Why we need to Update Statistics as a maintenance plan for Daily/weekly??
    Vinai Kumar Gandla

    Hi Vikki,
    Many systems rely solely on SQL Server to update statistics automatically(AUTO UPDATE STATISTICS enabled), however, based on my research, large tables, tables with uneven data distributions, tables with ever-increasing keys and tables that have significant
    changes in distribution often require manual statistics updates as the following explanation.
    1.If a table is very big, then waiting for 20% of rows to change before SQL Server automatically updates the statistics could mean that millions of rows are modified, added or removed before it happens. Depending on the workload patterns and the data,
    this could mean the optimizer is choosing a substandard execution plans long before SQL Server reaches the threshold where it invalidates statistics for a table and starts to update them automatically. In such cases, you might consider updating statistics
    manually for those tables on a defined schedule (while leaving AUTO UPDATE STATISTICS enabled so that SQL Server continues to maintain statistics for other tables).
    2.In cases where you know data distribution in a column is "skewed", it may be necessary to update statistics manually with a full sample, or create a set of filtered statistics in order to generate query plans of good quality. Remember,
    however, that sampling with FULLSCAN can be costly for larger tables, and must be done so as not to affect production performance.
    3.It is quite common to see an ascending key, such as an IDENTITY or date/time data types, used as the leading column in an index. In such cases, the statistic for the key rarely matches the actual data, unless we update the Statistic manually after
    every insert.
    So in the case above, we could perform manual statistics updates by
    creating a maintenance plan that will run the UPDATE STATISTICS command, and update statistics on a regular schedule. For more information about the process, please refer to the article:
    https://www.simple-talk.com/sql/performance/managing-sql-server-statistics/
    Regards,
    Michelle Li

  • I have an iMac and need to download something from a disc how do i do this?, i have an iMac and need to download something from a disc how do i do this?

    i have an iMac and need to download something from a disc how do i do this?, i have an iMac and need to download something from a disc how do i do this?

    There is an Apple USB super drive you can buy or any Mac compatible external DVD player.
    Sorry to have nagged at you but you can now see why I couldn't answer your question from the start.   I had no way of knowing there was no slot in the model you have.
    Hope you are sorted now.

Maybe you are looking for

  • Workarea field is changing to ********* when i use at new command

    Hi All, I have a workarea. In that work area i have a field (zsample -zbill_zrass). I am using  at new statement. My problem is when i debug the code, am able to see that when the control goes inside at new statement, my field (zsample -zbill_zrass).

  • Problems with PL/SQL

    Hi, I know that there are much threads for PL/SQL, but I nowhere found an explanation for my problem ... sorry I have a LOV with years (2002, 2003, 2004, ...). The display value is a number, the return value is an varchar2. If nothing is selected 0 i

  • NHL Gamecenter in Malaysia..

    I moved from Canada to Malaysia.. will I be able to watch NHL Gamecenter ? ty guillaume

  • Switching from a pc to a mac

    Hi I am thinking of buying a iMac .i run my payroll software on my pc and the backup files are zip files.would they open on the mac version of the software.please could you help

  • Open Document Method Passing Parameter and Logoon Toke Examples

    I'm looking for Open Document Method Passing Parameter and Logoon Toke Examples. Is it possilbe for a user inside the firewall to click a url link with all the logon token and parameters built in using open document method, i have not bee able exampl