Re: SOAP in Pike?
"Stephen R. van den Berg" <[email protected]>
| Newsgroups | gmane.comp.lang.pike.user |
|---|---|
| Message-ID | <[email protected]> |
Pontus ??stlund wrote:
>> Has anyone tried doing SOAP queries from Pike?
>Here are some helper stuff for SOAP:
>https://github.com/poppa/pike-soap-helper <https://github.com/poppa/pike-soap-helper>
It helped. Even though I originally didn't intend to, I got sidetracked and
implemented something close to a full SOAP-wdsl parser.
I'm currently determining what the most appropriate sync and/or async interface
to Pike would be.
I now have a working sync-interface that allows things like this:
SoapClient soap;
mapping args, sh, th;
soap = SoapClient("https://api.affili.net/V2.0/PublisherProgram.svc?wsdl");
args = soap->getarguments("GetPrograms");
sh = args->GetProgramsRequest;
sh->CredentialToken += ({token});
th = sh->DisplaySettings;
th->CurrentPage += ({1});
th->PageSize += ({100});
th = sh->GetProgramsQuery;
th->PartnershipStatus->ProgramPartnershipStatusEnum += ({"Active"});
mapping result = soap->call(args)->GetProgramsResponse->ProgramCollection
->Program;
Suggestions are welcome.
--
Stephen.