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??
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??
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
Hope it helpsCode:<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>
Thanks for the quick response, that looks like it should be very useful. I'll post back the result. Cheers
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.
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