[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: WSDL2RPG - beta8 - Questions
Nicolas,
I recommend to create a service program from the stub module. The creation commands should be in the
help text of the WSDL2RPG command. Since I have to check whether these commands are up to date, please
use the following commands instead:
CRTRPGMOD MODULE(WSDL2RPG/WS0001)
SRCFILE(WSDL2RPG/QWSDL2RPG) SRCMBR(*MODULE)
TRUNCNBR(*NO)
CRTSRVPGM SRVPGM(WSDL2RPG/WS0001) MODULE(*SRVPGM)
EXPORT(*ALL)
TEXT('Web Services: ZipCode')
BNDSRVPGM(*LIBL/WSDL2RPGRT *LIBL/BASICS1 *LIBL/HTTPAPIR4)
BNDDIR(QC2LE)
ACTGRP(*CALLER)
Replace 'WS0001' with the name of your stub module.
Then include your stub module as a copy book into the program that wants to use the Web service:
D/DEFINE PROTOTYPE_WS0001
D/COPY QWSDL2RPG,WS0001 Web Service
D/UNDEFINE PROTOTYPE_WS0001
Use the '_t' fields (pDummy) to create your working fields like this:
*
* Request message
D CityStateToZipCode...
D DS likeds(tns_CityStateToZipCode_t ) inz
*
* Response message
D CityStateToZipCodeResponse...
D DS likeds(
D tns_CityStateToZipCodeResponse_t) inz
Call the web service as shown here:
CityStateToZipCodeResponse =
ZipCodeSoap_CityStateToZipCode(CityStateToZipCode: msg);
Hope this helps.
Thomas.
PS: The information provided is checked against the coming v1.0. So possibly there might be some
slightly differences to beta8. But the concept is the same.
Nicolas Machado schrieb:
> Hi Thomas, I just downloaded your beta version and it works fine and
> create me a stub program.
>
> how do I have to use this stub ?
> I read it and I notice that it has NO MAIN. so will be a Module, right?
> How can I pass parameter, I mean, I have values that I have to store in
> the SOAP message.
>
> What is pDummy ?
>
> Thanks, Thomas.
>
>
>
>
> thomas.raddatz@xxxxxx escribió:
>> Hi,
>>
>> I released WSDL2RPG beta8 for download. Though I know that there are lots
>> of things to do I expect beta8 to become the final release 1.0. You can
>> download beta8 from here:
>>
>> http://www.tools400.de/Downloads/Betas/WSDL2RPG_RC.zip
>>
>> Please notice that you need the very latest beta of HTTPAPI to run WSDL2RPG
>> beta8. The latest beta of HTTPAPI is V1.22 beta4.
>>
>> So far WSDL2RPG should work fine for (most?) simple web services without
>> attachments, such as:
>>
>> FedEx shipping rates (http://www.ecocoma.com)
>> email verification (http://www.ecocoma.com)
>> German bank number information (
>> http://www.thomas-bayer.com/soap/blz-web-service.htm)
>> zip codes for city and state (http://www.ripedev.com).
>>
>> Thomas.
>>
>>
>> --
>> IMPORTANT NOTICE:
>> This email is confidential, may be legally privileged, and is for the
>> intended recipient only. Access, disclosure, copying, distribution, or
>> reliance on any of it by anyone else is prohibited and may be a criminal
>> offence. Please delete if obtained in error and email confirmation to the sender.
>> -----------------------------------------------------------------------
>> 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
-----------------------------------------------------------------------