You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@hop.apache.org by "codergirl371 (via GitHub)" <gi...@apache.org> on 2025/03/27 09:12:43 UTC

[D] Issue with Running Async Web Service on Apache Hop - JSON Payload & Cross-OS Execution (hop)

GitHub user codergirl371 created a discussion: Issue with Running Async Web Service on Apache Hop - JSON Payload & Cross-OS Execution

I've gone through the [Apache Hop async web service documentation [](https://hop.apache.org/manual/latest/hop-server/async-web-service.html), but I'm still encountering errors.

Here’s the curl command I’m using:```

curl -v \
  --user cluster:cluster \
  --request POST \
  -o async-run.json \
  -H "Content-Type: application/json" \
  --data-binary '@document.json' \
  'http://localhost:8282/hop/asyncRun/?service=dataload&MAX=50000000'
```

**### Questions:**

1. How should document.json be structured?

        What exact format or content should it have to correctly trigger the async web service?

2. Running from a Linux machine while Hop is on a Windows VM:

        If I’m executing the command from a Linux machine but the Hop server is hosted on a Windows VM, should the file paths in document.json be in Windows format?

3. REST APIs like register/startWorkflow:

        These APIs require an XML payload. What exact format should this XML content be in? 

GitHub link: https://github.com/apache/hop/discussions/5081

----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org


Re: [D] Issue with Running Async Web Service on Apache Hop - JSON Payload & Cross-OS Execution (hop)

Posted by "codergirl371 (via GitHub)" <gi...@apache.org>.
GitHub user codergirl371 edited a discussion: Issue with Running Async Web Service on Apache Hop - JSON Payload & Cross-OS Execution

I've gone through the [Apache Hop async web service documentation [](https://hop.apache.org/manual/latest/hop-server/async-web-service.html), but I'm still encountering errors.

Also, in the xml payload, from where the <metastore_json> is taken ?


Here’s the curl command I’m using:```

curl -v \
  --user cluster:cluster \
  --request POST \
  -o async-run.json \
  -H "Content-Type: application/json" \
  --data-binary '@document.json' \
  'http://localhost:8282/hop/asyncRun/?service=dataload&MAX=50000000'
```
*ofc I've changed to my configurations

**### Questions:**

1. How should document.json be structured?

        What exact format or content should it have to correctly trigger the async web service?

2. Running from a Linux machine while Hop is on a Windows VM:

        If I’m executing the command from a Linux machine but the Hop server is hosted on a Windows VM, should the file paths in document.json be in Windows format?

3. REST APIs like register/startWorkflow:

        These APIs require an XML payload. What exact format should this XML content be in? 

GitHub link: https://github.com/apache/hop/discussions/5081

----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org


Re: [D] Issue with Running Async Web Service on Apache Hop - JSON Payload & Cross-OS Execution (hop)

Posted by "codergirl371 (via GitHub)" <gi...@apache.org>.
GitHub user codergirl371 edited a discussion: Issue with Running Async Web Service on Apache Hop - JSON Payload & Cross-OS Execution

I've gone through the [Apache Hop async web service documentation [](https://hop.apache.org/manual/latest/hop-server/async-web-service.html), but I'm still encountering errors.

Here’s the curl command I’m using:```

curl -v \
  --user cluster:cluster \
  --request POST \
  -o async-run.json \
  -H "Content-Type: application/json" \
  --data-binary '@document.json' \
  'http://localhost:8282/hop/asyncRun/?service=dataload&MAX=50000000'
```
*ofc I've changed to my configurations

**### Questions:**

1. How should document.json be structured?

        What exact format or content should it have to correctly trigger the async web service?

2. Running from a Linux machine while Hop is on a Windows VM:

        If I’m executing the command from a Linux machine but the Hop server is hosted on a Windows VM, should the file paths in document.json be in Windows format?

3. REST APIs like register/startWorkflow:

        These APIs require an XML payload. What exact format should this XML content be in? 

GitHub link: https://github.com/apache/hop/discussions/5081

----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org


Re: [D] Issue with Running Async Web Service on Apache Hop - JSON Payload & Cross-OS Execution (hop)

Posted by "bamaer (via GitHub)" <gi...@apache.org>.
GitHub user bamaer added a comment to the discussion: Issue with Running Async Web Service on Apache Hop - JSON Payload & Cross-OS Execution

https://hop.apache.org//manual/latest/hop-server/async-web-service.html
1. the uploaded document will be available in the content variable iirc 
2. the document should be available from the machine where you make the request (Windows) and will be uploaded to the server. 
3. there's an example for the XML payload in the [registerPipeline](https://hop.apache.org//manual/latest/hop-server/rest-api.html#_register_pipeline) call. 

GitHub link: https://github.com/apache/hop/discussions/5081#discussioncomment-12641552

----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org