Ich bin gerade dabei mir nen Webservice mit JAX-WS und Spring zu bauen nur leider gibts bei der Config ein Problem.
Config
[xml]<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=„Index of /schema/beans“
xmlns:tx=„Index of /schema/tx“
xmlns:xsi=„http://www.w3.org/2001/XMLSchema-instance“
xmlns:p=„http://www.springframework.org/schema/p“
xmlns:context=„Index of /schema/context“
xmlns:aop=„Index of /schema/aop“
xsi:schemaLocation=„Index of /schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
Index of /schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
Index of /schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd
Index of /schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.5.xsd“
xmlns:ws=„http://jax-ws.dev.java.net/spring/core“
xmlns:wss=„http://jax-ws.dev.java.net/spring/servlet“
<context:annotation-config />
<bean id=„sessionFactory“
class=„org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean“
<property name="dataSource" ref="dataSource" />
<property name="hibernateProperties">
<props>
<prop key="hibernate.hbm2ddl.auto">${database.modify}</prop>
<prop key="hibernate.dialect">${database.dialect}</prop>
<prop key="hibernate.default_batch_fetch_size">1</prop>
<prop key="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider
</prop>
<prop key="connection.provider_class">org.hibernate.connection.DBCPConnectionProvider
</prop>
</props>
</property>
<property name="annotatedClasses">
<list>
<value>de.eagleside.geoeye.data.GPSPicture</value>
<value>de.eagleside.geoeye.data.Picture</value>
<value>de.eagleside.geoeye.data.POI</value>
<value>de.eagleside.geoeye.data.Track</value>
<value>de.eagleside.geoeye.data.User</value>
<value>de.eagleside.geoeye.data.Biker</value>
<value>de.eagleside.geoeye.data.UserGroup</value>
<value>de.eagleside.geoeye.data.Bike</value>
<value>de.eagleside.geoeye.data.GPSPosition</value>
<value>de.eagleside.geoeye.data.GPSExtension</value>
</list>
</property>
<bean id=„transactionManager“
class=„org.springframework.orm.hibernate3.HibernateTransactionManager“
<property name="sessionFactory" ref="sessionFactory" />
<bean id=„settings“
class=„org.springframework.beans.factory.config.PropertyPlaceholderConfigurer“
<property name="locations">
<list>
<value>classpath:hibernate.properties
</value>
</list>
</property>
<property name="systemPropertiesModeName">
<value>SYSTEM_PROPERTIES_MODE_OVERRIDE</value>
</property>
<bean id=„dataSource“ class=„org.apache.commons.dbcp.BasicDataSource“
dependency-check=„none“ destroy-method=„close“
<property name="driverClassName" value="${database.driver}" />
<property name="url" value="${database.url}" />
<property name="username" value="${database.username}" />
<property name="password" value="${database.password}" />
<wss:binding url=„/webservice“>
wss:service
<ws:service bean=„webservice“ />
</wss:service>
</wss:binding>
[/xml]
Aber er mag meine wss:binding Angabe nicht
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element ‚wss:binding‘.