Quantcast
Channel: Microsoft Dynamics CRM
Viewing all articles
Browse latest Browse all 123975

Forum Post: RE: Java to Dynamcis Crm Connectivity

$
0
0

If you are using CRM 4.0 then here is a sample Java Code:

private void setupSecurity( final CrmServiceSoap crmServiceSoap ) {

//Turn off chunking so that NTLM can occur

Client client = ClientProxy.getClient( crmServiceSoap );

HTTPConduit http = (HTTPConduit)client.getConduit();

HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();

httpClientPolicy.setConnectionTimeout( 36000 );

httpClientPolicy.setAllowChunking( false );

http.setClient( httpClientPolicy );

AuthorizationPolicy authorization = new AuthorizationPolicy();

authorization.setUserName( _userName );

authorization.setPassword( _password );

http.setAuthorization( authorization );

}


Viewing all articles
Browse latest Browse all 123975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>