OIM should send spmlv2 requests via java code to service provider

Hi,
We have the situation in which OIM acts as Requesting authority,Spml provider acts as service provider.
Oim should send spml requests from custom java code.Spml2Client is used.We are not using genericc technology connector.
Require sample java code for Search operation.
I had done for modify request.
The request and response is as follows
PSO ID returned after searching: org.openspml.v2.msg.spml.PSOIdentifier@5c32a864
<deleteRequest xmlns='urn:oasis:names:tc:SPML:2:0' recursive='false'/>
<deleteResponse xmlns='urn:oasis:names:tc:SPML:2:0' status='success'/>
<modifyRequest xmlns='urn:oasis:names:tc:SPML:2:0' returnData='identifier'>
<psoID ID='cn=TPS User8,ou=TPS,dc=fosterstechodc,dc=com'/>
<modification modificationMode='replace'>
<data>
<dsml:modification xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='otherHomePhone' operation='replace'>
<dsml:value>999999</dsml:value>
</dsml:modification>
</data>
</modification>
<modification modificationMode='delete'>
<data>
<dsml:modification xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='description' operation='delete'>
</dsml:modification>
</data>
</modification>
<modification modificationMode='add'>
<data>
<dsml:modification xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='firstname' operation='add'>
<dsml:value>Barbara</dsml:value>
</dsml:modification>
</data>
</modification>
</modifyRequest>
SpmlClient: sending to http://10.101.151.209/ARServerSPML/SPMLProvider.asmx
<modifyRequest xmlns='urn:oasis:names:tc:SPML:2:0' returnData='identifier'>
<psoID ID='cn=TPS User8,ou=TPS,dc=fosterstechodc,dc=com'/>
<modification modificationMode='replace'>
<data>
<dsml:modification xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='otherHomePhone' operation='replace'>
<dsml:value>999999</dsml:value>
</dsml:modification>
</data>
</modification>
<modification modificationMode='delete'>
<data>
<dsml:modification xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='description' operation='delete'>
</dsml:modification>
</data>
</modification>
<modification modificationMode='add'>
<data>
<dsml:modification xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='firstname' operation='add'>
<dsml:value>Barbara</dsml:value>
</dsml:modification>
</data>
</modification>
</modifyRequest>
SpmlClient: received
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><modifyResponse status="failure" xmlns="urn:oasis:names:tc:SPML:2:0"><error>malformedRequest</error><errorMessage>At least one &lt;modification&gt; element must be specified.</errorMessage></modifyResponse></soap:Body></soap:Envelope>
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><modifyResponse status="failure" xmlns="urn:oasis:names:tc:SPML:2:0"><error>malformedRequest</error><errorMessage>At least one &lt;modification&gt; element must be specified.</errorMessage></modifyResponse></soap:Body></soap:Envelope>
org.openspml.v2.util.Spml2ExceptionWithResponse: At least one <modification
The response says the modifaction tag is not present.
The code for this request is
Modification[] modifications =
               { newModWithDSMLMod("otherHomePhone", "999999", ModificationMode.REPLACE),
                         newModWithDSMLMod("description", null, ModificationMode.DELETE),
                         newModWithDSMLMod("cn", "Barbara", ModificationMode.REPLACE)};
               modifyResp = customSPMLClient.modifyUser(client,searchPSOId,modifications);
method:
public ModifyResponse modifyUser(Spml2Client client,PSOIdentifier psoId,Modification[] modifications) throws Exception {
          client.setTrace(true);
          ReflectiveXMLMarshaller marshaller = new ReflectiveXMLMarshaller();
          ModifyRequest modReq = new ModifyRequest(null, // String requestId,
                    null, // ExecutionMode executionMode,
                    psoId, // PSOIdentifier psoID
                    modifications, // Modification[] modifications
                    ReturnData.IDENTIFIER // ReturnData returnData
          System.out.println(modReq.toXML(marshaller));
          ModifyResponse modResp = (ModifyResponse) client.send(modReq);
          System.out.println(modResp.toXML(marshaller));
          return modResp;
private static Modification newModWithDSMLMod(String modName, String modValue, ModificationMode modMode)
     throws DSMLProfileException
          /*DSMLModification dsmlMod = null;
          dsmlMod = new DSMLModification(modName, modValue, modMode);
          Extensible data = new Extensible();
          data.addOpenContentElement(dsmlMod);
          Selection component = null;
          return new Modification(component, data, null, modMode);
Please help me out.
I need sample java code for search operation tooo.
regards,
Sindhu.M

the sample JAVA codes are provided for sending SPML requests, HTTPClient and one more (i dont remember rite now) within the OIM installation folders itself. It's in the 'SampleHttpClient' folder. Check it once. WSDL, sample XML's and the JAVA codes all are there. You just need to set the classpath and run it.
- oidm.

Similar Messages

  • HealthCheck operation fails on mcsmgr.log and Error sending DAV request. HTTP code 600, status on Data transferservice.log

    Hi,
    I have a CAS, primary site and a DP.  On Site properties I have set client communication : HTTP or HTTPS  and PKI. on management point properties as well I have set Client communication as HTTPS PKI.
    1. On primary site Multicast_servicepoint status is "error": I checked the mcsmgr.log and found below details:
    Failed to send http request /SMS_MCS/.sms_mcs?op=healthcheck. Error 12030
    Call to HttpSendRequestSync failed for port 443 with 12030 error code.
    Health check operation failed, error code is 12030
    Health check operation failed, error code is 12030
    2. When I deploy any package to client it stuck in software center as "Downloading the information". no content has been getting copied.  I checked the log 'datatransferservice.log'  and found below error :
    "Successfully sent location services HTTPS failure message.
    Error sending DAV request. HTTP code 600, status ''
    GetDirectoryList_HTTP mapping original error 0x80072efe to 0x800704cf.
    GetDirectoryList_HTTP('https://myDPaddress.com:443/NOCERT_SMS_DP_SMSPKG$/CAS00028') failed with code 0x800704cf.
    Job {CFD64352-918B-4C1D-A9C4-9C52ABAC6524} reverted impersonation.
    Error retrieving manifest (0x800704cf).  Will attempt retry 1 in 30 seconds.
    Failed to send request to /NOCERT_SMS_DP_SMSPKG$/CAS00028 at host Mydpaddress, error 0x2efe
    [CCMHTTP] ERROR: URL=https://mydpaddress.com:443/NOCERT_SMS_DP_SMSPKG$/CAS00028, Port=443, Options=480, Code=12030, Text=ERROR_WINHTTP_CONNECTION_ERROR
    Raising event:
    instance of CCM_CcmHttp_Status
    ClientID = "GUID:41932A1A-ADDE-450F-8F16-22DC875D2E39";
    DateTime = "20141225182459.543000+000";
    HostName = "mydpaddress.comt";
    HRESULT = "0x80072efe";
    ProcessID = 7356;
    StatusCode = 600;
    ThreadID = 6936;
    Successfully sent location services HTTPS failure message.
    Error sending DAV request. HTTP code 600, status ''
    I think there is some issue with IIS configuration on site server or DP or on both. Please let me know a solution..
    Regards

    I have corrected the PKI certificate. still Issue not resolved.
    I checked further and found sms_mp_control_manager was stopped and was offline, Unable to communicate with component (error below)
    Unable to query the component.
    This is a child primary server. not on production yet.  Removing and adding MP will resolve the issue ? if yes what are the prerequesite you suggest. pls share any link .
    or any quick resolution you have ? please share...
    Log: mpmsi.lasterror
    Property(S): SMSCWSADSPATH = IIS://LocalHost/W3SVC/1
    Property(S): CCMSHAREMODE = 1
    MSI (s) (5C:EC) [08:22:19:157]: Note: 1: 1729 
    MSI (s) (5C:EC) [08:22:19:157]: Product: ConfigMgr Management Point -- Configuration failed.
    MSI (s) (5C:EC) [08:22:19:157]: Windows Installer reconfigured the product. Product Name: ConfigMgr Management Point. Product Version: 5.00.7804.1000. Product Language: 1033. Manufacturer: Microsoft Corporation. Reconfiguration success or error status:
    1603.
    MSI (s) (5C:EC) [08:22:19:368]: Deferring clean up of packages/files, if any exist
    MSI (s) (5C:EC) [08:22:19:368]: MainEngineThread is returning 1603
    MSI (s) (5C:B0) [08:22:19:372]: RESTART MANAGER: Session closed.
    MSI (s) (5C:B0) [08:22:19:372]: No System Restore sequence number for this installation.
    === Logging stopped: 12/26/2014  8:22:19 ===
    MSI (s) (5C:B0) [08:22:19:375]: User policy value 'DisableRollback' is 0
    MSI (s) (5C:B0) [08:22:19:375]: Machine policy value 'DisableRollback' is 0
    MSI (s) (5C:B0) [08:22:19:375]: Incrementing counter to disable shutdown. Counter after increment: 0
    MSI (s) (5C:B0) [08:22:19:375]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
    MSI (s) (5C:B0) [08:22:19:376]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
    MSI (s) (5C:B0) [08:22:19:376]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
    MSI (s) (5C:B0) [08:22:19:377]: Destroying RemoteAPI object.
    MSI (s) (5C:00) [08:22:19:377]: Custom Action Manager thread ending.
    MSI (c) (30:B0) [08:22:19:378]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
    MSI (c) (30:B0) [08:22:19:379]: MainEngineThread is returning 1603
    === Verbose logging stopped: 12/26/2014  8:22:19 ===

  • Error sending DAV request. HTTP code 500, status 'Internal Server Error'

    Hi All,
    I am getting the error On SCCM R2 Environment .. on the client machine we are getting the below issue and software center 
    is not showing any information..
    While checking on the client's DatatransferService.log.. i am getting the below issues..
    Successfully sent location services HTTP failure message.
    Error sending DAV request. HTTP code 500, status 'Internal Server Error'
    GetDirectoryList_HTTP('http://MachineName:80/SMS_DP_SMSPKG$/7ea0b105-5592-48cd-8b8e-81777537c34f') failed with code 0x87d0027e.
    i realize it because of Isapi filter issues.. can any one guide me to resolve the issues..
    KJSUBBU

    Hi,
    In addition, I recommend you check whether you have additional Authentication methods (like ASP.NET Impersonation) enabled. 
    Disable the authentication method and try again.
    Also, please review the link below, here is a article about troubleshoot ISAPI filter issue.
    Error message when you visit a Web site that is hosted on IIS 7.0: "HTTP Error 500.0 – Internal Server Error"
    http://support.microsoft.com/kb/942031
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • SCCM 2012 - Error sending DAV request. HTTP code 401, status 'Unauthorized'

    Hi everyone!
    I have a SCCM 2012 install with SQL 2008 R2 RU6 on it. All roles on the same server.
    Application deployment was working last week and suddently, today, it's not working anymore.
    Client fail to download applications. When I see the log "dataTransfertService.log" I got:
    <![LOG[Enumerating DTS jobs for logged on user 'S-1-5-21-3498061407-3801314532-3722532443-1799'.]LOG]!><time="16:45:51.388-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="3536" file="dtslogon.cpp:135">
    <![LOG[Enumeration of DTS jobs for logged on user 'S-1-5-21-3498061407-3801314532-3722532443-1799' is complete.]LOG]!><time="16:45:51.878-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="3536" file="dtslogon.cpp:151">
    <![LOG[Enumerating DTS jobs for helper user 'S-1-5-21-3498061407-3801314532-3722532443-1799'.]LOG]!><time="16:45:51.878-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="3536" file="dtslogon.cpp:154">
    <![LOG[Enumeration of DTS jobs for helper user 'S-1-5-21-3498061407-3801314532-3722532443-1799' is complete.]LOG]!><time="16:45:51.939-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="3536" file="dtslogon.cpp:170">
    <![LOG[UpdateURLWithTransportSettings(): OLD URL - http://xxx.com/SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1]LOG]!><time="16:48:31.738-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="5616" file="ccmutillib.cpp:3083">
    <![LOG[UpdateURLWithTransportSettings(): NEW URL - http://xxx.com:80/SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1]LOG]!><time="16:48:31.738-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="5616" file="ccmutillib.cpp:3095">
    <![LOG[DTSJob {451ACA72-8FCC-4083-B7B5-C4C68D5E5786} created to download from 'http://xxx.com:80/SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1' to 'C:\WINDOWS\ccmcache\3f'.]LOG]!><time="16:48:31.816-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="5616" file="datatransferservice.cpp:186">
    <![LOG[DTSJob {451ACA72-8FCC-4083-B7B5-C4C68D5E5786} in state 'DownloadingManifest'.]LOG]!><time="16:48:31.816-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="2432" file="dtsjob.h:157">
    <![LOG[[CCMHTTP] ERROR: URL=http://xxx.com:80/SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1, Port=80, Options=224, Code=0, Text=CCM_E_BAD_HTTP_STATUS_CODE]LOG]!><time="16:48:32.281-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="4204" file="ccmhttperror.cpp:291">
    <![LOG[Raising event:
    instance of CCM_CcmHttp_Status
    ClientID = "GUID:4D48BE30-A5BE-40C1-A946-B0773DE7C060";
    DateTime = "20120723144832.297000+000";
    HostName = "xxx.com";
    HRESULT = "0x87d0027e";
    ProcessID = 2236;
    StatusCode = 401;
    ThreadID = 4204;
    ]LOG]!><time="16:48:32.297-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="4204" file="event.cpp:729">
    <![LOG[Successfully sent location services HTTP failure message.]LOG]!><time="16:48:32.312-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="4204" file="ccmhttperror.cpp:395">
    <![LOG[Error sending DAV request. HTTP code 401, status 'Unauthorized']LOG]!><time="16:48:32.312-120" date="07-23-2012" component="DataTransferService" context="" type="3" thread="4204" file="util.cpp:629">
    <![LOG[GetDirectoryList_HTTP('http://xxx.com:80/SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1') failed with code 0x80070005.]LOG]!><time="16:48:32.312-120" date="07-23-2012" component="DataTransferService" context="" type="3" thread="4204" file="util.cpp:688">
    <![LOG[Job {451ACA72-8FCC-4083-B7B5-C4C68D5E5786} impersonating Network Access Account.]LOG]!><time="16:48:32.825-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="4204" file="netaccessaccount.cpp:429">
    <![LOG[[CCMHTTP] ERROR: URL=http://xxx.com:80/SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1, Port=80, Options=224, Code=0, Text=CCM_E_BAD_HTTP_STATUS_CODE]LOG]!><time="16:48:32.887-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="4204" file="ccmhttperror.cpp:291">
    <![LOG[Raising event:
    instance of CCM_CcmHttp_Status
    ClientID = "GUID:4D48BE30-A5BE-40C1-A946-B0773DE7C060";
    DateTime = "20120723144832.887000+000";
    HostName = "xxx.com";
    HRESULT = "0x87d0027e";
    ProcessID = 2236;
    StatusCode = 401;
    ThreadID = 4204;
    ]LOG]!><time="16:48:32.887-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="4204" file="event.cpp:729">
    <![LOG[Successfully sent location services HTTP failure message.]LOG]!><time="16:48:32.902-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="4204" file="ccmhttperror.cpp:395">
    <![LOG[Error sending DAV request. HTTP code 401, status 'Unauthorized']LOG]!><time="16:48:32.902-120" date="07-23-2012" component="DataTransferService" context="" type="3" thread="4204" file="util.cpp:629">
    <![LOG[GetDirectoryList_HTTP('http://xxx.com:80/SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1') failed with code 0x80070005.]LOG]!><time="16:48:32.902-120" date="07-23-2012" component="DataTransferService" context="" type="3" thread="4204" file="util.cpp:688">
    <![LOG[Job {451ACA72-8FCC-4083-B7B5-C4C68D5E5786} reverted impersonation.]LOG]!><time="16:48:32.902-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="4204" file="netaccessaccount.h:93">
    <![LOG[DTSJob {451ACA72-8FCC-4083-B7B5-C4C68D5E5786} in state 'Cancelled'.]LOG]!><time="16:48:33.011-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="5616" file="dtsjob.h:157">
    <![LOG[DTSJob {451ACA72-8FCC-4083-B7B5-C4C68D5E5786} cancelled by client.]LOG]!><time="16:48:33.011-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="5616" file="dtsjob.cpp:2771">
    I already verified every single permissions, NAA is configured and has correct rights. I really don't understand what has changed...
    any suggestion???
    Thank you very much!

    SMS_DP_SMSPKG$ has Windows Authentication Enabled.
    IIS Logs:
    2012-07-23 15:10:08 10.28.80.98 CCM_POST /ccm_system/request - 80 - 10.28.81.79 ccmhttp 200 0 0 339
    2012-07-23 15:11:38 10.28.80.98 CCM_POST /ccm_system/request - 80 - 10.28.81.52 ccmhttp 200 0 0 38
    2012-07-23 15:11:38 10.28.80.98 CCM_POST /ccm_system/request - 80 - 10.28.81.52 ccmhttp 200 0 0 166
    2012-07-23 15:11:38 10.28.80.98 PROPFIND /SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1 - 80 - 10.28.81.52 SMS+CCM+5.0 401 2 5 1
    2012-07-23 15:11:39 10.28.80.98 PROPFIND /SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1 - 80 - 10.28.81.52 SMS+CCM+5.0 401 2 5 0
    2012-07-23 15:11:39 10.28.80.98 PROPFIND /SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1 - 80 - 10.28.81.52 SMS+CCM+5.0 401 1 3221225581 11
    2012-07-23 15:11:39 10.28.80.98 CCM_POST /ccm_system/request - 80 - 10.28.81.52 ccmhttp 200 0 0 384
    2012-07-23 15:13:01 fe80::31df:ba5:7c1:caf6%11 GET /SMS_MP/.sms_aut MPLIST 80 - fe80::31df:ba5:7c1:caf6%11 SMS_MP_CONTROL_MANAGER 200 0 0 4
    2012-07-23 15:13:11 10.28.80.98 CCM_POST /ccm_system_windowsauth/request - 80 - 10.29.73.101 ccmhttp 401 2 5 6
    2012-07-23 15:14:01 10.28.80.98 CCM_POST /ccm_system/request - 80 - 10.28.82.72 ccmhttp 200 0 0 23
    2012-07-23 15:15:40 10.28.80.98 CCM_POST /ccm_system/request - 80 - 10.28.81.52 ccmhttp 200 0 0 348
    2012-07-23 15:15:55 10.28.80.98 CCM_POST /ccm_system/request - 80 - 10.28.81.79 ccmhttp 200 0 0 363
    2012-07-23 15:16:12 10.28.80.98 CCM_POST /ccm_system/request - 80 - 10.29.73.101 ccmhttp 200 0 0 393
    2012-07-23 15:17:06 10.28.80.98 CCM_POST /ccm_system_windowsauth/request - 80 - 10.28.81.79 ccmhttp 401 2 5 0
    In "ContentTransferManager.log" i see that error:
    <![LOG[Starting CTM job {1C23F5FF-8ED3-43D2-91ED-169F82A24E89}.]LOG]!><time="17:11:38.999-120" date="07-23-2012" component="ContentTransferManager" context="" type="1" thread="5400" file="ctmjob.cpp:2980">
    <![LOG[Created CTM job {1C23F5FF-8ED3-43D2-91ED-169F82A24E89} for user S-1-5-18]LOG]!><time="17:11:39.030-120" date="07-23-2012" component="ContentTransferManager" context="" type="1" thread="5400" file="ctmanager.cpp:487">
    <![LOG[Created and Sent Location Request '{996973D0-911C-4929-BE9D-39CB4D759265}' for package Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c]LOG]!><time="17:11:39.092-120" date="07-23-2012" component="ContentTransferManager" context="" type="1" thread="5332"
    file="ccmpkglocation.cpp:83">
    <![LOG[CTM job {1C23F5FF-8ED3-43D2-91ED-169F82A24E89} entered phase CCM_DOWNLOADSTATUS_DOWNLOADING_DATA]LOG]!><time="17:11:39.092-120" date="07-23-2012" component="ContentTransferManager" context="" type="1" thread="5332" file="ctmjob.cpp:1432">
    <![LOG[Queued location request '{996973D0-911C-4929-BE9D-39CB4D759265}' for CTM job '{1C23F5FF-8ED3-43D2-91ED-169F82A24E89}'.]LOG]!><time="17:11:39.139-120" date="07-23-2012" component="ContentTransferManager" context="" type="1" thread="5332" file="ctmjob.cpp:151">
    <![LOG[Persisted locations for CTM job {1C23F5FF-8ED3-43D2-91ED-169F82A24E89}:
     (LOCAL) <a href="http://xxx.com/SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1]LOG]!><time="17:11:39.452-120">http://xxx.com/SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1]LOG]!><time="17:11:39.452-120" date="07-23-2012"
    component="ContentTransferManager" context="" type="1" thread="5392" file="ctmjob.cpp:1894">
    <![LOG[CTM job {1C23F5FF-8ED3-43D2-91ED-169F82A24E89} (corresponding DTS job {D22196C4-A803-42F4-B4FD-6F5FA777A778}) started download from 'http://xxx.com/SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1' for full content download.]LOG]!><time="17:11:39.514-120"
    date="07-23-2012" component="ContentTransferManager" context="" type="1" thread="5392" file="ctmjob.cpp:413">
    <![LOG[CTM job {1C23F5FF-8ED3-43D2-91ED-169F82A24E89} entered phase CCM_DOWNLOADSTATUS_DOWNLOADING_DATA]LOG]!><time="17:11:39.577-120" date="07-23-2012" component="ContentTransferManager" context="" type="1" thread="5188" file="ctmjob.cpp:1432">
    <![LOG[CTM job {1C23F5FF-8ED3-43D2-91ED-169F82A24E89} encountered error 0x80070005 during download ('Error processing manifest.')- The error maps to denied access.]LOG]!><time="17:11:40.217-120" date="07-23-2012" component="ContentTransferManager"
    context="" type="3" thread="5400" file="ctmjob.cpp:2489">

  • How to insert a new attachment via java code

    Hi everybody,
    I need add a new attachment via java code. I found the service EDIT_RENDITIONS on the Add Attachments page. But this service is not documented. Does somebody have a example how to add attachments?
    Thank you
    Martin

    Martin,
    Try the following code:
    final IdcClientManager clientManager = new IdcClientManager();
    IdcClient client;
    try {
        client = clientManager.createClient(IDC_PROTOCOL + RIDC_SERVER + ":" + RIDC_PORT);
        final String username = "sysadmin";
        final DataBinder dataBinderReq = client.createBinder();
        ServiceResponse severiceResponse = null;
        dataBinderReq.putLocal("IdcService", "EDIT_RENDITIONS");
        dataBinderReq.putLocal("dID", "1560"); // as integer
        dataBinderReq.putLocal("dDocName", "DEV2_001509"); // as string
        dataBinderReq.putLocal("renditionKeys", "addRendition0"); // as string
        dataBinderReq.putLocal("addRendition0.name", "theFileName");
        dataBinderReq.putLocal("addRendition0.description", "theFileDescription");
        dataBinderReq.putLocal("addRendition0.action", "edit");
        final String fileName = "c:\\test.txt";
        final File file = new File(fileName);
        final TransferFile tf = new TransferFile(file);
        dataBinderReq.addFile("addRendition0.file", tf); // as byte
        severiceResponse = client.sendRequest(new IdcContext(username), dataBinderReq);
        final DataBinder dataBinderResp = severiceResponse.getResponseAsBinder();
        //  DataBinder resultado = severiceResponse.getResponseAsBinder();
        System.out.println(dataBinderResp.toString());
    } catch (final IdcClientException e) {
        System.out.println(e.getMessage());
        e.printStackTrace(System.out);
    Jonathan
    http://jonathanhult.com

  • Rendering HTML JSF Component via java code

    Hey,
    I was wondering,
    I want to build sort of HTML generator (for a very specific process),
    I thought about taking the advantage of JSF components instead of writing an HTML generator,
    Is it possible to render Html JSF Components via simple java class?
    For instance, assuming I built an 'HtmlDataTable' object with columns, inputs, etc...
    I'd like to render the dataTable as HTML and get the HTML tags via a simple java class,
    Thanks.

    the sample JAVA codes are provided for sending SPML requests, HTTPClient and one more (i dont remember rite now) within the OIM installation folders itself. It's in the 'SampleHttpClient' folder. Check it once. WSDL, sample XML's and the JAVA codes all are there. You just need to set the classpath and run it.
    - oidm.

  • Request for java code

    can any one tell me how to execute unix command in windows platform using java code? (please also send code or related websitename)

    when you have that feature OOTB in OIM, why you want it to write java code for that.,??

  • Should I do this with Java Code or Stored Procs ? (for best performance)

    Hi All,
    I need to decide where should I implement my business logic, in Java code or Stored procs.
    Here is the requirement :
    - One Order has 70 products (Order_Table )
    - Can be duplicate products, so I have to do summarize / grouping by product
    - For every product, I have to check, if it is entitled for a Bonus product, then I have to Insert one to Bonus_Table.
    - This is done when/after the transaction is SAVED (COMMIT)
    The question is, which one has better PERFORMANCE :
    (1) Create a rowsetIterator on the Order details (70 products) and call a stored procedure to do the logic for every single product (so that the Insert to Bonus_Table done in stored proc). means the stored proc will be called 70 times.
    OR
    (2) After the transaction is COMMITted, call the stored procs ONCE to do the logic for all the products at once.
    OR
    (3) I do all the logic with Java Code within ADF
    Given the requirement above, which approach is most efficient / best performance ?
    Thank you very much,
    xtanto

    Problem with this is that you ask 100 people and you probably get 100 different answers. ;o)
    Many would say that you push as much business logic into the database with your data; others might say you only put data in your database and your business logic is kept on the application server.
    In reality your would probably have a mix of both and your decision would probably be influenced by your own background ...
    Can't be more precise than that.
    Grant

  • Sending an Email via ColdFusion as a Service leads to ActionScript-Error "Server is undefined to setup the connection"

    Hi,
    Ben Forta shows in his video "ColdFusion9 exposed as Flex Services" how to send an Email using ColdFusion as a Service.
    I tried out this example with Flashbuilder4 Beta2 but I got the following ActionSript-Error:
    Error: Server is undefined to setup the connection
        at coldfusion.service::BasicService/initializeConnection()[D:\p4\depot\ColdFusion\cf_main\to ols\AIRIntegration\Services\src\coldfusion\service\BasicService.as:278]
        at coldfusion.service::BasicService/call()[D:\p4\depot\ColdFusion\cf_main\tools\AIRIntegrati on\Services\src\coldfusion\service\BasicService.as:226]
        at coldfusion.service.mxml::Mail/execute()[D:\p4\depot\ColdFusion\cf_main\tools\AIRIntegrati on\Services\src\coldfusion\service\mxml\Mail.as:370]
        at CFaaS/button1_clickHandler()[C:\Dokumente und Einstellungen\walter\Adobe Flash Builder Beta 2\CFaaS\src\CFaaS.mxml:18]
        at CFaaS/___CFaaS_Button1_click()[C:\Dokumente und Einstellungen\walter\Adobe Flash Builder Beta 2\CFaaS\src\CFaaS.mxml:93]
    Who has an idea what to do?
    Thanks in advance,
    Walter

    Hi,
    We tried this out and it works like a charm
    Actually even we hit the issue you have mentioned but on further investigation we could get things working.
    Please follow these settings, we are not sure if you have done all of these:
    a) In CF9 administrator, under Mail section please type your server name, username and password. Check the ' Verify mail server connection'
    checkbox and click 'Submit Changes'. Make sure you get the message 'Connection Verification Successful'.
    b) Under Security-> 'User Manager' section in CF9 administration,  add an user using 'Add User' with the following info:
    username, password, confirm password , check both RDS and administrative access and add 'Exposed Services' by selecting the required services.
    eg: Mail Service and click 'Add User'.
    c) Go to 'Security->Allow IP Address in CF9 administrator and enter your IP address and say 'Add'.
    d) After add the following tag in addition to CF:Mail,
    <cf:Config  cfServer="" cfPort="8501" servicePassword="" serviceUserName="" />(the values entered here should be same as the ones configured under 'Add User' and 'Allow IP address' section).
    Please find attached the mxml file (TestCF.mxml) which has the Flex code.
    Also, add the 'CFService.swc' into your project. Go to  Project->Flex Build Path->Add SWC and point to D:\ColdFusionCentaur\wwwroot\CFIDE\scripts\air (subject to CF9 installed location).
    Please try the workflow by following these steps and let us know if things work fine
    Thanks,
    Balaji
    http://balajisridhar.wordpress.com

  • Ask from Java code if service runs

    Hi,
    i have a service,  com.business.company.navigation.connector
    running as ear on sap portal server.
    Is there a way to ask from Java code if this service is running or not!?
    I found following code which shows how access the portal runtime to get
    default portal services:
    NavigationEventsHelperService helperService = (NavigationEventsHelperService) PortalRuntime.getRuntimeResources().getService(NavigationEventsHelperService.KEY);
    Thanks for any hint.

    Hi,
    i have a service,  com.business.company.navigation.connector
    running as ear on sap portal server.
    Is there a way to ask from Java code if this service is running or not!?
    I found following code which shows how access the portal runtime to get
    default portal services:
    NavigationEventsHelperService helperService = (NavigationEventsHelperService) PortalRuntime.getRuntimeResources().getService(NavigationEventsHelperService.KEY);
    Thanks for any hint.

  • I have moved from uk to Ireland and changed my mobile provider, but I can't send texts to uk numbers.  My service provider say it is an I phone problem, not a service provider problem.

    I have moved from uk to Ireland and had to change my service provider, but despite 3 calls to my service provider I can't send texts to the uk. They have checked it out by my using a different SIM card, but I still cannot send texts. They say it is problem with my iPhone 4's settings and told me to contact apple. Can anyone help me?

    If you can find out what country your iPhone was officially sold in, you could take it there (or if originally sold in the EU, take it to any EU country where Apple officially sells the iPhone) or you could send the iPhone to someone you know in that country who could get it serviced and then ship it back to you. Apple Support does not accept shipments from other countries, and will not ship a serviced iPhone to another country.
    This, though, presumes that the iPhone has not been modified as your service provider claimed. If it has, Apple will not provide service for it in any country.
    You may be able to find out what country your iPhone was officially sold in by calling Apple Support:
    http://support.apple.com/kb/HE57
    and giving them the serial number.
    Regards.

  • PI  7.0 SOAP receiver don't send the request to the destination web service

    Hello everybody.
    I have a problem with a synchronous scenario.
    RFC -> XI -> SOAP
    The Web service is outside our network.
    It's a communication HTTPS and the certificate is installed.
    The mapping between RFC and the outgoing message is made by XSLT because I had to put data in SOAP:Header.
    When I use the soap enveloppe in XMLSPY from my PC, that works, but when it is used by PI, the request is well generated and the adapter say that that the "call is completed" and the "request entering" but our partner doesn't  receive anything.
    Message souce extract coming from the adapter SOAP :
    <?xml version="1.0" encoding="utf-8" ?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:m0="http://www.w3.org/2000/09/xmldsig#">
    <SOAP-ENV:Header>
    <m:credentials xmlns:m="http://eu.toyota.com/security/credentials/1.0">
      <username>minivomws.user@TBEL</username>
      <password>tars456</password>
      </m:credentials>
      </SOAP-ENV:Header>
      <SOAP-ENV:Body />
      </SOAP-ENV:Envelope>
    Could it be a problem of firewall or something else like this?
    Is there anybody who can help me?
    Thanks in advance for your answers
    Regards.

    Hi,
    In SOAP communciation channel, you have the parameter as Target URL, just below that you will fine some checkbox as Configure Proxy.
    Select this option and it will ask for HOST and PORT, these details will be available with the contact person of receiver Web Application, just fill up and this is HTTPS so may required related User ID and Password also to be specify. for this select the chek box Configure Proxy User Authetication.
    Hope this will help.
    thanks
    Swarup

  • How to get domain name in java code/custom security provider

    Hi all,
    I've developed a custom security provider and deployed it in WL_HOME/server/lib/mbeantypes folder. I also have multiple domain created and running in the same machine. now if a user logs in from a specific domain, say, t3://localhost:7005, how do I retrieve the domain name in my custom security provider?
    I found the following code could do it, but this code needs to know the port number in advance
    Hashtable env = new Hashtable();
    env.put(Context.PROVIDER_URL,"t3://localhost:7101");
    env.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL,"weblogic");
    env.put(Context.SECURITY_CREDENTIALS,"weblogic1");
    Context ctx = new InitialContext(env);
    MBeanHome home = (MBeanHome)ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
    String domainName = home.getDomainName();
    System.out.println(domainName);
    Any help is greatly appreciated...
    Thanks,
    Philip
    Edited by: VivaCuba on Nov 14, 2010 9:43 AM

    Check out methods in the following classes: LegacyDirectoryLocator and DirectoryLocator.
    Jonathan
    http://jonathanhult.com

  • How to send sms to mobile from tomcatserver using java code?

    Hi,
    Could you please let me know that,
    How to send sms to mobile from tomcatserver using java code? Please provide the code snippet.
    Thanks in advance.

    Yes, but something needs to send that message. You can't just take an arbitrary computer and send an SMS, it does not have the hardware to do that.
    So either you have a mobile through which you do that or more likely - you use some sort of online service to do it. Whatever choice you make will determine what code you will have to write to get it done. Nobody is going to deliver the code to you, that's your job. It is also your job to figure out what service you are going to use.

  • Terminate a BPEL Process using Java Code

    Hi,
    How can I achieve the forcible termination of a BPEL process via Java code??
    Thanks
    Pramod

    I guess I'll not be able to use event handlers because if I set an OnMessage, the process wont get kicked off till I receive a message, isnt it?
    My requirement is that I want the BPEL to keep executing as normal but as soon as I send a request to Stop, then it should terminate.
    Actually, is it possible to achieve the following? That is, I want to keep running a bpel process but at the same time keep monitoring for an input message(sent from another partnerlink maybe). As soon as I receive my input message, a different scope is executed and in this scope I can then put a terminate.
    Thanks
    Pramod

Maybe you are looking for