Gayathri kopparapu

Greenhorn
+ Follow
since Nov 07, 2013
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Gayathri kopparapu

Hi,

From which version of clj-http , :proxy-host and :proxy-port are supportable???
10 years ago
Hi Corfield ,

Is there any other way to parse the above response as a string.I dont want to use the response as "Stuff.xml" instead i need to parse that as a string.

Your inputs are really needed.
10 years ago
Hi,

:multipart in documentation of clj-http is a little bit confusing. Also, I am not able to build the above multipart MIME message using the :multipart option..


Can anyone help me out.
10 years ago
Hi ,

can anyone tell how to parse the below xml and get the city details(Espoo)................

<ns2:Search xmlns:ns2="http://www.navteq.com/lbsp/Search-Search/4">
<Response>
<MetaInfo>
<Timestamp>2013-12-11T14:09:57.901Z</Timestamp>
</MetaInfo>
<View xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:SearchResultsViewType">
<ViewId>0</ViewId>
<Result>
<Relevance>1.0</Relevance>
<Distance>10366.8</Distance>
<MatchLevel>city</MatchLevel>
<MatchQuality>
<Country>1.0</Country>
<State>1.0</State>
<County>1.0</County>
<City>1.0</City>
<PostalCode>1.0</PostalCode>
</MatchQuality>
<Location>
<LocationId>AREA_20448374</LocationId>
<LocationType>point</LocationType>
<DisplayPosition>
<Latitude>60.20678</Latitude>
<Longitude>24.65578</Longitude>
</DisplayPosition>
<MapView>
<TopLeft>
<Latitude>60.3625</Latitude>
<Longitude>24.49933</Longitude>
</TopLeft>
<BottomRight>
<Latitude>60.05958</Latitude>
<Longitude>24.87</Longitude>
</BottomRight>
</MapView>
<Address>
<Label>Espoo, Etelä-Suomi, Suomi</Label>
<Country>FIN</Country>
<State>Etelä-Suomi</State>
<County>Uusimaa</County>
<City>Espoo</City>
<PostalCode>02770</PostalCode>
<AdditionalData key="CountryName">Suomi</AdditionalData>
<AdditionalData key="StateName">Etelä-Suomi</AdditionalData>
</Address>
<MapReference>
<MapVersion>Q2/2013</MapVersion>
<CountryId>20241487</CountryId>
<StateId>20422913</StateId>
<CountyId>20422914</CountyId>
<CityId>20448374</CityId>
</MapReference>
</Location>
</Result>
</View>
</Response>
</ns2:Search>
10 years ago
Hi,

How can i convert the output of "(range 0 10)" to #{"0" "1" "2" "3" "4" "5" "6" "7" "8" "9"}
10 years ago
So, If want to set any proxies to the requset , how can i set it....and how can I know the proxies are set properly?
10 years ago
Hi,

when i do

(client/get "http://google.com") in my code, I am getting Connection refuesd.......what does it mean?
10 years ago
hi,

I want to post the multipart mime message to the url "https://xyz.com" along with the certificates authentication and get back the response..
sample mime message to post::
---boundary
content-type
context-id
..... xml content

---boundary
content-type
context-id
..... xml content


How can i post the sample message along with certificates???
10 years ago
I am trying to print the 'result'...how can i print it
10 years ago
This is the sample code
clojure file ::
(defn send-to-geolocation-touchpoint [id services {:keys [code]}]
(log :info (str "inside the send-to-location-touchpoint"))
(let [body (doto (MainSample.)
(.myResult code))]
body)

java file::
public class MainSample {
public Map myResult(final String Cdoe,final String Id){

Logger LOG = Logger.getLogger(MainSample.class);
Map result=null;
try{
result.put("area_code",Cdoe);
result.put("id",Id);
return result;}
catch (Exception e){
System.out.println(e);
}
return result;
}
}
10 years ago
Hi Everyone,

I am calling my defined java class from clojure file which will return a integer value
But , I am getting the proper integer value

Ex: I am returning '12345' from java,
when i call the file from clojure , I am getting "namespace_of_java_file@141cd01"

Please help me
10 years ago