We extended the test case to  Integration Base.but we are still facing the
Message builder related issue. We are sending application/json type but
server returning text/html so that axis server issues message
builder related issue


Code

 esbRequestHeadersMap.put("Accept-Charset", "UTF-8");
  esbRequestHeadersMap.put("Content-Type", "application/json");
  apiRequestHeadersMap.putAll(esbRequestHeadersMap);

      Error log

[2014-09-15 18:23:50,961]  INFO
{org.wso2.carbon.automation.core.PlatformTestManager} -  Running the test
method ---
org.wso2.carbon.connector.integration.test.event_brite.eventbriteConnectorIntegrationTest.testgetUserDetailsWithMandatoryFields
----
[2014-09-15 18:23:50,988]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,988] DEBUG - wire >> "POST /services/event_brite
HTTP/1.1[\r][\n]"
[2014-09-15 18:23:50,989]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,989] DEBUG - wire >> "Action:
urn:getUserDetails[\r][\n]"
[2014-09-15 18:23:50,989]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,989] DEBUG - wire >> "Accept-Charset: UTF-8[\r][\n]"
[2014-09-15 18:23:50,989]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,989] DEBUG - wire >> "Content-Type:
application/json[\r][\n]"
[2014-09-15 18:23:50,989]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,989] DEBUG - wire >> "User-Agent:
Java/1.7.0_25[\r][\n]"
[2014-09-15 18:23:50,989]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,989] DEBUG - wire >> "Host: localhost:8280[\r][\n]"
[2014-09-15 18:23:50,990]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,989] DEBUG - wire >> "Accept: text/html, image/gif,
image/jpeg, *; q=.2, */*; q=.2[\r][\n]"
[2014-09-15 18:23:50,990]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,989] DEBUG - wire >> "Connection: keep-alive[\r][\n]"
[2014-09-15 18:23:50,990]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,989] DEBUG - wire >> "Content-Length: 26[\r][\n]"
[2014-09-15 18:23:50,990]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,989] DEBUG - wire >> "[\r][\n]"
[2014-09-15 18:23:50,990]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,989] DEBUG - wire >> "{"userId":"113395378903"}[\n]"
[2014-09-15 18:23:50,994]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,994] DEBUG - headers http-incoming-1 >> POST
/services/event_brite HTTP/1.1
[2014-09-15 18:23:50,995]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,995] DEBUG - headers http-incoming-1 >> Action:
urn:getUserDetails
[2014-09-15 18:23:50,995]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,995] DEBUG - headers http-incoming-1 >>
Accept-Charset: UTF-8
[2014-09-15 18:23:50,995]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,995] DEBUG - headers http-incoming-1 >> Content-Type:
application/json
[2014-09-15 18:23:50,995]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,995] DEBUG - headers http-incoming-1 >> User-Agent:
Java/1.7.0_25
[2014-09-15 18:23:50,995]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,995] DEBUG - headers http-incoming-1 >> Host:
localhost:8280
[2014-09-15 18:23:50,996]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,995] DEBUG - headers http-incoming-1 >> Accept:
text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
[2014-09-15 18:23:50,996]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,995] DEBUG - headers http-incoming-1 >> Connection:
keep-alive
[2014-09-15 18:23:50,996]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:50,995] DEBUG - headers http-incoming-1 >>
Content-Length: 26
[2014-09-15 18:23:51,043]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2014-09-15 18:23:51,043] ERROR - SynapseJsonPath #stringValueOf. Error
evaluating JSON Path <$.userId>. Returning empty result. Error>>> Invalid
container object



-- 
*S.Elilmatha*
Associative Software Engineer,

WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

Mobile 0779842221.
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to