Announcement Announcement Module
Collapse
No announcement yet.
Microsoft CRM Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


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

      Comment


      • #4
        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.

        Comment


        • #5
          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

          Comment

          Working...
          X