Invoke WebSrvice with Soap or Postman

Discussions relating to the ScottKlement.com port of the open source YAJL JSON Reader/Generator. This includes the YAJL tool as well as the YAJLR4, YAJLGEN, YAJLINTO and YAJLDTAGEN add-ons from ScottKlement.com. http://www.scottklement.com/yajl/
Post Reply
gio.cot
Posts: 14
Joined: Sat May 28, 2022 9:08 pm

Invoke WebSrvice with Soap or Postman

Post 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
Attachments
PostMan
PostMan
img02a.png (47.02 KiB) Viewed 8076 times
PostMan
PostMan
img02.png (67.87 KiB) Viewed 8076 times
SoapUi
SoapUi
img01.png (47.67 KiB) Viewed 8076 times
gio.cot
Posts: 14
Joined: Sat May 28, 2022 9:08 pm

Re: Invoke WebSrvice with Soap or Postman

Post by gio.cot »

Hi
solved .. the Json was wrong
in postman i tried with this Json and now it works
Thanks
Gio
Attachments
img02b.png
img02b.png (40.67 KiB) Viewed 7872 times
Post Reply