How do I use a DOMParser against a SOAPMessage

I need to run a DOMParser against my SOAPMessage. Unfortunately, DOMParsers only parse InputStreams, not documents.
What are my options here?

Check out this example from Sun:
http://access1.sun.com/techarticles/ReceivingServlet.java

Similar Messages

  • How do I use Garage Band to practice my guitar against lesson CDs and backing track CDs

    How do I use Garage Band to practice my guitar against lesson CDs and backing track CDs

    GarageBand on your Mac or on an iPad?
    If you are asking abot GB on a Mac you do the following:
    Create a new GarageBand project with a Guitar track
    Insert the CD and drag the audio file of the Lesson track or backing track to an empty region below the tracks in the timeline of the GarageBand window.
    Plug in a set of head phones and put them on to listen to your backing track.
    Plug in your guitar and select the guitar track.
    Click on the measure where you want to start your recording and select the guitar track.
    Press "record" and start to play.
    Regards
    Léonie

  • WLI : how to validate XML / MFL instances against specifications.

    Hi,
    Does anybody know how a variable inside a workflow
    containing XML or binary data can be validated against
    an XSD or MFL?
    Greetings,
    Davy Toch

    You can tell the parser where to look for external entities. The parser allows
    you to set your entity resolver -->
    Using JAXP --> documentBuilder.setEntityResolver(new MyEntityResolver());
    Using Xerces DOMParser --> parser.setEntityResolver(new MyEntityResolver());
    Your Entity Resolver implements: InputSource resolveEntity(String publicID, String
    systemID). You can implement this method to find and return an InputSource loaded
    with your xsd. So the parser will call this method -- and pass in the systemID
    it is looking for. Based on that systemID, you can have the method look in the
    appropriate location.
    "Karthik V" <[email protected]> wrote:
    Jared,
    That is interesting... If you do not specify the location of the schema
    in
    your instance document, then how do you validate it. You said your app
    will
    lookup the schema location. Does this mean that you do 2 step parsing?
    First you parse the document and get the schema name (Say MySchema.xsd),
    next you identify the schema location and parse it once more for validation
    against the schema.
    I know it is slightly off topic. But I would be interesed in understanding
    your idea.
    Thanks.
    /k
    "Jared" <[email protected]> wrote in message
    news:[email protected]...
    I think you could attack this a few ways.
    If you pass the XML to your BO, you could override your parser's entityresolver
    -- and redirect the xsd lookup to the actual location of XSDs. I knowthat you
    said you are keeping them in the WLI repository -- but do you loadthem
    into the
    WLI repository from the filesystem or something? That filesystem couldbe
    where
    you look for the xsd.
    Also, you MIGHT be able to use the XML Registry -- which also can beused
    to redirect
    where your BO looks for the XSD.
    When I reference my XSD or DTD, I make sure that it does not containa
    protocol
    (eg http://). We made a rule that we will all use the filename of
    the
    schema
    (eg asdf.xsd). Then each app could look where they wanted for theschema.
    I
    know this introduces problems of version control -- but we didn't wantto
    have
    a single point of failure for all applications just because the DTDserver
    may
    be down.
    "Davy Toch" <[email protected]> wrote:
    Hi,
    I also thought of using a Business Operation, but the problem is how
    to
    reference the
    specification in the xml instance when the specification is located
    in
    the
    WLI repository.
    I thought of recuperating the needed specification in a String variable
    and
    passing that too
    to the Business Operation. But this poses a problem forSAXParser/DOMParser,
    since
    you can't specify that the specification is actually available ina
    String.
    Regards,
    Davy Toch
    "Jared" <[email protected]> wrote in message
    news:[email protected]...
    I don't know about MFL, but you can validate an XML against an XSDby
    calling a
    java class (business operation) and letting that java class validate.
    I know this probably insn't the most efficient way -- or the mostappropriate
    way to do it -- but it should work.
    "Davy Toch" <[email protected]> wrote:
    Hi,
    Does anybody know how a variable inside a workflow
    containing XML or binary data can be validated against
    an XSD or MFL?
    Greetings,
    Davy Toch

  • How do I use Derived Table to dynamically choose fact table

    How do I use the Derived Table functionality to dynamically choose a fact table?
    I am using BO XI R2 querying against Genesys Datamart kept in Oracle 10g.  The datamart contains aggregated fact tables at different levels (no_agg, hour, day, week, etc...) I would like to build my universe so that if the end user chooses a parameter to view reports at daily granularity, then the daily fact table is used;  choose hourly granularity, then hourly fact table is used, etc....
    I tried using dynamic SQL in Oracle Syntax, but Business Obljects Universe didn't like that type of coding.
    The tables look something like this:
    O_LOB1_NO_AGG o
    inner join V_LOB1_NO_AGG v on o.object_id = v.object_id
    inner join T_LOB1_NO_AGG t on v.timekey = t.timekey
    Likewise, in the 'hour', 'day', 'week', etc... fact tables, the Primary Key to Foreign Key names and relationships are the same.  And the columns in each O_, V_, T_ fact table is the same, or very similar (just aggregated at different levels of time).
    I was thinking of going a different route and using aggregate aware; but there are many Lines of Business (20+) and multiple time dimensions (7) and I believe aggregate aware would require me to place all relevant tables in the Universe as separate objects, which would create a large Universe with multiple table objects,  and not be maintenance-friendly. I also was going to dynamically choose Line of Business (LOB) in the derived tables, based on the end user choosing a parameter for LOB, but that is out-of-scope for my current question.  But that information sort of points you down the train of thought I am travelling. Thanks for any help you can provide!

    You can create a derived table containing a union like the following:
    select a,b,c from DailyFacts where (@prompt('View'....) = 'Daily' and (<rest of your where conditions here if necessary>)
    union
    (select a,b,c from MonthlyFacts where (@prompt('View'....) = 'Monthly' and (<rest of your where conditions here if necessary>))
    union
    (select a,b,c from YearlyFacts where (@prompt('View'....) = 'Yearly' and (<rest of your where conditions here if necessary>))
    I assume that you are familiar with the @prompt syntax
    Regards,
    Stratos

  • How can i print specific pages against searched word or name (in one print command) from 1000 pages

    how can i print specific pages against searched word or name (in one print command) from 1000 pages

    Thanks, Alex!
    ok, I try first approach in print4.vi, but Labview return an error (view jpg); if I cut From, To controls, the VI print all pages. The same things happen also if I trasform I32 in Variant.
    I don't try second approach, because at this time I have only one report
    I try also with VB macro: this is better (print3.vi) but.....if I use:
    Sub Print_Pages_From_To()
    ActiveDocument.ActiveWindow.PrintOut Range:=wdPrintFromTo, From:="2", To:="3"
    End Sub
    is ok; print the pages selected; if I use:
    Sub PrintPages()
    ActiveDocument.ActiveWindow.PrintOut  Pages:="2-3"  
    End Sub
    printer print all pages.
    what do you think?
    regards,
    Italo
    Attachments:
    print Problem.jpg ‏39 KB
    print4.vi ‏19 KB
    print3.vi ‏19 KB

  • How do you use the Multiple Item Information dialog box ???

    How do you use the Multiple Item Information dialog box ???
    Where are the instructions on how the information in the Multiple Item Information dialog box equates to ...
    1. The way iTunes sorts tracks and albums
    2. The reason to select a leading check box
    3. Why there are Option selections (Yes /No) and leading check boxes.
    4. Why some changes remain in the track info, but do not "take effect" in iTunes (Part of a compilation is an example)
    Looked in Help, Support, went to the local Genius bar for an hour, even arrainged a call from apple support ...
    Thanks

    As Christopher says, it's a compilation. Different tracks are by different artists.
    Setting the *Album Artist* field to *Various Artists* and setting *Part of a compilation* to Yes should be all that is required. Depending on your *Group compilations when browsing* setting ( I recommend On ) either should suffice but I suggest doing both.
    Based on your commentary, I selected all the "O Brother" tracks, and checked the boxes for everything line that was blank in the Info and the Sort panes. Only exceptions were the album name and the disc number 1 of 1 and the artwork. I blanked and checked anything else.
    That's not what I meant. When you select multiple tracks, only those values which +are already common+ to all tracks are displayed. Typically these will include Artist, though not with compilation albums, Album Artist, Album, No. of Tracks, Genre plus various sort fields. A blank value may indicate that different tracks have different values or it may be that the value is blank for all tracks. For the drop down values on the Options tab the value shown may not reflect the information in every tag. If values you expect to be common, such as Album Artist or the Album title are not displayed you can simply type these in and click OK. This will often be enough to group the album.
    If you place a checkmark against the blank boxes and apply changes then you will clear those fields so you should only do this if that is the effect you want. Putting a checkmark next to an empty (representing different values) *Track No.* box, for example, will just clear the all the track numbers which is very rarely useful.
    Adding then removing extra text is for a specific problem where despite all common values being identical across the tracks of the album iTunes seems to "remember" that it should see two albums. A typical example would be when an album originally listed as *Album CD1* & *Album CD2* is given disc numbers X of Y and then has the Album name changed to Album. I've seen iTunes merge all but one track into the new album, but insist on listing one remaining track separately, despite both albums having the same title. In this case I've found overtyping the album title again has no effect whereas changing it to AlbumX and then back to Album does what I was trying to achieve in the first place.
    Don't forget that even properly organsied albums may still break up if you don't chose an album-friendly view. Sorting on the track name or track number columns can be useful in some circumstances but in general I revert to Album by Artist when browsing through my library.
    tt2

  • User Variable Options: How can I use them in a Business Rule?

    How can I use a "User Variable" set in File / Preferences in a Business Rule? It doesn't seem to appear as an Essbase Substitution Variable or as a Global Variable of Business Rules. The only way I know how to use it is to place the dimension on the POV or Page dimension of a data form, then use a Global Variable in a run time prompt to pick the member and run a BR against it, or some function of it.
    What do I do if I want to have that dimension in Columns or Rows? How can I set a BR to directly reference the member chosen under User Variable Options?
    J

    Thanks Alp, but I can't seem to reproduce what you are writing below. I want to refer my Business Rule to address the value set in File / Preferences / User Variable Options; no matter what members I show elsewhere in the data form.
    My other workaround is through a run time prompt and hope the user selects the appropriate user variable at the very bottom of the selection list in order to calculate the appropriate list of members.
    J

  • How do I use Numbers to develop personal finance and budget spreadsheets?

    I recently purchased an IMac and would appreciate advice on how best to use IWork (Numbers) to set up a personal budget and finance spreadsheet program. Please bear in mind that I am not a computer expert and only have average understanding of spreadsheets.
    By way of background, I have poor eyesight and use a screen resolution of 1344 x 840.
    I currently use Quicken for Mac 2007 for my personal finance and budget. The problem is that fonts are far too small for me to see clearly and cannot be changed.
    Hence my interest in using IWork (Numbers).
    My budget and finance requirements are reasonably straightforward
    1. create income and expenditure categories and sub-categories
    2. Create 3 accounts (cheque, savings, credit) in which I can manually record debit and credit transactions by description, category and sub-category
    3. Create annual budgets with specified monthly amounts for categories and sub-categories
    4. Compare actual income and expenditure for categories and sub-categories (for all accounts) against budget each month and for year to date.
    I am confident most of my requirements can be met by using the Checking Register and Budget Templates in IWork (Numbers).
    However, I don’t know how to link and further develop these two Templates to enable me to use the same categories and sub-categories for all accounts and budget.
    I also want to be able to compare actual income and expenditure for categories and sub-categories (for all accounts) against budget each month and for year to date (ie. point 4 above).
    I should be grateful if someone with a better knowledge than I have of IWork (Numbers) and spreadsheets could steer me in the right direction.
    With thanks in anticipation.

    ww,
    You can begin your orientation by reading the Numbers 09 User Guide, available for download free of charge from the Numbers Help menu. This will give you a lot of insight into how spreadsheets can be used and how to build them.
    Then download the, also free, iWork Formulas and Functions User Guide and page through it to see what's there. It would be about as interesting as reading a dictionary to read it straight through, but it's good to get to know what functions are available.
    I find that using the iMac's full resolution and wearing strong reading glasses is better than using reduced resolution. If that's not enough, you can go to System Preferences, Universal Access, Zoom. There are different zoom behaviors that you can choose from depending on your personal preference. Some users here have expressed a dislike for the zoom feature, but I suspect that if they needed it really badly, they would come to appreciate it.
    Regarding the finance spreadsheet development, it's a big job. You are off on the right foot because you already have formulated a clear picture of what you want the final result to look like, or perhaps nearly so. My first tip is to take advantage of the Numbers ability to use many separate tables per sheet. Then it is easy to rearrange your sections if you don't like the look of your first efforts.
    Make a dummy layout, with notes and/or fictitious values in cells where you eventually want links or complicated formulas. I suggest that you not consider using the Categories feature of Numbers Tables. The feature is limiting and at some point will stop you dead in your tracks and you will have to go back and start over with that particular element of your design.
    Then, seek help here on one technical hurdle at a time. You can study the way the Check Register and Budget templates work by clicking on the interesting cells and looking at the expressions that appear in the formula bar.
    Good luck,
    Jerry

  • How can I use XSQLRequest for processing in-memory XMLDocument

    How can I use class XSQLRequest for processing in-memory XSQL?
    What should i pass in URL parameter value for constructor XSQLRequest(XMLDocument p0, URL p1)?
    Could you write the some examples?

    Here's one example of doing this:
    String xsqlPage = "<page connection='demo' xmlns:xsql='urn:oracle-xsql'>"+
                      "  <xsql:set-page-param name='username' value='{@u}'/>"+
                      "  <xsql:set-page-param name='password' value='{@p}'/>"+
                      "  <xsql:query bind-params='username password'>"+
                      "    select 'Authenticated' from dual"+
                      "    where 'SCOTT' = UPPER(?) /* username */"+
                      "      and 'TIGER' = UPPER(?) /* password */"+
                      "  </xsql:query>"+
                      "</page>";
      DOMParser d = new DOMParser();
      d.parse( new StringReader(xsqlPage));
      XSQLRequest req = new XSQLRequest(d.getDocument(),null);
      StringWriter sw = new StringWriter();
      PrintWriter errors = new PrintWriter(sw);
      Hashtable h = new Hashtable(2);
      h.put("u","scott");
      h.put("p","tiger");
      req.process(h,output,errors);
      output.println(sw.toString());

  • How to stop this multiple entry against same condition type in pricing

    My client is using manual condition type for the basic price "ZBPR". Now system allowing multiple entry against this condition type in the pricing screen during order creation i.e in the first line if we put ZBPR 00 , in the second line system allowing to put another value against same ZBPR say for example 2000 & doing all subsequent calculations on the basis of 3000 .which is not at all acceptable by my client .Please suggest how to stop this multiple entry against same condition type

    You have to make the condition type as Mandatory and not manual.
    If you are entering many condition records of the ZPR0 then the latest entry will be taken for further processing for subtotal rebate and total price.
    For all the other entered condition records will have yellow traffic signal which is not active.
    you can assign a routine with the help pf your abaper...
    In the Transaction VOFM  define a requirement such that
    you condition type takes value only one at the time of order entry.
    regards,
    Amlan Sarkar

  • How to make use of BAPI_CATIMESHEETMGR_CHANGE

    Hi All,
           We need to make use of BAPI_CATIMESHEETMGR_CHANGE for changing entered hours against an activity instead of adding new row for the same(BAPI_CATIMESHEETMGR_INSERT does that ) . Please guide me what all table parameters we should supply while executing this FM.
    Regards,
    Ganga.

    Hi Senthil,
    Now I have got how to make use of BAPI insert and change. But problme is when I need to add an hours entry for , say tuesaday of activity A for which already HAS monday hours,I am using  BAPI_CATIMESHEETMGR_INSERT AND IT IS ADDING ONE MORE ROW AS SHHOWN BELOW
    . But it adding new row. How top overcome this.
    <b>       Monday
          A     2</b>
    After insert
    <b>      Monday  Tuesday
          A     2
          A            3</b>
    =----
    SHould I use delete and insert.
    Please help me..;
    Regards,
    Ganga
    Message was edited by:
            Gangadharayya Hiremath
    Message was edited by:
            Gangadharayya Hiremath

  • How to clear the down payment against the vendor invoice in the payment program?

    A down payment is made $25 Later an invoice is posted for $100 Now i want to Pay $75 to Vendor But the Automatic payment program  is not clearing the down payment against the vendor invoice. Could you please help how to clear the down payment against the vendor invoice in the payment program?

    Swathi,
    Need your help i have a strange situation
    1) F-48 and document posted with document no = 15..... in company code = L002 with payment block getting populated automatically
    2) F-48 and document posted with document no= 15..... in company code = Us11 without payment block and the screen does not even show payment block, I had to check this from BSEG table
    My question is
    a) How and where does this payment block is triggered through configured and how to process next steps.
    b) when I use F-48, how do we do the actual payment, is there a check printing and linking it to the KZ document or is check printing done outside the system and the KZ document type does not have any linkage.
    c) If I do FB60 for a higher amount how do we pay partial amount.
    Your response is appreciated.

  • How can i use exisitng user data(Id, password) for user mapping

    Hi All,
    For User mapping , we can import user mapping data for many users from user administration. and for each user
    we can maintain mapping data in the standard format.
    eg:
    [User]
    uid=user2
    $usermapping$:BCE:user=ext_user2
    $usermapping$:BCE:mappedpassword=password
    i am clear till this point.
    this all works if we know the userid and passowrd on the system 'BCE'.the passwords on the system 'BCE', are encrypted . so there is no chance for me to know the passwords.
    so how can i use the existed userid/passowrd on the system 'BCE' for the mapped user and mapped password on the portal while doing usermapping.
    Thanks in Advance,
    Lakshmi

    Hi,
    I think this should work.
    1. Setup SSO with SAP logon tickets first. How to do this is described many places, e.g. http://help.sap.com/saphelp_nw04/helpdata/en/d3/41c8ecb31d11d5993800508b6b8b11/content.htm
    This SSO will not work at first, because the username is different in the back-end system. So what you need to do is to get the back-end username into the ticket (don't need a password because that is done by the SAP logon ticket)
    2. Create a portal component which uses the usermanagement API to create a usermapping which only consists of the username and a blank password. You can do this manually I think if you have no reference system defined.
    IUserMappingService umap =(IUserMappingService)PortalRuntime.getRuntimeResources().getService(IUserMappingService.KEY);
    //this is the currently logged in user. You might another user
    IUserContext user = request.getUser();
    //Get the existing data (think it can be null)
    IUserMappingData userMapping=umap.getMappingData(systemAlias, user);
    HashMap map = new HashMap();
                             map.put(IUserMappingService.UMAP_KEY_USER, backEndUserName);
    //add blank password               map.put(IUserMappingService.UMAP_KEY_PASSWORD, "");
    //store the values                    userMapping.storeLogonData(map);
    Voila, this should allow you to do SSO using SAP logon tickets, but with another name that you use against the portal. I am uncertain if this will work if you have multiple usermappings in the sap logon ticket
    PS since the sap logon ticket is issued at logon time, you need to relogon to get the changes done by the code
    Regards
    Dagfinn

  • How to re-use of handling unit number (SSCC)?

    Dear,
    We are implementing handling unit management to our customer and HU number is SSCC code. The inbound process intended to use is as follows:
    1. Create purchase order with confirmation control key 0004 (shipping notification) and receiving storage location is a HU-managed storage location.
    2. Create inbound delivery against the purchaser order via VL31N.
    3. Pack HU in the inbound delivery and then post goods receipt.
    Further, our customer is using fix SSCC on each pallet physically, so we will maintain external HU number range in SAP accordingly, but the issue is, how to re-use of the SSCC in the inbound process? Currently, once the HU (SSCC) is received in SAP, the system status will be PHEX and WHSE, then next time when the pallet is empty physically, we still cannot re-use of the HU (SSCC) in the inbound delivery for GR process in SAP.
    Can anyone of you give me some suggestions how to re-use of handling unit (SSCC) in SAP?
    Thanks in advance.
    Br,
    Jason

    Hi Jason
    As far as I know it cannot be done in any standard way. The only way is to reset the status of the HU using program ie make changes at Table level VEKP-HU_STATUS.
    or during the final issue of the SSCC from the system looks for BADI/Exit to achieve the same or do it through batch program to reset the status
    Regards
    Jayaram

  • How can I lock a message against accidental deletion?

    How can I lock a message against accidental deletion?

    The safest way is to not use the Inbox for long term storage. Make folders for your important and keeper messages and move them out of the Inbox and into those folders. This also keeps your Inbox for the purpose it was designed for.

Maybe you are looking for