DIR APi

wht is the API to determine the existence of the DIR??

Pramod,
Looks like you are in bad need of points,
Suggest you from hunting points this way.
Please see to that your Id could be blocked
if you do not stop posting questions and answering them
using another id all by your self.
Request you to stop this right away.
thanks
Aravinda

Similar Messages

  • Understanding of DIR API

    Hi All,
    It is really a good experience to implement/use of DIR API concept in PI 7.0. With the help of the enhanced feature I created 80 File channels with all mandatory parameters in less than 30 seconds.
    But still I'm have not came across any DIR API classes or interfaces documentation which tells how to change the created CC. I mean which class do I use to change the created channel, what is the interface or class name for reading open change list and so on.
    If there is any link that tells what class on interface is/are used for implementing DIR API then please share that link.
    Currently, I imported configuration objects in Quality and I want to change File CC parameters (like FTP server name, fileName, directory etc). So in this case, first I have to read the open change list and then I have to change all/required File channels using interface programming. Please share your input if you already implemented such case.
    In advance, immense thank for yours appropriate replies.
    Regards,
    Farooq
    Edited by: Farooq Farooqui on Jul 28, 2009 1:23 PM
    Edited by: Farooq Farooqui on Jul 28, 2009 1:24 PM

    Hi,
    When you have to change any objects you should create a  change list and then use the change option on the communication channel wsdl.
    Or try to see [Making Mass Configurations in the Integration Directory using Directory API; or [https://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/109a3b6e-1c37-2b10-9388-c12d328b658c]
    Regards
    Daniel Graversen
    [http://www.figaf.com]

  • Dir API - Web services Time out

    Hi All,
    I am using Dir API web services to make some mass updates to Config objects. I have developed a client in Java and was able to access/edit the ID objects. The problem I am facing is since the number of objects in the change list is huge ( >1000),  the web services time out.
    I tried to set the time out parameter for the web service call using
    context.put(BindingProviderProperties.REQUEST_TIMEOUT, 600*1000);
    also,
    context.put("com.sun.xml.ws.connect.timeout", 600*1000);
    context.put("com.sun.xml.ws.request.timeout", 600*1000);
    None of them seem to have any impact.
    Any ideas what is the correct way to adjust this time out behaviour?
    Thanks
    Jai

    Hi RK,
    Thanks for that. I am not looking at changing the time outs at Server. I am just interested in changing the time outs for the request I make from the client. The point is I do not want to impact any other services running in the server.
    In WS Navigator, it seems possible to change the time out value using Invocation parameters. (Did not try this yet!!)
    So it must be possible to set the time out for the request from the client.
    Thanks
    Jai
    Edited by: Jaishankar on Aug 25, 2011 2:49 PM

  • Implementing DIR API functionalites using IP/BPM.

    Hi all,
    As we know, implementing DIR API in either 7.0 or 7.1 is very efficient way to create or to modify bulk of configuration objects. In order to do so, there can be many options, such as Java Application, Webdynpro, just to name a few.
    But, instead of above solutions, if we develop an IP/BPM in XI will it makes some sense? An integration process, that will calls respective J2EE services, for instance, CommunicationChannelService, ChangeList Service, etc. and perform required task.
    Regards,
    FF

    Hi,
    When you have to change any objects you should create a  change list and then use the change option on the communication channel wsdl.
    Or try to see [Making Mass Configurations in the Integration Directory using Directory API; or [https://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/109a3b6e-1c37-2b10-9388-c12d328b658c]
    Regards
    Daniel Graversen
    [http://www.figaf.com]

  • DIR API - Java client code question

    Dear all,
    I am trying to create a communication channel using the directory API using the PI7.1 WSDL(tried to import wsdl from URL ; also tried from ESR ext def n manualy defining the binding). Implementation is using Java proxy.
    The create() method of CommunicationChannelServiceVi expects a CommunicationChannelCreateChangeIn object as argument. Now this class doesnu2019t have a set method for the communicationChannel attribute.  So I canu2019t see how we pass on the data to be used to create the communication channel, e.g communication channel name or description or other properties of it.
    Could someone explain why is that / advice how to go about it please?
    Treid with NWDS and Netbeans IDEs but get the same output.
    Cheers
    dan
    PS: I have seen the documentation at http://help.sap.com/saphelp_nwpi71/helpdata/EN/46/6dca42e5c269dfe10000000a11466f/frameset.htm  and the blog(/people/william.li/blog/2008/10/20/directory-api-development--part-1-of-3) by William, both of them are on PI7.0 so please donu2019t paste these links back

    Forgot to close the thread for long... sorry !
    The reason why there isnu2019t a set method is that, the value we are trying to set is a List(the thought behind it is - if you are allowed to set it, you could essentially overwrite what is already in it).
    There is a get method which will return a reference to the list, that can be used to add values.
    cheers
    danus

  • Receiver determination issue with PI Directory API

    Hi Guys,
    I was trying to use the PI Directory webservice API to automatically build Integration Directory Objects. I found an issue when creating Receiver Determination Object. Here are the details:
    My scenario is one to many, one Interface with several receiver Parties/Business Components. so I created a Receiver Determination with one party as the receiver using regular Integration Builder Tool and  I was trying to add more receiver by Directory API for the remaining receivers to the one which I manually. But I did not a way or option to add more to the receivers list, when I tried that it was simply overwriting the existing one when I used the Change Operation but when I try to use create Operation it complains that the Object already exists..
    Do you have any idea what is the better way use the API to add more receivers to the list.
    Thanks,
    Laxman

    There is no delta changes allowed through Dir API. We had to read the RD and change with additional receivers.
    Thanks,
    Laxman

  • Program _____.MDS not registered..PI 7.1 EHP 1-MDM 7.1 Integration-ABAP API

    Hi,
    I am on the way of integrating ABAP API in PI 7.1 EHP 1 with MDM 7.1
    I installed MDM ABAP API in PI system.
    In transaction MDMAPIC, created MDM Server Connection with default port, DBMS Hosts and MDM Repository.
    After I did the above tasks, I tested the RFC Connection, But its failed with the following error.
    Connection Test MDM_API_GEN_DEFIANCEDEP  
    Connection Type TCP/IP Connection  
    Logon     Connection Error
    Error Details     Error when opening an RFC connection (CPIC-CALL: 'ThSAPOCMINIT' : cmRc=2 thRc=67
    Error Details     ERROR: program DEFIANCEDEP.MDS not registered
    Error Details     LOCATION: SAP-Gateway on host DEFIANCEDPI / sapgw00
    Error Details     DETAIL: TP DEFIANCEDEP.MDS not registered
    Error Details     COMPONENT: SAP-Gateway
    Error Details     COUNTER: 87
    Error Details     MODULE: gwr3cpic.c
    Error Details     LINE: 1714
    Error Details     RETURN CODE: 679
    Error Details     SUBRC: 0
    Error Details     RELEASE: 711
    Error Details     TIME: Sat Mar 12 13:53:55 2011
    Error Details     VERSION: 2
    Appreciated if replied with the proper resolution at the earliest.
    Thanks in Advance
    Pradeep Shetty

    Hi Kanstantsin Chernichenka,
    Thanks for your reply.
    I tried the given suggestion. And even restarted the PI and MDM system.
    Still, I am facing the same problem.
    My allow.ip file contains
    122.183.187.24;  
    122.183.187.25;
    115.242.211.112;
    115.184.2.47;
    My MDS.ini file contents are
    [MDM Server]
    XCS Ini Version=1
    Accelerator Dir=E:\usr\sap\MDM\MDS02\mdm\accelerators
    Log Dir=E:\usr\sap\MDM\MDS02\log
    Report Dir=E:\usr\sap\MDM\MDS02\mdm\reports
    Archive Dir=E:\usr\sap\MDM\MDS02\mdm\archives
    Distribution Root Dir=E:\usr\sap\MDM\MDS02\mdm\distributions
    Transport Dir=E:\usr\sap\MDM\MDS02\mdm\transport
    Modifications Dir=E:\usr\sap\MDM\MDS02\mdm\modifications
    Lexicon Dir=E:\usr\sap\MDM\MDS02\exe\Lexicons\
    Extra DBConnection Validation=True
    Log SQL Errors=True
    String Resource Dir=E:\usr\sap\MDM\MDS02\exe\LangStrings\
    Stemmer Install Dir=E:\usr\sap\MDM\MDS02\exe
    Wily Instrumentation=False
    Wily Instrumentation Level Threshold=10
    SLD Registration=True
    Skip Unchanged Records=False
    Autostart=0
    MDS Ini Version=1
    RELEASE\UseAssert=True
    Tracing Level=3
    LogViewer Format Logging=False
    LogViewer Format Tracing=False
    Trusted SAP Systems=DPI
    TrustFiles Dir=E:\usr\sap\MDM\MDS02\config
    Max Threads Per Operation=Auto
    Lock Account After Failed Password Attempts=5
    Lock Account Duration=1800
    Minimal Password Length=5
    Password Expiration Days=90
    Password Expiration Warning=7
    Disable Read Access To Corrupt Repositories=False
    MDS Scone=
    Log SQL Modifications=False
    Maximum DBMS Bind Count=512
    Oracle\Dll=OCI.DLL
    Allow Console to Retrieve Files=True
    Oracle Tablespace Files=1
    Default Interface Language Code=eng
    Default Interface Country Code=US
    Client Ping Timeout Minutes=0
    Inactive Client Timeout Minutes=30
    Value Retrieval Threshold=0
    Protect Family Nodes With Locked Data=False
    Number Of Stemmers Per Language=2
    TrexDllPath=
    Import Slice Size=2048
    Bulk Import Silo=True
    Safe Silo Mode=False
    Enable Change Stamp Logging=False
    Always Verify DBMS Connection Before Executing SQL Statements=False
    Disable Read Access To Repositories That Require Restart=False
    Family Retrieval Threshold=30000
    Enable Client Dictionaries=False
    Restricted Url For Client Export=
    Index_Page_Margin=10
    Default Slice Size=500
    Default Slice Wait Time MS=300
    Enable Slicing For Non-Bulk Operations=False
    Multithreaded Matching=True
    SAP RFC Gateways=
    [MDM Server\Databases\MDM_1MDMORCL_5_3_4_3]
    Port=2345
    Login=SYSTEM
    Password+=ES066H2NVHDCFSJ206LJ9I995SLBVSA21OMQPM0
    Stemmer Language=
    Stemmer Variant=
    Valid Keyword Chars=abcdefghijklmnopqrstuvwxyz0123456789
    Max Large Text Length=250000
    Number of Rows Per Fetch=100
    Max Initial MB to Retain=4
    Max Send Failure MB to Retain=4
    Workflow Detailed Report=False
    Mail Server=
    Mail SMTP Timeout=1
    Here I am requesting you to send your valuable feedback at the earliest.
    Thanks
    Pradeep Shetty

  • Getting the message "The sharing message is not supported." while sharing the calendar using ews managed api.

      public void ShareCalendar(Calendar calendar)
                ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013);
                  service.Credentials = new NetworkCredential("user1", "password", "domain");
                service.Url = new Uri("https://sampleUrl/ews/exchange.asmx");
                try
                    // Bind to the folder
                    //Folder folderStoreInfo;
                    //folderStoreInfo = Folder.Bind(service, calendar.ExchangeId);
                    //string EwsID = folderStoreInfo.Id.UniqueId;
                    string EwsID = calendar.FolderExchangeId;
                    // The value of folderidHex will be what we need to use for the FolderId in the xml file
                    AutodiscoverService autoDiscover = new AutodiscoverService(ExchangeVersion.Exchange2013);
                    autoDiscover.Credentials =  new NetworkCredential("user1", "password", "domain");
                    autoDiscover.RedirectionUrlValidationCallback = RedirectionUrlValidationCallback;
                    Dictionary<string, string> userSettings = GetUserSettings(autoDiscover);
                    string folderidHex = GetConvertedEWSIDinHex(service, EwsID, "[email protected]");
                    string domainName = string.Empty;
                    string mailBoxServer = string.Empty;
                    string userName = string.Empty;
                    foreach (var item in userSettings)
                        switch (item.Key)
                            case "UserDN":
                                domainName = item.Value.ToString();
                                break;
                            case "InternalMailboxServer":
                                mailBoxServer = item.Value.ToString();
                                break;
                            case "UserDisplayName":
                                userName = item.Value.ToString();
                                break;
                    string entryId = GetIntiatorEntryID(domainName);
                    string mailboxId = GetInvitationMailboxId(mailBoxServer, domainName);
                    string sharedFilePath = CreateSharingMessageAttachment(folderidHex, userName, entryId, mailboxId, "[email protected]", "calendar", calendar.FolderName);
                    // Create a new message
                    EmailMessage invitationRequest = new EmailMessage(service);
                    invitationRequest.Subject = "I'd like to share my calendar with you";
                    invitationRequest.Body = "Sent by Exchange Administrator on behalf of user";                
                    //invitationRequest.Culture = "en-US";
                    invitationRequest.Sensitivity = Sensitivity.Normal;
                    // Set a sharing specific property on the message
                    invitationRequest.ItemClass = "IPM.Sharing"; /* Constant Required Value [MS-ProtocolSpec] */
                    byte[] byteEntryId = HexStringToByteArray(entryId);
                    // This is the Guid of the Sharing Provider in Exchange, and it's value does not change
                    Guid binSharingProviderGuid = new Guid("{AEF00600-0000-0000-C000-000000000046}");
                    // Even though I don't think setting this property is mandatory, 
                    // it just seemed like the right thing to do and it works so I \
                    // ain't messin with it!                                        
                    byte[] byteSharingProviderGuid = binSharingProviderGuid.ToByteArray();
                    string strPRBODYHTML = "<html dir=\"ltr\">\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\r\n<meta name=\"GENERATOR\"
    content=\"MSHTML 8.00.7601.17514\">\r\n<style id=\"owaParaStyle\">P {\r\n   MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px \r\n}\r\n</style>\r\n</head>\r\n<body fPStyle=\"1\" ocsi=\"0\">\r\n<tt>\r\n<pre>SharedByUserDisplayName
    (SharedByUserSmtpAddress) has invited you to view his or her Microsoft Exchange Calendar.\r\n\r\nFor instructions on how to view shared folders on Exchange, see the following article:\r\n\r\nhttp://go.microsoft.com/fwlink/?LinkId=57561\r\n\r\n*~*~*~*~*~*~*~*~*~*\r\n\r\n</pre>\r\n</tt>\r\n<div>\r\n<div
    style=\"direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;\">this is a test message</div>\r\n</div>\r\n</body>\r\n</html>\r\n";
                    string strBODY = @"
    SharedByUserDisplayName (SharedByUserSmtpAddress) has invited you to view his or
    her Microsoft Exchange Calendar.
    For instructions on how to view shared folders on Exchange, see the
    following article:
    http://go.microsoft.com/fwlink/?LinkId=57561
    *~*~*~*~*~*~*~*~*~*
    test body
                    // Convert these to hex and binary equivelants to assign to their relevant
                    // extended properties
                    string hexPRBODYHTML = ConvertStringToHex(strPRBODYHTML);
                    byte[] binPRBODYHTML = HexStringToByteArray(hexPRBODYHTML);
                    Guid PropertySetSharing = Guid.Parse("00062040-0000-0000-C000-000000000046");//constant 
                    Guid PropertySetInternetHeaders = Guid.Parse("00020386-0000-0000-C000-000000000046");//constant
                    ExtendedPropertyDefinition PidLidSharingProviderGuidProperty = new ExtendedPropertyDefinition(PropertySetSharing, 0x8A01, MapiPropertyType.CLSID);
                    ExtendedPropertyDefinition ConversationIdProperty = new ExtendedPropertyDefinition(0x3013, MapiPropertyType.Binary);
                    // Sharing Properties (in order of reference according to protocol examples in: [MS-OXSHARE])
                    // Additional Property Constraints
                    // [MS-OXSHARE] 2.2.5.2
                    ExtendedPropertyDefinition PidTagMessageClass = new ExtendedPropertyDefinition(0x001A, MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.5.1
                    //ExtendedPropertyDefinition PidNameContentClass = new ExtendedPropertyDefinition(DefaultExtendedPropertySet.InternetHeaders, "Content-Class", MapiPropertyType.String);
                    ExtendedPropertyDefinition PidNameContentClass = new ExtendedPropertyDefinition(PropertySetInternetHeaders, "Content-class", MapiPropertyType.String);
                    // Common Message Object Properties               
                    // [MS-OXSHARE] 2.2.1
                    ExtendedPropertyDefinition PidTagNormalizedSubject = new ExtendedPropertyDefinition(0x0E1D, MapiPropertyType.String);
                    // The PidTagSubjectPrefix is a zero-length string, so I do not set it
                    // ExtendedPropertyDefinition PidTagSubjectPrefix = new ExtendedPropertyDefinition(0x003D, MapiPropertyType.String);
                    // Sharing Object Message Properties
                    // [MS-OXSHARE] 2.2.2.12
                    ExtendedPropertyDefinition PidLidSharingProviderGuid = new ExtendedPropertyDefinition(PropertySetSharing, 0x8A01, MapiPropertyType.Binary);
                    // [MS-OXSHARE] 2.2.2.13
                    ExtendedPropertyDefinition PidNameXSharingProviderGuid = new ExtendedPropertyDefinition(PropertySetInternetHeaders, "X-Sharing-Provider-GUID", MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.2.14
                    ExtendedPropertyDefinition PidLidSharingProviderName = new ExtendedPropertyDefinition(PropertySetSharing, 0x8A02, MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.2.15           
                    ExtendedPropertyDefinition PidNameXSharingProviderName = new ExtendedPropertyDefinition(PropertySetInternetHeaders, "X-Sharing-Provider-Name", MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.2.16
                    ExtendedPropertyDefinition PidLidSharingProviderUrl = new ExtendedPropertyDefinition(PropertySetSharing, 0x8A03, MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.2.17
                    ExtendedPropertyDefinition PidNameXSharingProviderUrl = new ExtendedPropertyDefinition(PropertySetInternetHeaders, "X-Sharing-Provider-URL", MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.2.5
                    ExtendedPropertyDefinition PidLidSharingFlavor = new ExtendedPropertyDefinition(PropertySetSharing, 0x8A18, MapiPropertyType.Integer);
                    // [MS-OXSHARE] 2.2.2.6
                    ExtendedPropertyDefinition PidNameXSharingFlavor = new ExtendedPropertyDefinition(PropertySetInternetHeaders, "X-Sharing-Flavor", MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.2.1
                    ExtendedPropertyDefinition PidLidSharingCapabilities = new ExtendedPropertyDefinition(PropertySetSharing, 0x8A17, MapiPropertyType.Integer);
                    // [MS-OXSHARE] 2.2.2.2
                    ExtendedPropertyDefinition PidNameXSharingCapabilities = new ExtendedPropertyDefinition(PropertySetInternetHeaders, "X-Sharing-Capabilities", MapiPropertyType.String);
                    // Sections 2.3 and 2.4 are also zero-length strings, so I won't set those either
                    // [MS-OXSHARE] 2.2.2.3
                    // ExtendedPropertyDefinition PidLidSharingConfigurationUrl = new   //ExtendedPropertyDefinition(PropertySetSharing, 0x8A24, MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.2.4
                    //ExtendedPropertyDefinition PidNameXSharingConfigUrl = new //ExtendedPropertyDefinition(DefaultExtendedPropertySet.InternetHeaders, "X-Sharing-Config-Url", MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.2.10
                    ExtendedPropertyDefinition PidLidSharingLocalType = new ExtendedPropertyDefinition(PropertySetSharing, 0x8A14, MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.2.11
                    ExtendedPropertyDefinition PidNameXSharingLocalType = new ExtendedPropertyDefinition(PropertySetInternetHeaders, "X-Sharing-Local-Type", MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.2.7
                    ExtendedPropertyDefinition PidLidSharingInitiatorEntryId = new ExtendedPropertyDefinition(PropertySetSharing, 0x8A09, MapiPropertyType.Binary);
                    // [MS-OXSHARE] 2.2.2.8
                    ExtendedPropertyDefinition PidLidSharingInitiatorName = new ExtendedPropertyDefinition(PropertySetSharing, 0x8A07, MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.2.9
                    ExtendedPropertyDefinition PidLidSharingInitiatorSMTP = new ExtendedPropertyDefinition(PropertySetSharing, 0x8A08, MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.3.1
                    ExtendedPropertyDefinition PidLidSharingRemoteName = new ExtendedPropertyDefinition(PropertySetSharing, 0x8A05, MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.3.2 
                    ExtendedPropertyDefinition PidNameXSharingRemoteName = new ExtendedPropertyDefinition(PropertySetInternetHeaders, "X-Sharing-Remote-Name", MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.3.5 
                    ExtendedPropertyDefinition PidLidSharingRemoteType = new ExtendedPropertyDefinition(PropertySetSharing, 0x8A1D, MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.3.6 
                    ExtendedPropertyDefinition PidNameXSharingRemoteType = new ExtendedPropertyDefinition(PropertySetInternetHeaders, "X-Sharing-Remote-Type", MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.3.7 
                    ExtendedPropertyDefinition PidLidSharingRemoteUid = new ExtendedPropertyDefinition(PropertySetSharing, 0x8A06, MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.3.8 
                    ExtendedPropertyDefinition PidNameXSharingRemoteUid = new ExtendedPropertyDefinition(PropertySetInternetHeaders, "X-Sharing-Remote-Uid", MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.3.3
                    ExtendedPropertyDefinition PidLidSharingRemoteStoreUid = new ExtendedPropertyDefinition(PropertySetSharing, 0x8A48, MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.3.4
                    ExtendedPropertyDefinition PidNameXSharingRemoteStoreUid = new ExtendedPropertyDefinition(PropertySetInternetHeaders, "X-Sharing-Remote-Store-Uid", MapiPropertyType.String);
                    //From troubleshooting I noticed I was missing
                    ExtendedPropertyDefinition PidTagPriority = new ExtendedPropertyDefinition(0x0026, MapiPropertyType.Integer);
                    ExtendedPropertyDefinition PidTagSensitivity = new ExtendedPropertyDefinition(0x0036, MapiPropertyType.Integer);
                    ExtendedPropertyDefinition PR_BODY_HTML = new ExtendedPropertyDefinition(0x1013, MapiPropertyType.Binary); //PR_BOD
                    ExtendedPropertyDefinition PR_BODY = new ExtendedPropertyDefinition(0x1000, MapiPropertyType.String);
                    ExtendedPropertyDefinition RecipientReassignmentProhibited = new ExtendedPropertyDefinition(0x002b, MapiPropertyType.Boolean);
                    // Section 2.2.1
                    invitationRequest.SetExtendedProperty(PidTagNormalizedSubject, "I'd like to share my calendar with you"); /* Constant Required Value [MS-OXSHARE] 2.2.1 */
                    //invitationRequest.SetExtendedProperty(PidTagSubjectPrefix, String.Empty); /* Constant Required Value [MS-OXSHARE] 2.2.1 */
                    // Section 2.2.2
                    invitationRequest.SetExtendedProperty(PidLidSharingCapabilities, 0x40220); /* value for Special Folders */
                    invitationRequest.SetExtendedProperty(PidNameXSharingCapabilities, "40220"); /* Test representation of SharingCapabilities value */
                    //invitationRequest.SetExtendedProperty(PidLidSharingConfigurationUrl, String.Empty); /* Zero-Length String [MS-OXSHARE] 2.2.2.3 */
                    //invitationRequest.SetExtendedProperty(PidNameXSharingConfigUrl, String.Empty); /* Zero-Length String [MS-OXSHARE] 2.2.2.4 */
                    invitationRequest.SetExtendedProperty(PidLidSharingFlavor, 0x20310); /* Indicates Invitation for a special folder [MS-OXSHARE] 2.2.2.5 */
                    invitationRequest.SetExtendedProperty(PidNameXSharingFlavor, "20310"); /* Text representation of SharingFlavor value [MS-OXSHARE] 2.2.2.6 */
                    invitationRequest.SetExtendedProperty(PidLidSharingInitiatorEntryId, byteEntryId); /* Value from the Initiator/EntryId value in the Sharing Message attachment .xml document */
                    invitationRequest.SetExtendedProperty(PidLidSharingInitiatorSMTP, "[email protected]"); /* Value from Initiator/Smtp Address in the Sharing message attachment .xml document */
                    invitationRequest.SetExtendedProperty(PidLidSharingInitiatorName, "User1"); /* Value from Initiator/Name Address in the Sharing message attachment .xml document */
                    invitationRequest.SetExtendedProperty(PidLidSharingLocalType, "IPF.Appointment"); /* MUST be set to PidTagContainerClass of folder to be shared */
                    invitationRequest.SetExtendedProperty(PidNameXSharingLocalType, "IPF.Appointment"); /* MUST be set to same value as PidLidSharingLocalType */
                    invitationRequest.SetExtendedProperty(PidLidSharingProviderGuid, byteSharingProviderGuid); /* Constant Required Value [MS-OXSHARE] 2.2.2.12 */
                    invitationRequest.SetExtendedProperty(PidNameXSharingProviderGuid, "AEF0060000000000C000000000000046"); /* Constant Required Value [MS-OXSHARE] 2.2.2.13 */
                    invitationRequest.SetExtendedProperty(PidLidSharingProviderName, "Microsoft Exchange"); /* Constant Required Value [MS-OXSHARE] 2.2.2.14 */
                    invitationRequest.SetExtendedProperty(PidNameXSharingProviderName, "Microsoft Exchange"); /* Constant Required Value [MS-OXSHARE] 2.2.2.15] */
                    invitationRequest.SetExtendedProperty(PidLidSharingProviderUrl, "http://www.microsoft.com/exchange"); /* Constant Required Value [MS-OXSHARE] 2.2.2.16 */
                    invitationRequest.SetExtendedProperty(PidNameXSharingProviderUrl, "http://www.microsoft.com/exchange"); /* Constant Required Value [MS-OXSHARE] 2.2.2.17 */
                    // Section 2.2.3
                    invitationRequest.SetExtendedProperty(PidLidSharingRemoteName, calendar.FolderName); /* MUST be set to PidTagDisplayName of the folder being shared */
                    invitationRequest.SetExtendedProperty(PidNameXSharingRemoteName, calendar.FolderName); /* MUST be set to same value as PidLidSharingRemoteName */
                    invitationRequest.SetExtendedProperty(PidLidSharingRemoteStoreUid, mailboxId); /* Must be set to PidTagStoreEntryId of the folder being shared */
                    invitationRequest.SetExtendedProperty(PidNameXSharingRemoteStoreUid, mailboxId); /* MUST be set to same value as PidLidSharingRemoteStoreUid */
                    invitationRequest.SetExtendedProperty(PidLidSharingRemoteType, "IPF.Appointment"); /* Constant Required Value [MS-OXSHARE] 2.2.3.5 */
                    invitationRequest.SetExtendedProperty(PidNameXSharingRemoteType, "IPF.Appointment"); /* Constant Required Value [MS-OXSHARE] 2.2.3.6 */
                    invitationRequest.SetExtendedProperty(PidLidSharingRemoteUid, folderidHex); /* MUST be set to PidTagEntryId of folder being shared */
                    invitationRequest.SetExtendedProperty(PidNameXSharingRemoteUid, folderidHex); /* Must be set to same value as PidLidSharingRemoteUid */
                    // Section 2.2.5
                    invitationRequest.SetExtendedProperty(PidNameContentClass, "Sharing"); /* Constant Required Value [MS-ProtocolSpec] */
                    invitationRequest.SetExtendedProperty(PidTagMessageClass, "IPM.Sharing"); /* Constant Required Value [MS-ProtocolSpec] */
                    // ********* ADDITIONAL MAPPED PROPERTIES IM FINDING AS I TROUBLESHOOT ********************** //
                    invitationRequest.SetExtendedProperty(PidTagPriority, 0); /* From troubleshooting I'm just trying to match up values that were missing */
                    invitationRequest.SetExtendedProperty(PidTagSensitivity, 0); /* From troubleshooting as well */
                    invitationRequest.SetExtendedProperty(PR_BODY_HTML, binPRBODYHTML); /* From troubleshooting OWA error pointing to serializing HTML failing */
                    invitationRequest.SetExtendedProperty(PR_BODY, strBODY);
                    invitationRequest.SetExtendedProperty(RecipientReassignmentProhibited, true); /* Because it seemed like a good idea */
                    // Add a file attachment by using a stream
                    // We need to do the following in order to prevent 3 extra bytes from being prepended to the attachment
                    string sharMetadata = File.ReadAllText(sharedFilePath, Encoding.ASCII);
                    byte[] fileContents;
                    UTF8Encoding encoding = new System.Text.UTF8Encoding();
                    fileContents = encoding.GetBytes(sharMetadata);
                    //fileContents = File.ReadAllBytes(sharedFilePath);
                    //// fileContents is a Stream object that represents the content of the file to attach.
                    invitationRequest.Attachments.AddFileAttachment("sharing_metadata.xml", fileContents);
                    ////invitationRequest.Attachments.AddFileAttachment(sharedFilePath);
                    //// This is where we set those "special" headers and other pertinent
                    //// information I noted in Part 1 of this series...
                    //Attachment thisAttachment = invitationRequest.Attachments[0];
                    //thisAttachment.ContentType = "application/x-sharing-metadata-xml";
                    //thisAttachment.Name = "sharing_metadata.xml";
                    //thisAttachment.IsInline = false;
                    // Add recipient info and send message
                    invitationRequest.ToRecipients.Add(new EmailAddress() { Address = "[email protected]" });
                    invitationRequest.SendAndSaveCopy();
                    // I always end my methods by returning the EWS 
                    // impersonated user to null to clean up
                    service.ImpersonatedUserId = null;
                catch (Exception ex)
            public String GetConvertedEWSIDinHex(ExchangeService esb, String sID, String strSMTPAdd)
                // Create a request to convert identifiers.
                AlternateId objAltID = new AlternateId();
                objAltID.Format = IdFormat.EwsId;
                objAltID.Mailbox = strSMTPAdd;
                objAltID.UniqueId = sID;
                //Convert  PR_ENTRYID identifier format to an EWS identifier.
                AlternateIdBase objAltIDBase = esb.ConvertId(objAltID, IdFormat.HexEntryId);
                AlternateId objAltIDResp = (AlternateId)objAltIDBase;
                return objAltIDResp.UniqueId.ToString();
            public String GetInvitationMailboxId(string mailBoxServer, string domainName)
                ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013);
                service.ImpersonatedUserId = new ImpersonatedUserId(ConnectingIdType.SmtpAddress, "[email protected]");
                // Generate The Store Entry Id for the impersonated user
                StringBuilder MailboxIDPointer = new StringBuilder();          
                string fqdn = mailBoxServer;
                string legacyDN = domainName;
                MailboxIDPointer.Append("00000000"); /* Flags */
                MailboxIDPointer.Append("38A1BB1005E5101AA1BB08002B2A56C2"); /* ProviderUID */
                MailboxIDPointer.Append("00"); /* Version */
                MailboxIDPointer.Append("00"); /* Flag */
                MailboxIDPointer.Append("454D534D44422E444C4C00000000"); /* DLLFileName */
                MailboxIDPointer.Append("00000000"); /* Wrapped Flags */
                MailboxIDPointer.Append("1B55FA20AA6611CD9BC800AA002FC45A"); /* WrappedProvider UID (Mailbox Store Object) */
                MailboxIDPointer.Append("0C000000"); /* Wrapped Type (Mailbox Store) */
                MailboxIDPointer.Append(ConvertStringToHex(fqdn)); /* ServerShortname (FQDN) */
                MailboxIDPointer.Append("00"); /* termination bit */
                MailboxIDPointer.Append(ConvertStringToHex(legacyDN)); /* Returns the userDN of the impersonated user */
                MailboxIDPointer.Append("00"); /* terminator bit */
                service.ImpersonatedUserId = null;
                return MailboxIDPointer.ToString();
            static bool RedirectionUrlValidationCallback(String redirectionUrl)
                bool redirectionValidated = false;
                if (redirectionUrl.Equals("https://SampleUrl/autodiscover/autodiscover.xml"))          
                    redirectionValidated = true;
                return redirectionValidated;
            public String GetIntiatorEntryID(string domainName)
                String result = String.Empty;
                //// Bind to EWS
                //ExchangeService service = ExchangeConnection.ExchangeService();
                //service.ImpersonatedUserId =
                //new ImpersonatedUserId(ConnectingIdType.SmtpAddress, "[email protected]");
                //// Get LegacyDN Using the function above this one 
                string sharedByLegacyDN = domainName;
                // A conversion function from earlier
                string legacyDNinHex = ConvertStringToHex(sharedByLegacyDN);
                StringBuilder addBookEntryId = new StringBuilder();
                addBookEntryId.Append("00000000"); /* Flags */
                addBookEntryId.Append("DCA740C8C042101AB4B908002B2FE182"); /* ProviderUID */
                addBookEntryId.Append("01000000"); /* Version */
                addBookEntryId.Append("00000000"); /* Type - 00 00 00 00  = Local Mail User */
                addBookEntryId.Append(legacyDNinHex); /* Returns the userDN of the impersonated user */
                addBookEntryId.Append("00"); /* terminator bit */
                result = addBookEntryId.ToString();
                //service.ImpersonatedUserId = null;
                return result;
            public string ConvertStringToHex(string input)
                // Take our input and break it into an array
                char[] arrInput = input.ToCharArray();
                String result = String.Empty;
                // For each set of characters
                foreach (char element in arrInput)
                    if (String.IsNullOrEmpty(result))
                        result = String.Format("{0:X2}", Convert.ToUInt16(element)).ToString();
                    else
                        result += String.Format("{0:X2}", Convert.ToUInt16(element)).ToString();
                return result.ToString();
     public string CreateSharingMessageAttachment(string folderid, string userSharing, string userSharingEntryID, string invitationMailboxID, string userSharedTo, string dataType, string calendarName)
                XmlDocument sharedMetadataXML = new XmlDocument();
                string sharedMetaDataFilePath = string.Empty;
                try
                    // Create a String that contains our new sharing_metadata.xml file
                    StringBuilder metadataString = new StringBuilder("<?xml version=\"1.0\"?>");              
                    metadataString.Append("<SharingMessage xmlns=\"http://schemas.microsoft.com/sharing/2008\">");
                    metadataString.Append("<DataType>" + dataType + "</DataType>");
                    metadataString.Append("<Initiator>");
                    metadataString.Append("<Name>" + userSharing + "</Name>");
                    metadataString.Append("<SmtpAddress>" + "[email protected]" + "</SmtpAddress><EntryId>" + userSharingEntryID.Trim());
                    metadataString.Append("</EntryId>");
                    metadataString.Append("</Initiator>");
                    metadataString.Append("<Invitation>");
                    metadataString.Append("<Title>" + calendarName + "</Title>");
                    metadataString.Append("<Providers>");
                    metadataString.Append("<Provider Type=\"ms-exchange-internal\" TargetRecipients=\"" + userSharedTo + "\">");
                    metadataString.Append("<FolderId xmlns=\"http://schemas.microsoft.com/exchange/sharing/2008\">");
                    metadataString.Append(folderid);
                    metadataString.Append("</FolderId>");
                    metadataString.Append("<MailboxId xmlns=\"http://schemas.microsoft.com/exchange/sharing/2008\">");
                    metadataString.Append(invitationMailboxID);
                    metadataString.Append("</MailboxId>");
                    metadataString.Append("</Provider>");
                    metadataString.Append("</Providers>");
                    metadataString.Append("</Invitation>");
                    metadataString.Append("</SharingMessage>");
                    sharedMetadataXML.LoadXml(metadataString.ToString());
                    string tempPath = System.IO.Path.GetTempPath();
                    sharedMetaDataFilePath = tempPath + "sharing_metadata.xml";
                    sharedMetadataXML.Save(sharedMetaDataFilePath);
                catch (Exception eg)
                    throw eg;               
                return sharedMetaDataFilePath;
            public Dictionary<string, string> GetUserSettings(AutodiscoverService autodiscoverService)
                GetUserSettingsResponse userresponse = autodiscoverService.GetUserSettings(
                    "[email protected]",
                    UserSettingName.UserDisplayName,
                    UserSettingName.InternalMailboxServerDN,
                    UserSettingName.UserDN
                Dictionary<string, string> myUserSettings = new Dictionary<string, string>();
                foreach (KeyValuePair<UserSettingName, Object> usersetting in userresponse.Settings)
                    if (usersetting.Key.ToString() == "InternalMailboxServerDN")
                        int lastIndexOfEqual = usersetting.Value.ToString().LastIndexOf("=");
                        string subString = usersetting.Value.ToString().Substring(lastIndexOfEqual + 1);
                        string value = subString;
                        myUserSettings.Add("InternalMailboxServer", value.ToString());
                    if (usersetting.Key.ToString() == "UserDisplayName")
                        string[] arrResult = usersetting.Value.ToString().Split('.');
                        myUserSettings.Add("UserDisplayName", arrResult[0].ToString());
                    if (usersetting.Key.ToString() == "UserDN")
                        string[] arrResult = usersetting.Value.ToString().Split('.');
                        myUserSettings.Add("UserDN", arrResult[0].ToString());
                return myUserSettings;
            private static byte[] HexStringToByteArray(string input)
                byte[] Bytes;
                int ByteLength;
                string HexValue = "\x0\x1\x2\x3\x4\x5\x6\x7\x8\x9|||||||\xA\xB\xC\xD\xE\xF";
                ByteLength = input.Length / 2;
                Bytes = new byte[ByteLength];
                for (int x = 0, i = 0; i < input.Length; i += 2, x += 1)
                    Bytes[x] = (byte)(HexValue[Char.ToUpper(input[i + 0]) - '0'] << 4);
                    Bytes[x] |= (byte)(HexValue[Char.ToUpper(input[i + 1]) - '0']);
                return Bytes;

    Hi,
    I'm trying to share a calendar through ews managed api v.2 and using exchange 2013 version.
    i'm preparing a shared calendar and providing values to extended properties .
    Here comes the problem when i'm trying to send the sharing request(email message) 
    The following is code snippet.
      public void ShareCalendar(Calendar calendar)
                ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013);
                  service.Credentials = new NetworkCredential("user1", "password", "domain");
                service.Url = new Uri("https://sampleUrl/ews/exchange.asmx");
                try
                    // Bind to the folder
                    //Folder folderStoreInfo;
                    //folderStoreInfo = Folder.Bind(service, calendar.ExchangeId);
                    //string EwsID = folderStoreInfo.Id.UniqueId;
                    string EwsID = calendar.FolderExchangeId;
                    // The value of folderidHex will be what we need to use for the FolderId in the xml file
                    AutodiscoverService autoDiscover = new AutodiscoverService(ExchangeVersion.Exchange2013);
                    autoDiscover.Credentials =  new NetworkCredential("user1", "password", "domain");
                    autoDiscover.RedirectionUrlValidationCallback = RedirectionUrlValidationCallback;
                    Dictionary<string, string> userSettings = GetUserSettings(autoDiscover);
                    string folderidHex = GetConvertedEWSIDinHex(service, EwsID, "[email protected]");
                    string domainName = string.Empty;
                    string mailBoxServer = string.Empty;
                    string userName = string.Empty;
                    foreach (var item in userSettings)
                        switch (item.Key)
                            case "UserDN":
                                domainName = item.Value.ToString();
                                break;
                            case "InternalMailboxServer":
                                mailBoxServer = item.Value.ToString();
                                break;
                            case "UserDisplayName":
                                userName = item.Value.ToString();
                                break;
                    string entryId = GetIntiatorEntryID(domainName);
                    string mailboxId = GetInvitationMailboxId(mailBoxServer, domainName);
                    string sharedFilePath = CreateSharingMessageAttachment(folderidHex, userName, entryId, mailboxId, "[email protected]", "calendar", calendar.FolderName);
                    // Create a new message
                    EmailMessage invitationRequest = new EmailMessage(service);
                    invitationRequest.Subject = "I'd like to share my calendar with you";
                    invitationRequest.Body = "Sent by Exchange Administrator on behalf of user";                
                    //invitationRequest.Culture = "en-US";
                    invitationRequest.Sensitivity = Sensitivity.Normal;
                    // Set a sharing specific property on the message
                    invitationRequest.ItemClass = "IPM.Sharing"; /* Constant Required Value [MS-ProtocolSpec] */
                    byte[] byteEntryId = HexStringToByteArray(entryId);
                    // This is the Guid of the Sharing Provider in Exchange, and it's value does not change
                    Guid binSharingProviderGuid = new Guid("{AEF00600-0000-0000-C000-000000000046}");
                    // Even though I don't think setting this property is mandatory, 
                    // it just seemed like the right thing to do and it works so I \
                    // ain't messin with it!                                        
                    byte[] byteSharingProviderGuid = binSharingProviderGuid.ToByteArray();
                    string strPRBODYHTML = "<html dir=\"ltr\">\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\r\n<meta name=\"GENERATOR\"
    content=\"MSHTML 8.00.7601.17514\">\r\n<style id=\"owaParaStyle\">P {\r\n   MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px \r\n}\r\n</style>\r\n</head>\r\n<body fPStyle=\"1\" ocsi=\"0\">\r\n<tt>\r\n<pre>SharedByUserDisplayName
    (SharedByUserSmtpAddress) has invited you to view his or her Microsoft Exchange Calendar.\r\n\r\nFor instructions on how to view shared folders on Exchange, see the following article:\r\n\r\nhttp://go.microsoft.com/fwlink/?LinkId=57561\r\n\r\n*~*~*~*~*~*~*~*~*~*\r\n\r\n</pre>\r\n</tt>\r\n<div>\r\n<div
    style=\"direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;\">this is a test message</div>\r\n</div>\r\n</body>\r\n</html>\r\n";
                    string strBODY = @"
    SharedByUserDisplayName (SharedByUserSmtpAddress) has invited you to view his or
    her Microsoft Exchange Calendar.
    For instructions on how to view shared folders on Exchange, see the
    following article:
    http://go.microsoft.com/fwlink/?LinkId=57561
    *~*~*~*~*~*~*~*~*~*
    test body
                    // Convert these to hex and binary equivelants to assign to their relevant
                    // extended properties
                    string hexPRBODYHTML = ConvertStringToHex(strPRBODYHTML);
                    byte[] binPRBODYHTML = HexStringToByteArray(hexPRBODYHTML);
                    Guid PropertySetSharing = Guid.Parse("00062040-0000-0000-C000-000000000046");//constant 
                    Guid PropertySetInternetHeaders = Guid.Parse("00020386-0000-0000-C000-000000000046");//constant
                    ExtendedPropertyDefinition PidLidSharingProviderGuidProperty = new ExtendedPropertyDefinition(PropertySetSharing, 0x8A01, MapiPropertyType.CLSID);
                    ExtendedPropertyDefinition ConversationIdProperty = new ExtendedPropertyDefinition(0x3013, MapiPropertyType.Binary);
                    // Sharing Properties (in order of reference according to protocol examples in: [MS-OXSHARE])
                    // Additional Property Constraints
                    // [MS-OXSHARE] 2.2.5.2
                    ExtendedPropertyDefinition PidTagMessageClass = new ExtendedPropertyDefinition(0x001A, MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.5.1
                    //ExtendedPropertyDefinition PidNameContentClass = new ExtendedPropertyDefinition(DefaultExtendedPropertySet.InternetHeaders, "Content-Class", MapiPropertyType.String);
                    ExtendedPropertyDefinition PidNameContentClass = new ExtendedPropertyDefinition(PropertySetInternetHeaders, "Content-class", MapiPropertyType.String);
                    // Common Message Object Properties               
                    // [MS-OXSHARE] 2.2.1
                    ExtendedPropertyDefinition PidTagNormalizedSubject = new ExtendedPropertyDefinition(0x0E1D, MapiPropertyType.String);
                    // The PidTagSubjectPrefix is a zero-length string, so I do not set it
                    // ExtendedPropertyDefinition PidTagSubjectPrefix = new ExtendedPropertyDefinition(0x003D, MapiPropertyType.String);
                    // Sharing Object Message Properties
                    // [MS-OXSHARE] 2.2.2.12
                    ExtendedPropertyDefinition PidLidSharingProviderGuid = new ExtendedPropertyDefinition(PropertySetSharing, 0x8A01, MapiPropertyType.Binary);
                    // [MS-OXSHARE] 2.2.2.13
                    ExtendedPropertyDefinition PidNameXSharingProviderGuid = new ExtendedPropertyDefinition(PropertySetInternetHeaders, "X-Sharing-Provider-GUID", MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.2.14
                    ExtendedPropertyDefinition PidLidSharingProviderName = new ExtendedPropertyDefinition(PropertySetSharing, 0x8A02, MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.2.15           
                    ExtendedPropertyDefinition PidNameXSharingProviderName = new ExtendedPropertyDefinition(PropertySetInternetHeaders, "X-Sharing-Provider-Name", MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.2.16
                    ExtendedPropertyDefinition PidLidSharingProviderUrl = new ExtendedPropertyDefinition(PropertySetSharing, 0x8A03, MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.2.17
                    ExtendedPropertyDefinition PidNameXSharingProviderUrl = new ExtendedPropertyDefinition(PropertySetInternetHeaders, "X-Sharing-Provider-URL", MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.2.5
                    ExtendedPropertyDefinition PidLidSharingFlavor = new ExtendedPropertyDefinition(PropertySetSharing, 0x8A18, MapiPropertyType.Integer);
                    // [MS-OXSHARE] 2.2.2.6
                    ExtendedPropertyDefinition PidNameXSharingFlavor = new ExtendedPropertyDefinition(PropertySetInternetHeaders, "X-Sharing-Flavor", MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.2.1
                    ExtendedPropertyDefinition PidLidSharingCapabilities = new ExtendedPropertyDefinition(PropertySetSharing, 0x8A17, MapiPropertyType.Integer);
                    // [MS-OXSHARE] 2.2.2.2
                    ExtendedPropertyDefinition PidNameXSharingCapabilities = new ExtendedPropertyDefinition(PropertySetInternetHeaders, "X-Sharing-Capabilities", MapiPropertyType.String);
                    // Sections 2.3 and 2.4 are also zero-length strings, so I won't set those either
                    // [MS-OXSHARE] 2.2.2.3
                    // ExtendedPropertyDefinition PidLidSharingConfigurationUrl = new   //ExtendedPropertyDefinition(PropertySetSharing, 0x8A24, MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.2.4
                    //ExtendedPropertyDefinition PidNameXSharingConfigUrl = new //ExtendedPropertyDefinition(DefaultExtendedPropertySet.InternetHeaders, "X-Sharing-Config-Url", MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.2.10
                    ExtendedPropertyDefinition PidLidSharingLocalType = new ExtendedPropertyDefinition(PropertySetSharing, 0x8A14, MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.2.11
                    ExtendedPropertyDefinition PidNameXSharingLocalType = new ExtendedPropertyDefinition(PropertySetInternetHeaders, "X-Sharing-Local-Type", MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.2.7
                    ExtendedPropertyDefinition PidLidSharingInitiatorEntryId = new ExtendedPropertyDefinition(PropertySetSharing, 0x8A09, MapiPropertyType.Binary);
                    // [MS-OXSHARE] 2.2.2.8
                    ExtendedPropertyDefinition PidLidSharingInitiatorName = new ExtendedPropertyDefinition(PropertySetSharing, 0x8A07, MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.2.9
                    ExtendedPropertyDefinition PidLidSharingInitiatorSMTP = new ExtendedPropertyDefinition(PropertySetSharing, 0x8A08, MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.3.1
                    ExtendedPropertyDefinition PidLidSharingRemoteName = new ExtendedPropertyDefinition(PropertySetSharing, 0x8A05, MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.3.2 
                    ExtendedPropertyDefinition PidNameXSharingRemoteName = new ExtendedPropertyDefinition(PropertySetInternetHeaders, "X-Sharing-Remote-Name", MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.3.5 
                    ExtendedPropertyDefinition PidLidSharingRemoteType = new ExtendedPropertyDefinition(PropertySetSharing, 0x8A1D, MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.3.6 
                    ExtendedPropertyDefinition PidNameXSharingRemoteType = new ExtendedPropertyDefinition(PropertySetInternetHeaders, "X-Sharing-Remote-Type", MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.3.7 
                    ExtendedPropertyDefinition PidLidSharingRemoteUid = new ExtendedPropertyDefinition(PropertySetSharing, 0x8A06, MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.3.8 
                    ExtendedPropertyDefinition PidNameXSharingRemoteUid = new ExtendedPropertyDefinition(PropertySetInternetHeaders, "X-Sharing-Remote-Uid", MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.3.3
                    ExtendedPropertyDefinition PidLidSharingRemoteStoreUid = new ExtendedPropertyDefinition(PropertySetSharing, 0x8A48, MapiPropertyType.String);
                    // [MS-OXSHARE] 2.2.3.4
                    ExtendedPropertyDefinition PidNameXSharingRemoteStoreUid = new ExtendedPropertyDefinition(PropertySetInternetHeaders, "X-Sharing-Remote-Store-Uid", MapiPropertyType.String);
                    //From troubleshooting I noticed I was missing
                    ExtendedPropertyDefinition PidTagPriority = new ExtendedPropertyDefinition(0x0026, MapiPropertyType.Integer);
                    ExtendedPropertyDefinition PidTagSensitivity = new ExtendedPropertyDefinition(0x0036, MapiPropertyType.Integer);
                    ExtendedPropertyDefinition PR_BODY_HTML = new ExtendedPropertyDefinition(0x1013, MapiPropertyType.Binary); //PR_BOD
                    ExtendedPropertyDefinition PR_BODY = new ExtendedPropertyDefinition(0x1000, MapiPropertyType.String);
                    ExtendedPropertyDefinition RecipientReassignmentProhibited = new ExtendedPropertyDefinition(0x002b, MapiPropertyType.Boolean);
                    // Section 2.2.1
                    invitationRequest.SetExtendedProperty(PidTagNormalizedSubject, "I'd like to share my calendar with you"); /* Constant Required Value [MS-OXSHARE] 2.2.1 */
                    //invitationRequest.SetExtendedProperty(PidTagSubjectPrefix, String.Empty); /* Constant Required Value [MS-OXSHARE] 2.2.1 */
                    // Section 2.2.2
                    invitationRequest.SetExtendedProperty(PidLidSharingCapabilities, 0x40220); /* value for Special Folders */
                    invitationRequest.SetExtendedProperty(PidNameXSharingCapabilities, "40220"); /* Test representation of SharingCapabilities value */
                    //invitationRequest.SetExtendedProperty(PidLidSharingConfigurationUrl, String.Empty); /* Zero-Length String [MS-OXSHARE] 2.2.2.3 */
                    //invitationRequest.SetExtendedProperty(PidNameXSharingConfigUrl, String.Empty); /* Zero-Length String [MS-OXSHARE] 2.2.2.4 */
                    invitationRequest.SetExtendedProperty(PidLidSharingFlavor, 0x20310); /* Indicates Invitation for a special folder [MS-OXSHARE] 2.2.2.5 */
                    invitationRequest.SetExtendedProperty(PidNameXSharingFlavor, "20310"); /* Text representation of SharingFlavor value [MS-OXSHARE] 2.2.2.6 */
                    invitationRequest.SetExtendedProperty(PidLidSharingInitiatorEntryId, byteEntryId); /* Value from the Initiator/EntryId value in the Sharing Message attachment .xml document */
                    invitationRequest.SetExtendedProperty(PidLidSharingInitiatorSMTP, "[email protected]"); /* Value from Initiator/Smtp Address in the Sharing message attachment .xml document */
                    invitationRequest.SetExtendedProperty(PidLidSharingInitiatorName, "User1"); /* Value from Initiator/Name Address in the Sharing message attachment .xml document */
                    invitationRequest.SetExtendedProperty(PidLidSharingLocalType, "IPF.Appointment"); /* MUST be set to PidTagContainerClass of folder to be shared */
                    invitationRequest.SetExtendedProperty(PidNameXSharingLocalType, "IPF.Appointment"); /* MUST be set to same value as PidLidSharingLocalType */
                    invitationRequest.SetExtendedProperty(PidLidSharingProviderGuid, byteSharingProviderGuid); /* Constant Required Value [MS-OXSHARE] 2.2.2.12 */
                    invitationRequest.SetExtendedProperty(PidNameXSharingProviderGuid, "AEF0060000000000C000000000000046"); /* Constant Required Value [MS-OXSHARE] 2.2.2.13 */
                    invitationRequest.SetExtendedProperty(PidLidSharingProviderName, "Microsoft Exchange"); /* Constant Required Value [MS-OXSHARE] 2.2.2.14 */
                    invitationRequest.SetExtendedProperty(PidNameXSharingProviderName, "Microsoft Exchange"); /* Constant Required Value [MS-OXSHARE] 2.2.2.15] */
                    invitationRequest.SetExtendedProperty(PidLidSharingProviderUrl, "http://www.microsoft.com/exchange"); /* Constant Required Value [MS-OXSHARE] 2.2.2.16 */
                    invitationRequest.SetExtendedProperty(PidNameXSharingProviderUrl, "http://www.microsoft.com/exchange"); /* Constant Required Value [MS-OXSHARE] 2.2.2.17 */
                    // Section 2.2.3
                    invitationRequest.SetExtendedProperty(PidLidSharingRemoteName, calendar.FolderName); /* MUST be set to PidTagDisplayName of the folder being shared */
                    invitationRequest.SetExtendedProperty(PidNameXSharingRemoteName, calendar.FolderName); /* MUST be set to same value as PidLidSharingRemoteName */
                    invitationRequest.SetExtendedProperty(PidLidSharingRemoteStoreUid, mailboxId); /* Must be set to PidTagStoreEntryId of the folder being shared */
                    invitationRequest.SetExtendedProperty(PidNameXSharingRemoteStoreUid, mailboxId); /* MUST be set to same value as PidLidSharingRemoteStoreUid */
                    invitationRequest.SetExtendedProperty(PidLidSharingRemoteType, "IPF.Appointment"); /* Constant Required Value [MS-OXSHARE] 2.2.3.5 */
                    invitationRequest.SetExtendedProperty(PidNameXSharingRemoteType, "IPF.Appointment"); /* Constant Required Value [MS-OXSHARE] 2.2.3.6 */
                    invitationRequest.SetExtendedProperty(PidLidSharingRemoteUid, folderidHex); /* MUST be set to PidTagEntryId of folder being shared */
                    invitationRequest.SetExtendedProperty(PidNameXSharingRemoteUid, folderidHex); /* Must be set to same value as PidLidSharingRemoteUid */
                    // Section 2.2.5
                    invitationRequest.SetExtendedProperty(PidNameContentClass, "Sharing"); /* Constant Required Value [MS-ProtocolSpec] */
                    invitationRequest.SetExtendedProperty(PidTagMessageClass, "IPM.Sharing"); /* Constant Required Value [MS-ProtocolSpec] */
                    // ********* ADDITIONAL MAPPED PROPERTIES IM FINDING AS I TROUBLESHOOT ********************** //
                    invitationRequest.SetExtendedProperty(PidTagPriority, 0); /* From troubleshooting I'm just trying to match up values that were missing */
                    invitationRequest.SetExtendedProperty(PidTagSensitivity, 0); /* From troubleshooting as well */
                    invitationRequest.SetExtendedProperty(PR_BODY_HTML, binPRBODYHTML); /* From troubleshooting OWA error pointing to serializing HTML failing */
                    invitationRequest.SetExtendedProperty(PR_BODY, strBODY);
                    invitationRequest.SetExtendedProperty(RecipientReassignmentProhibited, true); /* Because it seemed like a good idea */
                    // Add a file attachment by using a stream
                    // We need to do the following in order to prevent 3 extra bytes from being prepended to the attachment
                    string sharMetadata = File.ReadAllText(sharedFilePath, Encoding.ASCII);
                    byte[] fileContents;
                    UTF8Encoding encoding = new System.Text.UTF8Encoding();
                    fileContents = encoding.GetBytes(sharMetadata);
                    //fileContents = File.ReadAllBytes(sharedFilePath);
                    //// fileContents is a Stream object that represents the content of the file to attach.
                    invitationRequest.Attachments.AddFileAttachment("sharing_metadata.xml", fileContents);
                    ////invitationRequest.Attachments.AddFileAttachment(sharedFilePath);
                    //// This is where we set those "special" headers and other pertinent
                    //// information I noted in Part 1 of this series...
                    //Attachment thisAttachment = invitationRequest.Attachments[0];
                    //thisAttachment.ContentType = "application/x-sharing-metadata-xml";
                    //thisAttachment.Name = "sharing_metadata.xml";
                    //thisAttachment.IsInline = false;
                    // Add recipient info and send message
                    invitationRequest.ToRecipients.Add(new EmailAddress() { Address = "[email protected]" });
                    invitationRequest.SendAndSaveCopy();
                    // I always end my methods by returning the EWS 
                    // impersonated user to null to clean up
                    service.ImpersonatedUserId = null;
                catch (Exception ex)
            public String GetConvertedEWSIDinHex(ExchangeService esb, String sID, String strSMTPAdd)
                // Create a request to convert identifiers.
                AlternateId objAltID = new AlternateId();
                objAltID.Format = IdFormat.EwsId;
                objAltID.Mailbox = strSMTPAdd;
                objAltID.UniqueId = sID;
                //Convert  PR_ENTRYID identifier format to an EWS identifier.
                AlternateIdBase objAltIDBase = esb.ConvertId(objAltID, IdFormat.HexEntryId);
                AlternateId objAltIDResp = (AlternateId)objAltIDBase;
                return objAltIDResp.UniqueId.ToString();
            public String GetInvitationMailboxId(string mailBoxServer, string domainName)
                ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013);
                service.ImpersonatedUserId = new ImpersonatedUserId(ConnectingIdType.SmtpAddress, "[email protected]");
                // Generate The Store Entry Id for the impersonated user
                StringBuilder MailboxIDPointer = new StringBuilder();          
                string fqdn = mailBoxServer;
                string legacyDN = domainName;
                MailboxIDPointer.Append("00000000"); /* Flags */
                MailboxIDPointer.Append("38A1BB1005E5101AA1BB08002B2A56C2"); /* ProviderUID */
                MailboxIDPointer.Append("00"); /* Version */
                MailboxIDPointer.Append("00"); /* Flag */
                MailboxIDPointer.Append("454D534D44422E444C4C00000000"); /* DLLFileName */
                MailboxIDPointer.Append("00000000"); /* Wrapped Flags */
                MailboxIDPointer.Append("1B55FA20AA6611CD9BC800AA002FC45A"); /* WrappedProvider UID (Mailbox Store Object) */
                MailboxIDPointer.Append("0C000000"); /* Wrapped Type (Mailbox Store) */
                MailboxIDPointer.Append(ConvertStringToHex(fqdn)); /* ServerShortname (FQDN) */
                MailboxIDPointer.Append("00"); /* termination bit */
                MailboxIDPointer.Append(ConvertStringToHex(legacyDN)); /* Returns the userDN of the impersonated user */
                MailboxIDPointer.Append("00"); /* terminator bit */
                service.ImpersonatedUserId = null;
                return MailboxIDPointer.ToString();
            static bool RedirectionUrlValidationCallback(String redirectionUrl)
                bool redirectionValidated = false;
                if (redirectionUrl.Equals("https://SampleUrl/autodiscover/autodiscover.xml"))          
                    redirectionValidated = true;
                return redirectionValidated;
            public String GetIntiatorEntryID(string domainName)
                String result = String.Empty;
                //// Bind to EWS
                //ExchangeService service = ExchangeConnection.ExchangeService();
                //service.ImpersonatedUserId =
                //new ImpersonatedUserId(ConnectingIdType.SmtpAddress, "[email protected]");
                //// Get LegacyDN Using the function above this one 
                string sharedByLegacyDN = domainName;
                // A conversion function from earlier
                string legacyDNinHex = ConvertStringToHex(sharedByLegacyDN);
                StringBuilder addBookEntryId = new StringBuilder();
                addBookEntryId.Append("00000000"); /* Flags */
                addBookEntryId.Append("DCA740C8C042101AB4B908002B2FE182"); /* ProviderUID */
                addBookEntryId.Append("01000000"); /* Version */
                addBookEntryId.Append("00000000"); /* Type - 00 00 00 00  = Local Mail User */
                addBookEntryId.Append(legacyDNinHex); /* Returns the userDN of the impersonated user */
                addBookEntryId.Append("00"); /* terminator bit */
                result = addBookEntryId.ToString();
                //service.ImpersonatedUserId = null;
                return result;
            public string ConvertStringToHex(string input)
                // Take our input and break it into an array
                char[] arrInput = input.ToCharArray();
                String result = String.Empty;
                // For each set of characters
                foreach (char element in arrInput)
                    if (String.IsNullOrEmpty(result))
                        result = String.Format("{0:X2}", Convert.ToUInt16(element)).ToString();
                    else
                        result += String.Format("{0:X2}", Convert.ToUInt16(element)).ToString();
                return result.ToString();
     public string CreateSharingMessageAttachment(string folderid, string userSharing, string userSharingEntryID, string invitationMailboxID, string userSharedTo, string dataType, string calendarName)
                XmlDocument sharedMetadataXML = new XmlDocument();
                string sharedMetaDataFilePath = string.Empty;
                try
                    // Create a String that contains our new sharing_metadata.xml file
                    StringBuilder metadataString = new StringBuilder("<?xml version=\"1.0\"?>");              
                    metadataString.Append("<SharingMessage xmlns=\"http://schemas.microsoft.com/sharing/2008\">");
                    metadataString.Append("<DataType>" + dataType + "</DataType>");
                    metadataString.Append("<Initiator>");
                    metadataString.Append("<Name>" + userSharing + "</Name>");
                    metadataString.Append("<SmtpAddress>" + "[email protected]" + "</SmtpAddress><EntryId>" + userSharingEntryID.Trim());
                    metadataString.Append("</EntryId>");
                    metadataString.Append("</Initiator>");
                    metadataString.Append("<Invitation>");
                    metadataString.Append("<Title>" + calendarName + "</Title>");
                    metadataString.Append("<Providers>");
                    metadataString.Append("<Provider Type=\"ms-exchange-internal\" TargetRecipients=\"" + userSharedTo + "\">");
                    metadataString.Append("<FolderId xmlns=\"http://schemas.microsoft.com/exchange/sharing/2008\">");
                    metadataString.Append(folderid);
                    metadataString.Append("</FolderId>");
                    metadataString.Append("<MailboxId xmlns=\"http://schemas.microsoft.com/exchange/sharing/2008\">");
                    metadataString.Append(invitationMailboxID);
                    metadataString.Append("</MailboxId>");
                    metadataString.Append("</Provider>");
                    metadataString.Append("</Providers>");
                    metadataString.Append("</Invitation>");
                    metadataString.Append("</SharingMessage>");
                    sharedMetadataXML.LoadXml(metadataString.ToString());
                    string tempPath = System.IO.Path.GetTempPath();
                    sharedMetaDataFilePath = tempPath + "sharing_metadata.xml";
                    sharedMetadataXML.Save(sharedMetaDataFilePath);
                catch (Exception eg)
                    throw eg;               
                return sharedMetaDataFilePath;
            public Dictionary<string, string> GetUserSettings(AutodiscoverService autodiscoverService)
                GetUserSettingsResponse userresponse = autodiscoverService.GetUserSettings(
                    "[email protected]",
                    UserSettingName.UserDisplayName,
                    UserSettingName.InternalMailboxServerDN,
                    UserSettingName.UserDN
                Dictionary<string, string> myUserSettings = new Dictionary<string, string>();
                foreach (KeyValuePair<UserSettingName, Object> usersetting in userresponse.Settings)
                    if (usersetting.Key.ToString() == "InternalMailboxServerDN")
                        int lastIndexOfEqual = usersetting.Value.ToString().LastIndexOf("=");
                        string subString = usersetting.Value.ToString().Substring(lastIndexOfEqual + 1);
                        string value = subString;
                        myUserSettings.Add("InternalMailboxServer", value.ToString());
                    if (usersetting.Key.ToString() == "UserDisplayName")
                        string[] arrResult = usersetting.Value.ToString().Split('.');
                        myUserSettings.Add("UserDisplayName", arrResult[0].ToString());
                    if (usersetting.Key.ToString() == "UserDN")
                        string[] arrResult = usersetting.Value.ToString().Split('.');
                        myUserSettings.Add("UserDN", arrResult[0].ToString());
                return myUserSettings;
            private static byte[] HexStringToByteArray(string input)
                byte[] Bytes;
                int ByteLength;
                string HexValue = "\x0\x1\x2\x3\x4\x5\x6\x7\x8\x9|||||||\xA\xB\xC\xD\xE\xF";
                ByteLength = input.Length / 2;
                Bytes = new byte[ByteLength];
                for (int x = 0, i = 0; i < input.Length; i += 2, x += 1)
                    Bytes[x] = (byte)(HexValue[Char.ToUpper(input[i + 0]) - '0'] << 4);
                    Bytes[x] |= (byte)(HexValue[Char.ToUpper(input[i + 1]) - '0']);
                return Bytes;
    am i missing anything 
    any help is appreciated 
    Thanks in advance

  • Error while compiling a program from api....URGENT

    i am trying to use a api for apell checking, and their is one program that i am trying to compile using command
    javac -Xlint org\tiling\didyoumean\DidYouMeanIndexer.java
    and it gives me an error like this
    org\tiling\didyoumean\DidYouMeanIndexer.java:36: cannot find symbol
    symbol  : method indexDictionnary(org.apache.lucene.search.spell.Dictionary)
    location: class org.apache.lucene.search.spell.SpellChecker
                            spellChecker.indexDictionnary(dictionary);
                                        ^
    org\tiling\didyoumean\DidYouMeanIndexer.java:54: warning: [deprecation] getDirectory(java.lang.String,boolean) in org.apache.lucene.store.FSDirectory
    has been deprecated
                            FSDirectory origDir = FSDirectory.getDirectory(origIndex, false);
                                                             ^
    org\tiling\didyoumean\DidYouMeanIndexer.java:55: warning: [deprecation] getDirectory(java.lang.String,boolean) in org.apache.lucene.store.FSDirectory
    has been deprecated
                            FSDirectory spellDir = FSDirectory.getDirectory(spellIndex, true);
                                                              ^
    1 error
    2 warningshere is the code for the program
    package org.tiling.didyoumean;
    import org.apache.lucene.index.IndexWriter;
    import org.apache.lucene.analysis.standard.StandardAnalyzer;
    import org.apache.lucene.document.Document;
    import org.apache.lucene.document.Field;
    import java.io.File;
    import java.io.IOException;
    import java.io.FileReader;
    import java.util.Date;
    * This code was originally written for
    * Erik's Lucene intro java.net article
    public class Indexer {
         public static void main(String[] args) throws Exception {
              if (args.length != 2) {
                   throw new Exception("Usage: java " + Indexer.class.getName()
                             + " <index dir> <data dir>");
              File indexDir = new File(args[0]);
              File dataDir = new File(args[1]);
              long start = new Date().getTime();
              int numIndexed = index(indexDir, dataDir);
              long end = new Date().getTime();
              System.out.println("Indexing " + numIndexed + " files took "
                        + (end - start) + " milliseconds");
         public static int index(File indexDir, File dataDir) throws IOException {
              if (!dataDir.exists() || !dataDir.isDirectory()) {
                   throw new IOException(dataDir
                             + " does not exist or is not a directory");
              IndexWriter writer = new IndexWriter(indexDir, new StandardAnalyzer(),
                        true);
              writer.setUseCompoundFile(false);
              indexDirectory(writer, dataDir);
              int numIndexed = writer.docCount();
              writer.optimize();
              writer.close();
              return numIndexed;
         private static void indexDirectory(IndexWriter writer, File dir)
                   throws IOException {
              File[] files = dir.listFiles();
              for (int i = 0; i < files.length; i++) {
                   File f = files;
                   if (f.isDirectory()) {
                        indexDirectory(writer, f); // recurse
                   } else if (f.getName().endsWith(".txt")) {
                        indexFile(writer, f);
         private static void indexFile(IndexWriter writer, File f)
                   throws IOException {
              if (f.isHidden() || !f.exists() || !f.canRead()) {
                   return;
              System.out.println("Indexing " + f.getCanonicalPath());
              Document doc = new Document();
              doc.add(Field.Text("contents", new FileReader(f)));
              doc.add(Field.Keyword("filename", f.getCanonicalPath()));
              doc.add(Field.Keyword("name", f.getName()));
              doc.add(Field.Keyword("url", f.toURI().toURL().toExternalForm()));
              writer.addDocument(doc);

    ping.sumit wrote:
    ok.........thank you so much....
    any idea about other errors??There telling you that getDirectory(boolean) has been replaced
    getDirectory(String, boolean) - Static method in class org.apache.lucene.store.FSDirectory
    Deprecated. Use IndexWriter's create flag, instead, to create a new index. Found on [http://hudson.zones.apache.org/hudson/job/Lucene-trunk/javadoc//core/index-all.html]

  • Error While "Check in" of a orignal in DIR

    Hi All,
    I am trying to attach the orignals to DIR's in SAP. These orignals are PDF files and they are located on a external shared network drive. I need to run this process in background as i  need to upload around 60000 orignals. I am able to upload the orignal successfully with FM "BAPI_DOCUMENT_LOAD" in background mode. But now when i try to checkin the uploaded orignals with FM "CVAPI_DOC_CHECKIN", it gives me an error saying "Error While checking in and storing XXXX". Any clues in this would be very helpful.
    Regards
    Charitha

    Dear Charitha,
    You have placed the file on the application server and trying to access via front end.The presence of file on the application server could be seen via AL11 however you cannot access the file directly from windows. This is the reason you get an error.
    For checking in originals in background, API functions are much more flexible. Therefore please see also SAP note 504692, which includes several sample programs which could be helpful by checking in original files in background.
    The document BAPIs always require a SAPGUI or an open RFC connection, because this channel is required to start the program SAPHTTP (or SAPFTP) on the client for the check-in. When the BAPI is used in background, the system doesn't know where to get the original files from.
    Please note that the functionality you would like to realize is a very special one for which no standard solution exists. However, API-s are more flexible in some cases, i.e. CVAPI_DOC_CHECKIN with RFC destinations defined as SAPHTTPA/SAPFTPA could fulfill your requirements.
    Further please see also the SAP note 796709 which contain also necessary information for this action too. In note 766277 you will find also a complete documentation of all available DMS BAPIs in the attachment. Unfortunately there is not standard solution for such scenarios like explained by you. Because a lot of environment variables could influence the BAPI behavior.
    As additional information source kindly go through the note 729800. This will be of use for the current issue. If one uses BAPI's in via RFC-Lib, the ABAP-System makes a callback and starts the saphttp, sapftp via the open RFC channel. Therefore the RFC-Client has to allow this by calling RfcAllowStartProgram("sapftp;saphttp"). SAP note 144256 clearly describes the process.
    Best regards,
    Christoph

  • Issue while deploying code that uses OIM api: OIMClient

    We are trying to deploy a war file with some java code that interfaces with OIM by using the OIMClient api. Note that we have all the spring jars needed and it works fine on Tomcat. Our production env is on weblogic, and when we deploy the war file on weblogic it deploys fine. But when we test some of the web pages, we get the following error:
    ]] Root cause of ServletException.
    java.lang.NoClassDefFoundError: org/springframework/jndi/JndiTemplate
    at oracle.iam.platform.OIMClient.<init>(OIMClient.java:83)
    Truncated. see log file for complete stacktrace
    >
    The class file is available in a jar called spring-context with the same package structure: org.springframework.jndi.jnditemplate. I wonder why it cannot find the definition for that class. I also tried removing these jars from the war file and adding them to the domain's lib dir. I still end up with the same exception.
    Appreciate all the help I can get.
    Edited by: 958829 on Sep 12, 2012 11:01 PM

    Good one. I just threw every single spring jar the webapp needed into the domain's lib. I did not declare them as "provided" though. and it worked. I bet going into console/deployment and adding the jars individually would've worked too. Thanks mate. Cheers !

  • Barcode using api

    Hi,
    I'm trying to solve problem with showing barcodes when generating html or pdf documents using api. I have function in db which generates barcodes 128b with correct start, control and stop chars, I've tested it notepad, using font AdvC128b, printed, scanned and everything is correct. The problem is obviously in word template in which I add field like <?BARCODE?> and set font for the field AdvC128b upload template to bi publisher. Using api I generate html and I do get barcode on page but it's not correct it cannot be scanned, on view source I can see that it creates page like this:
    .c0 {line-height: 27.744pt;margin-top: 0.0pt;margin-bottom: 0.0pt;margin-left: 6.35pt;margin-right: 6.049pt;}
    .c1 {font-family: 'AdvC128b';font-size: 24.0pt;color: #000000;}
    <p class="c0"><span class="c1">Ě90902qÎ </span><a name="page-total-master0" id="page-total-master0"></a><a name="page-total" id="page-total"></a></p>In pdf document I cannot see barcode I can only see Ě90902qÎ Do I need to put some fonts in my java runtime like I did put Albany fonts for special characters?
    This is quite urgent, what are my options? What needs to be done to show correct barcodes in html and pdf documents using api and word templates,
    any suggestions are more than welcome,
    thanks in advance,
    Tomislav.

    this is my config
    <?xml version="1.0" encoding="UTF-8"?>
    <config version="1.0.0" xmlns="http://xmlns.oracle.com/oxp/config/"><!-- Properties -->
    <properties>
    <!-- System level properties    -->
    <property name="system-temp-dir">c:\tmp</property>
    <!-- PDF compression
    <property name="pdf-compression">true</property>     -->
    <!-- PDF Security
    <property name="pdf-security">true</property>
    <property name="pdf-open-password">user</property>
    <property name="pdf-permissions-password">owner</property>
    <property name="pdf-no-printing">true</property>
    <property name="pdf-no-changing-the-document">true</property>     -->
    </properties>
    <!-- Font setting -->
    <fonts>
    <!-- Font setting (for FO to PDF etc...) -->
    <font family="Arial" style="normal" weight="normal">
    <truetype path="/fonts/Arial.ttf"/>
    </font>
    <font family="Default" style="normal" weight="normal">
    <truetype path="/fonts/ALBANWTJ.ttf"/>
    </font>
    <font family="advc128b" style="normal" weight="normal">
    <truetype path="C:\Program Files\Java\jre1.6.0_06\lib\fonts\advc128b.ttf"/>
    </font>
    <!--Font substitute setting (for PDFForm filling etc...) -->
    <font-substitute name="MSGothic">
    <truetype path="/fonts/msgothic.ttc" ttcno="0"/>
    </font-substitute>
    </fonts>
    </config>and this is my complete log, sorry for posting it whole but I think it will be more useful to you:
    [100609_074839647][][STATEMENT] Logger.init(): *** DEBUG MODE IS ON. ***
    [100609_074839648][][STATEMENT] Logger.init(): LogDir=C:/tmp
    [100609_074839891][][STATEMENT] [ PDF GENERATOR ]---------------------------------------------
    [100609_074839892][][STATEMENT] XDO version   = Oracle BI Publisher 10.1.3.4.1
    [100609_074839892][][STATEMENT] java.home     = C:\Program Files\Java\jre1.6.0_06
    [100609_074839892][][STATEMENT] XDO_TOP       = null
    [100609_074839893][][STATEMENT] Config Path   = null
    [100609_074839893][][STATEMENT] Debug Cfg Path= C:\Program Files\Java\jre1.6.0_06\lib\xdodebug.cfg
    [100609_074839893][][STATEMENT] Font dir      = C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\
    [100609_074839894][][STATEMENT] Locale        = en-us
    [100609_074839894][][STATEMENT] Fallback font = truetype./fonts/ALBANWTJ.ttf
    [100609_074839894][][STATEMENT] [ PDF GENERATOR PROPERTIES ]----------------------------------
    [100609_074839896][][STATEMENT] digit-substitution=null(not set)
    [100609_074839896][][STATEMENT] font.ADVC128B.normal.normal=truetype.C:\Program Files\Java\jre1.6.0_06\lib\fonts\advc128b.ttf
    [100609_074839898][][STATEMENT] font.ALBANY WT J.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANWTJ.ttf
    [100609_074839899][][STATEMENT] font.ALBANY WT K.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANWTK.ttf
    [100609_074839899][][STATEMENT] font.ALBANY WT SC.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANWTS.ttf
    [100609_074839899][][STATEMENT] font.ALBANY WT TC.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANWTT.ttf
    [100609_074839900][][STATEMENT] font.ALBANY WT.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANYWT.ttf
    [100609_074839900][][STATEMENT] font.ANDALE DUOSPACE WT J.normal.bold=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOJB.ttf
    [100609_074839901][][STATEMENT] font.ANDALE DUOSPACE WT J.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOJ.ttf
    [100609_074839901][][STATEMENT] font.ANDALE DUOSPACE WT K.normal.bold=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOKB.ttf
    [100609_074839901][][STATEMENT] font.ANDALE DUOSPACE WT K.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOK.ttf
    [100609_074839902][][STATEMENT] font.ANDALE DUOSPACE WT SC.normal.bold=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOSCB.ttf
    [100609_074839902][][STATEMENT] font.ANDALE DUOSPACE WT SC.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOSC.ttf
    [100609_074839903][][STATEMENT] font.ANDALE DUOSPACE WT TC.normal.bold=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOTCB.ttf
    [100609_074839903][][STATEMENT] font.ANDALE DUOSPACE WT TC.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOTC.ttf
    [100609_074839903][][STATEMENT] font.ANDALE DUOSPACE WT.normal.bold=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOB.ttf
    [100609_074839904][][STATEMENT] font.ANDALE DUOSPACE WT.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUO.ttf
    [100609_074839904][][STATEMENT] font.ARIAL.normal.normal=truetype./fonts/Arial.ttf
    [100609_074839904][][STATEMENT] font.CG TIMES.italic.bold=type1.Times-BoldItalic
    [100609_074839905][][STATEMENT] font.CG TIMES.italic.normal=type1.Times-Italic
    [100609_074839905][][STATEMENT] font.CG TIMES.normal.bold=type1.Times-Bold
    [100609_074839905][][STATEMENT] font.CG TIMES.normal.normal=type1.Times-Roman
    [100609_074839906][][STATEMENT] font.COURIER NEW.italic.bold=type1.Courier-BoldOblique
    [100609_074839906][][STATEMENT] font.COURIER NEW.italic.normal=type1.Courier-Oblique
    [100609_074839906][][STATEMENT] font.COURIER NEW.normal.bold=type1.Courier-Bold
    [100609_074839907][][STATEMENT] font.COURIER NEW.normal.normal=type1.Courier
    [100609_074839907][][STATEMENT] font.COURIER.italic.bold=type1.Courier-BoldOblique
    [100609_074839907][][STATEMENT] font.COURIER.italic.normal=type1.Courier-Oblique
    [100609_074839908][][STATEMENT] font.COURIER.normal.bold=type1.Courier-Bold
    [100609_074839908][][STATEMENT] font.COURIER.normal.normal=type1.Courier
    [100609_074839908][][STATEMENT] font.DEFAULT.italic.bold=type1.Helvetica-BoldOblique
    [100609_074839909][][STATEMENT] font.DEFAULT.italic.normal=type1.Helvetica-Oblique
    [100609_074839909][][STATEMENT] font.DEFAULT.normal.bold=type1.Helvetica-Bold
    [100609_074839909][][STATEMENT] font.DEFAULT.normal.normal=truetype./fonts/ALBANWTJ.ttf
    [100609_074839910][][STATEMENT] font.GLFALLBACK.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANWTJ.ttf
    [100609_074839910][][STATEMENT] font.HELVETICA.italic.bold=type1.Helvetica-BoldOblique
    [100609_074839910][][STATEMENT] font.HELVETICA.italic.normal=type1.Helvetica-Oblique
    [100609_074839910][][STATEMENT] font.HELVETICA.normal.bold=type1.Helvetica-Bold
    [100609_074839911][][STATEMENT] font.HELVETICA.normal.normal=type1.Helvetica
    [100609_074839911][][STATEMENT] font.MONOSPACE.italic.bold=type1.Courier-BoldOblique
    [100609_074839911][][STATEMENT] font.MONOSPACE.italic.normal=type1.Courier-Oblique
    [100609_074839912][][STATEMENT] font.MONOSPACE.normal.bold=type1.Courier-Bold
    [100609_074839912][][STATEMENT] font.MONOSPACE.normal.normal=type1.Courier
    [100609_074839912][][STATEMENT] font.SANS-SERIF.italic.bold=type1.Helvetica-BoldOblique
    [100609_074839913][][STATEMENT] font.SANS-SERIF.italic.normal=type1.Helvetica-Oblique
    [100609_074839913][][STATEMENT] font.SANS-SERIF.normal.bold=type1.Helvetica-Bold
    [100609_074839913][][STATEMENT] font.SANS-SERIF.normal.normal=type1.Helvetica
    [100609_074839914][][STATEMENT] font.SERIF.italic.bold=type1.Times-BoldItalic
    [100609_074839914][][STATEMENT] font.SERIF.italic.normal=type1.Times-Italic
    [100609_074839914][][STATEMENT] font.SERIF.normal.bold=type1.Times-Bold
    [100609_074839915][][STATEMENT] font.SERIF.normal.normal=type1.Times-Roman
    [100609_074839915][][STATEMENT] font.SYMBOL.normal.normal=type1.Symbol
    [100609_074839915][][STATEMENT] font.TIMES NEW ROMAN.italic.bold=type1.Times-BoldItalic
    [100609_074839916][][STATEMENT] font.TIMES NEW ROMAN.italic.normal=type1.Times-Italic
    [100609_074839916][][STATEMENT] font.TIMES NEW ROMAN.normal.bold=type1.Times-Bold
    [100609_074839916][][STATEMENT] font.TIMES NEW ROMAN.normal.normal=type1.Times-Roman
    [100609_074839917][][STATEMENT] font.TIMES.italic.bold=type1.Times-BoldItalic
    [100609_074839917][][STATEMENT] font.TIMES.italic.normal=type1.Times-Italic
    [100609_074839917][][STATEMENT] font.TIMES.normal.bold=type1.Times-Bold
    [100609_074839918][][STATEMENT] font.TIMES.normal.normal=type1.Times-Roman
    [100609_074839918][][STATEMENT] font.ZAPFDINGBATS.normal.normal=type1.ZapfDingbats
    [100609_074839918][][STATEMENT] pdf-changes-allowed=0
    [100609_074839919][][STATEMENT] pdf-compression=true
    [100609_074839919][][STATEMENT] pdf-enable-accessibility=true
    [100609_074839920][][STATEMENT] pdf-enable-copying=false
    [100609_074839920][][STATEMENT] pdf-encryption-level=0
    [100609_074839920][][STATEMENT] pdf-font-embedding=true
    [100609_074839920][][STATEMENT] pdf-hide-menubar=false
    [100609_074839921][][STATEMENT] pdf-hide-toolbar=false
    [100609_074839921][][STATEMENT] pdf-no-accff=false
    [100609_074839922][][STATEMENT] pdf-no-cceda=false
    [100609_074839922][][STATEMENT] pdf-no-changing-the-document=false
    [100609_074839923][][STATEMENT] pdf-no-printing=false
    [100609_074839923][][STATEMENT] pdf-open-password=
    [100609_074839923][][STATEMENT] pdf-permissions=0
    [100609_074839924][][STATEMENT] pdf-permissions-password=
    [100609_074839924][][STATEMENT] pdf-printing-allowed=0
    [100609_074839925][][STATEMENT] pdf-replace-smartquotes=true
    [100609_074839925][][STATEMENT] pdf-security=false
    [100609_074839926][][STATEMENT] ------------------------------------------------------
    [100609_074840004][oracle.apps.xdo.template.rtf.field.RTFFieldResult][STATEMENT] stylename=Normal
    [100609_074840030][oracle.apps.xdo.common.font.FontFactory$FontDef][ERROR] Failed to open TrueType font: /fonts/ALBANWTJ.ttf(0)
    [100609_074840031][oracle.apps.xdo.common.font.FontFactory$FontDef][ERROR] Failed to open Type3 font (SVG embedded): null
    [100609_074840031][][EXCEPTION] Default.normal.normal is invalid. Set it to Helvetica
    [100609_074840033][oracle.apps.xdo.common.font.FontFactory$FontDef][STATEMENT] TrueType font created: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANWTJ.ttf(0)
    [100609_074840034][oracle.apps.xdo.common.font.FontFactory$FontDef][STATEMENT] TrueType font created: C:\Program Files\Java\jre1.6.0_06\lib\fonts\advc128b.ttf(0)
    [100609_074840041][oracle.apps.xdo.common.font.FontFactory$FontDef][STATEMENT] Type1 font created: Helvetica
    [100609_074840047][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Normal
    [100609_074840048][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Normal
    [100609_074840049][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Normal
    [100609_074840052][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Normal
    [100609_074840052][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Normal
    [100609_074840058][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Normal
    [100609_074840059][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Normal
    [100609_074840070][oracle.apps.xdo.template.rtf.RTF2XSLParser][STATEMENT] Time spent: 185
    [100609_074840072][oracle.apps.xdo.common.font.FontFactory][STATEMENT] type1.Helvetica closed.
    [100609_074840072][oracle.apps.xdo.common.font.FontFactory][STATEMENT] truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANWTJ.ttf closed.
    [100609_074840073][oracle.apps.xdo.common.font.FontFactory][STATEMENT] truetype.C:\Program Files\Java\jre1.6.0_06\lib\fonts\advc128b.ttf closed.
    [100609_074840097][][STATEMENT] Logger.init(): *** DEBUG MODE IS ON. ***
    [100609_074840097][][STATEMENT] Logger.init(): LogDir=C:/tmp
    [100609_074840098][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor constructor is called.
    [100609_074840174][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor has been initialized without default config.
    [100609_074840174][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.setData(String) is called with 'C:\Users\RIFnet\Downloads\04_Ispis_prijevoznog_lista.xml'.
    [100609_074840176][][STATEMENT] Logger.init(): *** DEBUG MODE IS ON. ***
    [100609_074840176][][STATEMENT] Logger.init(): LogDir=C:/tmp
    [100609_074840176][oracle.apps.xdo.template.FOProcessor][STATEMENT]    Log file 'xdo_100609_074840176_fo_data_11.xml' is created.
    [100609_074840178][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.setTemplate(String) is called with 'C:\Users\RIFnet\AppData\Local\Oracle\BIPublisher\TemplateBuilderforWord\tmp\tmp.xsl'.
    [100609_074840180][oracle.apps.xdo.template.FOProcessor][STATEMENT]    Log file 'xdo_100609_074840176_fo_data_12.xsl' is created.
    [100609_074840182][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.setOutput(String)is called with 'C:\Users\RIFnet\AppData\Local\Oracle\BIPublisher\TemplateBuilderforWord\tmp\581254851319596out.pdf'.
    [100609_074840208][oracle.apps.xdo.template.FOProcessor][STATEMENT]    Log file 'xdo_100609_074840176_fo_out3.out' is created.
    [100609_074840209][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.setLocale is called with 'en-us'.
    [100609_074840209][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.setOutputFormat(byte)is called with ID=1.
    [100609_074840210][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.setConfig(String) is called with 'C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config\xdo.cfg'.
    [100609_074840212][oracle.apps.xdo.template.FOProcessor][STATEMENT] Start Memory: max=254MB, total=6MB, free=1MB
    [100609_074840212][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.generate() called.
    [100609_074840216][oracle.apps.xdo.template.FOProcessor][STATEMENT] createFO(Object, Object) is called.
    [100609_074840409][oracle.apps.xdo.common.xml.XSLT10gR1][STATEMENT] Oracle XML Developers Kit 10.1.0.5.0 - Production
    [100609_074840410][oracle.apps.xdo.common.xml.XSLT10gR1][STATEMENT] Scalable Feature Disabled
    [100609_074840590][oracle.apps.xdo.template.FOProcessor][STATEMENT]    Log file 'xdo_100609_074840176_fo_fo_14.fo' is created.
    [100609_074840592][][STATEMENT] XSL-T time used: 329
    [100609_074840592][oracle.apps.xdo.template.fo.FOProcessingEngine][STATEMENT] Using proxy for PDF Generator
    [100609_074840598][oracle.apps.xdo.template.FOProcessor][STATEMENT] Calling FOProcessingEngine.process()
    [100609_074840599][][STATEMENT] Using optimized xslt
    [100609_074840614][][STATEMENT] [ PDF GENERATOR ]---------------------------------------------
    [100609_074840615][][STATEMENT] XDO version   = Oracle BI Publisher 10.1.3.4.1
    [100609_074840615][][STATEMENT] java.home     = C:\Program Files\Java\jre1.6.0_06
    [100609_074840615][][STATEMENT] XDO_TOP       = null
    [100609_074840615][][STATEMENT] Config Path   = null
    [100609_074840616][][STATEMENT] Debug Cfg Path= C:\Program Files\Java\jre1.6.0_06\lib\xdodebug.cfg
    [100609_074840616][][STATEMENT] Font dir      = C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\
    [100609_074840616][][STATEMENT] Locale        = en-us
    [100609_074840616][][STATEMENT] Fallback font = truetype./fonts/ALBANWTJ.ttf
    [100609_074840617][][STATEMENT] [ PDF GENERATOR PROPERTIES ]----------------------------------
    [100609_074840618][][STATEMENT] digit-substitution=null(not set)
    [100609_074840620][][STATEMENT] font.ADVC128B.normal.normal=truetype.C:\Program Files\Java\jre1.6.0_06\lib\fonts\advc128b.ttf
    [100609_074840620][][STATEMENT] font.ALBANY WT J.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANWTJ.ttf
    [100609_074840620][][STATEMENT] font.ALBANY WT K.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANWTK.ttf
    [100609_074840621][][STATEMENT] font.ALBANY WT SC.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANWTS.ttf
    [100609_074840621][][STATEMENT] font.ALBANY WT TC.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANWTT.ttf
    [100609_074840621][][STATEMENT] font.ALBANY WT.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANYWT.ttf
    [100609_074840622][][STATEMENT] font.ANDALE DUOSPACE WT J.normal.bold=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOJB.ttf
    [100609_074840622][][STATEMENT] font.ANDALE DUOSPACE WT J.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOJ.ttf
    [100609_074840622][][STATEMENT] font.ANDALE DUOSPACE WT K.normal.bold=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOKB.ttf
    [100609_074840623][][STATEMENT] font.ANDALE DUOSPACE WT K.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOK.ttf
    [100609_074840623][][STATEMENT] font.ANDALE DUOSPACE WT SC.normal.bold=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOSCB.ttf
    [100609_074840623][][STATEMENT] font.ANDALE DUOSPACE WT SC.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOSC.ttf
    [100609_074840624][][STATEMENT] font.ANDALE DUOSPACE WT TC.normal.bold=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOTCB.ttf
    [100609_074840624][][STATEMENT] font.ANDALE DUOSPACE WT TC.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOTC.ttf
    [100609_074840624][][STATEMENT] font.ANDALE DUOSPACE WT.normal.bold=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOB.ttf
    [100609_074840624][][STATEMENT] font.ANDALE DUOSPACE WT.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUO.ttf
    [100609_074840625][][STATEMENT] font.ARIAL.normal.normal=truetype./fonts/Arial.ttf
    [100609_074840625][][STATEMENT] font.CG TIMES.italic.bold=type1.Times-BoldItalic
    [100609_074840625][][STATEMENT] font.CG TIMES.italic.normal=type1.Times-Italic
    [100609_074840625][][STATEMENT] font.CG TIMES.normal.bold=type1.Times-Bold
    [100609_074840626][][STATEMENT] font.CG TIMES.normal.normal=type1.Times-Roman
    [100609_074840626][][STATEMENT] font.COURIER NEW.italic.bold=type1.Courier-BoldOblique
    [100609_074840626][][STATEMENT] font.COURIER NEW.italic.normal=type1.Courier-Oblique
    [100609_074840627][][STATEMENT] font.COURIER NEW.normal.bold=type1.Courier-Bold
    [100609_074840627][][STATEMENT] font.COURIER NEW.normal.normal=type1.Courier
    [100609_074840627][][STATEMENT] font.COURIER.italic.bold=type1.Courier-BoldOblique
    [100609_074840627][][STATEMENT] font.COURIER.italic.normal=type1.Courier-Oblique
    [100609_074840628][][STATEMENT] font.COURIER.normal.bold=type1.Courier-Bold
    [100609_074840628][][STATEMENT] font.COURIER.normal.normal=type1.Courier
    [100609_074840628][][STATEMENT] font.DEFAULT.italic.bold=type1.Helvetica-BoldOblique
    [100609_074840629][][STATEMENT] font.DEFAULT.italic.normal=type1.Helvetica-Oblique
    [100609_074840629][][STATEMENT] font.DEFAULT.normal.bold=type1.Helvetica-Bold
    [100609_074840629][][STATEMENT] font.DEFAULT.normal.normal=truetype./fonts/ALBANWTJ.ttf
    [100609_074840629][][STATEMENT] font.GLFALLBACK.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANWTJ.ttf
    [100609_074840630][][STATEMENT] font.HELVETICA.italic.bold=type1.Helvetica-BoldOblique
    [100609_074840630][][STATEMENT] font.HELVETICA.italic.normal=type1.Helvetica-Oblique
    [100609_074840630][][STATEMENT] font.HELVETICA.normal.bold=type1.Helvetica-Bold
    [100609_074840631][][STATEMENT] font.HELVETICA.normal.normal=type1.Helvetica
    [100609_074840631][][STATEMENT] font.MONOSPACE.italic.bold=type1.Courier-BoldOblique
    [100609_074840631][][STATEMENT] font.MONOSPACE.italic.normal=type1.Courier-Oblique
    [100609_074840631][][STATEMENT] font.MONOSPACE.normal.bold=type1.Courier-Bold
    [100609_074840632][][STATEMENT] font.MONOSPACE.normal.normal=type1.Courier
    [100609_074840632][][STATEMENT] font.SANS-SERIF.italic.bold=type1.Helvetica-BoldOblique
    [100609_074840633][][STATEMENT] font.SANS-SERIF.italic.normal=type1.Helvetica-Oblique
    [100609_074840633][][STATEMENT] font.SANS-SERIF.normal.bold=type1.Helvetica-Bold
    [100609_074840633][][STATEMENT] font.SANS-SERIF.normal.normal=type1.Helvetica
    [100609_074840634][][STATEMENT] font.SERIF.italic.bold=type1.Times-BoldItalic
    [100609_074840634][][STATEMENT] font.SERIF.italic.normal=type1.Times-Italic
    [100609_074840635][][STATEMENT] font.SERIF.normal.bold=type1.Times-Bold
    [100609_074840635][][STATEMENT] font.SERIF.normal.normal=type1.Times-Roman
    [100609_074840635][][STATEMENT] font.SYMBOL.normal.normal=type1.Symbol
    [100609_074840636][][STATEMENT] font.TIMES NEW ROMAN.italic.bold=type1.Times-BoldItalic
    [100609_074840636][][STATEMENT] font.TIMES NEW ROMAN.italic.normal=type1.Times-Italic
    [100609_074840636][][STATEMENT] font.TIMES NEW ROMAN.normal.bold=type1.Times-Bold
    [100609_074840637][][STATEMENT] font.TIMES NEW ROMAN.normal.normal=type1.Times-Roman
    [100609_074840637][][STATEMENT] font.TIMES.italic.bold=type1.Times-BoldItalic
    [100609_074840637][][STATEMENT] font.TIMES.italic.normal=type1.Times-Italic
    [100609_074840638][][STATEMENT] font.TIMES.normal.bold=type1.Times-Bold
    [100609_074840638][][STATEMENT] font.TIMES.normal.normal=type1.Times-Roman
    [100609_074840639][][STATEMENT] font.ZAPFDINGBATS.normal.normal=type1.ZapfDingbats
    [100609_074840639][][STATEMENT] pdf-changes-allowed=0
    [100609_074840639][][STATEMENT] pdf-compression=true
    [100609_074840640][][STATEMENT] pdf-enable-accessibility=true
    [100609_074840640][][STATEMENT] pdf-enable-copying=false
    [100609_074840640][][STATEMENT] pdf-encryption-level=0
    [100609_074840641][][STATEMENT] pdf-font-embedding=true
    [100609_074840641][][STATEMENT] pdf-hide-menubar=false
    [100609_074840642][][STATEMENT] pdf-hide-toolbar=false
    [100609_074840642][][STATEMENT] pdf-no-accff=false
    [100609_074840642][][STATEMENT] pdf-no-cceda=false
    [100609_074840643][][STATEMENT] pdf-no-changing-the-document=false
    [100609_074840643][][STATEMENT] pdf-no-printing=false
    [100609_074840643][][STATEMENT] pdf-open-password=
    [100609_074840643][][STATEMENT] pdf-permissions=0
    [100609_074840644][][STATEMENT] pdf-permissions-password=
    [100609_074840644][][STATEMENT] pdf-printing-allowed=0
    [100609_074840645][][STATEMENT] pdf-replace-smartquotes=true
    [100609_074840645][][STATEMENT] pdf-security=false
    [100609_074840645][][STATEMENT] ------------------------------------------------------
    [100609_074840672][][STATEMENT]  Rendering page [1]
    [100609_074840679][oracle.apps.xdo.common.font.FontFactory$FontDef][ERROR] Failed to open TrueType font: /fonts/ALBANWTJ.ttf(0)
    [100609_074840680][oracle.apps.xdo.common.font.FontFactory$FontDef][ERROR] Failed to open Type3 font (SVG embedded): null
    [100609_074840680][][EXCEPTION] Default.normal.normal is invalid. Set it to Helvetica
    [100609_074840681][oracle.apps.xdo.common.font.FontFactory$FontDef][STATEMENT] TrueType font created: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANWTJ.ttf(0)
    [100609_074840681][oracle.apps.xdo.common.font.FontFactory$FontDef][STATEMENT] TrueType font created: C:\Program Files\Java\jre1.6.0_06\lib\fonts\advc128b.ttf(0)
    [100609_074840692][][STATEMENT] Phase2 time used: 42ms
    [100609_074840692][][STATEMENT]  Continue rendering page [1]
    [100609_074840693][][STATEMENT]  Generating page [1]
    [100609_074840703][][STATEMENT] Phase2 time used: 11ms
    [100609_074840704][][STATEMENT] Total time used: 102ms for processing XSL-FO
    [100609_074840719][oracle.apps.xdo.common.font.FontFactory][STATEMENT] truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANWTJ.ttf closed.
    [100609_074840719][oracle.apps.xdo.common.font.FontFactory][STATEMENT] truetype.C:\Program Files\Java\jre1.6.0_06\lib\fonts\advc128b.ttf closed.
    [100609_074840720][][STATEMENT] FO+Gen time used: 121 msecs
    [100609_074840720][oracle.apps.xdo.template.FOProcessor][STATEMENT] clearInputs(Object) is called.
    [100609_074840721][oracle.apps.xdo.template.FOProcessor][STATEMENT] clearInputs(Object) done. All inputs are cleared.
    [100609_074840723][oracle.apps.xdo.template.FOProcessor][STATEMENT] End Memory: max=254MB, total=7MB, free=0MB

  • Printing a PDF document using Java 1.4 Printing API

    Hi,
    When I tried to print a PDF document using JAVA 1.4 Printing API, I got the following exception.
    Exception in thread "main" sun.print.PrintJobFlavorException: invalid flavor
    at sun.print.Win32PrintJob.print(Win32PrintJob.java:290)
    at Printing.main(Printing.java:40)
    I am able to print the same PDF document using Acrobat reader.
    Is PDF format not supported in JAVA 1.4 printing API? or is something wrong in my code?
    here is the sample JAVA program that I was using
    import javax.print.*;
    import javax.print.attribute.*;
    import java.io.*;
    public class Printing {
    public static void main(String args[]) throws Exception {
    String filename = args[0];
    PrintRequestAttributeSet pras =
    new HashPrintRequestAttributeSet();
    DocFlavor flavor = DocFlavor.INPUT_STREAM.PDF;
    PrintService defaultService =
    PrintServiceLookup.lookupDefaultPrintService();
    DocPrintJob job = defaultService.createPrintJob();
    FileInputStream fis = new FileInputStream(filename);
    DocAttributeSet das = new HashDocAttributeSet();
    Doc doc = new SimpleDoc(fis, flavor, das);
    job.print(doc, pras);
    Thread.sleep(10000);
    System.exit(0);
    Thank you
    Sumana

    Here's a pure Java solution (that works!):
    http://www.mycgiserver.com/~zhouwu/pdf/readme.html
    The caveats are:
    - prints only to the default printer
    - requires a properties file located in the home directory
    my workaround for the last:
         * Print a PDF file to the default printer (might consume lots of memory!).
         * <p>
         * <b>Required:</b>
         * <ul>
         * <li>a file "acrobat.properties" needs to be in the working directory. The content is:
    <table align="center" bgcolor="#E0E0E0" border=1 cellpadding="10" cellspacing="0"><tr><td><pre style="margin-top:0; margin-bottom:0">
    #com.adobe.acrobat.Viewer Properties
    #Wed Oct 29 20:34:05 PST 2003
    com.adobe.acrobat.AcceptedLicAgreement=true
    com.adobe.acrobat.Fax_Fine_Mode=true
    com.adobe.acrobat.Find\:FindAll=false
    com.adobe.acrobat.Find\:FindBackwards=false
    com.adobe.acrobat.Find\:FindWholeWord=false
    com.adobe.acrobat.Find\:MatchCase=false
    com.adobe.acrobat.Open_Dialog_Directory=C\:\\temp\\
    com.adobe.acrobat.Open_Dialog_File=itext.pdf
    com.adobe.acrobat.Print_Method_Known=true
    com.adobe.acrobat.Shrink_To_Fit=false
    com.adobe.acrobat.SitePreferencesURL=file\://localhost/C\:/pdf/acrobat-site.properties
    com.adobe.acrobat.Use_Print_Server=false
    com.adobe.acrobat.util.fontDirectories=C\:\\Winnt\\Fonts
    com.adobe.acrobat.util.fontIgnoreExtensions=.fon;.pfm;.ini;.lst;.txt;.doc;.ttmap;.z;.enc;.dir;.afm;.f3b;.pfa;.spd;.ps;.bepf;.map;.alias;.scale;.all;.upr
    </pre></td></tr></table>
         * <li>The JAR files PDFPrinter.jar, acrobat.jar and MRJToolkitStubs.zip in the CLASSPATH.
         * </ul>
         * <p>
         * Note: the file "acrobat.properties" is expected to be in the user's home directory. As this is not always feasible,
         * the system property "user.home" is mapped to "user.dir" for the time of execution.
         * @param fileName Name of PDF file to print.
         * @throws Exception on error.
         * @see <a href="http://www.mycgiserver.com/~zhouwu/pdf/readme.html">PDF Server (Silent) Printing</a>
        public void printPDF(String fileName) throws Exception {
            String oldHome = System.getProperty("user.home");
            System.setProperty("user.home", System.getProperty("user.dir"));
            PDFPrinter vi = new PDFPrinter();
            vi.activate();
            vi.setDocumentInputStream(new FileInputStream(fileName));
            vi.printAll();
            System.setProperty("user.home", oldHome);
        }//printPDF()I just need the following additional files in my CLASSPATH: PDFPrinter.jar, acrobat.jar and MRJToolkitStubs.zip. Despite the note at the site above that "printing quality is not very good", i can't agree: the print quality is quite good. Not perfect, but acceptable for most uses.
    (Tested on Windows 2000 SP4, J2SE 1.4.2_03, hp laserjet 2300dn)

  • How to represent a tree (like file system dirs) in object?

    I am parsing a dynamic set of nodes at runtime. The nodes below a "known" node are all dynamic, in that they can be any number of nodes at any number of depth. I am basically doing what DOM does, in that I want to take these nodes below the "known" node, and create a simple object in memory. I am using xml pull parser though, so I am not using any sort of DOM/SAX/SAX2 parsing and do not want to use anything outside of my own object or one that is in the JDK 1.3 or later API. I see TreeSet and TreeMap, but I don't see much in the way of parent/child(ren) methods. I would think that each node can have a parent node, as well as any number of children.
    Is there an object like this (simple, small bit of code preferrably) that I can download/use, or does someone have a snippet in mind they can post that would be a valid object to represent an xml/dir tree the way I need?
    Thanks.

    I've seen this kind of think implemented very easily. You basically need a TreeNode object, which has a collection of children (which are also TreeNodes).
    You can use a Vector or Hashtable or some such for the children. I would also suggest maintaining a "parent" reference in each child.
    At that point, you simply implement the getters and setters that you want.
    Chances are you will also want to maintain some info about each node. You can be very specific (say providing a name and one or two other attributes), or you could introduce another collection: properties.
    I suggest you implement some kind of toString(), which lets you print out your tree.
    Finally, you may decide that you want to support access by path or relative path. It's useful, but paths are a pain in the butt - trickier code to get right.
    My estimate: A few hours for the basics, and then tweak it as you go.

  • Facing Strange Problem in DIR HOW TO DISABLE THE RIGHT CLICK MOUSE IN THE DIRECTOR? (through parent script/ movie?)

    Summary : HARD QUESTION : In the DIR file, the game runs well, right click = no effect. Coz I'm not making right click scripts. BUT in EXE file, right click = ERROR.
    Explanation :
    In the Adobe Director screen, this DIR file game is worked 100%.
    I tested right click EVERYWHERE... NOTHING HAPPENS.
    Because I don't make any programming with "on rightmouseup" or "on rightmousedown" command.
    THEN, I published it into EXE...
    I tested right click EVERYWHERE...I hoped the result will be the same as DIR tests....
    WHEN I RIGHT CLICK IN THE AREA THAT'S GIVEN ON EXITFRAME ME, IT SHOWS ERROR, CHANGING PICTURES.....
    this does not happened in the DIR file...
    I didn't make a runmode program or anything else.... This is awkward... mystery for me...
    WHY THERE'S A DIFFERENCE IN DIR and EXE... it should be exactly the same result.
    I have used Director for years.... This is really strange for me...
    >>>>>>>>HOW TO DISABLE THE RIGHT CLICK MOUSE IN THE DIRECTOR?
    THIS ONE is useless.... It doesn't prevent the rightmouse click,...
          on rightmouseup me
                 nothing
         end
          on rightmousedown me
                 nothing
         end

    Dear Adobe Forums friends
    I need your help and guide through this problem...
    In the game's dir file that is run on the DIRECTOR softwawre,
    the game runs perfectly, I can do LEFT CLICKS (coz I programmed the script)
    and when I do RIGHT CLICKS = there are no effect ( coz I don't do script for it)
    LATER THIS GAME TURNED INTO EXE.
    It supposed to run like the dir file as ABOVE. BUT STRANGELY, WHEN
    I DO RIGHT CLICKS, it turns Error and showing as the picture attachment.
    The right clicks that goes error are above the picture of numeric button only. (in DIR file
    this run normal). I looked into the script behind the numeric button picture, there are only "on exitframe me", there are no script I made inside the "on exitframe me" that is triggering RIGHT CLICKS.
    1. I wonder why there are differences in DIR and EXE effect
    2. Why right click? Left click effects are all normal.
    3. IS THERE ANY WAY TO DISABLE ALL RIGHT CLICKs since the beginning of EXE. So the game will be run normal. I don't need right clicks anyway, but whenever people do right click there will be ERROR.??
    4. Is there any way to STOP THE MESSSAGE BOX TO APPEAR IN FRONT OF THE GAME? (I hate the Dirrector Error Message Box), or auto press OK.
    NB: this game uses Buddy API Xtras, File IO Xtras.
    Thx
    David S

Maybe you are looking for

  • Problem with Send and Receive Emal In SAP System

    Hi gurus! I have a following quote: Dear ! I have a problem with send and receive email in SAP system following : I want to test send and receive email in local network at my company. I had two server Server 1 : I setup Exchange Mail Server 2007 with

  • Printing report on AIX

    Hi, For printing the report on windows machine iam using following code which executes perfectly. String userId =      "atl3_dev_jul04/atl3_dev_jul04@MGI"; String printer ="\""+"\\\\VIJAYAKRISHNA\\HP LaserJet 5100 PCL 6"+"\"";      Runtime rt = Runti

  • Is it possible to Merge Entities in Logical Model ?

    Hi, There is an option to merge mutiple tables in a Relational Model.Similarly is there an option to merge multiple Entities in a Logical Model? Thanks in Advance Regards

  • Website a mess in IE5, 6, 7

    Its the typical story, the website I am working on looks great in Safari/Firefox, but doesn't seem to render the same in IE5-7, most notably the nav bar is out of place. How can I fix this? Should I even care about IE5 and 6? Attached is the CSS code

  • My iphone Contacts Are A MESS!

    I methodically went through and cleaned up my contact list on my phone so it would match my iCloud account.  Only when I did my last back up it wiped that all out on the 4S iPhone.  I know I did something wrong in iTunes but not sure what I need to d