Replies: 2 comments 1 reply
-
농사로 농작업일정 Json 조회 API 응답이 성공해도 XML 형식으로 받아와지네요! |
Beta Was this translation helpful? Give feedback.
1 reply
-
아 네 json 전용이라 xml은 따로 만들어야 할것 같아요 Xml 형식 파싱하는건 제가 잘 몰라서,, 공공데이터에서 데이터 타입을 설정 할 수 없다면 따로 만들어야 할듯 합니다 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Issue
#70
Discussion
지금 네트워크 응답을 String 타입으로 받아온 다음, 응답이 Json 타입으로 컨버트하고 네트워크 DTO에 맞게 파싱하는 방식이죠?
네트워크 요청 오류 시, 아래와 같은 형식으로 응답이 오는데
이 응답은 XML 타입이라 Json 타입으로 컨버팅이 안되고 throwable을 날리네요
공공 데이터 포털에서 제공하는 API 대부분이 네트워트 오류 응답을 XML로 주는 걸로 알고 있어서
XML 응답도 파싱할 수 있도록 구현을 추가해야 할까요?
Beta Was this translation helpful? Give feedback.
All reactions