Envelope columns

I am trying to make a custom envelope template.
I've changed the paper/ document size to 5x7 and now I need to move the recipient's address area to the left so it's centered. I can't for the life of me get the margin area to move to the left or widen. What am I missing here? I know this is probably a very simple thing to do but I just can't figure it out.

It's easier for you to see what is going on if you choose View > Show Layout. Some built-in templates use Floating Text Boxes, some use the Document Margins, some use Layout Margins, and some use combinations of those. If you told us exactly which template you started with we could give you specific advice.
Jerry

Similar Messages

  • Simple XMLTABLE query with unexpected results

    I have the following (simplified) query. I have formatted the XML for easy reading in this message but there is no whitespace in the actual query.
    Can anyone tell me why I am receiving no records returned. Expecting one record with the value of 'REJECT'
    Thanks in advance.
    select a.decision
        from XMLTABLE(xmlnamespaces('http://schemas.xmlsoap.org/soap/envelope/' as "soap"
                                  , 'urn:schemas-cybersource-com:transaction-data-1.28' as "c")
                   , '/soap:Envelope/soap:Body/c:ReplyMessage'
          PASSING xmltype.createxml('
    <?xml version="1.0" encoding="utf-8" ?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Header>
       <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
        <wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-27593971">
         <wsu:Created>2009-06-15T17:49:02.870Z</wsu:Created>
        </wsu:Timestamp>
       </wsse:Security>
      </soap:Header>
      <soap:Body>
       <c:replyMessage xmlns:c="urn:schemas-cybersource-com:transaction-data-1.28">
        <c:merchantReferenceCode>27-0</c:merchantReferenceCode>
        <c:requestID>2450881422960008402433</c:requestID>
        <c:decision>REJECT</c:decision>
        <c:reasonCode>520</c:reasonCode>
        <c:requestToken>Ahj77wSRCbmf6bYuaSwCIJsfFx1osBTY+LjrRekDpt6POYI0kyro9JLBWBORCbmf6bYuaSwCAAAALQX8</c:requestToken>
        <c:purchaseTotals>
         <c:currency>USD</c:currency>
        </c:purchaseTotals>
        <c:ccAuthReply>
         <c:reasonCode>520</c:reasonCode>
         <c:amount>99.50</c:amount>
         <c:authorizationCode>123456</c:authorizationCode>
         <c:avsCode>Y</c:avsCode>
         <c:avsCodeRaw>YYY</c:avsCodeRaw>
         <c:cvCode/>
         <c:cvCodeRaw/>
         <c:authorizedDateTime>2009-06-15T17:49:02Z</c:authorizedDateTime>
         <c:processorResponse>A</c:processorResponse>
        </c:ccAuthReply>
       </c:replyMessage>
      </soap:Body>
    </soap:Envelope>')
          COLUMNS
            decision varchar2(30) PATH '/c:ReplyMessage/c:decision') aScott

    i think that the problem was in
    '/c:replyMessage/c:decision' and not '/c:ReplyMessage/c:decision'
    and
    '/soap:Envelope/soap:Body/c:replyMessage' not '/soap:Envelope/soap:Body/c:ReplyMessage'
    try
    Bye
    Maurizio

  • Help on how to query 11g table with XMLType column

    To all,
    We have this table:
    DESC MESSAGE
    Name Null Type
    MESSAGE_ID NOT NULL NUMBER(38)
    REQUEST_UU_ID NOT NULL VARCHAR2(50)
    MESSAGE_TYPE_CD NOT NULL CHAR(3 CHAR)
    EMPLOYEE_NUM NOT NULL VARCHAR2(8)
    SEQUENCE_NUM VARCHAR2(20)
    REVERSAL_SEQUENCE_NUM VARCHAR2(20)
    TRANSACTION_TS TIMESTAMP(6)
    MESSAGE_CONTENT_TXT NOT NULL XMLTYPE()
    CREATE_BY_NM NOT NULL VARCHAR2(50 CHAR)
    CREATE_BY_TS NOT NULL TIMESTAMP(6)
    LAST_UPDATE_BY_NM NOT NULL VARCHAR2(50 CHAR)
    LAST_UPDATE_BY_TS NOT NULL TIMESTAMP(6)
    Given we have multiple columns and one is XMLType how do I query to find rows in the db that match this XPath
    Here is a fragment of XML that is held in MESSAGE_CONTENT_TXT XMLType column:
    <?xml version="1.0" encoding="UTF-8"?>
    <cfg-env:Envelope xmlns="http://www.co.com/schemas/CFX/" xmlns:cfg-env="http://www.co.com/schemas/cfg-env/" xmlns:cfg-hdr="http://www.co.com/schemas/cfg-hdr/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.co.com/schemas/cfg-env/" >
         <cfg-env:Header>
              <cfg-hdr:MessageHeader xmlns:cfg-hdr="http://www.co.com/schemas/cfg-hdr/" xmlns:cfg-env="http://www.co.com/schemas/cfg-env/" xmlns="http://www.co.com/schemas/CFX/">
                   <cfg-hdr:Service>
                        <cfg-hdr:ServiceName>process</cfg-hdr:ServiceName>
                        <cfg-hdr:MessageType>Request</cfg-hdr:MessageType>
                        <cfg-hdr:ServiceVersion>1</cfg-hdr:ServiceVersion>
                   </cfg-hdr:Service>
                   <cfg-hdr:From>
                        <cfg-hdr:PartyId>13-175-8724</cfg-hdr:PartyId>
                        <cfg-hdr:CostCenter>2009065</cfg-hdr:CostCenter>
                        <cfg-hdr:System>
                             <cfg-hdr:Application>[email protected]</cfg-hdr:Application>
                             <cfg-hdr:Version>1.0</cfg-hdr:Version>
                             <cfg-hdr:Channel>TLR</cfg-hdr:Channel>
                        </cfg-hdr:System>
                        <cfg-hdr:OrigReplyToQMgr>QMBKRD01</cfg-hdr:OrigReplyToQMgr>
                        <cfg-hdr:OrigReplyToQ>Q1</cfg-hdr:OrigReplyToQ>
                   </cfg-hdr:From>
                   <cfg-hdr:UserSession>
                        <cfg-hdr:SignonRole>User</cfg-hdr:SignonRole>
                        <cfg-hdr:LogonId>R099999</cfg-hdr:LogonId>
    I'm trying to find rows in the database that are /Envelope/Header/MessageHeader/UserSession/LogonId/R099999.
    Thanks for the assistance. I'm new to XML DB. I appreciate the help.
    Eric

    Hi Eric,
    You can use XMLExists, like this :
    select *
    from message t
    where xmlexists(
          'declare namespace env = "http://www.co.com/schemas/cfg-env/"; (: :)
           declare namespace hdr = "http://www.co.com/schemas/cfg-hdr/"; (: :)
           /env:Envelope/env:Header/hdr:MessageHeader/hdr:UserSession[hdr:LogonId=$id]'
           passing t.message_content_txt
                 , 'R099999' as "id"
    );

  • How do I create envelopes in Pages using Numbers as the source?

    I've done this successfully before back in 2011 when I was sending out Holiday Cards.  Now I go in there today looking to use the same envelope template and an updated (not everybody lives in the same location) Numbers spreadsheet and I keep getting..."Please select a numbers document that has one or more named header columns and one or more rows of data".  The numbers file has 6 header columns (FN, LN, Address, City, State & Zip) and 77 rows of data.  I've tried to recreate the file under a different name, I've deleted and reinserted the header columns, etc and nothing has worked.  I'm now at the point where I'm toying with the idea of pulling the plug on the Holiday Card all together unless somebody could save the day.  PS...their is a holiday card in it for you
    Please help..

    Fair enough...it sounds like the Holiday cards will be put on pause until 2014. 
    On a different note, I'm noticing all sorts of issues with the OS...are you finding that Mavericks is less stable than prior versions of the OS?  The entire reason I went away from Windows based PC's was because of the instability of the OS and now I'm finding that the stability of the Apple OS is starting to follow the same path. 
    Thoughts?

  • How to create a matrix like report with description column

    Hi,
    currently i have two tables - one describing a job and another describing the stock. it is a simple relation where a job uses stock.
    i join job and stock using stock_code. there are three categories of stock - namely envelope, insert, stationary.
    i wish to create a cross tab report - basically i would like it to look like
    jobname, envelope, stationary, insert
    abc, e1, s1, i1
    , ,s2,i2
    def, e2,s3,i4
    , e3, , i5
    basically for each job i would like to place the stock code under envelope, stationary, or insert based on what type of stock it is. i can do this in sql, however, i get left with blank spaces.
    i do this by
    select     
    "FILE_PARAMETER"."FILE_NAME" as "FILE_NAME",
    "CATEGORY",
    "STOCK"."STOCK_CODE" as "STOCK_CODE",
    decode(upper("CATEGORY"), 'LASER', "STOCK_CODE", '') "LASER",
    decode(upper("CATEGORY"), 'ENVELOPE', "STOCK_CODE", '') "ENVELOPE",
    decode(upper("CATEGORY"), 'INSERT', "STOCK_CODE", '') "INSERT",
    decode(upper("CATEGORY"), 'INSERT',"STOCK"."DESCRIPTION",'') "DESCRIPTION"
    from
    "FILE_PARAMETER" "FILE_PARAMETER",
    "JOB_OVERVIEW" "JOB_OVERVIEW",
    "STOCK" "STOCK"
    where
    "FILE_PARAMETER"."FILE_NAME"="JOB_OVERVIEW"."AP_JOB_CODE"
    and "FILE_PARAMETER"."SCODE"="STOCK"."STOCK_CODE"
    ORDER BY "FILE_PARAMETER"."FILE_NAME", "CATEGORY"
    unfortunately this doesn't give me exactly the output i want. i would like it to show the first piece of stock in each category on the first line, and each subsequent stock on the line after that for each job group. my solution at the moment will put the stock in the corresponding stock category column but i have been unable to find a solution to removing the blank space.
    i have created the matrix report in developer and it can do what i want, however, it will not show the description for insert only. the way i have grouped it, it wants to show it all, and being a reports newbie i have no idea how to fix that
    any solutions would be very much appreciated!

    This feature is supported in MS Access and known as CROSSTAB through TRANSFORM function.
    In Oracle this exists but not in a elegant way as in MS.
    You have addition function GROUP BY ROLLUP and CUBE and GROUP BY GROUPING SETS, available in 10g, which can help you.
    Look in manuals and play with it!

  • How to retreive soap xml data from clob column in a table

    Hi,
    I am trying to retrieve the XML tag value from clob column.
    Table name = xyz and column= abc (clob datatype)
    data stored in abc column is as below
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:head="http://www.abc.com/gcgi/shared/system/header" xmlns:v6="http://www.abc.com/gcgi/services/v6_0_0_0" xmlns:sys="http://www.abc.com/gcgi/shared/system/systemtypes">
    <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
    <RqHeader soapenv:mustUnderstand="0" xmlns="http://www.abc.com/gcgi/shared/system/header">
    <DateAndTimeStamp>2011-12-20T16:02:36.677+08:00</DateAndTimeStamp>
    <UUID>1000002932</UUID>
    <Version>6_0_0_0</Version>
    <ClientDetails>
    <Org>ABC</Org>
    <OrgUnit>ABC</OrgUnit>
    <ChannelID>HBK</ChannelID>
    <TerminalID>0000</TerminalID>
    <SrcCountryCode>SG</SrcCountryCode>
    <DestCountryCode>SG</DestCountryCode>
    <UserGroup>HBK</UserGroup>
    </ClientDetails>
    </RqHeader>
    <wsa:Action>/SvcImpl/bank/
    SOAPEndpoint/AlertsService.serviceagent/OpEndpointHTTP/AlertDeleteInq</wsa:Action></soapenv:Header>
    <soapenv:Body>
    <v6:AlertDeleteInqRq>
    <v6:Base>
    <v6:VID>20071209013112</v6:VID>
    <!--Optional:-->
    <v6:Ref>CTAA00000002644</v6:Ref>
    </v6:Base>
    </v6:AlertDeleteInqRq>
    </soapenv:Body>
    </soapenv:Envelope>
    And i want to retrieve the values of tag
    <ChannelID> and <v6:VID>
    can somebody help, i have tried with extractvalue but not able to get the values

    I have used the below two queries but not able to get the expected results. Both queries result into no values.
    select xmltype(MED_REQ_PAYLOAD).extract('//ClientDetails/Org','xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" || xmlns="http://www.abc.com/gcgi/shared/system/header"').getStringValue() from ESB_OUTPUT_TEMP where SOAPACTION = '/SvcImpl/bank/alerts/v6_0_0_0/SOAPEndpoint/AlertsService.serviceagent/OpEndpointHTTP/AlertDeleteInq'
    select EXTRACTVALUE(xmltype(MED_REQ_PAYLOAD),'/RqHeader/) from ESB_OUTPUT_TEMP where SOAPACTION = '/SvcImpl/bank/SOAPEndpoint/AlertsService.serviceagent/OpEndpointHTTP/AlertDeleteInq'
    Well, for starters, both queries are syntactically wrong :
    - non terminated string
    - incorrect namespace mapping declaration
    - unknown XMLType method "getStringValue()"
    Secondly, all those functions are deprecated now.
    Here's an up-to-date example using XMLTable. It will retrieve the two tag values you mentioned :
    SQL> select x.*
      2  from esb_output_temp t
      3     , xmltable(
      4         xmlnamespaces(
      5           'http://schemas.xmlsoap.org/soap/envelope/' as "soap"
      6         , 'http://www.abc.com/gcgi/shared/system/header' as "head"
      7         , 'http://www.abc.com/gcgi/services/v6_0_0_0' as "v6"
      8         )
      9       , '/soap:Envelope'
    10         passing xmlparse(document t.med_req_payload)
    11         columns ChannelID  varchar2(10) path 'soap:Header/head:RqHeader/head:ClientDetails/head:ChannelID'
    12               , VID        varchar2(30) path 'soap:Body/v6:AlertDeleteInqRq/v6:Base/v6:VID'
    13       ) x
    14  ;
    CHANNELID  VID
    HBK        20071209013112
    You may also want to store XML in XMLType columns for both performance and storage optimizations.

  • Want to insert a XSL file's data into a column of type SYS.XMLTYPE??

    Hello Friends
    I want to insert a XSL file's data into a column of a table of type SYS.XMLTYPE. Following is the XSL which i want to add into a table please help in.....
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0"
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
         xmlns:fn="http://www.w3.org/2005/xpath-functions">
         <xsl:output method="html" encoding="UTF-8" />
         <xsl:template match="clinical_study">
         <xsl:variable name="status">
              <xsl:apply-templates select='overall_status' />
         </xsl:variable>
    <html>
    <head>
    <title>Summary</title>
    <link href="merckcancer.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
         <div id="trialtop" class="trialtop">
              <div id="trialtophead" class="trialtophead">
                   <H1>Summary</H1>
              </div>
    <!-- start of trial body-->
         <div id="trialmiddle" class="trialmiddle">
                             <span class="trialtitle1"><xsl:apply-templates select='brief_title'/></span>
                   <span class="tealbold">Official Title: </span><xsl:apply-templates select='official_title' />
                   <span class="tealbold" title="ClinicalTrials.gov Identifier">NCT Id: </span><xsl:apply-templates select='//nct_id'/>
    <span class="tealbold">Conditions: </span><xsl:for-each select="//condition[position()!=last()]"><xsl:value-of select="normalize-space(.)" /><xsl:text>, </xsl:text></xsl:for-each>
    <xsl:for-each select="//condition[position()=last()]"><xsl:value-of select="normalize-space(.)" /></xsl:for-each>
    <span class="tealbold">Phase: </span><xsl:apply-templates select='phase' />
    <span class="tealbold">Status: </span><xsl:value-of select="$status" />
    <span class="tealbold">Interventions: </span><xsl:for-each select="//intervention[position()!=last()]"><xsl:value-of select="normalize-space(intervention_type)" />: <xsl:value-of select="normalize-space(intervention_name)" /><xsl:text>, </xsl:text></xsl:for-each><xsl:for-each select="//intervention[position()=last()]"><xsl:value-of select="normalize-space(intervention_type)" />: <xsl:value-of select="normalize-space(intervention_name)" /></xsl:for-each>
    <xsl:apply-templates select='eligibility'><xsl:with-param name="type">short</xsl:with-param></xsl:apply-templates>
    </div><!-- end of middle -->
    </div><!-- end of top-->                         
    <div id="detail" class="detail">
         <div id="detailtophead" class="detailtophead">
              <H1>Details</H1>
         </div>
    <!-- end of detailtop-->
    <!-- start of detail body-->
    <div id="detailmiddle" class="detailmiddle">
    <span class="trialtitle2">Trial Description:</span>
         <span class="trialtitle4"><xsl:apply-templates select='brief_summary/textblock' /></span>
         <span class="trialtitle1">Eligibility: </span>
              <xsl:apply-templates select='eligibility'><xsl:with-param name="type">long</xsl:with-param></xsl:apply-templates>
    </div><!--end of detail middle-->
    </div><!-- end of detail top-->
    <div id="enroll" class="enroll">
    <div id="enrolltophead" class="enrolltophead">
    <H1>Enrollment</H1>
    </div>
    <!-- end of enroll top head-->
    <!-- start of enroll body-->
    <div id="enrollmiddle" class="enrollmiddle">
    <xsl:choose>
                                       <xsl:when test="$status = 'Recruiting'">
         This study has participating centers in a number of locations.
         To take the next step in learning more about participating in this clinical study please call one of these trial contacts.<p/>
         The trial contacts will know this study as <span class="tealbold"><xsl:apply-templates select='//org_study_id'/></span>
         or may know the study under the ClinicalTrials.gov identifier <span class="tealbold"><xsl:apply-templates select='//nct_id'/></span>.<p/>
         <p/>
                                       <xsl:apply-templates select='overall_contact'/>
                                       <xsl:for-each select="location">
                                            <xsl:call-template name='location'/><p/>
                                       </xsl:for-each>
                                       </xsl:when>
                                       <xsl:otherwise>
         This study is not currently Recruiting, it is <xsl:value-of select="$status" />.
                                       </xsl:otherwise>
                                       </xsl:choose>
    </div><!--end of enroll middle-->
    </div><!-- end of enroll -->
    <div id="credit" class="credit">
    <div id="credittophead" class="credittophead">
    <H1>Credits</H1>
    </div>
    <!-- end of credit top head-->
    <!-- start of credit body-->
    <div id="creditmiddle" class="creditmiddle">
                                  Information about this trial has been gathered from ClinicalTrials.gov. Please see
                                  <a>
                                       <xsl:attribute name="href" >
                                            /ctcpub/redirect.jsp?redirectURL=http://ClinicalTrials.gov
                                       </xsl:attribute>
                                       ClinicalTrials.gov
                                  </a> for more complete information.<p/>
                                  <xsl:apply-templates select='required_header/download_date'/><p/>
                                  <a>
                                       <xsl:attribute name="href" >
                                            /ctcpub/redirect.jsp?redirectURL=<xsl:apply-templates select='required_header/url'/>
                                       </xsl:attribute>
                                       <xsl:apply-templates select='required_header/link_text'/>
                                  </a> <p/>
                                  This trial data was last updated on <xsl:apply-templates select='//lastchanged_date'/><p/>
    </div><!--end of credit body-->
    </div><!--end of credit-->
    </body>
    </html>
    </xsl:template>
    <xsl:template match="brief_title">
              <span class="trialtitle"><xsl:value-of select="normalize-space(.)" /></span>
         </xsl:template>
         <xsl:template match="official_title">
              <span class="tealbold">Official Title: </span>     <xsl:value-of select="normalize-space(.)" />
         </xsl:template>
         <xsl:template match="phase">
              <span class="tealbold">Phase: </span> <xsl:value-of select="normalize-space(.)" />
         </xsl:template>
         <xsl:template match="overall_status">
              <xsl:value-of select="normalize-space(.)" />
         </xsl:template>
         <xsl:template match="eligibility">
              <xsl:param name="type" />
              <xsl:choose>
                   <xsl:when test="$type = 'short'">
                        <span class="tealbold">Eligibility: </span> <xsl:call-template name="ages">
                             <xsl:with-param name="min"><xsl:value-of select="normalize-space(minimum_age)" /></xsl:with-param>
                             <xsl:with-param name="max"><xsl:value-of select="normalize-space(maximum_age)" /></xsl:with-param>
                        </xsl:call-template>, <xsl:apply-templates select='gender' />
                   </xsl:when>
                   <xsl:when test="$type = 'long'">
                        <span class="trialtitle">Eligibility: </span>
                             <span class="tealbold">Age: </span> <xsl:call-template name="ages">
                                       <xsl:with-param name="min"><xsl:value-of select="normalize-space(minimum_age)" /></xsl:with-param>
                                       <xsl:with-param name="max"><xsl:value-of select="normalize-space(maximum_age)" /></xsl:with-param>
                                  </xsl:call-template>
                             <span class="tealbold">Genders Eligible for Study: </span> <xsl:apply-templates select='gender' />
                             <xsl:text>
                             </xsl:text>
                             <span class="tealbold">Eligibility Criteria: </span>
    <xsl:apply-templates select='criteria/textblock' />
                   </xsl:when>
                   <xsl:otherwise></xsl:otherwise>
              </xsl:choose>
         </xsl:template>
         <xsl:template match="gender">
              <xsl:choose>
                   <xsl:when test=". = 'Both'">Male or Female</xsl:when>
                   <xsl:otherwise>
                        <xsl:value-of select="normalize-space(.)" />
                   </xsl:otherwise>
              </xsl:choose>
         </xsl:template>
         <xsl:template match="overall_contact">
         <span class="trialtitle">Central Contact: </span>
              <xsl:apply-templates select='./first_name' /><xsl:text> </xsl:text>
              <xsl:apply-templates select='./middle_name' /><xsl:text> </xsl:text>
              <xsl:apply-templates select='./last_name' />
              <xsl:apply-templates select='./phone' />
              <xsl:apply-templates select='./email' />
         </xsl:template>
         <xsl:template name="ages">
              <xsl:param name="min" />
              <xsl:param name="max" />
              <xsl:choose>
                   <xsl:when test="($min != '') and ($max != '')">Between <xsl:value-of select="$min" /> and <xsl:value-of select="$max" /></xsl:when>
                   <xsl:when test="($min != '') and ($max = '')"><xsl:value-of select="$min" /> and Above</xsl:when>
                   <xsl:when test="($min = '') and ($max != '')">Under <xsl:value-of select="$max" /></xsl:when>
                   <xsl:otherwise></xsl:otherwise>
              </xsl:choose>
         </xsl:template>
         <xsl:template match="brief_summary/textblock">
              <span class="trialtitle">Trial Description: </span> <xsl:call-template name="substitute">
    <xsl:with-param name="string" select="." />
    </xsl:call-template>
         </xsl:template>
         <xsl:template name="location">
              <span class="trialtitle"><xsl:apply-templates select='.//country' /><xsl:apply-templates select='.//state' /></span>
              <xsl:apply-templates select='./facility/name' /><xsl:apply-templates select='.//city' /><xsl:apply-templates select='.//zip' /><xsl:apply-templates select='.//status' />
              <xsl:apply-templates select='./contact' />
         </xsl:template>
         <xsl:template match="contact">
              <span class="tealbold">Site Contact: </span>
              <xsl:apply-templates select='first_name' />
              <xsl:apply-templates select='middle_name' />
              <xsl:apply-templates select='last_name' />
              <xsl:apply-templates select='phone' />
              <xsl:apply-templates select='email' />
         </xsl:template>
         <xsl:template match="criteria/textblock">
              <xsl:call-template name="substitute">
         <xsl:with-param name="string" select="." />
         </xsl:call-template>     
    </xsl:template>     
         <xsl:template match="facility/name"><xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="country"><xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="city">, <xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="zip">, <xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="state">, <xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="status">, <xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="first_name"><xsl:value-of select="normalize-space(.)" />&#160;</xsl:template>     
         <xsl:template match="middle_name"><xsl:value-of select="normalize-space(.)" />&#160;</xsl:template>     
         <xsl:template match="last_name"><xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="phone">Phone: <xsl:value-of select="normalize-space(.)" />
    </xsl:template>     
         <xsl:template match="email"><xsl:if test='. != ""'>EMail: <xsl:value-of select="normalize-space(.)" />
    </xsl:if></xsl:template>     
    <xsl:template name="substitute">
    <xsl:param name="string" />
    <xsl:param name="from" select="'&#xA;'" />
    <xsl:param name="to">
    </xsl:param>
    <xsl:choose>
    <xsl:when test="contains($string, $from)">
    <xsl:value-of select="substring-before($string, $from)" />
    <xsl:copy-of select="$to" />
    <xsl:call-template name="substitute">
    <xsl:with-param name="string"
    select="substring-after($string, $from)" />
    <xsl:with-param name="from" select="$from" />
    <xsl:with-param name="to" select="$to" />
    </xsl:call-template>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$string" />
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    </xsl:stylesheet>
    Please do as early as possible..
    thanks in advance

    Hi I tried with below querry but iam getting an error message?
    SQL> Insert into temp_clob_tab
    2 SELECT XMLELEMENT("soap:Envelope",
    3 XMLATTRIBUTES ('http://www.w3.org/2001/XMLSchema-instance' as "xmlns:xsi",
    4 'http://www.w3.org/2001/XMLSchema' as "xmlns:xsd",
    5 'http://schemas.xmlsoap.org/soap/envelope/' as "xmlns:soap"),
    6 XMLELEMENT("soap:Body"),XMLELEMENT("AddListing",
    7 XMLATTRIBUTES ('http://www.christielites.com' as "xmlns" )),
    8 XMLELEMENT ( "SCOMCODE",a.SCOMCODE), XMLELEMENT ( "SLOCCODE",SLOCCODE),
    9 XMLELEMENT ( "DSTART",DSTART),XMLELEMENT ( "DEND",DEND),XMLELEMENT ( "SECODE",SECODE),
    10 XMLELEMENT ( "IAVAIL",IAVAIL),XMLELEMENT ("IOWNED",IOWNED),XMLELEMENT ("SPOSTTRANS",SPOSTTRANS))
    11 from LiteExchangeAvailablity a;
    SELECT XMLELEMENT("soap:Envelope",
    ERROR at line 2:
    ORA-00932: inconsistent datatypes: expected CLOB got -

  • Parse a soap envelope

    I have a SOAP response envelope that I am trying to parse using extractvalue.
    The response is stored in a xmltype field in a table.
    Table
    create table ws_results
    (x xmltype);SOAP Response
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
         <s:Header>
              <ActivityId CorrelationId="12855f8e-d2be-40c7-81d8-fafa3cf9a779" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">d24174d3-e095-460a-b9f8-2bae66efe813</ActivityId>
         </s:Header>
         <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
              <FetchResponse xmlns="urn: WA.Ecy.ADS.FacilitySite.Services">
                   <FacilitySiteId>99997167</FacilitySiteId>
              </FetchResponse>
         </s:Body>
    </s:Envelope>Here is the SQL that I attempting to use to get the Facility Site ID out
    select extractvalue(x,'/FetchResponse/FacilitySiteId') from ws_results;
    select extractvalue(x,'/FetchResponse/FacilitySiteId','xmlns="http://microsoft.com/wsdl/types/"')
    from ws_resultsThese returns a null.
    Seems like this should be pretty straightforward and I am sure that I am missing something small. Any help would be appreciated.
    Thanks, Tony

    The problem seems to be (at least with me testing) is the xmlns="urn: WA.Ecy.ADS.FacilitySite.Services". Oracle considers it invalid xpath. If it is replaced with "http://www.ms.com/xml", then it seems OK with xpath. You can test this:
    declare
         ---v_xmlText          clob ;      ---varchar2(32765);
         v_xmlText          sys.xmltype;
         v_FacID               varchar2(50) := null;
         v_FacilitySiteId     varchar2(50) := null;
         v_FacilitySiteName     varchar2(50) := null;
    begin
         v_xmlText := sys.xmlType('
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
         <s:Header>
              <ActivityId CorrelationId="48538673-36c0-4f6d-8c05-94b753d0e3ab"
              xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">
              b4af9688-a929-4b9f-a187-fb68f3927240
              </ActivityId>
         </s:Header>
         <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:xsd="http://www.w3.org/2001/XMLSchema">
              <FacilitySiteResponse xmlns="http://www.ms.com/xml">
                   <FacilitySiteEntity>
                        <Id>99997167</Id>
                        <FacilitySiteId>99997167</FacilitySiteId>
                        <FacilitySiteName>My New Test Facility</FacilitySiteName>
                        <FacilitySiteKeySearchName>My New Te</FacilitySiteKeySearchName>
                        <VirtualSiteFlag>78</VirtualSiteFlag>
                        <GeographicLocationId>99997167</GeographicLocationId>
                        <CreatedDate>2008-11-07T07:32:21.07</CreatedDate>
                        <ModifiedByName>taus461</ModifiedByName>
                        <ModifiedDate>2008-11-07T07:44:20.723</ModifiedDate>
                        <CreatedByName>taus461</CreatedByName>
                   </FacilitySiteEntity>
                   <GeographicLocationEntity>
                        <Id>99997167</Id>
                        <GeographicLocationId>99997167</GeographicLocationId>
                        <AddressLine1>2020 22nd Ave SE</AddressLine1>
                        <CityName>Olympia</CityName>
                        <CongressionalDistrictNumber xsi:nil="true"/>
                        <COORD_XTNT_CD xsi:nil="true"/>
                        <HorizontalDatumCode>3</HorizontalDatumCode>
                        <HorizontalAccuracyLevelCode>13</HorizontalAccuracyLevelCode>
                        <HorizontalCollectionMethodCode>2</HorizontalCollectionMethodCode>
                        <GeographicPositionCode>8</GeographicPositionCode>
                        <LatitudeDecimalNumber xsi:nil="true"/>
                        <LatitudeDegreeNumber xsi:nil="true"/>
                        <LocationVerifiedFlag xsi:nil="true"/>
                        <LatitudeMinutesNumber xsi:nil="true"/>
                        <LatitudeSecondsNumber xsi:nil="true"/>
                        <LongitudeDecimalNumber xsi:nil="true"/>
                        <LongitudeDegreeNumber xsi:nil="true"/>
                        <LongitudeMinutesNumber xsi:nil="true"/>
                        <LongitudeSecondsNumber xsi:nil="true"/>
                        <BaseReferenceCode>SPCS</BaseReferenceCode>
                        <SOURCE_SCALE_CD>99</SOURCE_SCALE_CD>
                        <VerticalMeasureNumber xsi:nil="true"/>
                        <VerticalMeasureUnitCode>FT</VerticalMeasureUnitCode>
                        <VerticalReferenceCode xsi:nil="true"/>
                        <VerticalCollectionMethodCode xsi:nil="true"/>
                        <VerticalDatumCode xsi:nil="true"/>
                        <VerticalAccuracyLevelCode xsi:nil="true"/>
                        <CountyCodeNumber xsi:nil="true"/>
                        <LocationDescription1>This is my test facility decription</LocationDescription1>
                        <EPARegionName xsi:nil="true"/>
                        <GISVerifiedFlag xsi:nil="true"/>
                        <LegislativeDistrictNumber xsi:nil="true"/>
                        <IndianLandFlag>78</IndianLandFlag>
                        <RangeDirectionCode xsi:nil="true"/>
                        <RangeNumber xsi:nil="true"/>
                        <RegionCode/>
                        <SectionNumber xsi:nil="true"/>
                        <StateCode>WA</StateCode>
                        <SPCSXCoordinateNumber xsi:nil="true"/>
                        <SPCSYCoordinateNumber xsi:nil="true"/>
                        <SPCSZoneCode xsi:nil="true"/>
                        <TownshipDirectionCode xsi:nil="true"/>
                        <TownshipNumber xsi:nil="true"/>
                        <UTMXCoordinateNumber xsi:nil="true"/>
                        <UTMYCoordinateNumber xsi:nil="true"/>
                        <UTMZoneCode xsi:nil="true"/>
                        <WRIAIdNumber xsi:nil="true"/>
                        <ZipCode>98501</ZipCode>
                        <PLAIndicatorCode xsi:nil="true"/>
                        <GISReferenceNumber xsi:nil="true"/>
                        <GISCalculatedLatDecimalNumber xsi:nil="true"/>
                        <GISCalculatedLongDecimalNumber xsi:nil="true"/>
                        <ModifiedByName>taus461</ModifiedByName>
                        <ModifiedDate>2008-11-07T07:44:20.74</ModifiedDate>
                        <CreatedDate xsi:nil="true"/>
                        <CreatedByName>taus461</CreatedByName>
                        <FacilitySite>
                             <Id>99997167</Id>
                             <FacilitySiteId>99997167</FacilitySiteId>
                             <FacilitySiteName>My New Test Facility</FacilitySiteName>
                             <FacilitySiteKeySearchName>My New Te</FacilitySiteKeySearchName>
                             <VirtualSiteFlag>78</VirtualSiteFlag>
                             <GeographicLocationId>99997167</GeographicLocationId>
                             <CreatedDate>2008-11-07T07:32:21.07</CreatedDate>
                             <ModifiedByName>taus461</ModifiedByName>
                             <ModifiedDate>2008-11-07T07:44:20.723</ModifiedDate>
                             <CreatedByName>taus461</CreatedByName>
                        </FacilitySite>
                   </GeographicLocationEntity>
                   <IsOperationSuccess>true</IsOperationSuccess>
              </FacilitySiteResponse>
         </s:Body>
    </s:Envelope>');
         select fac.facID, fac.FacilitySiteId, fac.FacilitySiteName
              into v_FacID, v_FacilitySiteId, v_FacilitySiteName
         from
         xmltable
              xmlnamespaces
                   default 'http://www.ms.com/xml'     
                   ---'http://www.ms.com/xml'
                   ---'http://schemas.xmlsoap.org/ws/2004/08/addressing' as "wsa",
                   ---'http://www.w3.org/2003/05/soap-envelope' as "soap"
              '//FacilitySiteResponse'
              passing v_xmlText
              columns
              FacID               varchar2(50)     path     '//FacilitySiteEntity/Id',
              FacilitySiteId          varchar2(50)     path     '//FacilitySiteEntity/FacilitySiteId',
              FacilitySiteName     varchar2(50)     path     '//FacilitySiteEntity/FacilitySiteName'
         ) fac;
         dbms_output.put_line('FacID = ' || v_FacID);
         dbms_output.put_line('FacSiteID = ' || v_FacilitySiteId);
         dbms_output.put_line('FacSiteName = ' || v_FacilitySiteName);
                    select extractValue(v_xmlText, '//FacilitySiteResponse/FacilitySiteEntity/Id', 'xmlns="http://www.ms.com/xml"')
         into v_FacID from dual;
                   dbms_output.put_line('FacID = ' || v_FacID);
    end;
    /FacID = 99997167
    FacSiteID = 99997167
    FacSiteName = My New Test Facility
    FacID = 99997167
    PL/SQL procedure successfully completed.

  • Failed to load IMAP envelope

    Hi All,
         I have encountered a problem with JavaMail API, when a message exists on the Mail Server that has �null� for recipient field, JavaMail API throws an Exception when ever we try to retrieve getFrom() method, and also it returns �null� when I was retrieving BCC list.
    Is there any thing wrong in this code, Pls. help me?
    My Sample code:
    import java.util.Properties;
    import javax.mail.Folder;
    import javax.mail.Message;
    import javax.mail.MessagingException;
    import javax.mail.NoSuchProviderException;
    import javax.mail.Session;
    import javax.mail.Store;
    import javax.mail.internet.InternetAddress;
    import javax.mail.Address;
    public class InboxSearch
         public static void main(String[] args)
              String           host          =     "XX.X.XXX.XX"; //Host
              int               port          =     143;     //Port No          
              String           user          =     "XXXXXX";     //Username
              String          password     =     "XXXXXX"; //Password
              Properties      props          =      new Properties();
              Store          store          =     null;
              Folder          inbox          =     null;
              try
                   Session session = Session.getDefaultInstance(props, null);
                   store = session.getStore("pop3");
                   store.connect(host,user,password);
                   inbox = store.getFolder("INBOX");
                   inbox.open(Folder. READ_WRITE);
                   Message[] inboxMessages = inbox.getMessages();
                   for (int counter = 0; inboxMessages!=null && counter <inboxMessages.length; counter ++)
                        Address from[] = inboxMessages[counter].getFrom();
                        //when i was retrieving it throws javax.mail.MessagingException:Failed to load IMAP envelope
                        String retriveBcc=null;
                        Address bcc[] = inboxMessages[counter].getRecipients(Message.RecipientType.BCC);
                        for (int bcccount = 0; bcc != null && bcccount < bcc.length; bcccount++)
                             retriveBcc = retriveBcc + bcc[bcccount];
                             if ((bcccount + 1) < bcc.length)
                                  retriveBcc = retriveBcc + ", ";
                             System.out.println("BCC->"+retriveBcc);
                        //retrieving with BCC field it return null so it will throws NullPointerException
              catch (NoSuchProviderException nspe)
                   System.err.println("invalid provider name"+ nspe.toString());
              catch (MessagingException me)
                   System.err.println("messaging exception"+ me.toString());
              catch(Exception e)
                   System.err.println("exception"+ e.toString());
              finally
                   try{ if(store!=null){store.close();}}catch(Exception e){}
                   try{ if(inbox!=null){inbox.close(true);}}catch(Exception e){}
         }//main end
    }//class end
    Thanks & Regards
    Mohan

    Hi All,
    Thanks for your replay, Is there any way to find out which column is causing �inserted value too large for column� the problem? I'm trying to insert the data into a table by using Prepared Statement.
    Note that I don't require like email_id length>column length then column name=�EMAIL_ID�
    Appreciated ur help,
    My Sample Code:*
    import java.util.*;
    import javax.mail.*;
    import java.io.*;
    import java.sql.*;
    public class InboxSearch
         public static void main(String[] args)
              String host = "XX.X.XXX.X"; //Host
              int port = 143; //Port No
              String user = "XXXXXXX"; //Username
              String password = "XXXX"; //Password
              Properties props = new Properties();
              Store store = null;
              Folder inbox = null;
              String msgId[] = null;
              boolean debug = true;
              Connection connection = null;
              PreparedStatement psmt=null;
              try
                   Session session = Session.getDefaultInstance(props, null);
                   session.setDebug(debug);
                   store = session.getStore("imap");
                   store.connect(host,user,password);
                   inbox = store.getFolder("INBOX");
                   inbox.open(Folder. READ_ONLY);
                   Message[] inboxMessages = inbox.getMessages();
                   String serverId =null;
                   Address from[]=null;
                   String toAddress = "";
                   String ccAddress = "";
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                   connection = DriverManager.getConnection("jdbc:oracle:thin:@XX.X.XXX.XXX:1521:DEV", "XXXX", "XXXX");
                   String query = "INSERT INTO EMAIL_ARCHIVED_MAILS VALUES(?,?,?,?)";
                   for (int counter = 10; inboxMessages!=null && counter <15; counter ++)
                        msgId=inboxMessages[counter].getHeader("MESSAGE-ID");
                        if (msgId!=null)
                             psmt = connection.prepareStatement(query);     
                             from = inboxMessages[counter].getFrom();
                             Address to[]= inboxMessages[counter].getRecipients(Message.RecipientType.TO);
                                  for (int count = 0; to != null && count < to.length; count++)
                                       toAddress = toAddress + to[count];
                                       if ((count + 1) < to.length)
                                            toAddress = toAddress + ", ";
                             Address cc[] = inboxMessages[counter].getRecipients(Message.RecipientType.CC);
                                  for (int count = 0; cc != null && count < cc.length; count++)
                                       ccAddress = ccAddress + cc[count];
                                       if ((count + 1) < cc.length)
                                            ccAddress = ccAddress + ", ";
                             psmt.setString(1, msgId.toString());
                             if (from[0].toString()!=null)
                                  psmt.setString(2,from[0].toString().toUpperCase());
                             }else
                                  psmt.setNull(2, Types.VARCHAR);
                             if (toAddress!="")
                                  psmt.setString(3,toAddress);
                             }else
                                  psmt.setNull(3, Types.VARCHAR);
                             if (ccAddress!="")
                                  psmt.setString(4,ccAddress);
                             }else
                                  psmt.setNull(4, Types.VARCHAR);
                             psmt.execute();
                             System.out.println("counter-->"+counter);
                        }else
                             System.out.println(�No MESSAGE-ID�);
              catch (NoSuchProviderException nspe)
                   System.err.println("invalid provider name"+ nspe.toString());
              catch (MessagingException me)
                   System.err.println("messaging exception"+ me.toString());
              catch(Exception e)
                   System.err.println("exception"+ e.toString());
              finally
                   try{ if(psmt!=null) psmt.close();}catch (Exception e){}
                   try{ if(connection!=null) connection.close();}catch (Exception e){}
                   try{ if(inbox!=null){inbox.close(true);}}catch(Exception e){}
                   try{ if(store!=null){store.close();}}catch(Exception e){}
         }//main end
    }//class end
    Protocol Trace:*
    ---------- java ----------
    DEBUG: setDebug: JavaMail version 1.4ea
    DEBUG: getProvider() returning javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc]
    DEBUG: mail.imap.fetchsize: 16384
    * OK Microsoft Exchange Server 2003 IMAP4rev1 server version 6.5.6944.0 (testmail.mailtest.com) ready.
    A0 CAPABILITY
    * CAPABILITY IMAP4 IMAP4rev1 IDLE LOGIN-REFERRALS MAILBOX-REFERRALS NAMESPACE LITERAL+ UIDPLUS CHILDREN AUTH=NTLM
    A0 OK CAPABILITY completed.
    IMAP DEBUG: AUTH: NTLM
    DEBUG: protocolConnect login, host=XX.X.XXX.X, user=XXXXXXXX, password=<non-null>
    A1 LOGIN XXXXXX XXXX
    A1 OK LOGIN completed.
    DEBUG: connection available -- size: 1
    A2 EXAMINE INBOX
    * 221 EXISTS
    * 0 RECENT
    * FLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)
    * OK [PERMANENTFLAGS ()] Permanent flags
    * OK [UNSEEN 13] Is the first unseen message
    * OK [UIDVALIDITY 88] UIDVALIDITY value
    A2 OK [READ-ONLY] EXAMINE completed.
    A3 LIST "" INBOX
    * LIST (\Marked \HasChildren) "/" INBOX
    A3 OK LIST completed.
    A4 FETCH 11 (BODY.PEEK[HEADER.FIELDS (MESSAGE-ID)])
    * 11 FETCH (BODY[HEADER.FIELDS (MESSAGE-ID)] {80}
    Message-ID: <[email protected]>
    A4 OK FETCH completed.
    A5 FETCH 11 (ENVELOPE INTERNALDATE RFC822.SIZE)
    * 11 FETCH (ENVELOPE ("Mon, 31 Jan 2005 14:27:44 +0530" "Blessed with a baby girl" ((NIL NIL "radha.krish" "wipro.com")) ((NIL NIL "radha.krish" "wipro.com")) ((NIL NIL "radha.krish" "wipro.com")) ((NIL NIL "undisclosed-recipients" NIL)) NIL NIL NIL "<[email protected]>") INTERNALDATE "31-Jan-2005 14:28:19 +0530" RFC822.SIZE 2505)
    A5 OK FETCH completed.
    counter-->10
    A6 FETCH 12 (BODY.PEEK[HEADER.FIELDS (MESSAGE-ID)])
    * 12 FETCH (BODY[HEADER.FIELDS (MESSAGE-ID)] {66}
    Message-ID: <31579113.1112822648060.JavaMail.orbit@phys-indus>
    A6 OK FETCH completed.
    A7 FETCH 12 (ENVELOPE INTERNALDATE RFC822.SIZE)
    * 12 FETCH (ENVELOPE ("Thu, 7 Apr 2005 02:54:08 +0530" "Account to Account Transfer" ((NIL NIL "CitiAlert.India" "citicorp.com")) ((NIL NIL "CitiAlert.India" "citicorp.com")) ((NIL NIL "citialert.india1" "citicorp.com")) ((NIL NIL "vishalk" "xxxx.com")) NIL NIL NIL "<31579113.1112822648060.JavaMail.orbit@phys-indus>") INTERNALDATE " 7-Apr-2005 02:25:27 +0530" RFC822.SIZE 3060)
    A7 OK FETCH completed.
    counter-->11
    A8 FETCH 13 (BODY.PEEK[HEADER.FIELDS (MESSAGE-ID)])
    * 13 FETCH (BODY[HEADER.FIELDS (MESSAGE-ID)] {65}
    Message-ID: <8725992.1112822649508.JavaMail.orbit@phys-indus>
    A8 OK FETCH completed.
    A9 FETCH 13 (ENVELOPE INTERNALDATE RFC822.SIZE)
    * 13 FETCH (ENVELOPE ("Thu, 7 Apr 2005 02:54:09 +0530" "Account to Account Transfer" ((NIL NIL "CitiAlert.India" "citicorp.com")) ((NIL NIL "CitiAlert.India" "citicorp.com")) ((NIL NIL "citialert.india1" "citicorp.com")) ((NIL NIL "vishalk" "xxxx.com")) NIL NIL NIL "<8725992.1112822649508.JavaMail.orbit@phys-indus>") INTERNALDATE " 7-Apr-2005 02:25:29 +0530" RFC822.SIZE 3063)
    A9 OK FETCH completed.
    counter-->12
    A10 FETCH 14 (BODY.PEEK[HEADER.FIELDS (MESSAGE-ID)])
    * 14 FETCH (BODY[HEADER.FIELDS (MESSAGE-ID)] {80}
    Message-ID: <[email protected]>
    A10 OK FETCH completed.
    A11 FETCH 14 (ENVELOPE INTERNALDATE RFC822.SIZE)
    * 14 FETCH (ENVELOPE ("Thu, 7 Apr 2005 10:28:17 +0530" "512K IPLC" (("Santosh Kumar Singh" NIL "Santosh.Singh" "xxxx.com")) (("Santosh Kumar Singh" NIL "Santosh.Singh" "xxxx.com")) (("Santosh Kumar Singh" NIL "Santosh.Singh" "xxxx.com")) (("XxxxIndia" NIL "All_India" "xxxx.com")(NIL NIL "all_india" "siti.com")(NIL NIL "all_india" "digiprise.com")) (("Sai Gundavelli" NIL "sai.gundavelli" "xxxx.com")) NIL NIL "<[email protected]>") INTERNALDATE " 7-Apr-2005 10:28:17 +0530" RFC822.SIZE 1534)
    A11 OK FETCH completed.
    exceptionjava.sql.SQLException: ORA-01401: inserted value too large for column
    A12 CLOSE
    A12 OK CLOSE completed.
    DEBUG: added an Authenticated connection -- size: 1
    A13 LOGOUT
    * BYE Microsoft Exchange Server 2003 IMAP4rev1 server version 6.5.6944.0 signing off.
    A13 OK LOGOUT completed.
    DEBUG: IMAPStore connection dead
    DEBUG: IMAPStore cleanup, force false
    DEBUG: IMAPStore cleanup done
    Output completed (33 sec consumed) - Normal Termination
    Table Structure:*
    CREATE TABLE EMAIL_ARCHIVED_MAILS
    MAIL_ID VARCHAR2(100 BYTE),
    EMAIL_FROM VARCHAR2(100 BYTE),
    EMAIL_TO VARCHAR2(100 BYTE),
    EMAIL_CC VARCHAR2(100 BYTE)
    Thanks & Regards
    Mohan

  • Use the header's date in columns

    Hello,
    I would like to know if it is possible to tell Mail to show the header's received date in the columns, and not the date of the file on the IMAP server.
    I run my own server, and I switched the hardware, and all mails I transferred (via the « Move to » feature in Thunderbird of course, I didn't transfer the mails to myself :D) from one server to another show up with the transfer date in the column view, but with the correct date when I read them...
    Thank you in advance.

    ... so rebuilding the mailbox doesn't make sense ...
    Reindexing is not the same as rebuilding. The index file apparently maintains certain message metadata derived independently from the message headers (from the server-client transaction 'envelope' perhaps?), & what is displayed in Message Viewer columns can sometimes differ from what is displayed in the message headers because of this.
    Since Mail can maintain local copies of certain IMAP account messages in mailbox folders that do not begin with "IMAP-" (in .mbox folders rather than .imapmbox ones), it is possible reindexing can correct date discrepancies for some messages, even ones derived from IMAP servers.

  • [CS2, CS3]Envelope Distort with gradient sends Illustrator to sleep (almost)

    Hi there,
    not sure if this is a well known flaw or not ...
    What I did basically:
    Filled a rectangle with a linear, 4-color-gradient
    Did an Envelope Distort to it with 4 rows and 4 columns
    Did some moves and rotations with about 50 % of the mesh points
    As a result, nearly every action one might do to the artwork now takes an eternity to be executed. Why is this so?
    Besides: Why is the file that huge? 12 MB ...
    If you'd like to check the document:
    http://www.sendspace.com/file/u8t624
    Thanks,
    Klaus

    It's slow here as well. Quad 2.66MacPro/Ai13.0.2
    The obvious solution is to not use an Envelope distort and just make a Gradient mesh. I'm not certain why you'd be using an Envelope anyway. You can simply shape a gradient mesh how you want. Envelope distorting a gradient in this manner results in banding or internal edges that are generally undesired. Gradient meshs won't have these edges.
    I'd guess that the envelopes is having to re-plot every aspect of the underlying gradient which is why it's taking so long. It's something in how you created to object.
    If you choose Object > Envelope > Release. Deselect both objects. Select both objects and choose Object > Envelope > Make with Top Object. Then AI is back to normal speed when editing. At least it is here. In addition, when I did this to your 12mb file and saved, it dropped to 640±kb.

  • SOAP envelope XML body extraction

    hello , I'm new in the 'XML-world' and also new on this forum but i have a question.
    My function :
    create or replace
    FUNCTION DHL_SOAP_RESPONSE_XMLTYPE RETURN XMLType AS
    SOAP_RESPONSE constant varchar2(32767) :=
    '<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Header/>
    <SOAP-ENV:Body>
    <rateresp:RateResponse xmlns:rateresp="http://scxgxtt.phx-dc.dhl.com/euExpressRateBook/RateMsgResponse">
    <Provider code="DHL">
    <Notification code="0">
    <Message/>
    </Notification>
    <Service type="C">
    <TotalNet>
    <Currency>EUR</Currency>
    <Amount>17.28</Amount>
    </TotalNet>
    <Charges>
    <Currency>EUR</Currency>
    <Charge>
    <ChargeType>MEDICAL EXPRESS</ChargeType>
    <ChargeAmount>14.77</ChargeAmount>
    </Charge>
    <Charge>
    <ChargeType>FUEL SURCHARGE</ChargeType>
    <ChargeAmount>2.51</ChargeAmount>
    </Charge>
    </Charges>
    <DeliveryTime>2013-02-06T12:00:00</DeliveryTime>
    <CutoffTime>2013-02-05T20:30:00</CutoffTime>
    <NextBusinessDayInd>N</NextBusinessDayInd>
    </Service>
    <Service type="T">
    <TotalNet>
    <Currency>EUR</Currency>
    <Amount>17.28</Amount>
    </TotalNet>
    <Charges>
    <Currency>EUR</Currency>
    <Charge>
    <ChargeType>EXPRESS 12:00</ChargeType>
    <ChargeAmount>14.77</ChargeAmount>
    </Charge>
    <Charge>
    <ChargeType>FUEL SURCHARGE</ChargeType>
    <ChargeAmount>2.51</ChargeAmount>
    </Charge>
    </Charges>
    <DeliveryTime>2013-02-06T12:00:00</DeliveryTime>
    <CutoffTime>2013-02-05T20:30:00</CutoffTime>
    <NextBusinessDayInd>N</NextBusinessDayInd>
    </Service>
    <Service type="G">
    <TotalNet>
    <Currency/>
    <Amount>0.00</Amount>
    </TotalNet>
    <DeliveryTime>2013-02-06T23:59:00</DeliveryTime>
    <CutoffTime>2013-02-05T20:30:00</CutoffTime>
    <NextBusinessDayInd>N</NextBusinessDayInd>
    </Service>
    <Service type="N">
    <TotalNet>
    <Currency>EUR</Currency>
    <Amount>13.69</Amount>
    </TotalNet>
    <Charges>
    <Currency>EUR</Currency>
    <Charge>
    <ChargeType>DOMESTIC EXPRESS</ChargeType>
    <ChargeAmount>11.70</ChargeAmount>
    </Charge>
    <Charge>
    <ChargeType>FUEL SURCHARGE</ChargeType>
    <ChargeAmount>1.99</ChargeAmount>
    </Charge>
    </Charges>
    <DeliveryTime>2013-02-06T23:59:00</DeliveryTime>
    <CutoffTime>2013-02-05T20:30:00</CutoffTime>
    <NextBusinessDayInd>N</NextBusinessDayInd>
    </Service>
    <Service type="9">
    <TotalNet>
    <Currency/>
    <Amount>0.00</Amount>
    </TotalNet>
    <DeliveryTime>2013-02-07T23:59:00</DeliveryTime>
    <CutoffTime>2013-02-05T16:30:00</CutoffTime>
    <NextBusinessDayInd>N</NextBusinessDayInd>
    </Service>
    </Provider>
    </rateresp:RateResponse>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    BEGIN
    RETURN XMLType(SOAP_RESPONSE);
    END;
    Now what I want is extract the body of the respons with a select .
    Can someone help me because I don't understand this ?
    I work with the Oracle Database XE 11g.
    SQL developer.
    Thanks already

    Welcome to the forums.
    As a tip for future posts [url https://forums.oracle.com/forums/thread.jspa?threadID=2174552#9360002]2. How do I ask a question on the forums?
    That said, a basic example that pulls the contents of the body out is
    declare
      l_ws_rsp    XMLTYPE;
      l_body_rsp  XMLTYPE;
    begin
      -- Retrieving the SOAP message
      l_ws_rsp := DHL_SOAP_RESPONSE_XMLTYPE;
      -- Extracting out the body
      SELECT xt.body_xml
        INTO l_body_rsp
        FROM XMLTable(XMLNamespaces('http://schemas.xmlsoap.org/soap/envelope/' AS "SOAP-ENV"),
                      '/SOAP-ENV:Envelope/SOAP-ENV:Body/*'
                      PASSING l_ws_rsp
                      COLUMNS
                      body_xml   XMLTYPE PATH '.') xt;
       dbms_output.put_line(l_body_rsp.getClobVal());
    end;If you Google
    XMLTable soap site:forums.oracle.com
    you can find plenty of examples on these forums regarding how to parse a web service response.
    The bigger question is, what are you going to do with the data in the response. As the example above alludes too, you can actually parse the entire WS response with one SQL statement and return the results as one or more rows. Will you be performing PL/SQL logic on the returned results or will you simply be INSERTing them into the database for something else to use?

  • Envelope issue

    Hi
    I'm trying to make an envelope with 200 rows by 200 columns but without success.
    I can make an envelope with 180 rows and 180 columns and the result is available in less twenty seconds.
    and if I try 183 by 183 it doesn't work.
    I suspect that there is a limit somewhere because 183 * 183 > 32768
    Can we expect in the future to build an envelope with a large number or rows and columns ?

    so after waiting for 2 weeks to receive my return package from verizon and not being able to get through to return department because of high volume callers, i called a couple of verizon stores to see if i can return my old iphone and get $200 gift card. they said yes even though customer service (*611) told me they can not.
    10/13 i took my iphone 4 and my iphone 6 and the box it came in to the verizon store. the lady examined my iphone 4 and took some info off my iphone 6 and ask if i like a $200 gift card or instant credit to my account. i opted for instant credit. no waiting or worrying about return shipping.

  • Envelope distort to center of the object only possible?

    Envelope distort to center of the object only possible?
    Okay, can anyone please give me a hint how to achieve the effect shown in the image? If not with Illustrator what software can do this effect?
    It's like an envelope distort but like the object (small circles) is not entirely wrapped into the envelope.
    I tried moving the corners of the applied envelope towards the center of the object but it resizes the entire shape along with it...

    Set up the dot pattern (or whatever the art is)
    Choose Object > Envelope Distort > Make with Mesh
    Enter 2 rows and 2 columns and click OK
    This will add 1 mesh point to the center of the artwork.
    Use the Direct Selection Tool (the white arrow) to select only that center mesh point.
    Double-click the Scale Tool and enter a value larger than 100% in the Uniform Field.

  • Output from xml column

    I have a table
    message with a column xml_receive
    I want to query the text from the xml_receive column
    XML_RECEIVE (data):
    <?xml version='1.0' encoding='UTF-8'?>
    <soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'>
    <soapenv:Header/>
      <soapenv:Body>
       <RechargeMSISDN>  
        <Timestamp>2013-11-21T05:33:39.000Z</Timestamp>
        <Transactionid>24</Transactionid>         
        <ResponseCode>0</ResponseCode>  
      </RechargeMSISDN>
    </soapenv:Body>
    </soapenv:Envelope>
    sql query:
    SELECT
    EXTRACTVALUE(XMLTYPE(XML_RECEIVE), '//Timestamp') AS datum,
    EXTRACTVALUE(XMLTYPE(XML_RECEIVE), '//ResponseCode') AS code,
    EXTRACTVALUE(XMLTYPE(XML_RECEIVE), '//Transactionid') AS id,
    EXTRACTVALUE(XMLTYPE(XML_RECEIVE), '//ClientAccountBalance') AS balans
    FROM message
    Can anyone tell me what is wong with my query?

    The root cause of the error is probably that when you insert data to XML_RECEIVE, the data is not clean. It is well known that the prolog of a well-formed xml (if exists) must be at the very start of it.
    The error message:
    LPX-00209: PI names starting with XML are reserved
    Error at line 2
    means there is a dubious line before the prolog.
    You sure would be better off in the long run to clean the column up. In the meantime, you can use a regexp_replace to preprocess the varchar2 type of XML_RECEIVE.
    Instead of this:
    EXTRACTVALUE(XMLTYPE(XML_RECEIVE), '//Timestamp') AS datum,
    script it like this:
    EXTRACTVALUE(XMLTYPE(regexp_replace(XML_RECEIVE, '.*<\?xml','<?xml',1,1,'n')), '//Timestamp') AS datum,
    etc,,, (the same for any other occurrences of XML_RECEIVE). I avoid more sophisticated pattern as the support is doubtful. The pattern uses some basic construction that the support is solid. Also the pattern actually allowed multiple line of 'dirty' junk data in front of the prolog, not necessarily whitespaces nor just a single line.

Maybe you are looking for