[Gambas-user] gambas3 and web services
Almanova Sistemi
almanova at ...1228...
Thu Jun 23 19:32:34 CEST 2011
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 at ...1107...
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: _1.wsdl
Type: application/x-wsdl
Size: 8148 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20110623/421c0053/attachment.bin>
More information about the User
mailing list