`
tower
  • 浏览: 241772 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

ofbiz的服务(service)export成web service的方法(1)

阅读更多
修改service定义


在集成ofbiz的过程中,有一种需求是外部系统调用ofbiz的service,我们可以参看:
http://docs.ofbiz.org/display/OFBTECH/Service+Engine+Guide
这篇手册里面对service的配置有详细的描述,我们可以找到一个属性"export",当export="true"时,service可以被SOAP/HTTP/JMS调用,实际上还可以被xmlrpc调用。

SERVICE ELEMENT: Attribute Required? Description Default Value
name Y The unique name of the service.  
engine Y The name of the engine (defined in serviceengine.xml).  
location N The location or package of the service's class.  
invoke N The method name of the service.  
auth N Does this service require authorization? (true/false) true
debug N Enable verbose debugging when calling this service? true
default-entity-name N The default Entity to use for auto-attributes  
export N Is this service allowed to be accessed via SOAP/HTTP/JMS? (true/false) false
max-retry N Sets the max number of times this service will retry when failed (persisted async only) -1 (unlimited)
require-new-transaction N Require a new transaction for this service true
semaphore N Defines how concurrent calls to this service should be handled:
none: multiple calls to this service may run concurrently
wait: while this service is running, queue any subsequent calls
fail: while this service is running, fail any subsequent calls
none
semaphore-wait-seconds N When semaphore="wait" how many seconds to wait before failing the service call 300
sempahore-sleep N When semaphore="wait" how often (in milliseconds) to check if the waiting service call can be run 500
transaction-timeout N Override the default transaction timeout, only works if we start the transaction 0 (Use system default)
use-transaction N Create a transaction for this service (if one is not already in place) true
validate N Do we validate the attributes found below for name and type matching? (true/false) true

分享到:
评论

相关推荐

    ofbiz_springservice.zip

    基于spring封装的ofbiz所有服务,使用spring security进行安全验证,可以方便的发布为微服务,同时实现了一套直接使用ofbiz实体引擎操作ofbiz所有数据库表的spring应用框架设计

    Ofbiz的Web框架.

    Ofbiz的Web框架.

    ofbiz git 服务搭建

    【OFBiz Git 服务搭建详解】 OFBiz是一个开源的企业级应用框架,主要用于构建和管理电子商务系统。本教程将详细介绍如何在本地环境中搭建OFBiz项目,并使用Git进行版本控制。 首先,确保你拥有以下基础环境: 1. ...

    ofbiz开发者入门教程

    此外,理解Ofbiz的事件驱动模型和基于服务组件架构(Service Component Architecture, SCA)的设计原则也至关重要。 总之,Ofbiz提供了一个全面的平台,让开发者能够高效地构建企业级应用。通过逐步学习和实践,你...

    OFBIZ10.04组件开发入门.doc

    服务是OFBIZ中实现业务逻辑的单元,定义在`service.xml`文件中。服务可以调用其他服务,实现业务流程的编排。 ### 12. 国际化资源 OFBIZ支持多语言,通过`.properties`文件提供国际化资源,如错误消息、提示信息等...

    OFBIZ快速入门OFBIZ快速入门

    1. **applications**:包含了OFBiz的核心组件,如`accounting`、`facility`等,每个组件都包含了业务逻辑和服务。 2. **framework**:这是OFBiz的核心框架,提供了基础服务、数据模型、服务引擎、工作流系统等功能...

    ofbiz api开发文档

    API的设计遵循了面向服务架构(SOA),支持RESTful风格的Web服务,同时也提供传统的Java API调用方式。 2. **API 文档结构** OFBiz API中文版.chm文件是一个典型的Windows帮助文档,其中详细列举了OFBiz的所有服务...

    ofbiz一个完整例子

    本示例将带你逐步了解如何在OFBiz中创建一个完整的应用实例,从实体创建到服务定义,再到界面展现。 1. 创建实体 在OFBiz中,实体是数据模型的核心,它们对应于数据库中的表。在`Hot-deploy/myfirstdemo/entitydef/...

    ofbiz开发入门之CmsBackEnd实现的CRUD

    OFBiz采用Service Engine、Entity Engine、Component Engine和Web App Framework等核心组件,提供了一个灵活且可扩展的平台。在OFBiz中,CmsBackEnd是指内容管理系统(Content Management System)的后台部分,它...

    OFBIZ开发指南 英文2

    它的核心组件包括实体引擎(Entity Engine)、事务处理引擎(Transaction Engine)、服务引擎(Service Engine)、工作流引擎(WorkEffort Engine)以及事件驱动模型(Event Driven Model)。理解这些组件的功能和...

    Ofbiz快速开发入门详解

    在《Ofbiz开发快速入门》中,你将了解到Ofbiz的核心概念,如实体模型(Entity)、服务(Service)和组件(Component)。实体模型是Ofbiz的基础,它定义了业务数据结构;服务则负责处理业务逻辑,是Ofbiz实现功能的...

    关于OFBIZ的资料

    7. **社区资源**:OfBiz拥有活跃的社区,用户可以在论坛、邮件列表和GitHub上找到解决问题的方法,以及与其他OfBiz使用者交流的经验分享。 通过深入探索OFBIZ_Demo,无论是初学者还是经验丰富的开发者,都可以...

    ofbiz-practice

    3. **OFBiz架构理解**:OFBiz使用模型-视图-控制器(MVC)设计模式,包含实体(Entity)、服务(Service)、组件(Component)、控制器(Controller)和视图(View)等部分。理解这些概念对于开发至关重要。 4. **...

    基于Ofbiz的Web框架.pdf

    Ofbiz的Web请求流程通常涉及以下几个步骤:接收请求、解析请求、调用服务、更新模型、渲染视图并返回响应。这一过程确保了请求处理的高效性和灵活性。 总的来说,基于Ofbiz的Web框架提供了一种强大且全面的方式来...

    OFBiz经典入门教程加速度编写

    OFBiz的核心功能包括产品目录管理、订单处理、库存控制、供应链管理、财务管理、客户服务等模块,这些模块之间通过服务组件架构(Service Component Architecture, SCA)紧密集成,使得开发者可以方便地进行定制和...

    ofbiz数据结构设计

    服务层的设计采用服务组件架构(Service Component Architecture,SCA),服务通过接口定义,实现松耦合和高复用。服务可以调用实体引擎进行数据操作,确保了数据访问的统一性和一致性。 四、工作流(WorkFlow) ...

    ofbiz学习笔记(自学整理)

    Ofbiz的核心概念包括组件、服务、实体、工作流和事件。组件是Ofbiz中的基本组织单元,它们封装了特定的业务功能。比如,“产品”组件处理与产品相关的所有事务,而“订单”组件则负责订单管理。服务是Ofbiz中执行...

Global site tag (gtag.js) - Google Analytics