XML-RPC Request 문서 포맷
XML-RCP Request Body 예시
double 타입의 변수를 인자로 하는 circleArea 메소드를 호출하는 XML-RPC 문서의 예.
[code]
<?xml version="1.0"?>
<methodCall>
<methodName>circleArea</methodName>
<params>
<param>
<value><double>2.41</double></value>
</param>
</params>
</methodCall>
[/code]
XML-RPC 헤더
[code]
POST /target HTTP 1.0
User-Agent: Identifier
Host: host.making.request
Content-Type: text/xml
Content-Length: length of request in bytes
[/code]
XML-RPC request 문서 전체 예시
[code]
POST /xmlrpc HTTP 1.0
User-Agent: myXMLRPCClient/1.0
Host: 192.168.124.2
Content-Type: text/xml
Content-Length: 169
<?xml version="1.0"?>
<methodCall>
<methodName>circleArea</methodName>
<params>
<param>
<value><double>2.41</double></value>
</param>
</params>
</methodCall>
[/code]
double 타입의 변수를 인자로 하는 circleArea 메소드를 호출하는 XML-RPC 문서의 예.
[code]
<?xml version="1.0"?>
<methodCall>
<methodName>circleArea</methodName>
<params>
<param>
<value><double>2.41</double></value>
</param>
</params>
</methodCall>
[/code]
XML-RPC 헤더
[code]
POST /target HTTP 1.0
User-Agent: Identifier
Host: host.making.request
Content-Type: text/xml
Content-Length: length of request in bytes
[/code]
XML-RPC request 문서 전체 예시
[code]
POST /xmlrpc HTTP 1.0
User-Agent: myXMLRPCClient/1.0
Host: 192.168.124.2
Content-Type: text/xml
Content-Length: 169
<?xml version="1.0"?>
<methodCall>
<methodName>circleArea</methodName>
<params>
<param>
<value><double>2.41</double></value>
</param>
</params>
</methodCall>
[/code]
Trackback Address:이 글에는 트랙백을 보낼 수 없습니다