[EJB 3.0] - need some help for session bean web service
by shupingChen
when i develope session bean ws, i encountered the following problem:
Exception in thread "main" java.lang.IllegalArgumentException: Cannot obtain wsdl service: {http://stateless.session.examples}ejb3test
at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildMetaDataInternal(JAXWSClientMetaDataBuilder.java:126)
at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildMetaData(JAXWSClientMetaDataBuilder.java:80)
at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.(ServiceDelegateImpl.java:109)
at org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:61)
at javax.xml.ws.Service.(Unknown Source)
at javax.xml.ws.Service.create(Unknown Source)
at examples.session.ws.JAXWSClient.main(JAXWSClient.java:36)
package examples.session.ws;
|
| import java.net.URL;
| import javax.xml.namespace.QName;
| import javax.xml.ws.Service;
|
| import examples.session.stateless.HelloBean;
|
|
|
| /**
| * This is an example of a standalone JAX-WS client. To compile, it requires
| * some XML artifacts to be generated from the service?s WSDL. This is done in
| * the build file.
| *
| * The mapped XML classes used here are 1. the HelloBean port type class (this
| * is NOT the bean impl. class!) 2. the Greeter service class
| */
| public class JAXWSClient {
| static String host = "localhost";
|
| static String portType = "HelloBean";
|
| static String serviceName = "ejb3test";
|
| static String serviceEndpointAddress = "http://" + host + ":8080/"
| + serviceName;
|
| static String nameSpace = "http://stateless.session.examples";
|
| public static void main(String[] args) throws Exception {
| URL wsdlLocation = new URL(serviceEndpointAddress + "/" + portType
| + "?WSDL");
| QName serviceNameQ = new QName(nameSpace, serviceName);
| // dynamic service usage
| Service service = Service.create(wsdlLocation, serviceNameQ);
| HelloBean firstGreeterPort = service.getPort(HelloBean.class);
| System.out.println("1: " + firstGreeterPort.hello());
| // static service usage
| // Greeter greeter = new Greeter();
| // HelloBean secondGreeterPort = greeter.getGreeterPort();
| // System.out.println("2: " + secondGreeterPort.hello());
| }
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035581#4035581
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035581
19 years
[JBoss Seam] - Re: How to return to a previous page without conversations
by waynebagguley
Along with the new entry-point concept, will you be adding something to prevent a user from jumping to a page out of sequence?
Currently I can easily skip to a page as long as I put the conversation id in the URL, I then get a useless page but I fear that this might lead to security holes.
It seems at the moment that pages, page flow and conversations are loosely coupled and there are myriad ways of specifying the same behaviour. This is flexible in one sense but doesn't allow for limitations to be easily imposed on the user.
I'd like to see something like this:
| <conversation id=placeOrder">
| <page id="pageOne"/>
| <page id="pageTwo" back="pageOne"/>
| <page id="pageThree" back="pageOne,pageTwo"/>
| </conversation>
|
Given that conversations are central to Seam it seems strange that you can't organise a conversation like this where back and forward movement is restricted.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035576#4035576
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035576
19 years