[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ftpapi] The type and attributes of the parameter do not match those of the prototype.



One of the fields you are using in your call do not match the prototype, maybe the prototype doesn’t allow *OMIT. The prototype is in a copybook.

 

Michael Mayer-Oakes

Data Scientist

500 Crocker Drive. Vacaville, CA. 95688

Phone: 707-452-2868 | www.mariani.com

 

 

Celebrating over 100 years of being your Global Supplier of Dried Fruits and Snacks.

 

Please consider the environment before printing this email.

 

 

From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx <ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx> On Behalf Of Mark Hall
Sent: Monday, June 21, 2021 9:10 AM
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: [Ftpapi] The type and attributes of the parameter do not match those of the prototype.

 

Hi

 

I made a simple change to the Example4 to connect to a different URL.

Worked perfectly if I set the ‘File to receive’ but if I change this to *OMIT and set a string to receive as bellow I get the following compiler error

 

*RNF7535 30      1 The type and attributes of the parameter do not match those

                    of the prototype.       

 

Any help would be great 

 

Thanks in advance

 

Mark Hall                                

 

D formData        s          32767a   varying      

D formResp        s          32767a   varying      

 

formData = 'ilsno' + http_urlEncode('000')          

         + '&cid=' + http_urlEncode('BAT001');      

 

http_setOption( 'content-type'                        

              : 'application/x-www-form-urlencoded' );

 

rc = http_req( 'POST'                                             

             : 'http://docstore.systems/office/dataconnectors/' + 

               '/AS400ValidateILSNo.asp'                          

             : *omit                      // File to receive      

             : formResp                   // String to receive    

             : *omit                      // File to send         

             : formData );                // String to send       

-- 
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi