Search |
||
Calling a Metro Web Service from ClojurePosted by haroldcarr on March 27, 2009 at 1:23 PM PDT
Here's how to call a Metro-based web service from Clojure.
That's it! Enjoy ps: What's the purpose of Lots of Insipid Stupid Parenthesis? MACROS! Technorati: clojure projectmetro glassfish netbeans wsit »
Comments
Comments are listed in date ascending order (oldest first)
Submitted by felipegaucho on Mon, 2009-03-30 01:22.
I remember my joy calling web-services with Groovy few months ago.. pure pleasure until we decided to enable security on the service side .. Https in Groovy converted our "simple" code in a hell experiment..
how about clojure ? does it support secure (realistic) environments ?
Submitted by haroldcarr on Mon, 2009-03-30 11:29.
I'm just starting to use Clojure, so don't know about any specific about Clojure + security. But Clojure, like other JVM-based languages, enables one to utilize existing Java code, so I don't anticipate there would be problems. Calling a secure web service from Clojure should work. What specific problems did you have?
Submitted by haroldcarr on Mon, 2009-03-30 15:04.
I just tried a security example. I created a Mutual Certificates example server:
https://metro.dev.java.net/guide/Example_Applications.html#ahiem
Then I used NetBeans to create a web service client from the server's wsdl. I click on "Use Developer Defaults" in the "Edit Web Services" panel. Then I copied the results wsit-client.xml into the path for my client. The EXACT same code as my original entry worked. If I remove the wsit-client.xml from my classpath then I get an error from the security side saying the request is missing security headers - as it should.
Bottom line: I can invoke a secure web service from a Clojure client.
|
||
|
|