Exposing OFBiz Services as SOAP Web services

Source: Internet
Author: User
Tags auth soap wsdl

2016.10.18 Update

The original text reads as follows:

About ofbiz Web Services

In ofbiz every service can potentialy is 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 Serv Ices.

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 is false make it to true by navigating to the Services.xml file of the particular application. It is /application/order/servicedef/services.xml. Restart ofbiz

Note: Yes plus a export= "true"

Note: Here is the Services.xml file found on the server hard disk, find the service, modify export= "true" if not added.
Example: Find a file  D:\apache\apache-ofbiz-12.04.04\applications\order\servicedef\Services.xml 
Modify <service name= " Getorderstatus "engine=" simple "location=" Component://order/script/org/ofbiz/order/order/orderservices.xml "
            Invoke= "Getorderstatus" auth= "false" >
for
<service name= "Getorderstatus" engine= "simple" location= " Component://order/script/org/ofbiz/order/order/orderservices.xml "
            invoke=" Getorderstatus "auth=" false " Export= "true" >
        



Now your 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 would display the WSDL

Also need to get the SOAP link as it's given as end point to the Java client to call the Web service from outside app Lication.

So the link is usualy available under

http://your_hostname:8080/webtools/control/SOAPService?wsdl



Reference:

calling OFBiz services from Liferay using SOAP OFBiz Services Documentation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.