Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

Character in WebService in SoapUI

Posted on by 15

Hello:

I don't understand why I get weird characters in soapUI when I mount a webservice with an xmlport.

pastedimage1644652134514v1.png

The definition is correct
pastedimage1644652134514v2.png

And the xmlport is simply

pastedimage1644652134514v3.png

the webservice works in SoapUi and Postman even though it has the characters, but the provider can't get it to work because of the characters. Any ideas?

Categories:
  • javigonza Profile Picture
    javigonza 15 on at
    RE: Character in WebService in SoapUI

    This is my code in codeunit, i publish codeunit

    codeunit 50302 "WS Transaction"

    {

       procedure TransactionResult(Myproc: XMLport "Transaction NZ0")

       BEGIN      

           Myproc.Import();

       end;

    }

    And code in XMLPort.

    xmlport 50302 "Transaction NZ0"

    {

       Format = xml;

       Encoding = UTF8;

       Caption = 'Transaction';

       UseRequestPage = False;

       UseDefaultNamespace = TRUE;

       schema

       {

           textelement(TransactionResult)

           {

               textelement(TransactionCode)

               {

                   MinOccurs = Once;

                   MaxOccurs = Once;

               }

               textelement(TransactionMessage)

               {

                   MinOccurs = Once;

                   MaxOccurs = Once;

               }

           }

       }

       procedure SetTransaction(vTransaction: Code[20]; textLastError: Text)

       begin

           TransactionCode := vTransaction;

           TransactionMessage := textlastError;

       end;

    }

    This is all.

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,744 Moderator on at
    RE: Character in WebService in SoapUI

    I think you need to share the complete code of your xml port in order for us to be able to help you with this.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,554 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,588 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans