wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes need help to resolve unexpected XML tag expected:....... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "need help to resolve unexpected XML tag expected:......." Watch "need help to resolve unexpected XML tag expected:......." New topic
Author

need help to resolve unexpected XML tag expected:.......

kunal kathrotia
Greenhorn

Joined: Mar 05, 2011
Posts: 7
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>
<hutputText 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.......
 
Don't get me started about those stupid light bulbs.
 
subject: need help to resolve unexpected XML tag expected:.......