• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.......
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic