Basic Authentication with SOAPProxy or SOAPClient or HTTPRouter
jark1982 Dec 11, 2012 10:56 AMHello I am new to JBoss ESB, I've been trying to consume a web service with three Apis, first with HttpRouter, then with SoapClient and finally SOAPProxy and in all these cases the response was the same.
Error 401--Unauthorized
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:10.4.2 401 UnauthorizedThe request requires user authentication. The response MUST include a WWW-Authentic ate header field (section 14.46) containing a challenge applicable to the requested resource. The client MAY repeat th e request with a suitable Authorization header field (section 14.8). If the request already included Authorization cre dentials, then the 401 response indicates that authorization has been refused for those credentials. If the 401 respon se contains the same challenge as the prior response, and the user agent has already attempted authentication at least once, then the user SHOULD be presented the entity that was given in the response, since that entity MAY include rele vant diagnostic information. HTTP access authentication is explained in section 11. |
I consulted on almost every forum and many solutions presented when applying but not any.
This is a picture of the work environment.
This is my xml
<?
<jbossesb
xmlns= "http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.3.0.xsd"
<globals>
</globals>
<providers>
</fs-bus>
</fs-provider>
</providers>
<services>
<listeners >
</listeners >
</action >
</property >
</action >
</action >
</action >
</actions >
</service >
<service category= "consume" description="Consume mediante la clae SOAPProxy" invmScope="GLOBAL" name="ConsumeSOAPProxy" >
<security allbackHandler="org.jboss.soa.esb.services.security.auth.login.JBossSTSIssueCallbackHandler" moduleName="" >
</security >
</action >
<!-- <property name="clientCredentialsRequired" value="true"/>-->
<property name="method" value="POST" />
<property name="endpointUrl" value="**" />
<property name="headers" >
<header name="username" value="*******" />
<header name="password" value="******" />
</property >
</action >
</action >
</actions >
</service > </
And this is my property file
configurators=AuthBASIC,HttpProtocol
auth-username=********
auth-password=***********
authscope-host=127.0.0.1
authscope-port=8080
protocol-socket-factory=org.apache.commons.httpclient.contrib.ssl.EasySSLProtocolSocketFactory
keystore=/keystore.jks
keystore-passw=hola1982
truststore=/truststore.jks
truststore-passw=hola1982
max-connections-per-host=5
I hope you can help me thanks!