Thank for your reply. I tried your first option, and got the same null pointer error. Your second option actually was the first thing I tried when I first started to experiment.
I am using 4.2.2.GA if that means anything.
I have attempted to upgrade to 5.0.0.Beta4, but it gave me some wierd error when I deploy. Instead of making it more complicated, I will just try to stay with 4 stream now.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147014#4147014
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147014
I have difficulties to write simple Client which access an existing Web Service.
The output of wsconsume on the WSDL can be seen below.
How would such a client.java look like?
Particularly I am interested in the necessary import statements.
Which classes and *.jars do I have to include in the CLASSPATH minimally ?
package ttest.ws.sumtest;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
/**
* This class was generated by the JAX-WS RI.
* JAX-WS RI 2.1.1-b03-
* Generated source version: 2.0
*
*/
@WebServiceClient(name = "SumService", targetNamespace = "http://sumtest.ws.ttest/", wsdlLocation = "http://127.0.0.1:8777/SumDemo?wsdl")
public class SumService
extends Service
{
private final static URL SUMSERVICE_WSDL_LOCATION;
static {
URL url = null;
try {
url = new URL("http://127.0.0.1:8777/SumDemo?wsdl");
} catch (MalformedURLException e) {
e.printStackTrace();
}
SUMSERVICE_WSDL_LOCATION = url;
}
public SumService(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
public SumService() {
super(SUMSERVICE_WSDL_LOCATION, new QName("http://sumtest.ws.ttest/", "SumService"));
}
/**
*
* @return
* returns Sum
*/
@WebEndpoint(name = "SumPort")
public Sum getSumPort() {
return (Sum)super.getPort(new QName("http://sumtest.ws.ttest/", "SumPort"), Sum.class);
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147010#4147010
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147010
Thank you for the information. It is useful although not quite what I was looking for.
I know that many applications have a static welcome page. However, this application is configured to have a JSF welcome page. I can't figure out how to make the welcome page go through the Faces Servlet. Is this possible? I had considered possibly writing a filter that grabbed directory references from the client and appended the starting page to them. That seems like a lot of work but I suspect it would work. Alternatively, using an Apache proxy and the rewrite mod to do the same thing would probably work. In any case, if there is an easier method of do this, I prefer to use it.
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147009#4147009
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147009