Note that there are some explanatory texts on larger screens.

plurals
  1. USVijay Krish
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. COMy Java class will return JSON string like {"status":"SUCCESS"}. And my response from Web Service is <ns:serviceResponse xmlns:ns="http://service.axis.example.com"><ns:return>{"status":"SUCCESS"}</ns:return></ns:serviceResponse>. As u could see JSON string inside ns:return element. Also, I followed the following URL(http://stackoverflow.com/questions/14656147/i-cant-to-return-json-objects-using-axis2) where they suggested to put wso2dynamic-response-1.5.jar file(I removed it now). Let me know any other configuration needed.
      singulars
    2. COI am sending GET request by appending the query string response=application/json and response content type is application/xml. I even tried with the echo service available in WSO2 server by hitting the following URL. http://localhost:8280/services/echo/echoInt?in=7&response=application/json and I am getting only XML response and not JSON response like the following. <ns:echoIntResponse><return>7</return></ns:echoIntResponse>. Also, I have the following question. Do I need to place the wso2dynamic-response-1.5.jar file? And if Yes, In which folder? Thanks.
      singulars
    3. COAlso try adding the below repository and dependency in your pom.xml file. `<repository><id>deprecated</id><name>JBoss Deprecated</name> <url>https://repository.jboss.org/nexus/content/repositories/deprecated</url></repository>` and `<dependency><groupId>sun-jaxws</groupId><artifactId>jsr181-api</artifactId><version>2.1.1</version></dependency>`. You might get warning but the jar will be downloaded.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload