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

Re: Re: Parameter values



Sender: <nellestj@xxxxxxx>

Okay - I am still getting the "DSPLY  HTTP/1.1 400 Bad Request" error.  Is there anything else that could be causing the error?  Here is what I am sending:

 Enc = http_url_encoder_new();                                        
                                                                      
 http_url_encoder_addvar_s(Enc : 'OrderNumber': %trimr  (OrderNo));     
 http_url_encoder_addvar_s(Enc : 'SequenceNumber': '01');             
 http_url_encoder_addvar_s(Enc : 'PTA': '');                          
 http_url_encoder_addvar_s(Enc : 'Status': 'WHAT');                   
 http_url_encoder_addvar_s(Enc : 'UnitNumber': '3755');               
 http_url_encoder_addvar_s(Enc : 'DrvLstCtySt': 'MARSWI');            
 http_url_encoder_addvar_s(Enc : 'DrvLstLat': '0');                   
 http_url_encoder_addvar_s(Enc : 'DrvLstLon': '0');                   
 http_url_encoder_addvar_s(Enc : 'DrvLstPosDtTm': '');                
 http_url_encoder_addvar_s(Enc : 'OrigCtySt': '');                    
 http_url_encoder_addvar_s(Enc : 'DestCtySt': '');                    
 http_url_encoder_addvar_s
(Enc : 'IsOrgRelay': '');     
 http_url_encoder_addvar_s(Enc : 'IsDstRelay': '');           
 http_url_encoder_addvar_s(Enc : 'RouteDrvHome': '');         
 http_url_encoder_addvar_s(Enc : 'RouteDrvHomeBeforeStp': '');
 http_url_encoder_addvar_s(Enc : 'TripInputProc':             
 'AS400PlannerScreen');                                       
 http_url_encoder_addvar_s(Enc : 'TripInputUser': 'NELT');    
 http_url_encoder_addvar_s(Enc : 'TripReason': '');           
 http_url_encoder_addvar_s(Enc : 'ActionPlan': '');           
                                                             
 rc = http_url_get_xml('http://10.223.30.230/'+              
 'RTITripWS/TripService.asmx/'+      
 'GetTripUtilization?'+              
  http_url_encoder_getst(enc)        
  : %padd(StartOfElement)              
  : %padd(EndOfElement)                
  : %add(resp) );                      
                
> 
> From: Scott Klement <sk@xxxxxxxxxxxxxxxx>
> Date: 2004/12/21 Tue PM 11:34:36 GMT
> To: ftpapi@xxxxxxxxxxxxx
> Subject: Re: Re: Parameter values
> 
> Sender: Scott Klement <sk@xxxxxxxxxxxxxxxx>
> 
> 
> This encoding scheme (URL encoding) is a standard way of doing things. 
> What your web programmer is telling you is a "normal" way of doing things 
> that pretty much everybody uses.  (It's either this way or XML)
> 
> The encoding routines will automatically insert the '&' characters for 
> you.  But, you do have to insert the '?' manually.
> 
> Take a look at EXAMPLE14, it shows you an actual example of this process.
> 
> 
> On Tue, 21 Dec 2004 nellestj@xxxxxxx wrote:
> >
> > Okay - I'm trying out the encoding like you suggested. The programmer 
> > that wrote the webservice is looking for the data to come in one big 
> > string like this:
> > rc = http_url_get_xml('http://10.223.30.230/'+
> >                        'RTITripWS/TripService.asmx/'+
> >                        'GetTripUtilization?'+
> >                        'OrderNumber=' + %trimr(OrderNo) +
> >                        '&SequenceNumber=01' +
> >                        '&PTA= 12252004' +
> >                        '&Status=WHAT' +
> >                        '&UnitNumber=  3302' +
> >                        '&DrvLstCtySt=MARSWI' +
> >                        '&DrvLstLat=0' +
> >
> > When I encode, do I include the '&' in front of the fields?  The 
> > programmer said that's what tells him it's a new field.  Basically he's 
> > looking for a '?' in front of the first field, and an '&' in fron of all 
> > of the others.
> >>
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubsribe from the list send mail
> to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
> -----------------------------------------------------------------------
> 

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------