Exception: Namespace_err:an attempt is made to the create or change of a object in a means whi----This is my own write a partial exception code that is displayed by the client call WebService console.
or call directly through SOAPUI:
The exception information is as follows
No Adapter for Endpoint [public org.jdom.Element com.mycompany.hr.ws.HolidayEndpoint.handleHolidayRequest ( Org.jdom.Element) throws Java.lang.Exception]: is your endpoint annotated with @Endpoint, or does it implement a supported Interface like MessageHandler or Payloadendpoint?
Documentation of the official Spring Webserivce project: Http://docs.spring.io/spring-ws/site/reference/html/tutorial.html's official use of the WebService case It's an employee's WebService system that uses DOMJ to make endpoint elements mapping
The cause of the error occurred:
Http://stackoverflow.com/questions/11683468/no-adapter-for-endpoint-sws
I think the problem lies here jira.springsource.org/browse/... There ' s a bug in endpoint mapping for JDOM elements
Solution copy Paste as follows: Replace the JDOM2 with Jdom
The working solution to your problem:
Add this dependencies to your pom.xml
Change the imports in your source for Jdom to Jdom2
And this is the updated version of Holidayendpoint:
PackageCom.MyCompany.Ws_template.Endpoint;ImportCom.MyCompany.Ws_template.Service.Humanresource;ImportJava.Text.SimpleDateFormat;ImportJava.Util.Date;ImportOrg.Jdom2.Jdomexception;ImportOrg.Jdom2.Namespace;ImportOrg.Jdom2.Element;ImportOrg.Jdom2.Filter.Filters;ImportOrg.Jdom2.Xpath.XPathExpression;ImportOrg.Jdom2.Xpath.Xpathfactory;ImportOrg.Springframework.Beans.Factory.Annotation.Autowired;ImportOrg.Springframework.Ws.Server.Endpoint.Annotation.Endpoint;ImportOrg.Springframework.Ws.Server.Endpoint.Annotation.Payloadroot;ImportOrg.Springframework.Ws.Server.Endpoint.Annotation.Requestpayload;@EndpointPublic Class Holidayendpoint {Private Static Final StringNamespace_uri= "Http://www.mycompany.com/holiday-service/schemas/holiday-request";Private XPathExpression<Element>Startdateexpression;Private XPathExpression<Element>Enddateexpression;Private XPathExpression<Element>Nameexpression;Private XPathExpression<Element>Surnameexpression;@Autowired Private HumanresourceHolidayservice;Public Holidayendpoint() Throws Jdomexception { Namespace Namespace = Namespace.GetNamespace("HR",Namespace_uri);