Page 1 of 1

Invoke WebSrvice with Soap or Postman

Posted: Thu Jan 15, 2026 6:38 pm
by gio.cot
Hi all
i'm try to play with example at page 178 of https://www.scottklement.com/presentati ... %20RPG.pdf;
i configured HTTP Server
i have created a simple progam the try to read a JSON Input Message

Code: Select all

     dcl-s loaded ind inz(*off);
       // dcl-ds cust qualified template;
        dcl-ds cust qualified ;
          success ind inz(*on);
          errorMsg varchar(500) inz('');
          dcl-ds data;
            custno packed(5: 0) inz(0);
            name varchar(30) inz('');
            dcl-ds address;
              street varchar(30) inz('');
              city varchar(20) inz('');
              state char(2) inz(' ');
              postal varchar(10) inz('');
            end-ds;
          end-ds;
        end-ds;    
           
       monitor;
         data-into cust %DATA( '*STDIN'
         : 'case=convert +
           allowmissing=yes')
           %PARSER('YAJLINTO');
         loaded = *on;
       on-error;
         httpstatus = 400;
         loaded = *off;
       endmon;               
and now i would like to test it using SoapUi or Postman, but
with Soap Ui
i receive the error that you can see at img01 attacched , and the program in not called
with PostMan .. see img02, the program is executed, but the data-into go on error and so the DS cust is empty
can some , show me how to configure the web service invoke with Postman or SoapUi ?
Thanks in advance
Gio

Re: Invoke WebSrvice with Soap or Postman

Posted: Thu Jan 15, 2026 9:45 pm
by gio.cot
Hi
solved .. the Json was wrong
in postman i tried with this Json and now it works
Thanks
Gio