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

Re: using WSDL2PRG



My understanding (and it may be wrong) is that WSDL documents don't 
usually tell you the size of the string.  They simply say "data type is 
String".

In many languages, that's a non-issue.  Java, PHP, C#, etc all let you 
declare a string, and don't ask you for a size.  they dynamically update 
the size as needed.  Thus, the standards being the way they are.

But, when Thomas created WSDL2RPG, he had to pick a number, since RPG 
requires it.  He picked 128, figuring it would be large enough for most 
of the strings used in web services, without being too big (and thus 
risking hitting RPG's memory limits).  He figured you could easily go in 
and change that 128 to something larger if you needed to.

At least, that's my understanding.  I probably shouldn't speak for him, 
but I think he told me that at one point :)



Larry Kleinman wrote:
>    Hi all - I am just getting started with WSDL2RPG and my first few
>    simple attempts seem to work OK. I have now run into a problem - one
>    of the fields that the web service expects can be very long (a few
>    thousand characters), but the "stub" created by WSDL2RPG is defined as
>    128A varying. Can I just change this to a bigger number in the 2
>    places it is defined, or is there more to it? (Where did the 128 come
>    from in the first place?)
>    Larry Kleinman
>    Kleinman Associates, Inc.
>    212-949-6469
>    203-255-4100
> 
> 
> 
> ------------------------------------------------------------------------
> 
> -----------------------------------------------------------------------
> 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
-----------------------------------------------------------------------