Corrupt XML returned from CFHTTP POST

I'm performig a simple POST via CFHTTP. I know the XML I'm
POSTing is correct;
the target returns valid XML with one exception: when I
display the ASCII value for
each character in the returned XML, the first one is
consistently 65279. Below are the
first four characters of the XML. 65279 is the only
unexpected character. XMLParse( )
fails unless I remove that character. Any ideas would be
appreciated.
Pos = 1 : ASC = 65279 :
Pos = 2 : ASC = 60 : <
Pos = 3 : ASC = 70 : F
Pos = 4 : ASC = 105 : i

65279 = 0xFE - UTF-16 byte order mark.

Similar Messages

  • Parsing HTML returned from CFHTTP

    I am trying to create a function that will parse out
    individual pieces of information returned by a cfhttp request. I
    need the name of the city, country, and state returned. I need the
    script to start at the word " CITY: ", " STATE: ", and " COUNTRY: "
    respectively and ends at <br>. I know I can use findNoCase to
    locate the start point, but how can I say 'get until you reach the
    next <br>' ?
    Here is my returned data (I bolded what I need returned):
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
    <HTML><HEAD><TITLE>Geo Results</TITLE>
    </HEAD><BODY> VERSION=1.0<br> <p> TARGET:
    172.20.85.84<br> NAME: IANA-BBLK-RESERVED1<br> NUMBER:
    172.16.0.0 - 172.31.255.255<br> CITY:
    AMSTERDAM<br> STATE:
    NORTH HOLLAND (province) <br> COUNTRY:
    NL<br> LAT: 52.35<br> LONG: 4.90<br>
    LAT_LONG_GRAN: City<br> LAST_UPDATED: <br> NIC:
    RIPE<br> LOOKUP_TYPE: Block Allocation<br> RATING:
    <br> DOMAIN_GUESS: ripe.net<br> STATUS: OK<br>
    </BODY></HTML>

    This would probably be betters served by reFindNoCase()
    rather then the
    simplier findNoCase(). The former allows you to use regular
    expressions
    to find more complex strings. Something like
    "refindnocase("CITY:.*[^<]<br>",cfhttp.FileContent)"
    should be close to
    what you are looking for, but I am not supper efficient at
    regular
    expression code and this is untested and untried.

  • The format of XML file returned from web service

    Hi everyone,
    My web service (build in asp.net 2.0 with C#) returns the
    following xml file which is not what I want.
    <Root>
    <Root2>
    <Person> .... </Person>
    <Person> .... </Person>
    <Person> .... </Person>
    </Root2>
    </Root>
    But I want my web service to return the following xml file.
    How can I get the following xml file instead of the above xml file
    ? Thanks.
    <Root>
    <Person> .... </Person>
    <Person> .... </Person>
    <Person> .... </Person>
    </Root>

    Thanks for everyone's reply!
    Sorry, I don't know where to set resultFormat="e4x". Below is
    my code. And LINE 111 gives error. And the error message is below.
    And the xml returned from the web service is below.
    Error: Error #2093: The Proxy class does not implement
    getDescendants. It must be overridden by a subclass.
    at Error$/throwError()
    at flash.utils::Proxy/
    http://www.adobe.com/2006/actionscript/flash/proxy::getDescendants()
    at
    LogIn/loginHandler()[P:\JIMMY-FLEX\Flex_LogIn\LogIn.mxml:58]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.rpc::AbstractService/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\A bstractService.as:232]
    at mx.rpc::AbstractOperation/
    http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\3.0.x\frameworks\pro jects\rpc\src\mx\rpc\AbstractOperation.as:193
    at mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::resultHandler()[E:\dev\3.0.x\frameworks\projec ts\rpc\src\mx\rpc\AbstractInvoker.as:191
    at
    mx.rpc::Responder/result()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Responder.as:4 1]
    at
    mx.rpc::AsyncRequest/acknowledge()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncR equest.as:74]
    at
    DirectHTTPMessageResponder/completeHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\ messaging\channels\DirectHTTPChannel.as:381]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="100%" height="100%" xmlns:ns1="*">
    <mx:Script>
    <![CDATA[
    import mx.rpc.events.ResultEvent;
    namespace FaciNS = "
    http://FaciNet.com/";
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.soap.WebService;
    //public var __xmlResult:XML;
    public var ws:WebService;
    public function Log_In(UN:String, PW:String):void
    ws.Login(UN, PW);
    public function getLoginData():void {
    loadWSDL();
    Log_In(UN.text, PW.text);
    public function loadWSDL():void
    ws = new mx.rpc.soap.WebService();
    ws.wsdl = "
    http://localhost:50779/VS2008_LogIn/Service.asmx?wsdl"
    ws.useProxy = false;
    ws.addEventListener("fault", faultHandler);
    ws.addEventListener("result", loginHandler);
    ws.loadWSDL();
    public function loginHandler(e:ResultEvent):void {
    var wkSouID:String = e.result[0]..SouID; // LINE 111
    trace(wkSouID);
    public function faultHandler(event:FaultEvent):void
    dispatchEvent(new Event("Error"));
    public function checkUser(UName:String, PWord:String):void {
    getLoginData();
    ]]>
    </mx:Script>
    <mx:Panel id="loginPanel" horizontalScrollPolicy="off"
    verticalScrollPolicy="off" width="400" height="200" x="97"
    y="66">
    <mx:Form id="loginForm" width="100%" height="100%">
    <mx:FormItem label="Username:" color="red">
    <mx:TextInput id="UN" />
    </mx:FormItem>
    <mx:FormItem label="Password:" color="red">
    <mx:TextInput id="PW"/>
    </mx:FormItem>
    </mx:Form>
    <mx:ControlBar>
    <mx:Spacer width="100%" id="spacer1"/>
    <mx:Button label="Login" id="loginButton"
    click="checkUser(UN.text, PW.text)" />
    </mx:ControlBar>
    </mx:Panel>
    </mx:Canvas>
    <?xml version="1.0" encoding="utf-8" ?>
    - <ArrayOfLogIn xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="
    http://www.w3.org/2001/XMLSchema"
    xmlns="
    http://tempuri.org/">
    - <LogIn>
    <SouID>2</SouID>
    <LogInUserID>3</LogInUserID>
    <LogInUserName>samlam</LogInUserName>
    <Password>abc123</Password>
    <DialectID>4</DialectID>
    <CreatedByUserID>5</CreatedByUserID>
    <UpdatedByUserID>5</UpdatedByUserID>
    </LogIn>
    - <LogIn>
    <SouID>3</SouID>
    <LogInUserID>4</LogInUserID>
    <LogInUserName>samlam</LogInUserName>
    <Password>abc123</Password>
    <DialectID>4</DialectID>
    <CreatedByUserID>5</CreatedByUserID>
    <UpdatedByUserID>5</UpdatedByUserID>
    </LogIn>
    </ArrayOfLogIn>

  • Capturing xml data returned from a url post in a jsp page

    Hi,
    We are writing a interface which will capture data returned from an other website. The data returned will be in XML form.
    http://www.ecrm.staging.twii.net/ecrmfeed/ecrmfeedservices.sps?eCRMFeedInputXml=<twii><ecrmfeedinput><data%20method="Login"><username>[email protected]</username><password>password</password></data></ecrmfeedinput></twii>
    When the above url is executed in a browser, it required NT authentication. The username and password is getcouponed. Once the username and password is fed, we can see the output in the form of a xml. We require the xml in a String variable in a jsp page. We need to know the steps on how to execute the url in a jsp page. We used the url object to do the same, but we get a error saying "java.net.UnknownHostException: www.ecrm.staging.twii.net".
    Can anyone help?
    Regards,
    Gopinath.

    Hi,
    I would like to know if I can use the java.net package to get anything out of a website which requires authentication. In this case NT authentication.
    Thanks in advance,
    Gopinath.

  • XML in Oracle 9i (best method to return a xml file from a table query)

    Hello.
    What is the best method to query a table, or set of tables (that will return thousands of rows) using xml in oracle? (best performance)
    I'm currently using DBMS_XMLGen, is there a better method ?

    I think, if your talking about generating XML, that you should use XMLElement, XMLForest, etc. to create your XML.
    Lets assume that you base is relational data, then maybe the following great example will give you an idea how to do it : Re: Generate XML Schema from oracle tables
    As michaels pointed out (did you read the link/ URL given?), the general expectancy is that the packages will be less and less important. So also maintenance wise the XMLElement, etc way will be the best, also for the future, maintainable method.

  • Receive XML file from CIDX adapter and Post to SAP as IDoc using XI

    I have scenario where we will receive the xml file from CIDX adapter. I need to take the xml from CIDX, do the Database Lookup and post it to SAP as IDoc.
    Any technical documentaion or step-by-step process documents can be very helpfull to me, since I am new to XI
    Thanks
    SP

    Lookup in XI is used to call the target data storage system and get data from there to your mapping programme.
    In XI you can do Lookup in Message Mapping, Java Mapping and in XSLT Mapping. Previously Lookup in XI was system dependent. But now what ever the system are i.e. SAP system or non-sap system(Oracle,MS SQL etc) lookup API are same.
    Overview of Lookup
    - Lookups are used to identify/request the data from mapping program.
    - It interrupt the process and looking for data which was stored in target system.
    - It get that data and comeback to process and continue with that data.
    Types of Lookups in XI
    - JDBC Lookup: JDBC lookup is used for accessing data from database (non SAP).
    - RFC Lookup: RFC lookup is used for accessing the SAP Data.
    - SOAP Lookup: SOAP lookup is used for accessing data from Webservice
    Steps to perform Lookup in Mapping
    Import package com.sap.aii.mapping.lookup.*;
    Create connection to the target Database system.
    // Determine communication channel created in ID
    Channel channel = null;
    channel = LookupService.getChannel("DB-SYSTEM-NAME","DB-CHANNEL-NAME");
    // Get system accessor for the channel.
    DataBaseAccessor accessor = null;
    accessor = LookupService.getDataBaseAccessor(channel);
    Build the Query String.
    Getting Result
    // Execute Query and get the values.
    DataBaseResult resultSet = null;
    resultSet = accessor.execute(Query);

  • Movement type 453 (Transfer posting to own stock from returns from customer

    Hi all,
    I have problem in goods movement type 453 (Transfer posting to own stock from returns from customer)
    it picking from from profit center from in material master under  sales:general/plant tab   but we need picking from based on account assignment group  in the material maser sales org.2.
    Other movement types are picking from based on account assignment group only . for that what i can do please help me on this.
    K.Satish

    Hi,
    In Co controlling are the automatic account assignment is only the default and it on the Priority.
    if you think what is picked up from the mm is wrong.
    the best way out will be to go with the substitution  rule.
    based on the movement type use the rule.
    hope this is clear , assign points.
    With regards
    Krishna

  • How do I Fix This XML Error From my corrupt Premiere Project?

    So I've been trying to recover a corrupt Premiere Pro CC project for the past 3 and a half hours and I think I'm almost there. I kept getting the error "The Project appears to be damaged, it cannot be opened."
    Back Story & Info
    After hours of searching and trying to repair the project I stumbled upon a thread that said to use an app called "XMLWrench" to repair the raw XML file of the project.
    Upon trying to open the project's XML data in XMLWrench I was greeted with complete and utter non-sense code composed of 90% random symbols and alien looking text. But, upon further research I found out that Premiere Pro CC vs CS6 stores the XML data in a some what compressed format. So what I did was add the file extension ".zip" to the end of my project and tried to extract it. Success! The extracted file was the un-compressed XML file which I was able to open and recognize as a Premiere Project.
    Now here's where I need help
    Now that I can import the XML file from the project into XMLWrench I'm able to scan it for errors. Apparently there appears to be only one. (Thank god, I think...). I'll add an image of the error message below along with a download link to the actually XML file to examine.
    Project XML File: MEGA
    Thank you!
    - Matt

    i was able to rename extension to .prproj and it opened in premiere. what happens if you do that?  i did open and save it from notepad++, but that shouldn't have done anything to the file...

  • How to read XML schema from databank to post it in WebService Test

    Hi Guys,
    Does anyone have a solution to read the XML schema from databank (.csv file) and post it in a Web Service test case.
    I mean by using utilities.loadXML, something like that?

    SAXParserFactory spf = SAXParserFactory.newInstance();
    spf.setNamespaceAware(true);
    XMLReader xmlReader = spf.newSAXParser().getXMLReader();
    and set the content handler

  • Getting XML back from xMII from a HTTP POST

    I have a need to get just XML data from xMII. Ideally, I would go to xMII with a properly formatted HTTP POST and get back an xml payload with the results of the QT execution. How do I do this?

    This may help:
    <a href="/people/abesh.bhattacharjee/blog/2007/03/05/ajax-xmii-illuminator-services-a-database-browser:///people/abesh.bhattacharjee/blog/2007/03/05/ajax-xmii-illuminator-services-a-database-browser

  • Web service Response data - how to extract fields from XMl returned

    Hi,
        I am using a web service in adobe forms to get currency , by entering country name. I generated the fields i form by clicking on 'Generate fields ' it automatically generated the biding.
    The problem is that in response field , i get the whole XML , wheras i just need the currecny value.
    Below is the o/p.
    <NewDataSet>
      <Table>
        <Name>India</Name>
        <CountryCode>in</CountryCode>
        <Currency>Rupee</Currency>
        <CurrencyCode>INR</CurrencyCode>
      </Table>
      <Table>
        <Name>India</Name>
        <CountryCode>in</CountryCode>
        <Currency>Rupee</Currency>
        <CurrencyCode>INR</CurrencyCode>
      </Table>
    </NewDataSet>
    I just want INR to be shown in the text field?
    Plz help..

    You might have to tweak this code some to get it to work, but it should at least lay the groundwork for solving your problem:
    Code Snippet
    /* Declare an XmlNode object and initialize it with the XML response from the GetListItems method. The last parameter specifies the GUID of the Web site containing the list. Setting it to null causes the Web site specified by the Url property to be used.*/
                System.Xml.XmlNode nodeListItems =
                    MyListsService.GetListItems
                    (listName, viewName, query, viewFields, rowLimit, queryOptions, null);
    System.Xml.XmlDocument xd = new System.Xml.XmlDocument();
    xd.LoadXml(nodeListItems.OuterXml);
    System.Xml.XmlNamespaceManager nm = new System.Xml.XmlNamespaceManager(xd.NameTable);
    nm.AddNamespace("rs", "urn:schemas-microsoft-com:rowset");
    nm.AddNamespace("z", "#RowsetSchema");
    nm.AddNamespace("rootNS", "http://schemas.microsoft.com/sharepoint/soap");
    System.Xml.XmlNodeList nl = xd.SelectNodes("/rootNS:listitems/rs:data/z:row", nm);
    foreach(System.Xml.XmlNode listItem in nl)
      listBoxProsjekter.Items.Add(listItem.OuterXml);
    I hope this helps!
    Please look into the following site for more info:
    http://msdn2.microsoft.com/en-us/library/4bektfx9(vs.80).aspx

  • Problem with XML replied from web services

    <cfset ServiceResult = "">
    <cfset xmltext=xmlParse('<?xml version="1.0" ?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Body>
    <runProcess xmlns="http://3e.pl/ADInterface">
    <ModelRunProcessRequest>
    <ModelRunProcess AD_Process_ID="1000000" AD_Menu_ID="0" AD_Record_ID="0" DocAction="">
      <serviceType>IInvoice</serviceType>
        <ParamValues>
             <field column="DocumentNo">
                    <val>#DOCNO_P#</val>
             </field>
        </ParamValues>
      </ModelRunProcess>
    <ADLoginRequest>
      <user>WebService</user>
      <pass>WebService</pass>
      <lang>en_US</lang>
      <ClientID>11</ClientID>
      <RoleID>50004</RoleID>
      <OrgID>11</OrgID>
      <WarehouseID>103</WarehouseID>
      <stage />
      </ADLoginRequest>
      </ModelRunProcessRequest>
      </runProcess>
      </SOAP-ENV:Body>
      </SOAP-ENV:Envelope>')>
    <cfhttp method="post" url="http://192.168.1.11:8080/ADInterface/services/ModelADService">
    <cfhttpparam type ="XML" value=#xmltext#>
    </cfhttp>
    <cfset ServiceResult = cfhttp.fileContent>
    from the code above, i will get replied and store into ServiceResult as below
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soap:Body><ns1:runProcessResponse
    xmlns:ns1="http://3e.pl/ADInterface"><RunProcessResponse
    xmlns="http://3e.pl/ADInterface" IsError="false">
    <Summary>99 : Transaction Failed C_InvoiceLine</Summary><LogInfo />
    </RunProcessResponse></ns1:runProcessResponse></soap:Body></soap:Envelope>
    actually what i need is only those information inside the <summary> tag. How can i get the result i need?
    Any expert can give their advies? thank you.

    You will need to use CF's built-in XML tags and functions. See sample below:
    <cfsavecontent variable="serviceResult"><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soap:Body><ns1:runProcessResponse
    xmlns:ns1="http://3e.pl/ADInterface"><RunProcessResponse
    xmlns="http://3e.pl/ADInterface" IsError="false">
    <Summary>99 : Transaction Failed C_InvoiceLine</Summary><LogInfo />
    </RunProcessResponse></ns1:runProcessResponse></soap:Body></soap:Envelope>
    </cfsavecontent>
    <!--- verify content if well formed XML --->
    <cfif IsXml(serviceResult)>
        <!--- create an XML object that CF's XML functions can use --->
        <cfset xmlResult=XmlParse(serviceResult, true) />
        <!--- check for a summary element, will return an array of matching objects
        Note that second parameter for XmlSearch function is an Xpath expresssion
        For an overview of Xpath see http://msdn.microsoft.com/en-us/library/ms256115.aspx
        For seaching XML which uses namespaces in CF see: http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2008/9/26/XMLSearch-Specify-xmlns-n amespaces-in-an-xPath-Search
         --->
        <cfset summarySearch=XmlSearch(xmlResult, "//*[local-name()='Summary' and namespace-uri()='http://3e.pl/ADInterface']") />
        <cfif ArrayLen(summarySearch) gt 0>
            Summary found: <cfoutput>#summarySearch[1].XmlText#</cfoutput>
        <cfelse>
            Summary not found
        </cfif>  
    </cfif>

  • Invalid XML returned for a user's Master Category list using Office 365 and EWS API (C#)

    Hi all
    Having a problem with one user's Master Category List. The Xml returned by the UserConfiguration call is corrupted (see below - superfluous /categories tag!) It is fine for other users.
    Wondering if anyone has seen this before?
    Thanks
    James
    <?xml version="1.0"?>
    <categories xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" default="" lastSavedSession="2" lastSavedTime="2013-12-18T15:39:00.837" xmlns="CategoryList.xsd">
    <category name="Red Category" color="0" keyboardShortcut="0" usageCount="6" lastTimeUsedNotes="1601-01-01T00:00:00.000" lastTimeUsedJournal="1601-01-01T00:00:00.000" lastTimeUsedContacts="1601-01-01T00:00:00.000" lastTimeUsedTasks="1601-01-01T00:00:00.000" lastTimeUsedCalendar="1601-01-01T00:00:00.000" lastTimeUsedMail="2013-12-17T10:51:29.974" lastTimeUsed="2013-12-17T10:51:29.974" lastSessionUsed="3" guid="{00000000-0000-0000-0000-000000000000}"/>
    </categories>
    ="Blue Category" color="7" keyboardShortcut="0" usageCount="2" lastTimeUsedNotes="1601-01-01T00:00:00.000" lastTimeUsedJournal="1601-01-01T00:00:00.000" lastTimeUsedContacts="1601-01-01T00:00:00.000" lastTimeUsedTasks="1601-01-01T00:00:00.000" lastTimeUsedCalendar="1601-01-01T00:00:00.000" lastTimeUsedMail="1601-01-01T00:00:00.000" lastTimeUsed="2012-03-26T08:16:46.052" lastSessionUsed="0" guid="{00000000-0000-0000-0000-000000000000}" renameOnFirstUse="1"/>
    <category name="Kids" color="4" keyboardShortcut="0" usageCount="7" lastTimeUsedNotes="1601-01-01T00:00:00.000" lastTimeUsedJournal="1601-01-01T00:00:00.000" lastTimeUsedContacts="1601-01-01T00:00:00.000" lastTimeUsedTasks="1601-01-01T00:00:00.000" lastTimeUsedCalendar="2012-03-26T08:49:30.305" lastTimeUsedMail="2012-09-03T14:33:29.077" lastTimeUsed="2012-09-03T14:33:29.077" lastSessionUsed="2" guid="{00000000-0000-0000-0000-000000000000}"/>
    <category name="Purple Category" color="8" keyboardShortcut="0" usageCount="2" lastTimeUsedNotes="1601-01-01T00:00:00.000" lastTimeUsedJournal="1601-01-01T00:00:00.000" lastTimeUsedContacts="1601-01-01T00:00:00.000" lastTimeUsedTasks="1601-01-01T00:00:00.000" lastTimeUsedCalendar="1601-01-01T00:00:00.000" lastTimeUsedMail="1601-01-01T00:00:00.000" lastTimeUsed="2012-03-26T08:16:46.052" lastSessionUsed="0" guid="{00000000-0000-0000-0000-000000000000}" renameOnFirstUse="1"/>
    <category name="Orange Category" color="1" keyboardShortcut="0" usageCount="6" lastTimeUsedNotes="1601-01-01T00:00:00.000" lastTimeUsedJournal="1601-01-01T00:00:00.000" lastTimeUsedContacts="1601-01-01T00:00:00.000" lastTimeUsedTasks="1601-01-01T00:00:00.000" lastTimeUsedCalendar="1601-01-01T00:00:00.000" lastTimeUsedMail="2012-09-03T14:35:33.995" lastTimeUsed="2012-09-03T14:35:33.995" lastSessionUsed="2" guid="{00000000-0000-0000-0000-000000000000}"/>
    <category name="Yellow Category" color="3" keyboardShortcut="0" usageCount="6" lastTimeUsedNotes="1601-01-01T00:00:00.000" lastTimeUsedJournal="1601-01-01T00:00:00.000" lastTimeUsedContacts="1601-01-01T00:00:00.000" lastTimeUsedTasks="1601-01-01T00:00:00.000" lastTimeUsedCalendar="1601-01-01T00:00:00.000" lastTimeUsedMail="2012-09-03T14:35:57.543" lastTimeUsed="2012-09-03T14:35:57.543" lastSessionUsed="2" guid="{00000000-0000-0000-0000-000000000000}"/>
    <category name="Synchronised with Infinity" color="19" keyboardShortcut="0" usageCount="0" lastTimeUsedNotes="1601-01-01T00:00:00.000" lastTimeUsedJournal="1601-01-01T00:00:00.000" lastTimeUsedContacts="1601-01-01T00:00:00.000" lastTimeUsedTasks="1601-01-01T00:00:00.000" lastTimeUsedCalendar="1601-01-01T00:00:00.000" lastTimeUsedMail="1601-01-01T00:00:00.000" lastTimeUsed="1601-01-01T00:00:00.000" lastSessionUsed="0" guid="{00000000-0000-0000-0000-000000000000}"/>
    <category name="Processed by iCapture" color="20" keyboardShortcut="0" usageCount="0" lastTimeUsedNotes="1601-01-01T00:00:00.000" lastTimeUsedJournal="1601-01-01T00:00:00.000" lastTimeUsedContacts="1601-01-01T00:00:00.000" lastTimeUsedTasks="1601-01-01T00:00:00.000" lastTimeUsedCalendar="1601-01-01T00:00:00.000" lastTimeUsedMail="1601-01-01T00:00:00.000" lastTimeUsed="1601-01-01T00:00:00.000" lastSessionUsed="0" guid="{00000000-0000-0000-0000-000000000000}"/>
    </categories>

    If its only one user then its probably unlikely that EWS is at fault and what is happening is because its been corrupted in the MAPI property for Master categories list. (eg from the looks of some of the entries "Synchronised with Infinity" there is a third
    party app they may have modified this list ?). Exchange doesn't validate what you try to post to that property so if something has posted bad data then that's what you'll end up with.
    I would suggest you open the Master categories list in MFCMapi see
    http://blogs.technet.com/b/outlooking/archive/2010/05/14/useful-tools-while-troubleshooting-outlook-issues-3-mfcmapi.aspx and verify what's in the property. If it looks okay in a MAPI editor and bad in EWS then it maybe a bug but you need to be able to
    reproduce it with other users, more then likely you just need to delete the Master Caterogies list and start again for that user.
    Cheers
    Glen

  • How to get Hierarchical XML File from a Database Join Query !

    Hi,
    How can i get a Hierarchical XML File from a Database Join Query ?
    Any join query returns repeated values as below:
    BD17:SQL>select d.dname, e.ename, e.sal
    2 from dept d
    3 natural join
    4 emp e
    5 /
    DNAME ENAME SAL
    ACCOUNTING CLARK 2450
    ACCOUNTING KING 5000
    ACCOUNTING MILLER 1300
    RESEARCH SMITH 800
    RESEARCH ADAMS 1100
    RESEARCH FORD 3000
    RESEARCH SCOTT 3000
    RESEARCH JONES 2975
    SALES ALLEN 1600
    SALES BLAKE 2850
    SALES MARTIN 1250
    SALES JAMES 950
    SALES TURNER 1500
    SALES WARD 1250
    14 rows selected.
    We tried use DBMS_XMLQUERY to generate a xml file, but it was unable to get xml in Hierarchical format.
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    - <ROWSET>
    - <ROW num="1">
    <DNAME>ACCOUNTING</DNAME>
    <ENAME>CLARK</ENAME>
    <SAL>2450</SAL>
    </ROW>
    - <ROW num="2">
    <DNAME>ACCOUNTING</DNAME>
    <ENAME>KING</ENAME>
    <SAL>5000</SAL>
    </ROW>
    - <ROW num="3">
    <DNAME>ACCOUNTING</DNAME>
    <ENAME>MILLER</ENAME>
    <SAL>1300</SAL>
    </ROW>
    - <ROW num="4">
    <DNAME>RESEARCH</DNAME>
    <ENAME>SMITH</ENAME>
    <SAL>800</SAL>
    </ROW>
    - <ROW num="5">
    <DNAME>RESEARCH</DNAME>
    <ENAME>ADAMS</ENAME>
    <SAL>1100</SAL>
    </ROW>
    - <ROW num="6">
    <DNAME>RESEARCH</DNAME>
    <ENAME>FORD</ENAME>
    <SAL>3000</SAL>
    </ROW>
    - <ROW num="7">
    <DNAME>RESEARCH</DNAME>
    <ENAME>SCOTT</ENAME>
    <SAL>3000</SAL>
    </ROW>
    - <ROW num="8">
    <DNAME>RESEARCH</DNAME>
    <ENAME>JONES</ENAME>
    <SAL>2975</SAL>
    </ROW>
    - <ROW num="9">
    <DNAME>SALES</DNAME>
    <ENAME>ALLEN</ENAME>
    <SAL>1600</SAL>
    </ROW>
    - <ROW num="10">
    <DNAME>SALES</DNAME>
    <ENAME>BLAKE</ENAME>
    <SAL>2850</SAL>
    </ROW>
    - <ROW num="11">
    <DNAME>SALES</DNAME>
    <ENAME>MARTIN</ENAME>
    <SAL>1250</SAL>
    </ROW>
    - <ROW num="12">
    <DNAME>SALES</DNAME>
    <ENAME>JAMES</ENAME>
    <SAL>950</SAL>
    </ROW>
    - <ROW num="13">
    <DNAME>SALES</DNAME>
    <ENAME>TURNER</ENAME>
    <SAL>1500</SAL>
    </ROW>
    - <ROW num="14">
    <DNAME>SALES</DNAME>
    <ENAME>WARD</ENAME>
    <SAL>1250</SAL>
    </ROW>
    </ROWSET>
    Thank you for some help.
    Nelson Alberti

    Hi,
    I wrote a general ABAP program which can be configured to grab contrent from an URL and post that content as a new PI message into the integration adapter .... from that point on normal PI configuration can be used to route it to anywhere ...
    It can be easily scheduled as a background job to grab content on a daily basis etc ...
    Regards,
    Steven

  • Load XML file from addon domain without cross-domain Policy file

    Hello.
    Assuming that there are two addon domains on the same server: /public_html/domain1.com       and      /public_html/domain2.com
    I try to load XML file from domain2.com into domain1.com without using cross-domain policy file (since it doesn’t work on xml files in my case).
    So the idea is to use php file in order to load XML and read it back to flash.
    I’ve found an interesting scripts that seems to do the job but unfortunately I can't get it to work. In my opinion there is somewhere problem with AS3 part. Please take a look.
    Here are the AS3/PHP scripts:
    AS3 (.swf in www.domain1.com):
    // location of the xml that you would like to load, full http address
    var xmlLoc:String = "http://www.domain2.com/MyFile.xml";
    // location of the php xml grabber file, in relation to the .swf
    var phpLoc:String = "loadXML.php";
    var xml:XML;
    var loader:URLLoader = new URLLoader();
    var request:URLRequest = new URLRequest(phpLoc+"?location="+escape(xmlLoc) );
    loader.addEventListener(Event.COMPLETE, onXMLLoaded);
    loader.addEventListener(IOErrorEvent.IO_ERROR, onIOErrorHandler);
    loader.load(request);
    function onIOErrorHandler(e:IOErrorEvent):void {
        trace("There was an error with the xml file "+e);
    function onXMLLoaded(e:Event):void {
        trace("the rss feed has been loaded");
        xml = new XML(loader.data);
        // set to string, since it is passed back from php as an object
        xml = XML(xml.toString());
        xml_txt.text = xml;
    PHP (loadXML.php in www.domain1.com):
    <?php
    header("Content-type: text/xml");
    $location = "";
    if(isset($_GET["location"])) {
        $location = $_GET["location"];
        $location = urldecode($location);
    $xml_string = getData($location);
    // pass the url encoded vars back to Flash
    echo $xml_string;
    //cURLs a URL and returns it
    function getData($query) {
        // create curl resource
        $ch = curl_init();
        // cURL url
        curl_setopt($ch, CURLOPT_URL, $query);
        //Set some necessary params for using CURL
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
       //Execute the curl function, and decode the returned JSON data
        $result = curl_exec($ch);
        return $result;
        // close curl resource to free up system resources
        curl_close($ch);
    ?>

    I think you might be right about permissions/settings on the server for php. Unfortunately I'm not allowed to adjust them.
    So I wrote my own script - this time I used file path instead of http address of the XML file.  It works fine in my case.
    Here it is:
    XML file on domain2.com:
    <?xml version="1.0" encoding="UTF-8"?>
    <gallery>
        <image imagePath="galleries/gallery_1/images/1.jpg" thumbPath="galleries/gallery_1/thumbs/1.jpg" file_name= "1"> </image>
        <image imagePath="galleries/gallery_1/images/2.jpg" thumbPath="galleries/gallery_1/thumbs/2.jpg" file_name= "2"> </image>
        <image imagePath="galleries/gallery_1/images/3.jpg" thumbPath="galleries/gallery_1/thumbs/3.jpg" file_name= "3"> </image>
    </gallery>
    swf  on domain1.com:
    var imagesXML:XML;
    var variables:URLVariables = new URLVariables();
    var varURL:URLRequest = new URLRequest("MyPHPfile.php");
    varURL.method = URLRequestMethod.POST;
    varURL.data = variables;
    var MyLoader:URLLoader = new URLLoader;
    MyLoader.dataFormat =URLLoaderDataFormat.VARIABLES;
    MyLoader.addEventListener(Event.COMPLETE, XMLDone);
    MyLoader.load(varURL);
    function XMLDone(event:Event):void {
        var imported_XML:Object = event.target.data.imported_XML;
        imagesXML = new XML(imported_XML);
       MyTextfield_1.text = imagesXML;
       MyTextfield_2.text = imagesXML.image[0].attribute("thumbPath");  // sample reference to attribute "thumbPath" of the first element
    php file on domain1.com:
    <?php
    $xml_file = simplexml_load_file('../../domain2.com/galleries/gallery_1/MyXMLfile.xml');  // directory to XML file on the same server
    $imported_XML = $xml_file->asXML();
    print "imported_XML=" . $imported_XML;
    ?>
    Regards
    PS: for those who read the above discussion: the first and the second script work but you must test which one is better in your situation. The first script will also work between two domains on different servers. No cross domain policy file needed.

Maybe you are looking for

  • Forms Migration Document 6i to 10g?

    I have searched OTN and Metalink and cannot find a migration document. I'm installing Forms/Reports 9.0.4 on a new server and moving all my 6i forms/reports. Is there a migration document telling me what changes need to be made in forms/reports for 9

  • Is it possible to download a mail(.eml) from outlook 365 using exchange service and store in database using c#

    Hi All, I have a outlook mail account ex:- my mail account id is [email protected] , using c# code and Microsoft.Exchange.WebServices ,  I want to download entair email and want to save this email in database , is it possible suggest me how can I go

  • External Table Application

    Trying to install the External_Table_Simple_0.9 application but I am receiving errors. I installed the application but it could not see the flat file, so I de-installed and on re-install I got these errors. report error: ORA-29913: error in executing

  • Course Material

    Hello all, Can any one please send me the below course material C_TAW12  mySAP Technology - ABAP Workbench (2003) . My mail id is : [email protected] Thank you. Regards, Krishna Message was edited by: Krishnakumar

  • HT1296 I have the Good app how do I sync with my home pc

    how do I sync my iphone 4s with the Good app and my home pc