dpearce
1
I am attempting to get data using the Kydome webservice plugin, but must admint i am a newbie to this.
I thought this was easy! I would be grateful for any Webservices gurus to give me some guidance. It doesnt look like it should be that hard.
Many thanks in advance
David
pbakker
2
The Kydome WebService plugin doesn’t allow calling WebServices that use Complex Types, as the one you’re trying to call does.
The Kydome Webservices plugin only supports very rudimentary webservices, that only use Simple Types.
Paul
dpearce
3
do you know of anyway to read this type of web service into servoy?
pbakker
4
Currently, the way to go is building a plugin in Java that calls the WebService, exposing a function in JavaScript for you to call from a method.
I prefer to use the Axis2 framework.
Paul
dpearce
5
Paul, would the http post function work to send this and get a response?
POST /Service/Ignition.asmx HTTP/1.1
Host: secure.premiermedical-online.co.uk
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Header>
<LoginCredentials xmlns="http://www.wnstwt.com/premier-medical/ignition/">
<Name>string</Name>
<Password>string</Password>
</LoginCredentials>
</soap12:Header>
<soap12:Body>
<GetClinicList xmlns="http://www.wnstwt.com/premier-medical/ignition/">
<start>dateTime</start>
<end>dateTime</end>
</GetClinicList>
</soap12:Body>
</soap12:Envelope>
if so is there an example of using it are the parameters the bits from the top and would the actual soap be an attached file?
var didAddParam = poster.addParameter(‘Host’,‘secure.premiermedical-online.co.uk’);
sorry for being thick!
pbakker
6
I looked into being able to send a Soap message using just HTTP Post, but it’s not something straightforward unfortunately.
As far as I see it now, the only way is building a plugin for this.
Paul
dpearce
7
Thanks Paul,
My workaround is to do it in PHP and then read the output back using the http plugin. I seem to be getting there!
David