1. Accept-Encoding header 사용안할 시.
response header에 Content-Encoding header가 존재하지 않는다.
<request>
URI = http://test.test.com
Request metadata =
<xml-fragment>
<tran:headers xsi:type="http:HttpRequestHeaders" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<http:Accept-Encoding/>
<http:Content-Type>text/xml; charset=UTF-8</http:Content-Type>
<http:User-Agent>Jakarta Commons-HttpClient/3.1</http:User-Agent>
</tran:headers>
<tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">UTF-8</tran:encoding>
<http:relative-URI xmlns:http="http://www.bea.com/wli/sb/transports/http">test/test123</http:relative-URI>
<http:query-string xmlns:http="http://www.bea.com/wli/sb/transports/http">filterParam=0000011</http:query-string>
<http:http-method xmlns:http="http://www.bea.com/wli/sb/transports/http">GET</http:http-method>
</xml-fragment>
Payload =
<response>
[OSB Tracing] Outbound response was received.
Service Ref = test.biz
URI = http://test.test.com
Message ID = 6875751863773366422-177a0774.1367b635c1f.-2154
Response metadata =
<xml-fragment>
<tran:headers xsi:type="http:HttpResponseHeaders" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<tran:user-header name="Keep-Alive" value="timeout=15, max=9993"/>
<tran:user-header name="Set-Cookie" value="WMONID=G3gNGjD1CvL; expires=Thursday, 04-Apr-2013 03:43:57 GMT; path=/"/>
<tran:user-header name="X-Powered-By" value="Servlet/2.5 JSP/2.1"/>
<http:Cache-Control>no-cache="Set-Cookie"</http:Cache-Control>
<http:Connection>Keep-Alive</http:Connection>
<http:Content-Type>text/xml; charset=UTF-8</http:Content-Type>
<http:Date>Wed, 04 Apr 2012 03:43:57 GMT</http:Date>
<http:Server>Apache</http:Server>
<http:Transfer-Encoding>chunked</http:Transfer-Encoding>
<http:Vary>Accept-Encoding,User-Agent</http:Vary>
</tran:headers>
<tran:response-code xmlns:tran="http://www.bea.com/wli/sb/transports">0</tran:response-code>
<tran:response-message xmlns:tran="http://www.bea.com/wli/sb/transports">OK</tran:response-message>
<tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">UTF-8</tran:encoding>
<http:http-response-code xmlns:http="http://www.bea.com/wli/sb/transports/http">200</http:http-response-code>
</xml-fragment>
Payload =
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><userInfoResult><userProfile><userID>test</userID><individual/></userProfile><userPreference/></userInfoResult>
2. Accept-Encoding header 에 gzip 으로 사용
response header에 Content-Encoding header가 gzip으로 응답한다.
그리고 response payload 가 압축파일 형태로 나타난다. 당연히 response data를 assign 할 때 문제가 생긴다.
<request>
[OSB Tracing] Outbound request was sent.
Service Ref = test.biz
URI = http://test.test.com
Request metadata =
<xml-fragment>
<tran:headers xsi:type="http:HttpRequestHeaders" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<http:Accept-Encoding>gzip</http:Accept-Encoding>
<http:Content-Type>text/xml; charset=UTF-8</http:Content-Type>
<http:User-Agent>Jakarta Commons-HttpClient/3.1</http:User-Agent>
</tran:headers>
<tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">UTF-8</tran:encoding>
<http:relative-URI xmlns:http="http://www.bea.com/wli/sb/transports/http">test/test123</http:relative-URI>
<http:query-string xmlns:http="http://www.bea.com/wli/sb/transports/http">filterParam=0000011</http:query-string>
<http:http-method xmlns:http="http://www.bea.com/wli/sb/transports/http">GET</http:http-method>
</xml-fragment>
Payload =
<response>
[OSB Tracing] Outbound response was received.
Service Ref = test.biz
URI = http://test.test.com
Message ID = 6875751863773366422-177a0774.1367b635c1f.-188e
Response metadata =
<xml-fragment>
<tran:headers xsi:type="http:HttpResponseHeaders" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<tran:user-header name="Content-Encoding" value="gzip"/>
<tran:user-header name="Keep-Alive" value="timeout=15, max=9993"/>
<tran:user-header name="Set-Cookie" value="WMONID=jgKm2DG0gNq; expires=Thursday, 04-Apr-2013 03:45:28 GMT; path=/"/>
<tran:user-header name="X-Powered-By" value="Servlet/2.5 JSP/2.1"/>
<http:Cache-Control>no-cache="Set-Cookie"</http:Cache-Control>
<http:Connection>Keep-Alive</http:Connection>
<http:Content-Type>text/xml; charset=UTF-8</http:Content-Type>
<http:Date>Wed, 04 Apr 2012 03:45:28 GMT</http:Date>
<http:Server>Apache</http:Server>
<http:Transfer-Encoding>chunked</http:Transfer-Encoding>
<http:Vary>Accept-Encoding,User-Agent</http:Vary>
</tran:headers>
<tran:response-code xmlns:tran="http://www.bea.com/wli/sb/transports">0</tran:response-code>
<tran:response-message xmlns:tran="http://www.bea.com/wli/sb/transports">OK</tran:response-message>
<tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">UTF-8</tran:encoding>
<http:http-response-code xmlns:http="http://www.bea.com/wli/sb/transports/http">200</http:http-response-code>
</xml-fragment>
Payload =
.T??
?0%?][o??"??"????b?+IS?Wh=?{
3??cT3?L???]<???p;????(???Y]2?
ibO3??bcW???L????#o??1??? ?b.qZs?$P?M???I???
Generate WSDL from XSD with Eclipse. WSDL 생성 만들기 (0) | 2012.11.07 |
---|---|
대용량 시스템에서 Service Bus Usability 장점 (0) | 2012.10.30 |
OSB 최초 deploy error (0) | 2012.09.08 |
Weblogic10.3 SSL handshake failure 해결 (0) | 2012.03.23 |
Transaction Activation of session weblogic conflicts with Activation of session weblogic for transactional resource bin_indx_#1 and will be rolledback. (0) | 2012.02.09 |
댓글 영역