Wsdl到Spring Ws(Wsdl to Spring Ws)
是否存在使用bean类型和端口方法从WSDL文件生成Spring Ws Soap Stub的方法?
我可以使用WSDL从JDL中生成所有存根(Bean类型和方法)而不是Jaxb我可以从我的wsdl仅生成对象类型。
我的Ide是IntelliJ 14。
TNX。
Does it exist a method to generate a Spring Ws Soap Stub from WSDL file with bean type and method of port ?
I can generate all stub (Bean Type and Method) with Jaxws from WSDL instead with Jaxb I can generate from my wsdl only Object Type.
My Ide is IntelliJ 14.
Tnx.
原文:https://stackoverflow.com/questions/29862596
最满意答案
你有两个选择:
1-通过编辑application.ini文件
resources.frontController.defaultModule = "mobile"
将mobile
设置为应用程序的默认模块2-您可以创建一个插件来拦截每个请求并转发到同一控制器和操作,但转发到移动模块
class Name_Controller_Plugin_mobile extends Zend_Controller_Plugin_Abstract { public function preDispatch(Zend_Controller_Request_Abstract $request) { $module = $request->getModuleName(); $controller = $request->getControllerName(); $action = $request->getActionName(); if($module !== "mobile" || $module !== "error"){ return $request->setModuleName("mobile")->setControllerName("$controller") ->setActionName("$action")->setDispatched(true); }else{ return ; } } }
并且不要忘记将错误控制器添加到if子句中,这样当你的应用程序抛出错误时你不会得到神秘的循环,那就是它
you have two options :
1- set
mobile
as default module for your application by editing your application.ini fileresources.frontController.defaultModule = "mobile"
2- you can create a plugin that intercept every request and forward to the same controller and action but to the mobile module
class Name_Controller_Plugin_mobile extends Zend_Controller_Plugin_Abstract { public function preDispatch(Zend_Controller_Request_Abstract $request) { $module = $request->getModuleName(); $controller = $request->getControllerName(); $action = $request->getActionName(); if($module !== "mobile" || $module !== "error"){ return $request->setModuleName("mobile")->setControllerName("$controller") ->setActionName("$action")->setDispatched(true); }else{ return ; } } }
and don't forget to add the error controller to the if clause so you don't end up with mysterious loop when your application throws an error , and that is it
相关问答
更多-
您的管理模块执行此操作: 检查配置密钥(即super_cms ) 检查是否存在子键(即controllers ) 在所述子项中的foreach条目,将它们列在您的网页上 您的新闻模块执行此操作: //module.config.php return [ 'super_cms' => [ 'controllers' => [ 'NewsModule\Controller\AdminController' => [ 'label' ...
-
Zend Framework 2模块重定向页面未正确重定向(Zend Framework 2 Module Redirect The page isn't redirecting properly)[2023-01-25]
你将进入无限重定向循环。 由于所有Module类都在每个请求上实例化,因此每次都会调用此事件绑定。 你需要添加类似的东西 $route = $e->getRouteMatch()->getMatchedRouteName(); if(!$auth->hasIdentity() && $route !== 'login') { ... } 这样,当您到达登录页面时,它不会再次尝试重定向。 You're going into an infinite redirect loop. Since all of th ... -
你有两个选择: 1-通过编辑application.ini文件resources.frontController.defaultModule = "mobile"将mobile设置为应用程序的默认模块 2-您可以创建一个插件来拦截每个请求并转发到同一控制器和操作,但转发到移动模块 class Name_Controller_Plugin_mobile extends Zend_Controller_Plugin_Abstract { public function preDispatch(Zend ...
-
Zend Framework 1使用Zend Framework 2模型(Zend Framework 1 to Zend Framework 2 use of models)[2023-11-01]
在此处的文档的快速入门中完美地解释了模型的使用。 正如@Sam所说 Use of models is perfectly explained within the QuickStart of the documentation right here. as suggested by @Sam -
使用自动加载程序模块时,文件名称告诉Zend文件在文件树中的位置。 在您的情况下,您必须将文件放在Admin目录中。 喜欢这个: modules/admin/BaseController.php => Admin_BaseController.php modules/somemodule/submodule/SomeController.php => Somemodule_Submodule_SomeController.php 你的基类是在正确的文件夹中吗? 注意:Admin_IndexControll ...
-
该错误很可能在您的自动加载配置中 public function getAutoloaderConfig() { return array( 'Zend\Loader\StandardAutoloader' => array( 'namespaces' => array( __NAMESPACE__ => __DIR__ . '/src/' , __NAMESPACE__ ...
-
要执行此操作,您需要使用索引Action调用索引控制器。 所以你使用www.foo.bar/index/index或简单的www.foo.bar。 如果这不起作用,您的混淆可能会出错。 或者我错了你的问题? 你是如何配置PHP错误处理的? 也许您有一个未显示的PHP错误。 To execute this action, you need to call the Index Controller with index Action. So you use www.foo.bar/index/index or ...
-
尝试从您的子路线中删除斜线。 也就是说, /[:controller[/:action]]应该是[:controller[/:action]] 。 然后它应该工作。 如果您对解决方案的演练感兴趣,几个月前我写了一篇关于它的文章 。 Try to remove the slash from your child route. That is, /[:controller[/:action]] should be [:controller[/:action]]. Then it should work. If ...
-
Zend Framework 1.12.16将用户重定向到特定操作(Zend Framework 1.12.16 redirect user to specific action)[2023-01-09]
Zend仅允许默认模块/控制器/操作的单一定义。 在幕后,这将为Zend的路由系统创建一个默认路由。 路由是您的问题的关键。 为了匹配你的情况,你当然可以做一些动态/占位符/任何矫枉过正,但实际上你只需要一个简单的静态路由。 这看起来像这样: $route = new Zend_Controller_Router_Route_Static( 'admin', array('module' => 'admin', 'controller' => 'login', 'action' => 'in ... -
您是否已将Bootstrap.php文件添加到模块的路径中? 该文件应该在/application/modules/admin/Bootstrap.php中找到 与此类似: class Admin_Bootstrap extends Zend_Application_Module_Bootstrap { //Can be left blank } Have you added a Bootstrap.php file to your module's path? The file should ...