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

Re: %scan() fails working in http_long_ParseUrl()



Hi Scott,

I am sorry, but I do not know how to reproduce the error. However I will 
ask Ed for little test program.

Thomas.

Am 03.10.2011 21:44, schrieb Scott Klement:
> Hi Thomas,
>
> I put together a quick test program that calls http_long_parseUrl() for
> the two URLs you provided, and I did not get any errors on them.  The
> output is exactly as expected.  Can you tell me how to make it fail?
>
> Here's the code I'm testing with:
>
>        H DFTACTGRP(*NO) ACTGRP('KLEMENT') BNDDIR('HTTPAPI')
>
>         /copy httpapi_h
>
>        D rc              s             10i 0
>        D url             s            100a
>        D serv            s             32a
>        D user            s             32a
>        D pass            s             32a
>        D host            s            256a
>        D port            s             10i 0
>        D path            s          32767a   varying
>         /free
>
>          url='http://bmicqa.aplicor.net/crm5_0/crm/+
>                 services/bmicintegrationservice.asmx';
>          exsr testit;
>          url='https://bmicqa.aplicor.net/crm5_0/crm/+
>                services/bmicintegrationservice.asmx';
>          exsr testit;
>          *inlr = *on;
>
>          begsr testit;
>
>             rc = http_long_parseURL( url
>                                    : serv
>                                    : user
>                                    : pass
>                                    : host
>                                    : port
>                                    : path );
>             if (rc<>  0);
>                http_crash();
>             endif;
>          endsr;
>
>         /end-free
>
>
>
>
>
>
>
>
> On 10/3/2011 1:01 PM, Thomas Raddatz wrote:
>> Hi Scott,
>>
>> Maybe you can jump in and help me with the following error message that I
>> received from a WSDL2RPG user:
>>
>> Message ID . . . . . . : RNX0100 Severity . . . . . . . : 50
>> Message type . . . . . : Escape
>>
>> Date sent . . . . . . : 10/03/11 Time sent . . . . . . : 12:51:12
>>
>> Message . . . . : Length or start position is out of range for the
>> string operation.
>> Cause . . . . . : One of the following has occurred in RPG procedure
>> HTTP_LONG_ in program LIBHTTP/HTTPAPIR4:
>> - A numeric length or start position is less than 1 or too large for the
>> string operation.
>>
>> - The search-argument parameter of the %SCAN built-in function has zero
>>
>> length or is longer than the source-string parameter.
>>
>> - The maximum-length parameter of the %STR built-in function is not a
>> value between 1 and the maximum size of a character field.
>>
>> The original URL of the web service is:
>>
>> http://bmicqa.aplicor.net/crm5_0/crm/services/bmicintegrationservice.asmx
>>
>> When the service is called it is changed by a redirection to:
>>
>> https://bmicqa.aplicor.net/crm5_0/crm/services/bmicintegrationservice.asmx
>>
>> Unfortunately I cannot call the web service from our System i because we do
>> not have configured SSL.
>>
>> Regards,
>>
>> Thomas.
>>
>>
>>
>> -----------------------------------------------------------------------
>> This is the FTPAPI mailing list.  To unsubscribe, please go to:
>> http://www.scottklement.com/mailman/listinfo/ftpapi
>> -----------------------------------------------------------------------
>
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
>
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------