On 2009-11-17, at 下午4:23, Håkon Sagehaug wrote:
Hi all,
I've got tow question about the validation component in smx.
1. When I try to create a service unit using maven
mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling
-DarchetypeArtifactId=servicemix-validation-service-unit
-DgroupId=no.uib.bccs.hakont -DartifactId=echo-validator
with this command I get this error
Error creating from archetype
Embedded error:
org.apache.maven.archetype.downloader.DownloadNotFoundException:
Requested
download does not exist.
Unable to determine the release version
I've got smx 3.3.1 as servicemix_home.
2. My current flow is client -> cxf-bc(consumer) -> cxf-bc(provider)
->
end-service. Should I place the validation component after the
consumer, so
that the targetEndpoitn of the consumer is the endpoint of the
validator. Is
the service attribute the service that the validator sends the
message to,
or is the extracted from the message??
What you want to validate?
If you just want to validate the incoming soap message against the
schema defined in wsdl, then just add schemaValidationEnabled="true"
for your cxf bc consumer endpoint configuration, not need to use
validate component in this case.
Note, smx 3.3.1 release not have this feature, you need use fuse side
servicemix release servicemix-cxf-bc-2009.02.0.0-fuse-installer.zip[1]
to take advantage of this new feature.
[1]http://repo.open.iona.com/maven2/org/apache/servicemix/servicemix-cxf-bc/2009.02.0.0-fuse/
Freeman
help appreciated
cheers, Håkon
--
Håkon Sagehaug, Scientific Programmer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)
[email protected], phone +47 55584125
--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com