[JBossWS] - Re: Unmarshalling Exception with Web Service Array Input
by sumitsu
Thanks for the response. My endpoint interface looks like this:
| package com.business.WebService.messageProcessing;
|
| public interface MessageEndPoint extends Remote
| {
| public ServiceStatus processMessage(ServiceRequest sReq) throws RemoteException;
| }
|
and the implementation class (the part relevant to the web service) looks like:
| package com.business.WebService.messageProcessing;
|
| public class MessageBean implements SessionBean {
|
| private static final String RESPONSECODE_OK = "OK";
|
| private SessionContext sessionCtxt;
|
| private ServiceStatus buildResponseOK(String str1, String str2, String str3) {
| ServiceStatus ss = new ServiceStatus();
|
| ss.setCode(RESPONSECODE_OK);
| ss.setSubject(str3);
|
| return ss;
| }
|
| public ServiceStatus processMessage(ServiceRequest sReq) throws RemoteException {
| CustomField[] custFields;
|
| custFields = sReq.getCustomFields();
|
| ... business logic ...
|
| return buildResponseOK("abc", "def", "ghi");
| }
|
| public void ejbCreate() throws EJBException, RemoteException { }
| public void ejbRemove() throws EJBException, RemoteException { }
| public void ejbActivate() throws EJBException, RemoteException { }
| public void ejbPassivate() throws EJBException, RemoteException { }
| public void setSessionContext(SessionContext sessionCtxt) throws EJBException, RemoteException {
| this.sessionCtxt = sessionCtxt;
| }
|
| public MessageBean() {
| }
| }
|
I'm using a 2.0-spec EJB as my endpoint, and when I try to run wsprovide, it complains about an annotation @WebService not being present:
| org.jboss.ws.WSException: Cannot obtain @WebService annotation from: com.liaison.InboundWebService.messageProcessing.MessageEndPoint
|
Does JAX-WS require an EJB 3.0 endpoind, or iss there a way to make it work with 2.0 EJBs?
Thanks again.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092043#4092043
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092043
18Â years, 6Â months
[JBoss Portal] - Re: Got it y'all. Here's a working Struts bridge example (2.
by NM-156
Can you also set up web.xml as follows? I believe I omitted this from the original config that I posted, so I apologize.
web.xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
| <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
| "http://java.sun.com/dtd/web-app_2_3.dtd">
| <web-app>
| <display-name>TestStrutsPortalBridge</display-name>
| <servlet>
| <servlet-name>action</servlet-name>
| <!-- The following entry must be changed to have the requests intercepted by the portal -->
| <servlet-class>org.apache.portals.bridges.struts.PortletServlet</servlet-class>
| <init-param>
| <param-name>config</param-name>
| <param-value>/WEB-INF/struts-config.xml</param-value>
| </init-param>
| <load-on-startup>1</load-on-startup>
| </servlet>
| <servlet-mapping>
| <servlet-name>action</servlet-name>
| <url-pattern>*.do</url-pattern>
| </servlet-mapping>
| <welcome-file-list>
| <welcome-file>index.jsp</welcome-file>
| </welcome-file-list>
| <login-config>
| <auth-method>BASIC</auth-method>
| </login-config>
| </web-app>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092028#4092028
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092028
18Â years, 6Â months