Results 1 to 5 of 5

Thread: Microsoft CRM

  1. #1
    Join Date
    Nov 2008
    Location
    Swansea, Wales
    Posts
    202

    Question Microsoft CRM

    I guess this might be more of a Spring Web Services post but has anyone successfully consumed a Microsoft CRM web service that's secured with NTLM??

  2. #2
    Join Date
    Jul 2009
    Posts
    8

    Default

    Don't know weather or not is this helpful but i managed to consume sql server reporting services web service witch is also secured by NTLM protocol.

    This is my sample bean configuration for web service client

    Code:
    	<bean id="renderReport" class="com.rservice.client.RenderReport">
    		<property name="defaultUri" value="http://localhost/ReportServer/ReportService.asmx" />
    		<property name="messageSender" ref="messageSender"></property>
    	</bean>
    
    
    	<bean id="messageSender" class="org.springframework.ws.transport.http.CommonsHttpMessageSender">
    		<property name="credentials">
    			<bean class="org.apache.commons.httpclient.NTCredentials">
    				<constructor-arg value="username" />
    				<constructor-arg value="password" />
    				<constructor-arg value="hostname_of_client_computer" />
    				<constructor-arg value="hostname_of_server_hosting_web_service" />
    			</bean>
    		</property>
    	</bean>
    Hope it helps

  3. #3
    Join Date
    Nov 2008
    Location
    Swansea, Wales
    Posts
    202

    Default

    Thanks for the quick response, that looks like it should be very useful. I'll post back the result. Cheers

  4. #4
    Join Date
    Nov 2008
    Location
    Swansea, Wales
    Posts
    202

    Default

    Well, the results are that this worked perfectly. But to consume the MS CRM web service I also had to supply additional soap headers for authentication type and organization.

  5. #5
    Join Date
    Dec 2007
    Posts
    4

    Default

    Hi Thank you for this information, it is very useful.

    I'm new to web services with spring, but do you have to create the stubs with axis? in order for NTLM to work, did you change the wsdd file to use commons http sender?

    I appreciate your help

    can you please post an example of spring integration call to web service

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •