jwsdl.setTargetNamespace(targetNamespace);
jwsdl.addFeature(WSToolsConstants.WSTOOLS_FEATURE_RESTRICT_TO_TARGET_NS, true);
jwsdl.setStyle(style);
//manually generate the umd using tools
UnifiedMetaData umd = new ToolsUnifiedMetaDataBuilder(seiClass, targetNamespace,
null, sname, style, null, null).getUnifiedMetaData();
jwsdl.setUmd(umd);
//manually add policies to the umd
ServiceMetaData serviceMetaData = umd.getServices().get(0);
EndpointMetaData epMetaData = serviceMetaData.getEndpoints().get(0);
addPolicy(new File("resources/tools/jbws1645/PortPolicy.txt"), PolicyScopeLevel.WSDL_PORT, epMetaData);
addPolicy(new File("resources/tools/jbws1645/PortPolicy2.txt"), PolicyScopeLevel.WSDL_PORT, epMetaData);
addPolicy(new File("resources/tools/jbws1645/PortTypePolicy2.txt"), PolicyScopeLevel.WSDL_PORT_TYPE, epMetaData);
addPolicy(new File("resources/tools/jbws1645/PortTypePolicy.txt"), PolicyScopeLevel.WSDL_PORT_TYPE, epMetaData);