unexpected XML tag. expected: {http://service/}getProjectsResponse but found: {http://schemas.xmlsoap.org/soap/envelope/}Envelope
this Error Occurs when i try to Retrieve the Project table data from a Stateless
EJB Throgh a webservice in my
jsf web application...
Project is entity class from database in EJB Module.....
In Newproject.xhtml..
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
<h:head>
<title>Facelet Title</title>
</h:head>
<h:body>
<h:form>
<table align="center" style="margin-top: 100px;">
<tr>
<td>
Project:
</td>
<td>
<h:inputText id="projectName" value="#{newProjectBean.projectName}"/>
</td>
</tr>
<tr>
<td>
</td>
<td>
<h:commandButton value="Add" action="#{newProjectBean.addProject}"/>
</td>
</tr>
<tr>
<h:dataTable value="#{newProjectBean.allProjects}" var="proj">
<h:column>
<f:facet name="header">
Project
</f:facet>
<h:outputText value="#{proj.projName}"/>
</h:column>
</h:dataTable>
</tr>
</table>
</h:form>
</h:body>
</html>
in newProjectBean
@WebServiceRef(wsdlLocation = "WEB-INF/wsdl/localhost_8080/ProjEmpServiceService/ProjEmpService.wsdl")
private ProjEmpServiceService service;
service.ProjEmpService port;
public List<Project> getAllProjects()
{
port=service.getProjEmpServicePort();
return port.getProjects();
}
ANY suggestion will Appreciate..
Thanks in Advance.......