Hi Lee,

please, try to use the new HTTP endpoints like this:

<http:soap-provider service="mys:MyService" endpoint="soap"
                locationURI="http:/....">
                soapAction="...">
          <http:basicAuthentication>
    <http:basicAuthCredentials username="testuser" password="testpass" />
  </http:basicAuthentication>
</http:soap-provider>

Keep us posted

Regards
JB

LeeCK wrote:
I am new to servicemix. I've created a http-provider su to talk to a
sharepoint server. The sharepoint server uses basic auth. Is there something
wrong with the xbean definition below? The basic auth doesn't seem to work.
Please help. Many thanks!!

xbean.xml:
<beans xmlns:http="http://servicemix.apache.org/http/1.0";
       xmlns:mys="http://servicemix.apache.org/mys";>

      <http:endpoint service="mys:MyService"
                     endpoint="soap"
                     role="provider"
locationURI="http://localhost:5555/MyService/usergroup.asmx";
                     defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
                     soap="true"
soapAction="http://schemas.microsoft.com/sharepoint/soap/directory/GetGroupInfo";>
          <http:basicAuthentication>
            <http:basicAuthCredentials username="username"
password="password" />
          </http:basicAuthentication>
    </http:endpoint>
</beans>

Exception in servicemix.log:
16:04:51,911 | ERROR | pool-flow.seda.servicemix-http-thread-4 |
HttpMethodDirector       | .httpclient.HttpMethodDirector  235 | Credentials
cannot be used for NTLM authentication:
org.apache.commons.httpclient.UsernamePasswordCredentials
org.apache.commons.httpclient.auth.InvalidCredentialsException: Credentials
cannot be used for NTLM authentication:
org.apache.commons.httpclient.UsernamePasswordCredentials
        at
org.apache.commons.httpclient.auth.NTLMScheme.authenticate(NTLMScheme.java:331)

Response in TCPMon:
401 UNAUTHORIZEDHTTP/1.1 401 Unauthorized
Date: Wed, 26 Aug 2009 06:23:03 GMT
Server: Microsoft-IIS/6.0
WWW-Authenticate: NTLM
WWW-Authenticate: Basic realm="localhost"
X-Powered-By: ASP.NET
MicrosoftSharePointTeamServices: 12.0.0.6039
X-AspNet-Version: 2.0.50727
Cache-Control: private, max-age=0
Content-Length: 16

Reply via email to