[JBossWS] - Re: If I deploy more than one webservice I get
by heiko.braun@jboss.com
Thanks for the valuable discussion. I will try to explain what changes between 1.2.0 and 1.2.1 are causing the problems you encounter.
anonymous wrote :
| 1.) For EJB3 deployments we need to create a web app for HTTP invocations (obviously)
|
| 2.) EJB's don't contain web context information, so we derive it automagically.
|
| 3.) Until 1.2.0 the context name was derived from the ear/jar name.
|
| 4.) This changed with 1.2.1 to an algorithm that derives it from the bean class name
|
So what's happening when you deploy a EJB3 jar that contains multiple beans?
The default algorithm derives different context names for each bean in this deployment, which in turn we cannot use to setup the HTTP endpoint and thus throw an exception.
This also explains why the following did work:
anonymous wrote :
| @WebContext(contextRoot="/beans")
|
Unfortunately this is left out in the specs and thus has been changed many times.
Until we a have a definite solution i suggest you refer to the @WebContext annotation, even though it's not the most elegant solution.
--
Heiko
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046101#4046101
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046101
18 years, 4 months
[JBossWS] - Secure Webservice
by iorlas
Hi!
I am using JBoss-4.0.5.GA and have implemented a Webservice using
annotations. The Webservice is protected by a SecurityDomain.
To access the webservice I have looked at the examples from the jbossws samples for jbossws-1.2.1.GA and tried to followed it as much as possible. Obvioulsy something isn't correct since I get a Authentication Failure even though I passes the correct username and password. The client code:
System.setProperty(Provider.JAXWSPROVIDER_PROPERTY, "org.jboss.ws.core.jaxws.spi.ProviderImpl");
|
|
| URL wsdlURL = new URL(WSDL_LOCATION);
| Service service = Service.create(wsdlURL, SERVICE_NAME);
| WebServiceEndPoint endPoint = null;
|
| endPoint = (WebServiceEndPoint) service.getPort(WebServiceEndPoint.class);
|
| BindingProvider bp = (BindingProvider) endPoint;
| bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "test");
| bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "test");
|
| String result = (String) endPoint.test("Gurka");
| System.out.println("The Server response is: " + result);
|
I am stomped what I am doing wrong? I have pointed the JBossWS security domain to the correct database with a configuration that I know works for my EJBs.
Is the error on the client or the server side?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046081#4046081
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046081
18 years, 4 months
[JBossWS] - Re: XOP testCase
by Pires da Silva
sorry I answered too quickly; first install the samples and run them and check for jars used. after you may find an answer.without using the samples time is lost with problems difficult to understand.
tu run the samples for Jboss1.2.0.SP1 you have a post "how to run the jbossws samples" mon 2 april 2007.
you also need to work with the generated classes from wsdl with wsconsume.
the class I use is a generated class where i set application/octet-stream:
@javax.xml.bind.annotation.XmlType
public class Message {
private DataHandler dataHandler;
public Message() {
}
public Message(DataHandler dataHandler) {
this.dataHandler = dataHandler;
}
@XmlMimeType("application/octet-stream")
public DataHandler getDataHandler() {
return dataHandler;
}
public void setDataHandler(DataHandler dataHandler) {
this.dataHandler = dataHandler;
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046054#4046054
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046054
18 years, 4 months