Skip to main content
12-Amethyst
July 11, 2022
Solved

No service handler defined for service

  • July 11, 2022
  • 1 reply
  • 2587 views

Hello,

 

i just created a API class and an endpoint in Java (Using Windchill and Navigate). The endpoint is displayed in Swagger UI, executing it also returns the correct value (just a test string - no inputs for this endpoint)

 

Now i tried to execute it from my Navigate Thing.

i added a new service in ptc windchill integration connector with AddServiceDefinition. Now the service exists and I can import it to my Thing services. But when executing i get this message: No service handler defined for service on thing windchill integration connector.

 

Does anyone know how to fix this?

 

best regards

Best answer by TG_10272716

I have already tried that but I ended up creating my "own" integration connector, which is basically a copy of ptc-windchill-integration-connector. This way I can add and edit services which is not possible in the ptc one. Now I just click add -> Route and select the endpoint I want to use, enter any name for the service and hit save. Then I can access the endpoint with Things["name-of-my-connector"].nameOfEndpointService(.......) from any service in Navigate. I also connected the ptc-windchill-integration-connector-proxy to my connector similar to the ptc connector

1 reply

16-Pearl
July 28, 2022

In:

https://community.ptc.com/t5/ThingWorx-Developers/Unable-to-Invoke-Service-No-service-handler-defined-for-service/td-p/526236?posno=2&q=No%20service%20handler%20defined%20for%20service%20on%20thing&source=search

They found that the name in the service definition must match the name of the Java method. That also includes an example. See if that helps.

TG_1027271612-AmethystAuthorAnswer
12-Amethyst
August 5, 2022

I have already tried that but I ended up creating my "own" integration connector, which is basically a copy of ptc-windchill-integration-connector. This way I can add and edit services which is not possible in the ptc one. Now I just click add -> Route and select the endpoint I want to use, enter any name for the service and hit save. Then I can access the endpoint with Things["name-of-my-connector"].nameOfEndpointService(.......) from any service in Navigate. I also connected the ptc-windchill-integration-connector-proxy to my connector similar to the ptc connector