cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

How to invoke service via REST in HTML?

CHASEONHO
18-Opal

How to invoke service via REST in HTML?

How to invoke service via REST in HTML?

 

i has "A_Thing" 

that was include service that add stream entry

 

We will send an HTML-based sentence via email.
This created sentence contains a button. (<button type = "button" onclick = "location.href = 'joinUs.jsp'"> CHECK </ button>)
If you press this button, ThingWorx service will be executed through REST.
I typed <host>: <port> / Thingworx / A_Thing / Service / MyService in location.href.
The button was successfully created and included in the email.
However, if you press the button, Invalid Request is displayed.

How do I invoke ThingWorx's service using REST in HTML?
It will be helpful if you show examples of use.

 

 

thank

ACCEPTED SOLUTION

Accepted Solutions
supandey
19-Tanzanite
(To:CHASEONHO)

Hi @CHASEONHO wondering if you have already seen this REST API Overview and Examples to help you with the examples on how to make REST calls.

View solution in original post

1 REPLY 1
supandey
19-Tanzanite
(To:CHASEONHO)

Hi @CHASEONHO wondering if you have already seen this REST API Overview and Examples to help you with the examples on how to make REST calls.

Announcements


Top Tags