[JBossWS] - Call WebService in EJB 3.0 (Differences to EJB 2.1)
by bjoern83
Hi,
I had an EJB 2.1 Bean containing a WebService-Method:
/** @jboss.port-component name="WebServiceControllerService" uri="/VERSION-ejb/WebServiceController"
| * auth-method="BASIC" transport-guarantee="NONE"
| * @ejb.bean name="WebServiceController" display-name="WebServiceController" generate="true"
| * jndi-name="ejb/WebServiceController" local-jndi-name="ejb/WebServiceControllerLocal"
| * view-type="all" type="Stateless"
| *
| * …
[View More]@ejb.home generate="local,remote"
| *
| * @ejb.interface generate="local,remote,service-endpoint"
| * remote-class="de.cursor.jevi.server.web.WebServiceController"
| * local-class="de.cursor.jevi.server.web.WebServiceControllerLocal"
| * service-endpoint-class="de.cursor.jevi.server.web.WebServiceControllerService"
| */
| public class WebServiceControllerBean implements SessionBean
| {
| public String search(String xmlSearch)
| {
| }
| }
I called this method using SOAPUI with the following URI:
http://Nebelos-C2Q:18080/CARMEN-ejb/WebServiceController
which is "MyServer" + "MyJar" + "MyWebServiceClassRemoteInterface".
Now I migrated my class to EJB 3.0:
@Stateless(name = "ejbWebServiceController")
| @TransactionManagement(TransactionManagementType.CONTAINER)
| @TransactionAttribute(TransactionAttributeType.SUPPORTS)
| @PermitAll
| @WebService
| @SOAPBinding(style = SOAPBinding.Style.RPC)
| @SecurityDomain(value = "VERSION")
| @Clustered(loadBalancePolicy = de.cursor.jboss.cluster.JBossLoadBalancer.class, partition = "DefaultPartition")
| public class WebServiceControllerBean implements WebServiceControllerLocal, WebServiceController
| {
| @WebMethod(operationName = "search")
| public String search(String xmlSearch)
| {
| }
| }
My SOAP-UI call doesn't work any more telling me "The requested resource (/CARMEN-ejb/WebServiceController) is not available.". Can somebody tell me how the new uri would be or (better) how to get the old one?
thanking you in anticipation
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234688#4234688
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234688
[View Less]
15 years, 7 months
[JBossWS] - Re: Implementing WS-Security Usename Token Profile Authentic
by PedroSena
Hi,
I'm trying to implement this solution, but for some reason, the authentication mecanism is not reading correctly my Soap Header.
I saw in log:
2009-06-01 11:09:24,265 DEBUG [org.jboss.security.auth.spi.UsersRolesLoginModule] Bad password for username=null
| 2009-06-01 11:09:24,265 DEBUG [org.jboss.ejb3.security.Ejb3AuthenticationInterceptor] Authentication failure
| javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required
| at org.jboss.security.auth.…
[View More]spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:213)
|
And I'm sending:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.netsar.com.br/tnw/bus">
| <soapenv:Header>
| <wsse:Security soapenv:mustUnderstand="1"
| xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext..."
| xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utilit...">
| <wsse:UsernameToken wsu:Id="token-1-1236072936329-25515818">
| <wsse:Username>submarino</wsse:Username>
| <wsse:Password
| Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-pr...">subm4r1n0</wsse:Password>
| </wsse:UsernameToken>
| </wsse:Security>
| </soapenv:Header>
| <soapenv:Body>
| </soapenv:Body>
| </soapenv:Envelope>
I'm testing it from SoapUI, the message was made manually.
I created a new login entry on login-config.xml, its loading properly the users, but its not authenticating.
Would appreciate some help here,
Regards,
PS
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234486#4234486
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234486
[View Less]
15 years, 7 months