Thanks Keith!,
That worked - for the creation of the service, it's implementation bean, interface, etc. in the editor. The resulting switchyard.xml looks good now:
<?xml version="1.0" encoding="UTF-8"?>
<switchyard xmlns="urn:switchyard-config:switchyard:1.0" xmlns:bean="urn:switchyard-component-bean:config:1.0" xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912" xmlns:soap="urn:switchyard-component-soap:config:1.0" name="switchyard-example" targetNamespace="urn:com.example.switchyard:switchyard-example:0.0.1-SNAPSHOT">
<sca:composite name="switchyard-example" targetNamespace="urn:com.example.switchyard:switchyard-example:0.0.1-SNAPSHOT">
<sca:service name="HelloService">
<sca:interface.java interface="com.example.switchyard.switchyard_example.HelloService"/>
<soap:binding.soap>
<soap:contextMapper/>
<soap:wsdl>HelloService.wsdl</soap:wsdl>
<soap:socketAddr>:18001</soap:socketAddr>
</soap:binding.soap>
</sca:service>
<sca:component name="HelloServiceBean">
<bean:implementation.bean class="com.example.switchyard.switchyard_example.HelloServiceBean"/>
<sca:service name="HelloService">
<sca:interface.java interface="com.example.switchyard.switchyard_example.HelloService"/>
</sca:service>
</sca:component>
</sca:composite>
</switchyard>
But - when I try to deploy it - I'm seeing this error - can't tell if this is a user error or what - as everything looks OK to me - can you suggest why it can't find the service name?
22:49:03,278 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015876: Starting deployment of "switchyard-example.jar"
22:49:03,306 INFO [org.jboss.weld.deployer] (MSC service thread 1-5) JBAS016002: Processing weld deployment switchyard-example.jar
22:49:03,325 INFO [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016005: Starting Services for CDI deployment: switchyard-example.jar
22:49:03,328 INFO [org.switchyard] (MSC service thread 1-2) Deploying SwitchYard application 'switchyard-example.jar'
22:49:03,330 INFO [org.jboss.weld.deployer] (MSC service thread 1-5) JBAS016008: Starting weld service for deployment switchyard-example.jar
22:49:03,371 INFO [org.switchyard] (MSC service thread 1-7) Starting SwitchYard service
22:49:03,451 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC00001: Failed to start service jboss.deployment.unit."switchyard-example.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."switchyard-example.jar".SwitchYardService: org.switchyard.exception.SwitchYardException: Unknown Service name '{urn:com.example.switchyard:switchyard-example:0.0.1-SNAPSHOT}HelloService'.
at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:79)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.6.0_22]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.6.0_22]
at java.lang.Thread.run(Thread.java:679) [rt.jar:1.6.0_22]
Caused by: org.switchyard.exception.SwitchYardException: Unknown Service name '{urn:com.example.switchyard:switchyard-example:0.0.1-SNAPSHOT}HelloService'.
at org.switchyard.component.bean.deploy.BeanComponentActivator.activateService(BeanComponentActivator.java:82)
at org.switchyard.deploy.internal.Deployment.deployImplementations(Deployment.java:392)
at org.switchyard.deploy.internal.Deployment.start(Deployment.java:140)
at org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:103)
at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:72)
... 5 more
22:49:03,457 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS015870: Deploy of deployment "switchyard-example.jar" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"switchyard-example.jar\".SwitchYardService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"switchyard-example.jar\".SwitchYardService: org.switchyard.exception.SwitchYardException: Unknown Service name '{urn:com.example.switchyard:switchyard-example:0.0.1-SNAPSHOT}HelloService'."}}
22:49:03,460 INFO [org.jboss.weld.deployer] (MSC service thread 1-5) JBAS016009: Stopping weld service for deployment switchyard-example.jar
22:49:03,467 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment switchyard-example.jar in 9ms
22:49:03,468 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."switchyard-example.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."switchyard-example.jar".SwitchYardService: org.switchyard.exception.SwitchYardException: Unknown Service name '{urn:com.example.switchyard:switchyard-example:0.0.1-SNAPSHOT}HelloService'.
22:49:03,470 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"switchyard-example.jar\".SwitchYardService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"switchyard-example.jar\".SwitchYardService: org.switchyard.exception.SwitchYardException: Unknown Service name '{urn:com.example.switchyard:switchyard-example:0.0.1-SNAPSHOT}HelloService'."}}}}
22:53:18,578 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "switchyard-example.jar"
22:53:18,597 INFO [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016002: Processing weld deployment switchyard-example.jar
22:53:18,605 INFO [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016005: Starting Services for CDI deployment: switchyard-example.jar
22:53:18,607 INFO [org.switchyard] (MSC service thread 1-1) Deploying SwitchYard application 'switchyard-example.jar'
22:53:18,609 INFO [org.jboss.weld.deployer] (MSC service thread 1-6) JBAS016008: Starting weld service for deployment switchyard-example.jar
22:53:18,656 INFO [org.switchyard] (MSC service thread 1-4) Starting SwitchYard service
22:53:18,720 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.unit."switchyard-example.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."switchyard-example.jar".SwitchYardService: org.switchyard.exception.SwitchYardException: Unknown Service name '{urn:com.example.switchyard:switchyard-example:0.0.1-SNAPSHOT}HelloService'.
at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:79)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.6.0_22]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.6.0_22]
at java.lang.Thread.run(Thread.java:679) [rt.jar:1.6.0_22]
Caused by: org.switchyard.exception.SwitchYardException: Unknown Service name '{urn:com.example.switchyard:switchyard-example:0.0.1-SNAPSHOT}HelloService'.
at org.switchyard.component.bean.deploy.BeanComponentActivator.activateService(BeanComponentActivator.java:82)
at org.switchyard.deploy.internal.Deployment.deployImplementations(Deployment.java:392)
at org.switchyard.deploy.internal.Deployment.start(Deployment.java:140)
at org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:103)
at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:72)
... 5 more
22:53:18,726 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS015870: Deploy of deployment "switchyard-example.jar" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"switchyard-example.jar\".SwitchYardService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"switchyard-example.jar\".SwitchYardService: org.switchyard.exception.SwitchYardException: Unknown Service name '{urn:com.example.switchyard:switchyard-example:0.0.1-SNAPSHOT}HelloService'."}}
22:53:18,729 INFO [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016009: Stopping weld service for deployment switchyard-example.jar
22:53:18,738 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment switchyard-example.jar in 11ms
22:53:18,739 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."switchyard-example.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."switchyard-example.jar".SwitchYardService: org.switchyard.exception.SwitchYardException: Unknown Service name '{urn:com.example.switchyard:switchyard-example:0.0.1-SNAPSHOT}HelloService'.
22:53:18,740 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"switchyard-example.jar\".SwitchYardService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"switchyard-example.jar\".SwitchYardService: org.switchyard.exception.SwitchYardException: Unknown Service name '{urn:com.example.switchyard:switchyard-example:0.0.1-SNAPSHOT}HelloService'."}}}}
======================================
package com.example.switchyard.switchyard_example;
public interface HelloService {
String sayHello(String helloString);
}
======================================
package com.example.switchyard.switchyard_example;
import org.switchyard.component.bean.Service;
@Service(HelloService.class)
public class HelloServiceBean implements HelloService {
@Override
public String sayHello(String helloString) {
System.out.println("Hello: " + helloString);
return "Hello " + helloString + "!";
}
}
======================================