Spring + JAX-WS Config Proglem

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‘.

Was benutzt Du denn für eine JAX-WS Implementierung?

Hier gibts ein gutes Tutorial, um Spring mit Apache CXF zu integrieren:

http://wheelersoftware.com/articles/spring-cxf-web-services.html

ich benutz das hier http://jax-ws.dev.java.net
ah super das werd ich mir heute abend mal ansehen

achtung spamming…

http://groovy.codehaus.org/Groovy+SOAP

:smiley:

Ich will ja nix sagen, aber das geht mit Java schneller :stuck_out_tongue:
Das Problem ist nur den Webservice mit Spring zusammen zu bekommen :wink:

Als kleine Info, das von byto läuft bis ich es mit meinem Projekt zusammen bring :smiley:
Deshalb bin ich gerade auf JSON umgestiegen und hab mir damit neue Probleme geschaffen :smiley:
Aber die Sache mit dem Webservice ist noch nicht aus der Welt.