Seq Container and MaximumErrorCount = 0

Hello,
I am having an issue with understanding "MaximumErrorCount = 0". Let me explain the problem with an example.
Suppose there are 10 Dimensions and 4 Fact tables to process.
We want to attempt processing all 10 Dimensions in parallel even if a few of them fail.
But we will process Facts only if all Dimensions were successful.
To implement this logic,
Sequence Container 1 ("MaximumErrorCount = 0"): Dimensions
Sequence Container 2: Facts
I thought when we set "MaximumErrorCount = 0" in a container (Sequence Container 1), the container would execute all its children tasks even if some of them encounter errors, but the at the of completion of the container, its status would
be "error" so that the subsequent "success" precedence constraints will not be satisfied.
However, this is not the actual behaviour. It appears that when "MaximumErrorCount = 0", the container is set to "success" at the completion even if there were errors. The screenshot below is evidence to that.
I would appreciate if someone could explain this in detail and how to implement the logic required for my example.

By setting the MaximumErrorCount to 0 you effectively made the Sequence container #1 to not to report errors.
Don't.
You need to leave it at the default (1), what needs to be done is to suppress the error bubbling up the chain via propagate = false.
I am giving you rather a blog post because it saves my time: http://sqlblog.com/blogs/rushabh_mehta/archive/2008/04/24/gracefully-handing-task-error-in-ssis-package.aspx
You'd need to add another Sequence Container to what is explained in the blog post.
Arthur My Blog

Similar Messages

  • How to refresh the data in a container and to update the new data

    Hi,
    I have created a Module Pool Program in which i have two containers to display the long text.
    Initially this container is filled and based on some condition i want to update the text in the same conatiner.
    I am using the below two classes to do all this.
    cl_gui_textedit,
    cl_gui_custom_container,
    Could someone help me how to remove the long text in the container and update the new long text.
    I am getting the new long text but not able display it in the same container. Please someone help me how to refresh and update the container.
    Thanks in advance.

    Hi
    Try this.
      IF cl_gui_textedit  IS INITIAL.
      create control container
        CREATE OBJECT cl_gui_custom_container
           EXPORTING
                container_name = 'Container Name''
           EXCEPTIONS
                cntl_error                  = 1
                cntl_system_error           = 2
                create_error                = 3
                lifetime_error              = 4
                lifetime_dynpro_dynpro_link = 5.
    create text_edit control
        CREATE OBJECT cl_gui_textedit
           EXPORTING
                parent = cl_gui_custom_container
                wordwrap_mode = cl_gui_textedit=>wordwrap_at_windowborder
                wordwrap_to_linebreak_mode = cl_gui_textedit=>false
           EXCEPTIONS
                error_cntl_create      = 1
                error_cntl_init        = 2
                error_cntl_link        = 3
                error_dp_create        = 4
                gui_type_not_supported = 5.
      ENDIF.
    *--use method to set the text
      CALL METHOD cl_text_edit->set_text_as_stream
        EXPORTING
          text            =  t_lines ( Internal table with long text).
        EXCEPTIONS
          error_dp        = 1
          error_dp_create = 2
          OTHERS          = 3.
    regards,
    Raghu.

  • Why am I getting the error message "Can't open the illustration. The illustration contains and incomplete or garbled object description."

    I work in a graphic design firm and 4 separate people have received these messages on separate days using separate files on separate MAC computers. We are all using CS6.
    "Can't open the illustration. Could not complete the requested operation."
    "Can't open the illustration. The illustration contains an illegal operand. 1206.3.6006 % 1205.9736 1178.52 m % 1206.2236 1178.8374 I % 1206.3232 1178.% 1206.3.6006"
    "Can't open the illustration. The illustration contains an illegal or misplaced operator. ∘ê 3 0 R 508054 0 R 508055 0 R]/Order 508056 0 R/RBGroups[]>>/OCGs[5 0 R 6 0 R 7 0 R 8 0 R 9 0 R 46702 0 R 46703 0 R 46704 0 R 467"
    "Can't open the illustration. The illustration contains and incomplete or garbled object description."
    After clicking ok the file will open; however, most of the illustration is missing. We are interested in repairing our files, but we are more interesting in figuring out why this is happening and fixing it. We are nervous to even open anything for fear this will happen again.
    Please help!

    brittanyesparks,
    One thing often tried first is to create a new document and File>Place the corrupted one to see how much may be rescued that way (remember to tick Paste remembers Layers in the Layer palette flyout/dropdown first, and to untick it afterwards).
    Here is a website where you can see whether it can rescue the file, and if it can, you may pay for a subscription to have it done,
    http://www.recoverytoolbox.com/buy_illustrator.html
    and another similar website,
    http://markzware.com/adobe-software/fix-illustrator-file-unknown-error-occurred-pdf2dtp-fi le-recovery/
    As far as I remember, the former is for Win and the latter for Mac.
    Here are a few pages about struggling with it yourself:
    http://daxxter.wordpress.com/2009/04/16/how-to-recover-a-corrupted-illustrator-ai-file/
    http://helpx.adobe.com/illustrator/kb/troubleshoot-damaged-illustrator-files.html
    http://kb2.adobe.com/cps/500/cpsid_50032.html
    http://kb2.adobe.com/cps/500/cpsid_50031.html
    http://helpx.adobe.com/illustrator/kb/enable-content-recovery-mode-illustrator.html

  • Main Wrapper, Container and background-image repeat problem-and Footer :-)

    Hi everyone,
    First off, i tried almost every idea i could get to solve this on my own but now im...aaa...
    Well, the problem is i have a main wrapper with a background image repeat. A header,menu, body container - which has a left column and right column. I want that main wrapper,body container and both of the columns to grow auto according to content. I tried the height:100%. When i float the columns the text from left column spills over on to the footer. The left column also does not autogrow towards the footer?! I was able to set the footer at the bottom which i want it to remain at the bottom of the main wrapper, but the main wrapper and the columns do not grow automatically...I guess it has something to do with float and the clear properties but what???
    body{
    margin: 0;
    padding: 0;
    font-weight: normal;
    font-style: normal;
    font-size: 11px;
    font-family: verdana;
    text-align: center;
    background:url(back_index3.png) repeat-x scroll 0 0 #E4E4E4;
    #main_wrapper {
    width: 959px;
    margin:0 auto;
    margin-top:80px;
    background:url(backslice.png) repeat-y;
    height:auto;
    min-height:800px;
    #header {
    width: 959px;
    margin-left: auto;
    margin-right: auto;
    height:119px;
    background:red;
    padding-top: 0px;
    padding-bottom: 0px;
    #topmenu {
    background-color:#blue;
    height:30px;
    margin:0px;
    width: 959px;
    margin-left: auto;
    margin-right: auto;
    #body_container {
    height:100%;
    width: 949px;
    margin: 0 auto;
    #content {
    float:left;
    width: 645px;
    background:yellow;
    border-right:1px solid #ffffff;
    padding:10px;
    height:100%;
    text-align:left;
    #sidebar {
    float:left;
    width: 283px;
    background:#234234;
    height:100%;
    #footer {
    clear:both;
    height:200px;
    background-color: #686768;
    margin:0 auto;
    border-top: 1px solid #F6F6F6;
    text-align:center;
    width: 100%;
    <html xmlns="">
    <head>
    <title>title</title>
    <link rel="stylesheet" type="text/css" href="3css.css" />
    <meta http-equiv="content-type" content="text/html" />
    </head>
    <body>
    <div id="main_wrapper">
         <div id="header">
          <span id="header_logo">title</span>
         </div>
         <div id="topmenu">
         menu
         </div>
         <div id="body_container">
          <div id="content">
    content to be added
          </div>
          <div id="sidebar">
          hallow2
          </div>
         </div>
    </div>
    <div id="footer">
    asd
    </div>
    </body>
    </html>
    Thanks in advance if somebody can help me out here.
    you can see an image of the problem in the attachement down thr... thnx

    <html xmlns="">
    <head>
    <title>title</title>
    <link rel="stylesheet" type="text/css" href="3css.css" />
    <meta http-equiv="content-type" content="text/html" />
    </head>
    <body>
    <div id="main_wrapper">
         <div id="header">
          <span id="header_logo">title</span>
         </div>
         <div id="topmenu">
         menu
         </div>
         <div id="body_container">
          <div id="content">
    content to be added
          </div>
          <div id="sidebar">
          hallow2
          </div>
         </div>
    </div>
    <br clear="all" />
    <div id="footer">
    asd
    </div>
    </body>
    </html>
    Hope this will work well

  • Docking container and SAP standard transaction

    Hello,
    in one screen I have a tree control container and a docking container. With the tree control container everything is perfect. If the user does a click on a node on the tree in the docking container there should be shown a SAP standard transaction (QA03) with the corresponding data.
    I have not found a possibility to show QA03 or QM03 in a docking container. I also tried it in a splitter container, but I do not know how.
    Can anybody help me?
    Greetings
    Corinna

    Hello Corinna
    There is a simple answer to your question: it is not possible.
    Container can only hold other containers or controls.
    Do not be fooled by the ABAP workbench where we apparently can switch between different transactions (e.g. display a class [SE24], show method coding [SE80], double-click on a DDIC structure [SE11]). The ABAP workbench simply changes the control to be displayed but NOT the transaction (remains always the same).
    Regards
      Uwe

  • Is there a way to combine "contains" and "Startswith"? Or a better way???

    I have a script that looks for reserved words in a list of words.  It works but it's slow and I think there has got to be a better and faster way.  I was thinking of how to combine the use of the -contains and $string.StartsWith but haven't had
    any luck.
    Here's what I have.  Any help would be appreciated.
    function ProcessStartsWith ($word)
        $flag = $false
        if ($word.StartsWith("con.")) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("con,"))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("prn."))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("prn,"))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("nul."))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("nul,"))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("aux."))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("aux,"))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("com0."))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("com0,"))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("com1."))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("com1,"))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("com2."))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("com2,"))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("com3."))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("com3,"))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("com4."))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("com4,"))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("com5."))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("com5,"))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("com6."))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("com6,"))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("com7."))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("com7,"))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("com8."))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("com8,"))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("com9."))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("com9,"))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("lpt0."))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("lpt0,"))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("lpt1."))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("lpt1,"))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("lpt2."))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("lpt2,"))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("lpt3."))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("lpt3,"))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("lpt4."))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("lpt4,"))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("lpt5."))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("lpt5,"))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("lpt6."))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("lpt6,"))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("lpt7."))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("lpt7,"))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("lpt8."))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("lpt8,"))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("lpt9."))) { $flag = $true }
        if ((!$flag) -and ($word.StartsWith("lpt9,"))) { $flag = $true }
        return $flag
    function ProcessWords($words)
        $errorcount = 0
        foreach ($word in $words)
            if (($ReservedWords -contains $word) -or (ProcessStartsWith($word)))
                "ReservedWord--- = " + $word
                $errorcount = $errorcount + 1
        return $errorcount
    $ReservedWords = "prn","nul","con","aux"
    $ReservedWords = $Reservedwords + "com0","com1","com2","com3","com4","com5","com6","com7","com8","com9"
    $ReservedWords = $Reservedwords + "lpt0","lpt1","lpt2","lpt3","lpt4","lpt5","lpt6","lpt7","lpt8","lpt9"
    $wordlist = "prn", "prnOK", "con", "control", "com0", "com0.", "com0otion"
    ProcessWords($wordlist)
    Running this results with this output
    ReservedWord--- = prn
    ReservedWord--- = con
    ReservedWord--- = com0
    ReservedWord--- = com0.
    4

    I don't know what the fastest way of accomplishing this would be, but you can certainly make it a lot shorter with a regular expression. For example, this code produces the same output:
    $reservedPattern = '^(?:prn|nul|con|aux|com\d|lpt\d)(?:[\.,]|$)'
    $wordlist = "prn", "prnOK", "con", "control", "com0", "com0.", "com0otion"
    $matchesReserved = $wordlist -match $reservedPattern
    foreach ($word in $matchesReserved)
    "ReservedWord--- = $word"
    $matchesReserved.Count

  • Container and codec for images

    hello guys
    my question is
    has images container and codec like videos?
    can you give m some example of images container and codec?
    another question
    png, jpeg, gif etc are codec or container?
    i have a lot of confusion in my head U_U

    Well, if one wants to get highly technical, those Still Images do contain CODEC's, or sorts. Most are compressed formats, and Encoding was required to write them. Then, one does Decode the information via the file's header, but with Stills, it differs from Video (and most Audio), in that the information to Decode is constant, and is not anywhere near as variable, as with Video. For instance, if one does not have the capability to Decode JPEG2000 (usually via a plug-in), they cannot Open one on that system. Same with writing the file - if they do not have the JPEG2000 capability, that option will not be listed. So yes, one could extend the term CODEC to cover the Still Image formats, but that is an uncommon application of the term CODEC. Here, it really gets down to semantics and common usage.
    For Audio, which is not muxed, things are still pretty simple. WAV (the format), will most likely have PCM, or LPCM (similar, but with some differences), and the file will be Uncompressed. MP3, will only have the MPEG, with certain, limited parameters. AC3 (a form of MPEG), can have some variations, but the most common is the Dolby Digital MPEG CODEC, and is often referred to as DD AC3. That can be a 2-channel (most often seen as stereo, but not always), or 6-channel (most often seen as 5.1 SS, but not always).
    When one muxes the Audio & Video Streams into one "wrapper," or format, things can get a bit more involved, though the Audion Stream is usually much more limited.
    Some Video CODEC's can appear in different wrappers, but when the standards are broken, many programs can experience issues, as they are hard-coded to look for a particular set of Video CODEC's, in particular formats. Recently, some camera mfgrs. have decided to wrap the H.264 CODEC into an AVI wrapper. Programs, like Premiere Pro are not used to looking for H.264 in the AVI wrapper. It looks for H.264 in MOV, MTS, MP4, and a few more, wrappers.
    Then, one gets to AVCHD, with IS a sub-set of H.264, but all H.264 material is NOT AVCHD. It is particular.
    To confuse things, even more, some camera mfgrs. have gone back to an older CODEC, MJPEG (Motion JPEG), but have tweaked that for their specific uses. That means that one might have an MJPEG CODEC installed on the system, but it will not work in their editng program, as camera mfgr. ____ tweaked the CODEC, that they use. In that case, it is best to install the camera mfgr's. specific version of MJPEG.
    Keeping 100% current on Video CODEC's is an impossible task, as new ones, or tweaked versions of older ones, are introduced about every six mos, and some of those are NOT placed into the common wrappers. Knowing the general concepts, and a few of the most common Video CODEC's, is as good as it gets.
    Hope that helps,
    Hunt

  • Container and package

    How should I compare container and package in Java?
    Are they meaning the same thing?
    Thanks,

    Package is a classification system for classes.
    Container is generally a class, system of classes or system that can stores references to other classes of a specific type, obviously with the intention of managing that 'contained' class.
    I don't believe the two are in anyway related.
    PD.

  • Contains and catsearch operates differently ?

    Hi,
    I've got an app which does a search on product names;
    create table products_tbl(id number primary key, text varchar2(4000));
    insert into products_tbl values(112,'Smith Bitter');
    commit;
    create index products_idx on products_tbl( text )
    indextype is ctxsys.context;
    I get no data found with this query; select * from products_tbl where contains(text,'Bitter Smith',1) >0;
    If I drop the context index and create a ctxcat one instead;
    drop index products_idx;
    create index products_idx on products_tbl( text )
    indextype is ctxsys.ctxcat;
    Running the following does return the row; select * from products_tbl where catsearch(text, 'Bitter Smith','')>0;
    Is this expected behaviour? I understand the uses for CONTEXT and CTXCAT, but just didn't see anything in the documentation which suggested contains and catsearch operated in different manner above.
    My DB is 10g, but I've tried it on 11g and it's the same.
    Cheers

    The syntax is different. Searching for "a b c" using catsearch is the same as searching for "a AND b AND c" using contains. This is documented in the following section:
    http://download.oracle.com/docs/cd/B28359_01/text.111/b28304/csql.htm#i997256
    You can use a query template with context grammar to get the results that you would expect from a contains search. Please see the demonstration below.
    SCOTT@orcl_11g> create table products_tbl(id number primary key, text varchar2(4000));
    Table created.
    SCOTT@orcl_11g> insert into products_tbl values(112,'Smith Bitter');
    1 row created.
    SCOTT@orcl_11g> insert into products_tbl values(113,'Bitter Smith');
    1 row created.
    SCOTT@orcl_11g> commit;
    Commit complete.
    SCOTT@orcl_11g> create index products_idx on products_tbl( text )
      2  indextype is ctxsys.context;
    Index created.
    SCOTT@orcl_11g> column text format a30
    SCOTT@orcl_11g> select * from products_tbl where contains(text,'Bitter Smith',1) >0;
            ID TEXT
           113 Bitter Smith
    SCOTT@orcl_11g> drop index products_idx;
    Index dropped.
    SCOTT@orcl_11g> create index products_idx on products_tbl( text )
      2  indextype is ctxsys.ctxcat;
    Index created.
    SCOTT@orcl_11g> select * from products_tbl where catsearch(text, 'Bitter Smith','')>0;
            ID TEXT
           112 Smith Bitter
           113 Bitter Smith
    SCOTT@orcl_11g> select *
      2  from   products_tbl
      3  where  catsearch
      4             (text,
      5              '<query>
      6              <textquery grammer="CONTEXT" language="english">Bitter Smith
      7              </textquery>
      8            </query>','') > 0;
            ID TEXT
           113 Bitter Smith
    SCOTT@orcl_11g>

  • Do I need to cleanup runtime binding container and iterators?

    If I create a runtime binding container and iterator in a JSF session bean as follows:
    FacesContext facesContext = FacesContext.getCurrentInstance();
    ValueBinding valueBinding = facesContext.getApplication().createValueBinding("#{data}");
    BindingContext bindingContext = (BindingContext)valueBinding.getValue(facesContext);
    // To create JUIteratorBinding, we need the following objects
    DCDataControl dataControl = bindingContext.findDataControl("MyDataControlName");
    ApplicationModule appModule = (ApplicationModule)dataControl.getDataProvider();
    DCBindingContainer bindingContainer = new DCBindingContainer();
    // Create dynamic iterator.  Need to set bindingContainer otherwise executeQuery throws exception
    JUIteratorBinding iterator = new JUIteratorBinding(bindingContext, dataControlName, "MyViewObjectName", "MyIteratorName", -1);
    iterator.setBindingContainer(bindingContainer);....do I have to later clean down the iterator and binding container from the data control to release the memory (and what calls do I need to make), or once the objects fall out of scope in my code are they marked for GC?
    CM.
    PS. JDev 10.1.3.1, ADF BC and JSF

    Hi Steve, thanks for the follow up.
    I'm coding a dynamic menu <af:page> control that maps to the MenuTreeModelAdapter (session bean) as detailed in the JDev 4GL/Forms guide.
    I've made a change that instead of loading the menu items from the hardcoded faces-config.xml file, they're actually sourced from the database via the code above, which is placed in the MenuTreeModelAdapter constructor. As the <af:page> tag exists on a number of pages, and thus the MenuTreeModelAdapter may be instantiated for the first time from a number of different locations, I can't hard-code the binding container or iterator into any single pageDef file. Thus I dynamically construct it in the constructor when the session bean is created for each user. I require a session bean as the menu items are different for each user.
    However I'm concerned once I've created the binding container and iterator, that even though the session bean may become invalidated, the 2 binding layer constructs may remain, consuming resources.
    Thanks for your assistance.
    CM.

  • Diff bw Easy Splitter container and Splitter container..

    hi experts,
       Can anyone plz tell me the diff bw Easy Splitter container and Splitter container in ABAP objetcs..

    Hello Ramesh
    As its description implies it is a reduced (simplified) version of the splitter container.
    You always have only two cells in your easy splitter which can be aligned either top-down or left-right.
    In contrast, using CL_GUI_SPLITTER_CONTAINER you can have as many cells as you want.
    Perhaps there are more differences between these two splitter containers yet this is probably the most important one.
    Regards
      Uwe

  • HT4489 i have v card which contains 14 mb ,but i don't know how many contact it contains ,and i m not able to transfer to my i cloud what to do??

    i have v card which contains 14 mb ,but i don't know how many contact it contains ,and i m not able to transfer to my i cloud what to do??

    Here is a link to a previous discussion that may help: https://discussions.apple.com/thread/5344761?start=0&tstart=0

  • Drag a container and its children

    Hi,
    How do i drag a container and its children? 
    I see you can drag something and its parent, but i don't see how you can get the child from the draginitiator. 
    Thanks

    I've had a chance to play with this now and I had a pop at using the JLayeredPane, throwing a component to the top which is a MouseListener and KeyListener and consume()s all the events. Works fine for the most part, until there's a JButton within the component - they manage to carry on handling events despite the consuming component over the top of them. Hover over them and they repaint, they're clickable, and so on. Hmm.

  • The different between Contain and equals

    I not sure about the different between contain and equals if I want to know if the string have some character or not ?
    thankyou

    HJava wrote:
    Thank you for all the reply,
    I have if (myTYpe.substring(0).contains(""u") ) work
    if if (myTYpe.substring(0).equals(""u") ) not work
    so I post this question, may be I made other mistake
    Thank youIf you wanted to see if the first character of the string was u then it is either
    myTYpe.charAt(0) == 'u'or startWith("u") or matches("^u.*$") etc, etc, etc.
    substring(0) will return the entire String, of course, which you would know if had actually looked at the API docs to find out what it did or even simply printed out the result to see what it did. Seemingly, however, you simply assumed you knew what it did and went on with that false assumption without bothering to even attempt to verify even though it was, already, not producing the results you expected. Instead, you focused on "the difference between contains and equals" which is self-evident in their names and obviously not the problem to begin with.

  • SOAP Reponse contains and instead of and

    I am new to Web Services. I wrote a simple SOAP client in Java. It seems to work and I get the SOAP response back; however the XML response has < and > instead of < and >. Am I making a mistake in my source code? I have placed my source code below and the result that I get when I run the code.
    Webservice Endpoint: http://www.webservicex.net/stockquote.asmx
    WSDL Location: http://www.webservicex.net/stockquote.asmx?wsdl
    SOAP Response that I get:
    <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.
    xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
    " xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetQuoteResponse xmln
    s="http://www.webserviceX.NET/"><GetQuoteResult><StockQuotes><Stock>
    <Symbol>IBN</Symbol><Last>38.58</Last><Date>7/30/2
    010</Date><Time>10:24am</Time><Change>-0.35</Change&g
    t;<Open>38.42</Open><High>38.86</High><Low>38.29&l
    t;/Low><Volume>314170</Volume><MktCap>21.505B</MktCap&gt
    ;<PreviousClose>38.93</PreviousClose><PercentageChange>-0.90%&
    lt;/PercentageChange><AnnRange>28.53 - 45.95</AnnRange><Earns&
    gt;1.782</Earns><P-E>21.85</P-E><Name>ICICI Bank Limite&
    lt;/Name></Stock></StockQuotes></GetQuoteResult></GetQuoteRespons
    e></soap:Body></soap:Envelope>
    SOAP response that I am expecting:
    <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.
    xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
    " xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetQuoteResponse xmln
    s="http://www.webserviceX.NET/"><GetQuoteResult><StockQuotes><Stock>
    <Symbol>IBN</Symbol><Last>38.58</Last><Date>7/30/2
    010</Date><Time>10:24am</Time><Change>-0.35</Change&g
    t;<Open>38.42</Open><High>38.86</High><Low>38.29&l
    t;/Low><Volume>314170</Volume><MktCap>21.505B</MktCap&gt
    ;<PreviousClose>38.93</PreviousClose><PercentageChange>-0.90%&
    lt;/PercentageChange><AnnRange>28.53 - 45.95</AnnRange><Earns&
    gt;1.782</Earns><P-E>21.85</P-E><Name>ICICI Bank Limite&
    lt;/Name></Stock></StockQuotes></GetQuoteResult></GetQuoteRespons
    e></soap:Body></soap:Envelope>
    Source Code:
    import java.net.*;
    import java.io.*;
    public class stocksoapClient {
      public final static String DEFAULT_SERVER = "http://www.webservicex.net/stockquote.asmx";
      public final static String SOAP_ACTION = "http://www.webserviceX.NET/GetQuote";
      public static void main(String[] args) {
        String input = "IBN";
        String server = DEFAULT_SERVER;
        if (args.length >= 2) server = args[1];
        try {
               Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("proxy.compaq.com", 8080));        
               URL u = new URL(server);
               URLConnection uc = u.openConnection(proxy);
               HttpURLConnection connection = (HttpURLConnection) uc;
               connection.setDoOutput(true);
               connection.setDoInput(true);
               connection.setRequestMethod("POST");
               connection.setRequestProperty("Content-Type",  "text/xml; charset=utf-8");
               connection.setRequestProperty("Content-Length",  String.valueOf(input.length()));
               connection.setRequestProperty("SOAPAction", SOAP_ACTION);
               //connection.connect();
               OutputStream out = connection.getOutputStream();
               Writer wout = new OutputStreamWriter(out);
               //wout.write("POST" + DEFAULT_SERVER  + "HTTP/1.1");
               //wout.write("Host:www.webservicex.net");
               //wout.write("Content-Type: text/xml; charset=utf-8");
               //wout.write("Content-Length: " + String.valueOf(input.length()));
               //wout.write("SOAPAction:" + SOAP_ACTION);         
              //wout.write("\n");     
               wout.write("<?xml version='1.0' encoding='utf-8'?>"); 
               wout.write("<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'>");
               wout.write("<soap:Body>");
               wout.write("<GetQuote xmlns='http://www.webserviceX.NET/'>");
               wout.write("<symbol>"+input+"</symbol>");
               wout.write("</GetQuote>");     
               wout.write("</soap:Body>");
               wout.write("</soap:Envelope>");
               wout.flush();
               wout.close();
               BufferedReader rd = new BufferedReader(new InputStreamReader(connection.getInputStream()));
               String line;     
               //InputStream in = connection.getInputStream();
               //int c;
               while ((line=rd.readLine()) != null) {
                  System.out.println(line);
               rd.close();
        } catch (IOException e) {
               System.err.println(e);
    }

    I meant to say my SOAP response contains "&lt" and "&gt" instead of < and >.
    Edited by: [email protected] on Jul 30, 2010 7:44 AM
    Edited by: [email protected] on Jul 30, 2010 7:44 AM

Maybe you are looking for

  • With out using pivot function need a Query

    Hi I am having table which has 7 columns data in table: ID,Region,area, year-month,  sales_target, actual_sales, 1, abc,    xyz,   200907,       1000,          500 2, abc,    pqr,   200908,       2000,         1500 3, mnr,   xyz,   200907,       3000

  • How to arrange objects in a spiral

    Hello all! I urgently need your help. I would like to create a logo, where I arrange several objects in a spiral. You can see an example here on this homepage: http://www.ongus.at/ Here there are several sqares arranged in a spiral regularly transfor

  • Preview won't open.....period

    I have seen other topics on Preview, however it seems they are all about opening multiple files. I am unable to open preview at all. I deleted the com.apple.preview plist file and still doesn't work. When I try to open a pdf, Preview just blinks and

  • HTTPS hostname wrong

    Hi everybody, I?m developing a client webservice throught https and I can`t connect to it, the exception thrown is: java.rmi.RemoteException: HTTP transport error: java.io.IOException: HTTPS hostname wrong:  should be <wservices.fundacioncan.com>; ne

  • Getting synchron message data from advanced adapter engine

    Hi, we have to get all synchron messages from the advanced adapter engine. Normally all messages with errors must be persisted on data-base. How this will be done? We try to with /people/kenny.scott/blog/2009/03/08/pi-71-af-messaging-system-audit-log