I need to fix this sample and the one with cxf-servlet.xml... I'll take a
look at these shortly.
Thanks,
- Dan

On 4/11/07, Willem Jiang <[EMAIL PROTECTED]> wrote:

Hi ,


I just updated the
distribution/src/main/release/samples/hello_world/cxf.xml  to new style
SchemaValidation property.

Index: distribution/src/main/release/samples/hello_world/cxf.xml
===================================================================
--- distribution/src/main/release/samples/hello_world/cxf.xml
(revision 527375
)
+++ distribution/src/main/release/samples/hello_world/cxf.xml   (working
copy)
@@ -1,18 +1,27 @@
<beans xmlns="http://www.springframework.org/schema/beans";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
-       xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd";>
+              xmlns:jaxws="http://cxf.apache.org/jaxws";
+       xmlns:soap="http://cxf.apache.org/bindings/soap";
+       xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+       http://cxf.apache.org/bindings/soap
http://cxf.apache.org/schema/bindings/soap.xsd
+       http://cxf.apache.org/jaxws http://cxf.apache.org/schema/jaxws.xsd
">

-    <bean id="{http://apache.org/hello_world_soap_http}SOAPService";
abstract="true">
-        <property name="enableSchemaValidationForAllPort">
-            <value>true</value>
-        </property>
-    </bean>

-    <bean id="{http://apache.org/hello_world_soap_http}SoapPort";
abstract="true">
-        <property name="enableSchemaValidation">
-            <value>true</value>
-        </property>
-    </bean>
+       <jaxws:endpoint
id="{http://apache.org/hello_world_soap_http}SoapPort"; abstract="true">
+          <jaxws:properties>
+             <entry key="schema-validation-enabled" value="true" />
+          </jaxws:properties>
+       </jaxws:endpoint>

+       <bean id="{http://apache.org/hello_world_soap_http}SOAPService";
abstract="true">
+         <property name="properties">
+           <map>
+             <entry key="schema-validation-enabled" value="true" />
+           </map>
+         </property>
+       </bean>
+
+
+
</beans>

I got the below exceptions on the client side.
DanD can you have a look at this? It may relate to you last commit.


client:
     [java]
file:/D:/work/temp/cxf-2.0-incubator-RC-SNAPSHOT
/samples/hello_world/wsdl/hello_world.wsdl
     [java] Invoking sayHi...
     [java] Exception in thread "main"
org.apache.cxf.binding.soap.SoapFault: Marshalling Error: cvc-elt.1:
Cannot find the declaration of element 'responseType'.
     [java]     at

org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage
(Soap11FaultInInterceptor.java:70)
     [java]     at

org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage
(Soap11FaultInInterceptor.java:36)
     [java]     at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
PhaseInterceptorChain.java:159)
     [java]     at
org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(
AbstractFaultChainInitiatorObserver.java:78)
     [java]     at

org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage
(ReadHeadersInterceptor.java:109)
     [java]     at

org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage
(ReadHeadersInterceptor.java:50)
     [java]     at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
PhaseInterceptorChain.java:159)
     [java]     at
org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:359)
     [java]     at

org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse
(HTTPConduit.java:655)
     [java]     at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.doClose(
HTTPConduit.java:615)
     [java]     at
org.apache.cxf.io.AbstractCachedOutputStream.close(
AbstractCachedOutputStream.java:114)
     [java]     at
org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:65)
     [java]     at

org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage
(MessageSenderInterceptor.java:79)
     [java]     at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
PhaseInterceptorChain.java:159)
     [java]     at
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:229)
     [java]     at
org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
     [java]     at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:123)
     [java]     at $Proxy40.sayHi(Unknown Source)
     [java]     at demo.hw.client.Client.main(Client.java:60)
     [java] Java Result: 1


Thanks,


Willem.





--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com | http://netzooid.com/blog

Reply via email to