transfer-06-consumer-pull-http: questions about EndpointDataReference #113
Replies: 1 comment
-
@johnnychoque That's not a direct answer to your question, but it may lead us to an answer. I tested the sample with the Tractus-X MXD and was surprised that it did not work 1:1 there. The call to the consumer data plane The call to the provider data plane My first understanding based on the example was that the consumer backend service never communicates directly with the provider data plane, and that communication always goes through the consumer data plane. This is how it looks in the EDC example transfer-02-consumer-pull .
However, it looks different in the transfer-data-plane-consumer-pull sequence diagram. According to the sequence diagram, the call would work according to your description. Here the consumer can get the data from the provider through an endpoint with provider port (19291)? This begs the following questions:
Note: The data planes are already configured in the Tractus-X MXD. So, this can be a reason, that the call to the consumer data plane does not work. |
Beta Was this translation helpful? Give feedback.
-
Hi all,
While running the steps of the transfer-06-consumer-pull-http sample, I noticed that the http server logs show the following EndpointDataReference:
In that json the endpoint property has port 19291, while the documentation of the sample (step 11) shows port 29291. I have used the endpoint with those ports to get the data from the provider and it works with both. Wouldn't it make more sense for the consumer can get the data from the provider through an endpoint with a provider port (19291)?
Trying to achieve the above, I have removed the publicApiUrl parameter from the consumer data plane https://github.com/eclipse-edc/Samples/blob/main/transfer/transfer-06-consumer-pull-http/README.md#2-register-data-plane-instance-for-consumer.
But when I run the curl command in step 11 I still get the data from the provider using the endpoint with the consumer port (29291). Why doesn't removing the publicApiUrl parameter from the consumer data plane have any effect?
Beta Was this translation helpful? Give feedback.
All reactions