[Users] WS notification with soap-bc

amupoti petals-components at ebmwebsourcing.com
Wed Mar 16 10:34:52 CET 2011


Hi,

I am trying to use the WS notification features of the soap binding component (version 3.2). The main idea is to create a topic which exposes a JBI Endpoint. Then, an external Web Service would access the Endpoint and the topic will produce copies of the message to all the subscribers. I started reading the documentation of the PEtALS-BC-SOAP-3.2 (http://download.forge.objectweb.org/petals/petals-bc-soap-3.2-en.pdf) and as explained I deployed a service assembly which contains a service unit with the following jbi.xml file


Code:
<?xml version="1.0" encoding="UTF-8"?>
<jbi:jbi version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:jbi="http://java.sun.com/xml/ns/jbi" xmlns:petalsCDK="http://petals.ow2.org/components/extensions/version-4.0"
	xmlns:soap="http://petals.ow2.org/components/soap/version-3.1"
	xmlns:sample="http://petals.ow2.org/soap/sample">
	<!--
		Import a Service into PEtALS or Expose a PEtALS Service => use a BC.
	-->
	<jbi:services binding-component="true">
		<!-- Import a Service into PEtALS => provides a Service. -->
		<jbi:provides interface-name="sample:TopicInterface"
			service-name="sample:TopicService" endpoint-name="TopicEndpoint">
			<!-- SOAP specific fields -->
			<soap:address>TopicSample</soap:address>
			<soap:mode>TOPIC</soap:mode>
		</jbi:provides>
	</jbi:services>
</jbi:jbi>



When deploying the SU I have an error (see below), which seems to be related to not recognizing the soap:address tag. Any ideas on how a topic should be created?

I am using petals quick start 3.0 and the petals bc soap 3.2.

Thanks in advance,

Marcel


Code:
SEVERE 2009-08-19 17:04:10,234 [Petals.AutoLoaderServiceImpl]
    Error occured during auto deployment
java.lang.Exception: The deployment of the Service Assembly 'file:/C:/Projects/dist/petals-quickstart-3.0/install/sa-petals-topic-su.zip' failed.
Caused by:Error occured during the deployment of a Service Unit
Caused by:org.ow2.petals.component.framework.jbidescriptor.CDKJBIDescriptorException: Failed to build jbi descriptor
Caused by:Failed to build jbi descriptor
Caused by:cvc-complex-type.2.4.a: Invalid content was found starting with element 'soap:address'. One of '{"http://petals.ow2.org/components/extensions/version-4.0":timeout, "http://petals.ow2.org/components/extensions/version-4.0":su-interceptors, "http://petals.ow2.org/components/extensions/version-4.0":exchange-properties, "http://petals.ow2.org/components/extensions/version-4.0":wsdl-imports-download, "http://petals.ow2.org/components/extensions/version-4.0":wsdl}' is expected.
	at org.ow2.petals.jbi.management.deployment.DeploymentServiceImpl.deploy(DeploymentServiceImpl.java:508)
	at org.objectweb.fractal.julia.generated.C2dea9382_0.deploy(INTERCEPTOR[DeploymentServiceMBean])
	at org.objectweb.fractal.julia.generated.C7566203_0.deploy(INTERFACE[DeploymentServiceMBean])
	at org.ow2.petals.jbi.management.autoload.AutoLoaderServiceImpl.performDeploySA(AutoLoaderServiceImpl.java:544)
	at org.ow2.petals.jbi.management.autoload.AutoLoaderServiceImpl.install(AutoLoaderServiceImpl.java:218)
	at org.ow2.petals.jbi.management.autoload.InstallDirectoryScanner.run(InstallDirectoryScanner.java:63)
	at java.util.TimerThread.mainLoop(Unknown Source)
	at java.util.TimerThread.run(Unknown Source)






-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=885#885

-------------------- m2f --------------------


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum-list.petalslink.org/pipermail/users/attachments/20110316/040dfb28/attachment.htm>


More information about the Users mailing list