Hi Caveat,thank's for your example; I understand how to use soap with gambas and still got a new problem: How do I set up a ssl connection?
In perl SOAP:: Lite is sufficient to write:
$ data = $ xml-> XMLin (my $ client = SOAP:: Lite
-> service ('https://www.server.com/?wsdl')
-> proxy ('https://www.server.com')
-> uri ('urn: soapurn')
-> disponibilita(user, request_data, passwd));"disponiblita2 is the method that I invoke. I tried: http.URL = "www.server.com:443" and I get the answer: Sending SOAP 1.1 headers: Content-Type: text / xml; charset = utf-8 Sending SOAP 1.1 headers: Content-Length: 900 Sending SOAP 1.1 header: SOAPAction: "" * About to connect () to ordiniweb.comifar.it port 443 (# 0) * Trying 89.221.130.24 ... * connected * Connected to www.server.com (xxx.xxx.xxx.xxx) port 443 (# 0) * Server auth using Digest with user''
POST / HTTP/1.1
User-Agent: Gambas HTTP/1.0 Host: www.server.com:443 Accept: * / * Content-Type: text / xml; charset = utf-8 SOAPAction: "" Content-Length: 0 * Empty reply from server * Connection # 0 left intact to host www.server.com * Server returned nothing (no headers, no date) Result for SOAP 1.1 *** *** ERROR *** End *** SOAP 1.1 * Closing connection # 0 I do not know what to do. Best Regards, Massimo.
I think this should be possible. I've worked with Web Services from out of java and c# and in its simplest form it's just a case of POSTing parameters on a request. In java you have the advantage of several tools which can read the WSDL for you and automatically generate client code with stubs for the methods to call the Web Service(s). I'm guessing you don't want to get quite that ambitious at this stage? I've done POSTing of parameters in Gambas (somewhere, I have to look for the code!) Can you share the WSDL and/or any existing client code with us? Regards, Caveat On Mon, 2011-06-20 at 09:37 +0200, Almanova Sistemi wrote: > Hallo to everyone, > > I am Massimo and I try to write a client software (in gambas 3) that use > a web services. > In other word the software send data with saop protocol an receive data > with the same protocol. > > The information about the availebe services are described in a WSDL file. > > Now, hor Can I do this with gambas? > > Best Regards, > Massimo. > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user@... > https://lists.sourceforge.net/lists/listinfo/gambas-user
_1.wsdl
Description: application/wsdl
------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Data protection magic? Nope - It's vRanger. Get your free trial download today. http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
