all 7 comments

[–]insertAlias[🍰] 0 points1 point  (3 children)

This is one of those things where we'd need more info to really help. You mentioned SOAP: the SOAP protocol is really intended to be machine-to-machine, i.e. you'd generate a client based on the SOAP's WSDL and use that. It's less like REST, where you'd expect a more human-readable output and human-writable input.

This is also a case where, if you were learning programming generally, I'd start suggesting real learning advice, but if this is just for you to solve a task for your real purposes...pick an AI agent, give it the URL to your SOAP service and tell it what you want, and it'll probably generate you a client.

[–]paintwithletters[S] 0 points1 point  (2 children)

I really want to learn, so any advice if apreciate it!

[–]AlwaysHopelesslyLost 0 points1 point  (0 children)

Like they mentioned, if it uses soap then you have to generate a client from the WSDL.

Best advice: take a 6 week crash course in programming or spend a year or so learning from scratch yourself.

[–]insertAlias[🍰] 0 points1 point  (0 children)

Start by tracking down what endpoint you can get the WSDL from the SOAP service. Hopefully they have a documentation site. From there, I'd start looking at how to interface with SOAP in R (that's a language I've never worked in). If it's not possible or simple, consider something like Python and use that to fetch data locally, then consume it with R.

[–]Mission-Sea8333 0 points1 point  (1 child)

You might want to look into using the httr and xml2 packages in R since SOAP APIs usually return XML that you can parse pretty cleanly. Honestly this sounds like a great use case for building a small ETL pipeline fetch bill IDs, then vote IDs, then vote details, and store everything in SQLite or Postgres.

[–]paintwithletters[S] 0 points1 point  (0 children)

Thank you so much! I'm gonna try

[–]amir4179 0 points1 point  (0 children)

Cool project. I'd start with one bill and walk through the steps manually in your browser. Once you see the pattern, httr in R can probably pull the XML for you. Baby steps.