Adding http header to SOAP request

79 views
Skip to first unread message

Jonathon McKitrick

unread,
Dec 29, 2017, 9:31:23 AM12/29/17
to Clojure
If anyone has used clj-soap, it has built-in SOAP auth, IIUC.

I need to call an endpoint that is expecting custom http authentication headers as well.

Has anyone else done this before?

Sean Corfield

unread,
Dec 29, 2017, 6:06:17 PM12/29/17
to clo...@googlegroups.com

Which clj-soap are you talking about?

 

There are several unmaintained forks of the original project lying around.

 

This seems to be the only one that’s been getting any love: https://github.com/Zeto-Ltd/clj-soap -- I don’t see any obvious support for passing additional headers there.

 

Sean Corfield -- (970) FOR-SEAN -- (904) 302-SEAN
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

 


From: clo...@googlegroups.com <clo...@googlegroups.com> on behalf of Jonathon McKitrick <jmcki...@gmail.com>
Sent: Friday, December 29, 2017 6:31:23 AM
To: Clojure
Subject: Adding http header to SOAP request
 
If anyone has used clj-soap, it has built-in SOAP auth, IIUC.

I need to call an endpoint that is expecting custom http authentication headers as well.

Has anyone else done this before?

--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

jmcki...@gmail.com

unread,
Dec 29, 2017, 6:39:16 PM12/29/17
to clo...@googlegroups.com
Yes, that’s exactly the one I’m looking at. I emailed the recent contributor. We’ll see what happens....

You received this message because you are subscribed to a topic in the Google Groups "Clojure" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clojure/8b9I8Vf5XGk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to clojure+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--
Jonathon McKitrick

Sean Corfield

unread,
Dec 30, 2017, 1:38:40 AM12/30/17
to clo...@googlegroups.com

Please keep me posted on how that goes. The Zero-Ltd version is a fork of my version, which was a fork of the original which I got up and running on a more recent Clojure version. I abandoned it because it was buggy and didn’t offer much in the way of customization and instead we just used raw Java interop for the specific SOAP service we were consuming. That was much less work than trying to get something generic working.

 

If you have just one (or a few) specific web service(s) to consume, you might find it easier to use Axis and Java interop directly. It’ll certainly have less overhead than a generic library like clj-soap.

 

Sean Corfield -- (970) FOR-SEAN -- (904) 302-SEAN
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

 


From: clo...@googlegroups.com <clo...@googlegroups.com> on behalf of jmcki...@gmail.com <jmcki...@gmail.com>
Sent: Friday, December 29, 2017 3:38:52 PM
To: clo...@googlegroups.com
Subject: Re: Adding http header to SOAP request
 

jmcki...@gmail.com

unread,
Jan 2, 2018, 6:08:45 AM1/2/18
to clo...@googlegroups.com
Will do.

I was hoping to get something up and running quickly for demo purposes, but that might not be practical. It depends on how quickly I hear back from the author.

Reply all
Reply to author
Forward
0 new messages