주제: BlogAPI 중 mt.getPostCategories??
맥에서 ecto를 블로그툴로 사용하려 하고 있습니다.
작성된 글을 ecto로 불러오는 중 에러가 나서 콘솔출력을 보니 다음과 같더군요.
<methodName>mt.getPostCategories</methodName>
<params>
<param>
<value><string>13</string></value>
</param>
<param>
<value><string>userid</string></value>
</param>
<param>
<value><string>password</string></value>
</param>
</params>
</methodCall>
에 대한 응답으로
Response:
Status : 200
X-Powered-By : PHP/5.2.6
Expires : Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control : no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Keep-Alive : timeout=15, max=99
Pragma : no-cache
Server : Apache/2.0.59 (Unix) PHP/5.2.6 DAV/2
Content-Type : text/xml
Date : Mon, 01 Dec 2008 04:20:20 GMT
Content-Length : 198
Connection : Keep-Alive
<?xml version="1.0" encoding="utf-8"?>
<methodResponse>
<params>
<param>
<value>
<struct>
<member>
<name>0</name>
<value><string></string></value>
</member>
</struct></value>
</param></params>
</methodResponse>
이 부분에서 ecto가 에러를 냅니다. 그 이유가 뭔지는 모르겠지만, 서버형 텍스트큐브의 경우 mt.getPostCategories의 response 는
<?xml version="1.0" encoding="utf-8"?>
<methodResponse>
<params>
<param>
<value>
<array>
<data>
<value>
<struct>
<member>
<name>categoryId</name>
<value><string>4871</string></value>
</member>
<member>
<name>categoryName</name>
<value><string>music</string></value>
</member>
<member>
<name>isPrimary</name><value>
<boolean>1</boolean></value></member>
</struct></value></data>
</array></value>
</param></params></methodResponse>
와 같이 옵니다.
둘간의 차이는 서버형의 경우 response가 structure의 array 형태로 오는 것 같고, 설치형은 그냥 보내는 것 같습니다. 서버형의 경우 ecto가 에러 없이 잘 동작합니다.
이 차이 때문에 클라이언트가 에러를 내는 것일까요?