[ http://wso2.org/jira/browse/WSAS-721?page=all ]

Charitha Kankanamge updated WSAS-721:
-------------------------------------

    Attachment: spring.xml
                SpringBeans.jar

attached spring service resources

> Problem with SpringBeans - Response is blank when invoking the service 
> -----------------------------------------------------------------------
>
>                 Key: WSAS-721
>                 URL: http://wso2.org/jira/browse/WSAS-721
>             Project: WSO2 WSAS
>          Issue Type: Bug
>    Affects Versions: 2.2
>         Environment: winxp, jdk15
>            Reporter: Charitha Kankanamge
>         Assigned To: Afkham Azeez
>            Priority: Critical
>         Attachments: spring.xml, SpringBeans.jar
>
>
> I observed an issue with SpringBeans when invoking the service using Tryit or 
> REST. Here are the steps to reproduce the issue.
> 1. Create a Spring Bean as follows
> package org.ws.test;
> public class Myspringbean {
>       
>       private int count;
>       private String name;
>       public int getCount() {
>               return count;
>       }
>       public void setCount(int count) {
>               this.count = count;
>       }
>       public String getName() {
>               return name;
>       }
>       public void setName(String name) {
>               this.name = name;
>       }
> 2. Create the associated spring context configurtion file 
> 3. Deploy the service in WSAS (SpringBeans.jar and the spring.xml config 
> files are attached here with)
> 4. Invoke an operation using Tryit
> You will not get the response when invoking getName or getCount methods. Here 
> are the request and response messages captured using Soap tracer.
> setName() request
> ================
> <?xml version='1.0' encoding='utf-8'?>
>    <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"; 
> xmlns:wsa="http://www.w3.org/2005/08/addressing";>
>       <s:Header>
>          <wsa:To>https://localhost:9444/services/MySpringBean</wsa:To>
>          <wsa:ReplyTo>
>             
> <wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>
>          </wsa:ReplyTo>
>          
> <wsa:MessageID>http://identifiers.wso2.com/messageid/1202349247062/197532005</wsa:MessageID>
>          <wsa:Action>urn:setName</wsa:Action>
>       </s:Header>
>       <s:Body>
>          <p:setName xmlns:p="http://test.ws.org";>
>             <name>ddddddd</name>
>          </p:setName>
>       </s:Body>
>    </s:Envelope>
> getName() request
> ================
> <?xml version='1.0' encoding='utf-8'?>
>    <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"; 
> xmlns:wsa="http://www.w3.org/2005/08/addressing";>
>       <s:Header>
>          <wsa:To>https://localhost:9444/services/MySpringBean</wsa:To>
>          <wsa:ReplyTo>
>             
> <wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>
>          </wsa:ReplyTo>
>          
> <wsa:MessageID>http://identifiers.wso2.com/messageid/1202349251312/6867909940</wsa:MessageID>
>          <wsa:Action>urn:getName</wsa:Action>
>       </s:Header>
>       <s:Body />
>    </s:Envelope>
> getName() response
> ==================
> <?xml version='1.0' encoding='utf-8'?>
>    <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
>       <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing";>
>          <wsa:Action>urn:getNameResponse</wsa:Action>
>          
> <wsa:RelatesTo>http://identifiers.wso2.com/messageid/1202349251312/6867909940</wsa:RelatesTo>
>       </soapenv:Header>
>       <soapenv:Body>
>          <ns:getNameResponse xmlns:ns="http://test.ws.org";>
>             <return xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:nil="true" />
>          </ns:getNameResponse>
>       </soapenv:Body>
>    </soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

_______________________________________________
Wsas-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/wsas-java-dev

Reply via email to