What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

(Untitled)

Options
U028VTHNMF1
U028VTHNMF1 Posts: 64 🧑🏻‍🚀 - Cadet

Comments

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,034 ⚖️ - Guardians (admin)
    Options

    Heyhey, how does your zedstub look like? Can you maybe also validate if the Transfer-class for this object is really generated?

  • U028VTHNMF1
    U028VTHNMF1 Posts: 64 🧑🏻‍🚀 - Cadet
    Options

    Am getting the string in the Zed

  • U028VTHNMF1
    U028VTHNMF1 Posts: 64 🧑🏻‍🚀 - Cadet
    Options

    also, i got the transfrer class inside the Generated

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,034 ⚖️ - Guardians (admin)
    Options

    What do you mean with “Am getting the string in the Zed” ? Can you please give some more code snippets?

  • U028VTHNMF1
    U028VTHNMF1 Posts: 64 🧑🏻‍🚀 - Cadet
    Options

    This is the result am getting in zed

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,034 ⚖️ - Guardians (admin)
    Options

    Can you maybe share some code-snippets from the yves side; for example where/how you call zed?

  • U028VTHNMF1
    U028VTHNMF1 Posts: 64 🧑🏻‍🚀 - Cadet
    Options

    in yves I have written only one index controller

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,034 ⚖️ - Guardians (admin)
    Options

    How does your HelloWorldClient getSalutationMessage() look like? I bet there is another class you call inside getSaulationMessage() inside the client

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,034 ⚖️ - Guardians (admin)
    edited October 2021
    Options

    So I think there is something not working when you use the zed-stub inside the HelloWorld-Client-namespace

  • Eugenia Poidenko
    Eugenia Poidenko Sprykee Posts: 145 🧑🏻‍🚀 - Cadet
    Options

    it might be that you facade is returning string directly. Can you check this?

    Only transfers can travel in the zed call - so both sent and received data type should be Transfer.

  • U028VTHNMF1
    U028VTHNMF1 Posts: 64 🧑🏻‍🚀 - Cadet
    Options

    HelloWorldStub class

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,034 ⚖️ - Guardians (admin)
    Options

    ok, can you pls also share the method-body of your GatewayController -getSalutationMessage?

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,034 ⚖️ - Guardians (admin)
    Options

    ok, also nothing wrong there as far as i can see. What is your getSalutationMessage() in the MessageGenerator returning? Can you paste the snippet here as well?

  • U028VTHNMF1
    U028VTHNMF1 Posts: 64 🧑🏻‍🚀 - Cadet
    Options
    public function generateHelloMessage()
        {
            $helloMessages = ["Hello!", "Bonjour!", "Namaste!", "Hallo", "Hola!", "Ciao!"];
            shuffle($helloMessages);
            return $helloMessages[0];
        }
    }
    
  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,034 ⚖️ - Guardians (admin)
    Options

    ok, so for me it looks like you are not returning a Transfer-Object, but a pure string. Try to return a transfer-object pls

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,034 ⚖️ - Guardians (admin)
    Options

    did it help?