Fabric Web Services properties include the definitions, methods, categories and essential metadata that contribute to the main functionalities and characteristics of the Web Service.
Go to the Project Tree, right click Web Services and select New Web Service to display the Function Manager window.
Web Service Properties are located on the top right corner of the Web Service window.
The following are the Web Services properties:
To generate these formats, open the Java Logic file and add the following tag above the public class which encapsulates the Web Services defined in the specific Logic category:
```java @legacy public class Logic extends WebServiceUserCode {…}
Then add the UNKNOWN value to the Produce function call in the line where the Web Service is defined:
java @webService(path = "test/getCustomerInfo", verb = {MethodType.GET, MethodType.POST, MethodType.PUT, MethodType.DELETE}, version = "1", isRaw = false, produce = {Produce.UNKNOWN})
Modify the Properties panel of the Web Service as shown below:
<img src="images/Web-Service-KI-2-1_Produce1.png">
After deploying the Web Service, call it from the browser using the appropriate token, parameter and format.
Example with HTML format:
html http://localhost:3213/api/test/getCustomerInfo?ID=1000&token=tgreg&format=html ``` The response is displayed in the body of the browser's web page:
Fabric Web Services properties include the definitions, methods, categories and essential metadata that contribute to the main functionalities and characteristics of the Web Service.
Go to the Project Tree, right click Web Services and select New Web Service to display the Function Manager window.
Web Service Properties are located on the top right corner of the Web Service window.
The following are the Web Services properties:
To generate these formats, open the Java Logic file and add the following tag above the public class which encapsulates the Web Services defined in the specific Logic category:
```java @legacy public class Logic extends WebServiceUserCode {…}
Then add the UNKNOWN value to the Produce function call in the line where the Web Service is defined:
java @webService(path = "test/getCustomerInfo", verb = {MethodType.GET, MethodType.POST, MethodType.PUT, MethodType.DELETE}, version = "1", isRaw = false, produce = {Produce.UNKNOWN})
Modify the Properties panel of the Web Service as shown below:
<img src="images/Web-Service-KI-2-1_Produce1.png">
After deploying the Web Service, call it from the browser using the appropriate token, parameter and format.
Example with HTML format:
html http://localhost:3213/api/test/getCustomerInfo?ID=1000&token=tgreg&format=html ``` The response is displayed in the body of the browser's web page: