This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:adminmanual:businessmappings:webservicecall [2020/02/21 00:02] joebordes [Examples] |
en:adminmanual:businessmappings:webservicecall [2021/03/22 18:11] (current) joebordes [wsconfig] |
||
---|---|---|---|
Line 25: | Line 25: | ||
* wsuser and wspass in case the service uses these | * wsuser and wspass in case the service uses these | ||
* wsheader contain keyname and keyvalue pairs with information that must be sent in the header of the call | * wsheader contain keyname and keyvalue pairs with information that must be sent in the header of the call | ||
- | * a special header is "Authorization", this keyname accepts a special syntax in it's keyvalue: **getContext(variable_name)**. this expression will search for the variable_name in the workflow context and use that instead of the hard coded value which can be set here also. | + | * header keyvalue will be processed in search of the command **getContext(variable_name)** or **getSetting(variable_name)** (note that there are no quotes around the variable name). This expression will search for the variable_name in the workflow context or the coreBOS key-value store and use that instead of the hardcoded value which can be set here also. |
* <wstype>REST or SOAP</wstype> | * <wstype>REST or SOAP</wstype> | ||
* <inputtype>XML/URL/JSON/URLRESTFUL</inputtype> | * <inputtype>XML/URL/JSON/URLRESTFUL</inputtype> | ||
Line 34: | Line 34: | ||
The **INPUTTYPE** defines how we will send the parameters (fields) to the end-point: | The **INPUTTYPE** defines how we will send the parameters (fields) to the end-point: | ||
- | * XML and JSON will be set in the body of the call. The XML value will be urlencoded | + | * XML and JSON will be set in the body of the call. The XML value will be URL-encoded |
* URL will have the values added in the URL as GET parameters | * URL will have the values added in the URL as GET parameters | ||
* URLRESTFUL will search the wsurl directive for variables defined in the fields section preceded with a dollar sign. If they are present they will be substituted by the calculated value. | * URLRESTFUL will search the wsurl directive for variables defined in the fields section preceded with a dollar sign. If they are present they will be substituted by the calculated value. | ||
Line 198: | Line 198: | ||
<wsconfig> | <wsconfig> | ||
- | <wsurl>http://localhost/corebostsolucio/webservice.php?operation=testcontext&id=2355</wsurl> | + | <wsurl><![CDATA[http://localhost/corebostsolucio/webservice.php?operation=testcontext&id=2355]]></wsurl> |
<wshttpmethod>GET</wshttpmethod> | <wshttpmethod>GET</wshttpmethod> | ||
<methodname>wslogin</methodname> | <methodname>wslogin</methodname> | ||
Line 284: | Line 284: | ||
</map> | </map> | ||
</code> | </code> | ||
+ | |||
+ | ==== Related Articles ==== | ||
+ | |||
+ | * [[https://blog.corebos.org/blog/runwswftask|Run Web Service Workflow Task]] | ||
+ | * [[https://blog.corebos.org/blog/runwswftaskchange|Run Web Service Workflow Task Change]] | ||