Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Character in WebService in SoapUI

(0) ShareShare
ReportReport
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?

  • 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,748 Super User 2024 Season 1 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,419 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,492 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans