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

[Fwd: Fw: Re: Parameter values]



Sender: <nellestj@xxxxxxx>


 > 
> ----- Original Message -----
> From: "Scott Klement" <klemscot@xxxxxxxxxxxx>
> To: <ftpapi@xxxxxxxxxxxxx>
> Sent: Tuesday, December 21, 2004 6:16 PM
> Subject: Re: Re: Parameter values
> 
> 
> > Sender: Scott Klement <klemscot@xxxxxxxxxxxx>
> >
> >
> > Can you please create a "debug file" and show me the contents of that
> > file?
> >
> > To do that, edit the CONFIG_H source member.  At the bottom, you'll see
> > the following:
> >
> >      D/define DEBUG
> >      DHTTP_DEBUG_FILE  s            500A   varying
> >      D                                     inz('/tmp/httpapi_debug.txt')
> >
> > Make sure the the /DEFINE line is enabled, and re-compile HTTPAPI (you can
> > do that by calling the INSTALL program)
> >
> > Then try your program again.  It will create a file in the IFS called
> > "httpapi_debug.txt" in the /tmp directory. You can download that file
> > (using FTP, a mapped drive, or whatever works for you) to your PC and then
> > paste it into a message that you send to the mailing list.  This will give
> > me a lot more information about what you're sending.
> >
> >
> >
> > On Tue, 21 Dec 2004 nellestj@xxxxxxx wrote:
> > >
> > > 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) );
> > >
Is there anything that may be getting cached?  I came into work this morning and tried running my program again and it worked fine.  The only thing I did was call the INSTALL program because I was going to send in the DEBUG file.  How could this be?

> > > >
> > > > 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
-----------------------------------------------------------------------