Bundled WSDL file in META-INF in client and loads it with classloader works fine and
reduces network traffic.
URL wsdlURL = Resources.findFileAsURL(wsdlURLFileName);
String namespaceURI = Resources.getProperty("namespaceURI");
String localpart = Resources.getProperty("localpart");
service = new MyService(wsdlURL, new QName(namespaceURI, localpart));
port = service.getMyPort();
((StubExt)port).setConfigName("Standard WSSecurity Client");
Port is reused (read somewhere port is not thread safe).
Otherwise proxy will use URL hardcoded from proxygenerator.
Works fine (for us).
HTH.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179963#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...