Oops. I forgot to include a couple of lines in the example. Try this:
ServiceFactoryImpl factory = new ServiceFactoryImpl();
| ClassLoader cl = Thread.currentThread().getContextClassLoader();
| URL wsdlLocation = new
URL("http://localhost:8080/testpurchaseservice?wsdl");
| URL mappingLocation = cl.getResource("jaxrpc-mapping.xml");
| QName serviceName = new
QName("http://de.akquinet.fws.jboss.webservices.pojo/purchasews/rpcstyle",
"PurchaseService");
| ServiceImpl service = (ServiceImpl) factory.createService(wsdlLocation,
serviceName, mappingLocation);
Also, you will need these imports as the Service from javax.xml.rpc does not
have the right, overloaded method.
import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
| import org.jboss.ws.jaxrpc.ServiceImpl;
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952410#3952410
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3952410
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user