Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
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
Solved! Go to Solution.
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
In:
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.
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