"Brad Marshall" wrote : Can I easily override the Service class?s retrieval of the WSDL from the Web service and point it instead at a local copy of the WSDL file? In out environment, every caller of the Web service also implements their own Web service with the identical interface, so we can enforce a rule that they have a copy local of the valid WSDL file.
|
URL wsdlURL = new File("resources/YourService.wsdl").toURL();
| QName serviceName = new QName("yourWsdlNs", "ServiceQName");
| Service service = Service.create(wsdlURL, serviceName);
|
Richard
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102105#4102105
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102105
Hi,
your eclipse workspace has Axis webservices jars in the classpath. If you want to enforce it to use JBoss native webservices, you must ensure that JBoss native webservices jars are before Axis jars in the classpath.
Another approach to activate JBossWS native webservices is to set up the following properties in your eclipse workspace environment:
-Djavax.xml.soap.MessageFactory=org.jboss.ws.core.soap.MessageFactoryImpl
| -Djavax.xml.soap.MetaFactory=org.jboss.ws.core.soap.SAAJMetaFactoryImpl
| -Djavax.xml.soap.SOAPFactory=org.jboss.ws.core.soap.SOAPFactoryImpl
|
Richard
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102097#4102097
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102097