[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Parameter values
Sender: michael@xxxxxxxxxxxxxxxxxx
How big is order number? Are you concatenating the blanks? Try
%Trim(OrderNo).
> -------- Original Message --------
> Subject: Parameter values
> From: nellestj@xxxxxxx
> Date: Mon, December 20, 2004 1:09 pm
> To: ftpapi@xxxxxxxxxxxxx
>
> Sender: <nellestj@xxxxxxx>
>
> How do I pass the value of variable when calling a webservice? Assume OrderNo = '2077736'. If I change the code to 'OrderNumber=2077736', it works fine, but when I change it to 'OrderNumber=' + OrderNo +, I can a return code of 400, which says "Bad Request". Can you help me? Thanks in advance!! :)
>
> rc = http_url_get_xml('http://10.223.30.230/'+
> 'RTITripWS/TripService.asmx/'+
> 'GetTripUtilization?'+
> 'OrderNumber='+ OrderNo +
> '&SequenceNumber=01'+
> '&PTA='+
> '&Status=What'+
> '&UnitNumber='+
> '&DrvLstCtySt='+
> '&DrvLstPosDtTm='+
> '&OrgCtySt='+
> '&DstCtySt='+
> '&IsOrgRelay='+
> '&IsDstRelay='+
> '&RouteDrvHome='+
> '&RouteDrvHomeBeforeStp='+
> '&TripInputProc=AS400Planner'+
> 'Screen'+
> '&TripInputUser='+
> '&TripReason='+
> '&ActionPlan='
> : %paddr(StartOfElement)
> : %paddr(EndOfElement)
> : %addr(resp) );
>
>
> -----------------------------------------------------------------------
> 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
-----------------------------------------------------------------------