comp.lang.ada
 help / color / mirror / Atom feed
* AWS SOAP with SSL
@ 2018-05-21 14:15 NiGHTS
  2018-05-22 17:22 ` Pascal Obry
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: NiGHTS @ 2018-05-21 14:15 UTC (permalink / raw)


Can SOAP be used over SSL in an Ada Web Service application? If so, how exactly can that be achieved? There is very little documentation on SOAP and SSL for AWS, and none talking about both being used at the same time.

Thanks for your help.


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: AWS SOAP with SSL
  2018-05-21 14:15 AWS SOAP with SSL NiGHTS
@ 2018-05-22 17:22 ` Pascal Obry
  2018-05-22 22:25   ` NiGHTS
  2018-05-22 17:44 ` Björn Lundin
  2018-05-24 16:22 ` warnerjosh780
  2 siblings, 1 reply; 16+ messages in thread
From: Pascal Obry @ 2018-05-22 17:22 UTC (permalink / raw)


Le lundi 21 mai 2018 à 07:15 -0700, NiGHTS a écrit :
> Can SOAP be used over SSL in an Ada Web Service application? If so,
> how exactly can that be achieved? There is very little documentation
> on SOAP and SSL for AWS, and none talking about both being used at
> the same time.

Sure SOAP and SSL are orthogonal.

See demos/soap_demo for a using on the client side. If you're using
WSDL and generating code using ada2wsdl and wsdl2aws just pass the
server address (using https://...) to ada2wsdl, see option -a option.

Regards,

-- 
  Pascal Obry /  Magny Les Hameaux (78)

  The best way to travel is by means of imagination

  http://www.obry.net

  gpg --keyserver keys.gnupg.net --recv-key F949BD3B


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: AWS SOAP with SSL
  2018-05-21 14:15 AWS SOAP with SSL NiGHTS
  2018-05-22 17:22 ` Pascal Obry
@ 2018-05-22 17:44 ` Björn Lundin
  2018-05-22 17:50   ` Dmitry A. Kazakov
  2018-05-24 16:22 ` warnerjosh780
  2 siblings, 1 reply; 16+ messages in thread
From: Björn Lundin @ 2018-05-22 17:44 UTC (permalink / raw)


On 2018-05-21 16:15, NiGHTS wrote:
> Can SOAP be used over SSL in an Ada Web Service application? If so, how exactly can that be achieved? There is very little documentation on SOAP and SSL for AWS, and none talking about both being used at the same time.
> 
> Thanks for your help.
> 

most likely by compiling AWS with SSL enabled (is not by default)
and then use https for urls

-- 
--
Björn

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: AWS SOAP with SSL
  2018-05-22 17:44 ` Björn Lundin
@ 2018-05-22 17:50   ` Dmitry A. Kazakov
  2018-05-22 18:07     ` Björn Lundin
  0 siblings, 1 reply; 16+ messages in thread
From: Dmitry A. Kazakov @ 2018-05-22 17:50 UTC (permalink / raw)


On 2018-05-22 19:44, Björn Lundin wrote:

> most likely by compiling AWS with SSL enabled (is not by default)
> and then use https for urls

Out of curiosity. How can it be default or not? Sometimes you need 
secure, sometimes plain HTTP, on both sides.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: AWS SOAP with SSL
  2018-05-22 17:50   ` Dmitry A. Kazakov
@ 2018-05-22 18:07     ` Björn Lundin
  2018-05-22 18:21       ` Dmitry A. Kazakov
  2018-05-22 18:31       ` Paul Rubin
  0 siblings, 2 replies; 16+ messages in thread
From: Björn Lundin @ 2018-05-22 18:07 UTC (permalink / raw)


On 2018-05-22 19:50, Dmitry A. Kazakov wrote:
> On 2018-05-22 19:44, Björn Lundin wrote:
> 
>> most likely by compiling AWS with SSL enabled (is not by default)
>> and then use https for urls
> 
> Out of curiosity. How can it be default or not? Sometimes you need
> secure, sometimes plain HTTP, on both sides.

Hmm I don't get the question. AWS (as bundled with compiler)
can do http calls (the client), but not https - raises 'not implemented'
or someting like that.

recompile it with ssl enabled, and you can use http and https from client.

The enable ssl switches the aws.net.ssl ? ssl body.

server side - I did not test, but assue it uses aws.net.ssl




-- 
--
Björn


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: AWS SOAP with SSL
  2018-05-22 18:07     ` Björn Lundin
@ 2018-05-22 18:21       ` Dmitry A. Kazakov
  2018-05-22 18:31       ` Paul Rubin
  1 sibling, 0 replies; 16+ messages in thread
From: Dmitry A. Kazakov @ 2018-05-22 18:21 UTC (permalink / raw)


On 2018-05-22 20:07, Björn Lundin wrote:
> On 2018-05-22 19:50, Dmitry A. Kazakov wrote:
>> On 2018-05-22 19:44, Björn Lundin wrote:
>>
>>> most likely by compiling AWS with SSL enabled (is not by default)
>>> and then use https for urls
>>
>> Out of curiosity. How can it be default or not? Sometimes you need
>> secure, sometimes plain HTTP, on both sides.
> 
> Hmm I don't get the question. AWS (as bundled with compiler)
> can do http calls (the client), but not https - raises 'not implemented'
> or someting like that.
> 
> recompile it with ssl enabled, and you can use http and https from client.

That answers the question. "SSL enabled" = can both HTTP and HTTPS. 
Default is only HTTP.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: AWS SOAP with SSL
  2018-05-22 18:07     ` Björn Lundin
  2018-05-22 18:21       ` Dmitry A. Kazakov
@ 2018-05-22 18:31       ` Paul Rubin
  2018-05-22 20:02         ` Dmitry A. Kazakov
  2018-05-22 20:55         ` Pascal Obry
  1 sibling, 2 replies; 16+ messages in thread
From: Paul Rubin @ 2018-05-22 18:31 UTC (permalink / raw)


Björn Lundin <b.f.lundin@gmail.com> writes:
> recompile it with ssl enabled

What SSL stack does that use?  Is there one written in Ada?

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: AWS SOAP with SSL
  2018-05-22 18:31       ` Paul Rubin
@ 2018-05-22 20:02         ` Dmitry A. Kazakov
  2018-05-22 20:21           ` Björn Lundin
  2018-05-22 20:55         ` Pascal Obry
  1 sibling, 1 reply; 16+ messages in thread
From: Dmitry A. Kazakov @ 2018-05-22 20:02 UTC (permalink / raw)


On 2018-05-22 20:31, Paul Rubin wrote:
> Björn Lundin <b.f.lundin@gmail.com> writes:
>> recompile it with ssl enabled
> 
> What SSL stack does that use?

OpenSSL?

> Is there one written in Ada?

There was an initiative to design one in SPARK.

I would gladly use it instead of GNUTLS I am using for HTTP, MQTT, SMTP.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: AWS SOAP with SSL
  2018-05-22 20:02         ` Dmitry A. Kazakov
@ 2018-05-22 20:21           ` Björn Lundin
  0 siblings, 0 replies; 16+ messages in thread
From: Björn Lundin @ 2018-05-22 20:21 UTC (permalink / raw)


On 2018-05-22 22:02, Dmitry A. Kazakov wrote:
> On 2018-05-22 20:31, Paul Rubin wrote:
>> Björn Lundin <b.f.lundin@gmail.com> writes:
>>> recompile it with ssl enabled
>>
>> What SSL stack does that use?
> 
> OpenSSL?
> 
>> Is there one written in Ada?
> 
> There was an initiative to design one in SPARK.
> 
> I would gladly use it instead of GNUTLS I am using for HTTP, MQTT, SMTP.
> 

AWS in itself can be configured to use OpenSSL or GNUTLS.
I've only tried OpenSSL myself, Linux and Windows

-- 
--
Björn


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: AWS SOAP with SSL
  2018-05-22 18:31       ` Paul Rubin
  2018-05-22 20:02         ` Dmitry A. Kazakov
@ 2018-05-22 20:55         ` Pascal Obry
  1 sibling, 0 replies; 16+ messages in thread
From: Pascal Obry @ 2018-05-22 20:55 UTC (permalink / raw)


Le mardi 22 mai 2018 à 11:31 -0700, Paul Rubin a écrit :
> Björn Lundin <b.f.lundin@gmail.com> writes:
> > recompile it with ssl enabled
> 
> What SSL stack does that use?  Is there one written in Ada?

OpenSSL or GNUTLS (choice at compile time).

We had also tested with LibreSSL and it should work too.

-- 
  Pascal Obry /  Magny Les Hameaux (78)

  The best way to travel is by means of imagination

  http://www.obry.net

  gpg --keyserver keys.gnupg.net --recv-key F949BD3B

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: AWS SOAP with SSL
  2018-05-22 17:22 ` Pascal Obry
@ 2018-05-22 22:25   ` NiGHTS
  2018-05-23  6:11     ` Pascal Obry
  0 siblings, 1 reply; 16+ messages in thread
From: NiGHTS @ 2018-05-22 22:25 UTC (permalink / raw)


On Tuesday, May 22, 2018 at 1:22:16 PM UTC-4, Pascal Obry wrote:
> Le lundi 21 mai 2018 à 07:15 -0700, NiGHTS a écrit :
> > Can SOAP be used over SSL in an Ada Web Service application? If so,
> > how exactly can that be achieved? There is very little documentation
> > on SOAP and SSL for AWS, and none talking about both being used at
> > the same time.
> 
> Sure SOAP and SSL are orthogonal.
> 
> See demos/soap_demo for a using on the client side. If you're using
> WSDL and generating code using ada2wsdl and wsdl2aws just pass the
> server address (using https://...) to ada2wsdl, see option -a option.
> 
> Regards,
> 

Thank you for your reply.

I had a feeling this was the case, so I appreciate your clarification.

Is there a REST API version available? I am more interested in REST than SOAP, but I didn't see one available in AWS.


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: AWS SOAP with SSL
  2018-05-22 22:25   ` NiGHTS
@ 2018-05-23  6:11     ` Pascal Obry
  2018-05-23  7:32       ` Dmitry A. Kazakov
  2018-05-23 16:54       ` Jacob Sparre Andersen
  0 siblings, 2 replies; 16+ messages in thread
From: Pascal Obry @ 2018-05-23  6:11 UTC (permalink / raw)


Le mardi 22 mai 2018 à 15:25 -0700, NiGHTS a écrit :
> Is there a REST API version available? I am more interested in REST
> than SOAP, but I didn't see one available in AWS.

There is no REST API at the moment in AWS.

-- 
  Pascal Obry /  Magny Les Hameaux (78)

  The best way to travel is by means of imagination

  http://www.obry.net

  gpg --keyserver keys.gnupg.net --recv-key F949BD3B

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: AWS SOAP with SSL
  2018-05-23  6:11     ` Pascal Obry
@ 2018-05-23  7:32       ` Dmitry A. Kazakov
  2018-05-23  9:41         ` Pascal Obry
  2018-05-23 16:54       ` Jacob Sparre Andersen
  1 sibling, 1 reply; 16+ messages in thread
From: Dmitry A. Kazakov @ 2018-05-23  7:32 UTC (permalink / raw)


On 23/05/2018 08:11, Pascal Obry wrote:
> Le mardi 22 mai 2018 à 15:25 -0700, NiGHTS a écrit :
>> Is there a REST API version available? I am more interested in REST
>> than SOAP, but I didn't see one available in AWS.
> 
> There is no REST API at the moment in AWS.

Some specific API or just impossible to have a user-defined parser of 
the HTTP request's path and content in AWS?

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: AWS SOAP with SSL
  2018-05-23  7:32       ` Dmitry A. Kazakov
@ 2018-05-23  9:41         ` Pascal Obry
  0 siblings, 0 replies; 16+ messages in thread
From: Pascal Obry @ 2018-05-23  9:41 UTC (permalink / raw)


Le mercredi 23 mai 2018 à 09:32 +0200, Dmitry A. Kazakov a écrit :
> Some specific API or just impossible to have a user-defined parser of 
> the HTTP request's path and content in AWS?

The former, it is indeed always possible to parse the payload.

-- 
  Pascal Obry /  Magny Les Hameaux (78)

  The best way to travel is by means of imagination

  http://www.obry.net

  gpg --keyserver keys.gnupg.net --recv-key F949BD3B


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: AWS SOAP with SSL
  2018-05-23  6:11     ` Pascal Obry
  2018-05-23  7:32       ` Dmitry A. Kazakov
@ 2018-05-23 16:54       ` Jacob Sparre Andersen
  1 sibling, 0 replies; 16+ messages in thread
From: Jacob Sparre Andersen @ 2018-05-23 16:54 UTC (permalink / raw)


Pascal Obry wrote:

> There is no REST API at the moment in AWS.

But a REST framework based on AWS was presented in the Ada DevRoom at
FOSDEM this year:

   https://fosdem.org/2018/schedule/event/ada_restapi/

Greetings,

Jacob
-- 
"people who live in glass houses shouldn't be throwing rocks
 -- especially at those who don't live in glass houses"

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: AWS SOAP with SSL
  2018-05-21 14:15 AWS SOAP with SSL NiGHTS
  2018-05-22 17:22 ` Pascal Obry
  2018-05-22 17:44 ` Björn Lundin
@ 2018-05-24 16:22 ` warnerjosh780
  2 siblings, 0 replies; 16+ messages in thread
From: warnerjosh780 @ 2018-05-24 16:22 UTC (permalink / raw)


On Monday, 21 May 2018 19:45:49 UTC+5:30, NiGHTS  wrote:
> Can SOAP be used over SSL in an Ada Web Service application? If so, how exactly can that be achieved? There is very little documentation on SOAP and SSL for AWS, and none talking about both being used at the same time.
> 
> Thanks for your help.

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2018-05-24 16:22 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-21 14:15 AWS SOAP with SSL NiGHTS
2018-05-22 17:22 ` Pascal Obry
2018-05-22 22:25   ` NiGHTS
2018-05-23  6:11     ` Pascal Obry
2018-05-23  7:32       ` Dmitry A. Kazakov
2018-05-23  9:41         ` Pascal Obry
2018-05-23 16:54       ` Jacob Sparre Andersen
2018-05-22 17:44 ` Björn Lundin
2018-05-22 17:50   ` Dmitry A. Kazakov
2018-05-22 18:07     ` Björn Lundin
2018-05-22 18:21       ` Dmitry A. Kazakov
2018-05-22 18:31       ` Paul Rubin
2018-05-22 20:02         ` Dmitry A. Kazakov
2018-05-22 20:21           ` Björn Lundin
2018-05-22 20:55         ` Pascal Obry
2018-05-24 16:22 ` warnerjosh780

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox