axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-3590) Support for XmlJavaTypeAdapter
Date Tue, 11 Mar 2008 03:08:46 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-3590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12577289#action_12577289
] 

Davanum Srinivas commented on AXIS2-3590:
-----------------------------------------

User is an interface and is used in the service implementation class as an input parameter.

================
@WebService(endpointInterface = "demo.hw.server.HelloWorld", 
            serviceName = "HelloWorld")
public class HelloWorldImpl implements HelloWorld {
...
    public String sayHiToUser(User user) {
        users.put(users.size() + 1, user);
        return "Hello "  + user.getName();
    }
...
}
// END SNIPPET: service



================
@XmlJavaTypeAdapter(UserAdapter.class)
public interface User {

    String getName();
}
================


> Support for XmlJavaTypeAdapter
> ------------------------------
>
>                 Key: AXIS2-3590
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3590
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: jaxws
>            Reporter: Davanum Srinivas
>            Assignee: Rich Scheuerle
>             Fix For: 1.4
>
>         Attachments: java_first_jaxws.zip
>
>
> Hi,
> I was porting a cxf sample when i realized that @XmlJavaTypeAdapter are not picked up
and used.
> http://svn.apache.org/repos/asf/incubator/cxf/trunk/distribution/src/main/release/samples/java_first_jaxws/
> Please see enclosed zip for a m2 project that can create standalone war that can be dropped
into say tomcat.
> thanks,
> dims

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message