Hi Devs,
If you are interested in the subject, please add the following lines the
the log4j.properties file located inside the $CARBON_HOME/lib directory.
log4j.logger.httpclient.wire.header=DEBUG
log4j.logger.httpclient.wire.content=DEBUG
You will be able to see the requests/response going through the servlet
transport.
Thanks,
Sameera.
[2012-03-17 11:21:14,661] DEBUG {httpclient.wire.header} - >> "POST
/services/LoggedUserInfoAdmin HTTP/1.1[\r][\n]"
[2012-03-17 11:21:14,661] DEBUG {httpclient.wire.header} - >>
"Content-Type: application/soap+xml; charset=UTF-8;
action="urn:getUserInfo"[\r][\n]"
[2012-03-17 11:21:14,662] DEBUG {httpclient.wire.header} - >>
"Authorization: Basic YWRtaW46YWRtaW4=[\r][\n]"
[2012-03-17 11:21:14,662] DEBUG {httpclient.wire.header} - >> "User-Agent:
Axis2[\r][\n]"
[2012-03-17 11:21:14,662] DEBUG {httpclient.wire.header} - >> "Host:
10.37.129.2:9443[\r][\n]"
[2012-03-17 11:21:14,662] DEBUG {httpclient.wire.header} - >>
"Transfer-Encoding: chunked[\r][\n]"
[2012-03-17 11:21:14,662] DEBUG {httpclient.wire.header} - >> "[\r][\n]"
[2012-03-17 11:21:14,664] DEBUG {httpclient.wire.content} - >> "93[\r][\n]"
[2012-03-17 11:21:14,665] DEBUG {httpclient.wire.content} - >> "<?xml
version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="
http://www.w3.org/2003/05/soap-envelope"><soapenv:Body
/></soapenv:Envelope>"
[2012-03-17 11:21:14,665] DEBUG {httpclient.wire.content} - >> "[\r][\n]"
[2012-03-17 11:21:14,666] DEBUG {httpclient.wire.content} - >> "0"
[2012-03-17 11:21:14,666] DEBUG {httpclient.wire.content} - >> "[\r][\n]"
[2012-03-17 11:21:14,666] DEBUG {httpclient.wire.content} - >> "[\r][\n]"
[2012-03-17 11:21:14,701] INFO
{org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} - 'admin'
logged in at [2012-03-17 11:21:14,0700] from IP address 10.37.129.2
[2012-03-17 11:21:14,723] DEBUG {httpclient.wire.header} - << "HTTP/1.1
200 OK[\r][\n]"
[2012-03-17 11:21:14,723] DEBUG {httpclient.wire.header} - << "HTTP/1.1
200 OK[\r][\n]"
[2012-03-17 11:21:14,723] DEBUG {httpclient.wire.header} - << "Set-Cookie:
JSESSIONID=791C077FA7BD43492B984F1970A919F4; Path=/; Secure;
HttpOnly[\r][\n]"
[2012-03-17 11:21:14,724] DEBUG {httpclient.wire.header} - <<
"Content-Type: application/soap+xml;charset=UTF-8[\r][\n]"
[2012-03-17 11:21:14,724] DEBUG {httpclient.wire.header} - <<
"Transfer-Encoding: chunked[\r][\n]"
[2012-03-17 11:21:14,724] DEBUG {httpclient.wire.header} - << "Date: Sat,
17 Mar 2012 05:51:14 GMT[\r][\n]"
[2012-03-17 11:21:14,724] DEBUG {httpclient.wire.header} - << "Server:
WSO2 Carbon Server[\r][\n]"
[2012-03-17 11:21:14,724] DEBUG {httpclient.wire.header} - << "[\r][\n]"
[2012-03-17 11:21:14,725] DEBUG {httpclient.wire.content} - << "2"
[2012-03-17 11:21:14,725] DEBUG {httpclient.wire.content} - << "3"
[2012-03-17 11:21:14,725] DEBUG {httpclient.wire.content} - << "e"
[2012-03-17 11:21:14,725] DEBUG {httpclient.wire.content} - << "[\r]"
[2012-03-17 11:21:14,725] DEBUG {httpclient.wire.content} - << "[\n]"
[2012-03-17 11:21:14,725] DEBUG {httpclient.wire.content} - << "<?xm"
[2012-03-17 11:21:14,726] DEBUG {httpclient.wire.content} - << "l
version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="
http://www.w3.org/2003/05/soap-envelope"><soapenv:Body><ns:getUserInfoResponse
xmlns:ns="http://loggeduserinfo.services.core.carbon.wso2.org"><ns:return
xmlns:ax284="http://common.core.carbon.wso2.org/xsd" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ax284:LoggedUserInfo"><ax284:UIPermissionOfUser>/permission</ax284:UIPermissionOfUser><ax284:passwordExpiration
xsi:nil="true" /><ax284:userName xsi:nil="true"
/></ns:return></ns:getUserInfoResponse></soapenv:Body></soapenv:Envelope>"
[2012-03-17 11:21:14,738] DEBUG {httpclient.wire.content} - << "[\r]"
[2012-03-17 11:21:14,738] DEBUG {httpclient.wire.content} - << "[\n]"
[2012-03-17 11:21:14,738] DEBUG {httpclient.wire.content} - << "0"
[2012-03-17 11:21:14,738] DEBUG {httpclient.wire.content} - << "[\r]"
[2012-03-17 11:21:14,738] DEBUG {httpclient.wire.content} - << "[\n]"
[2012-03-17 11:21:14,739] DEBUG {httpclient.wire.content} - << "[\r]"
[2012-03-17 11:21:14,739] DEBUG {httpclient.wire.content} - << "[\n]"
[2012-03-17 11:21:14,739] DEBUG {httpclient.wire.header} - << "[\r][\n]"
[2012-03-17 11:21:15,045] DEBUG {httpclient.wire.header} - >> "POST
/services/RegistryAdminService HTTP/1.1[\r][\n]"
[2012-03-17 11:21:15,046] DEBUG {httpclient.wire.header} - >>
"Content-Type: application/soap+xml; charset=UTF-8;
action="urn:isRegistryReadOnly"[\r][\n]"
[2012-03-17 11:21:15,046] DEBUG {httpclient.wire.header} - >> "Cookie:
JSESSIONID=791C077FA7BD43492B984F1970A919F4; Path=/; Secure=null;
HttpOnly=null[\r][\n]"
[2012-03-17 11:21:15,046] DEBUG {httpclient.wire.header} - >> "User-Agent:
Axis2[\r][\n]"
[2012-03-17 11:21:15,046] DEBUG {httpclient.wire.header} - >> "Host:
10.37.129.2:9443[\r][\n]"
[2012-03-17 11:21:15,047] DEBUG {httpclient.wire.header} - >>
"Transfer-Encoding: chunked[\r][\n]"
[2012-03-17 11:21:15,047] DEBUG {httpclient.wire.header} - >> "[\r][\n]"
[2012-03-17 11:21:15,048] DEBUG {httpclient.wire.content} - >> "93[\r][\n]"
[2012-03-17 11:21:15,048] DEBUG {httpclient.wire.content} - >> "<?xml
version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="
http://www.w3.org/2003/05/soap-envelope"><soapenv:Body
/></soapenv:Envelope>"
[2012-03-17 11:21:15,048] DEBUG {httpclient.wire.content} - >> "[\r][\n]"
[2012-03-17 11:21:15,049] DEBUG {httpclient.wire.content} - >> "0"
[2012-03-17 11:21:15,049] DEBUG {httpclient.wire.content} - >> "[\r][\n]"
[2012-03-17 11:21:15,049] DEBUG {httpclient.wire.content} - >> "[\r][\n]"
[2012-03-17 11:21:15,053] DEBUG {httpclient.wire.header} - << "HTTP/1.1
200 OK[\r][\n]"
[2012-03-17 11:21:15,054] DEBUG {httpclient.wire.header} - << "HTTP/1.1
200 OK[\r][\n]"
[2012-03-17 11:21:15,054] DEBUG {httpclient.wire.header} - <<
"Content-Type: application/soap+xml;charset=UTF-8[\r][\n]"
[2012-03-17 11:21:15,054] DEBUG {httpclient.wire.header} - <<
"Transfer-Encoding: chunked[\r][\n]"
[2012-03-17 11:21:15,054] DEBUG {httpclient.wire.header} - << "Date: Sat,
17 Mar 2012 05:51:14 GMT[\r][\n]"
[2012-03-17 11:21:15,054] DEBUG {httpclient.wire.header} - << "Server:
WSO2 Carbon Server[\r][\n]"
[2012-03-17 11:21:15,055] DEBUG {httpclient.wire.header} - << "[\r][\n]"
[2012-03-17 11:21:15,055] DEBUG {httpclient.wire.content} - << "1"
[2012-03-17 11:21:15,055] DEBUG {httpclient.wire.content} - << "3"
[2012-03-17 11:21:15,055] DEBUG {httpclient.wire.content} - << "5"
[2012-03-17 11:21:15,055] DEBUG {httpclient.wire.content} - << "[\r]"
[2012-03-17 11:21:15,056] DEBUG {httpclient.wire.content} - << "[\n]"
[2012-03-17 11:21:15,056] DEBUG {httpclient.wire.content} - << "<?xm"
[2012-03-17 11:21:15,057] DEBUG {httpclient.wire.content} - << "l
version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="
http://www.w3.org/2003/05/soap-envelope"><soapenv:Body><ns:isRegistryReadOnlyResponse
xmlns:ns="http://service.server.registry.carbon.wso2.org
"><ns:return>false</ns:return></ns:isRegistryReadOnlyResponse></soapenv:Body></soapenv:Envelope>"
[2012-03-17 11:21:15,066] DEBUG {httpclient.wire.content} - << "[\r]"
[2012-03-17 11:21:15,066] DEBUG {httpclient.wire.content} - << "[\n]"
[2012-03-17 11:21:15,067] DEBUG {httpclient.wire.content} - << "0"
[2012-03-17 11:21:15,067] DEBUG {httpclient.wire.content} - << "[\r]"
[2012-03-17 11:21:15,067] DEBUG {httpclient.wire.content} - << "[\n]"
[2012-03-17 11:21:15,067] DEBUG {httpclient.wire.content} - << "[\r]"
--
Sameera Jayasoma
Technical Lead and Product Manager, WSO2 Carbon
WSO2, Inc. (http://wso2.com)
email: [email protected]
blog: http://tech.jayasoma.org
Lean . Enterprise . Middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev