Hi
If you want to specify a QName in the spring, you could do it like this.
<jaxws:endpoint id="classImpl"
implementor="org.apache.cxf.jaxws.service.Hello"
endpointName="e:HelloEndpointCustomized"
serviceName="s:HelloServiceCustomized"
address="http://localhost:8080/test"
xmlns:e="http://service.jaxws.cxf.apache.org/endpoint"
xmlns:s="http://service.jaxws.cxf.apache.org/service"/>
Cheers,
Willem.
-----Original Message-----
From: Andrew Dinn [mailto:[EMAIL PROTECTED]
Sent: Thu 8/30/2007 19:45
To: [email protected]
Subject: How to specify serviceName and portName in jaxws:endpoint
Hi,
In the cxf documentation 'Configuring an endpoint' it is stated that the
endpoint servicename can be specified using (what appears to be) a QName
literal:
serviceName
The service name this service is implementing. In the format of
"{NAMESPACE}SERVICE_NAME".
So I tried inserting something like this in my cxfservlet.xmnl
<jaxws:endpoint
id="hi_de_ho"
implementor="hi.de.ho.TestCxfImpl"
wsdlLocation="WEB-INF/wsdl/HiDeHo.wsdl"
serviceName="{http://hi.de.ho/test/cxf/}TestCxfService"
address="/TestCxf">
</jaxws:endpoint>
When the servlet is started by the container I get a SAX parse exception
org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1:
'{http://hi.de.ho/test/cxf/}TestCxfService' is not a valid value for
'QName'.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at
org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown
Source)
at
org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown
Source)
at
org.apache.xerces.impl.xs.XMLSchemaValidator.processOneAttribute(Unknown
Source)
. . .
Clearly, SAX won't eat a QName in the format "{NAMESPACE}SERVICE_NAME"..
So, can anyone tell me what format I *do* use to specify the QName literal?
regards,
Andrew Dinn
-----------
JBoss, a Division of Red Hat
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire,
SI4 1TE, United Kingdom.
Registered in UK and Wales under Company Registration No. 3798903
Directors: Michael Cunningham (USA), Charlie Peters (USA) and David
Owens (Ireland)