将OFBiz的服务暴露为SOAP Web Services
来源:互联网 发布:梦天堂网络 编辑:程序博客网 时间:2024/05/17 18:44
2016.10.18更新
原文如下:
About OFBiz web services
In OFBiz every service can potentialy be invoked as webservice by doing minor modifications to it. You can navigate to service engine application of OFBiz admin to view the services available and other details of the services.
Navigate *http://your_host_name/webtools/control/ServiceList*
There you can find thousands of services in OFBiz.
Navigate and find the appropriate service which you want to export as web service. When you find the particular service say for example “getOrderStatus” , click on it to get the details of the service.
Check Exportable option . If its false make it to true by navigating to the Services.xml file of the particular application. In our case it is /application/order/servicedef/Services.xml . Restart OFBiz
Note: 是加一个export="true"
注意:这里是到服务器硬盘上找到Services.xml 文件,找到服务,修改 export="true",如果没有就增加。例如:找到文件 D:\apache\apache-ofbiz-12.04.04\applications\order\servicedef\Services.xml 修改<service name="getOrderStatus" engine="simple" location="component://order/script/org/ofbiz/order/order/OrderServices.xml" invoke="getOrderStatus" auth="false" >为<service name="getOrderStatus" engine="simple" location="component://order/script/org/ofbiz/order/order/OrderServices.xml" invoke="getOrderStatus" auth="false" export="true">
Now you can view the wsdl file of the servie by navigating to the service engine tools application again and now click on the service name and you can see “Export wsdl” next to the service name . Click on it will display the wsdl
Also you need to get the SOAP link as it is given as end point to the java client to call the web service from outside application.
So the link is usualy available under
http://your_hostname:8080/webtools/control/SOAPService?wsdl
参考:
Calling OFBiz services from Liferay using SOAP
- 将OFBiz的服务暴露为SOAP Web Services
- xdubbo: 将 spring 管理的 bean 暴露为 http 服务
- 在客户端怎么调用ofbiz已经暴露的服务
- 为 SOAP/HTTP Web 服务编写可靠的客户机
- 基于SOAP的Web Services的开发
- WSDL、Web Services、SOAP关键词的理解
- ngrok工具,将本地web服务暴露给互联网
- 想要获取Available SOAP services的所有暴露接口和方法报错
- Java SOAP Web services
- SOAP及Web Services
- PHP5 soap web services
- SOAP Web Services 简介
- 使用SQLXML 3.0把存储过程暴露为Web服务
- 使用SQLXML 3.0把存储过程暴露为Web服务
- soap协议的web服务
- Web Services服务的实现
- Web Services Addressing - SOAP Binding
- Programming Web Services With SOAP
- 黑马程序员------java基础String
- UIView的试图切换
- 尝试读取或写入受保护的内存。这通常指示其他内存已损坏。
- Spring中abstract="true"的定义
- 结构体编辑C++增加了class类型后
- 将OFBiz的服务暴露为SOAP Web Services
- 链接器
- 试图切换控制addChildViewController、_transitionFromViewController
- Android开发者请进:猛击鼠标,请投一票!
- qrencode二维码生成库函数使用心得(一)(付测试源码)
- POJ 1316
- 算法学习
- cocos2d-x 3.0游戏实例学习笔记《卡牌塔防》第五步---着手打造游戏界面
- Visual Studio 2013开发 mini-filter driver step by step (2) - 编译,部署,运行