Hi,
I tried the same using Tuscany runtime and it was working fine.
Try running this as a server and check if it is deployed, instead of
helloworld.BPELClient use helloWorld.HelloWorldServer in the build file.
use this code:
package helloworld;
import java.io.IOException;
import org.apache.tuscany.sca.host.embedded.SCADomain;
public class HelloWorldServer {
public static void main(String[] args) {
SCADomain scaDomain = SCADomain.newInstance("helloworld.composite");
try {
System.out.println("HelloWorld server started (press enter to
shutdown)");
System.in.read();
} catch (IOException e) {
e.printStackTrace();
}
scaDomain.close();
System.out.println("HelloWorld server stopped");
}
}
For custom uri add uri attribute to the binding in componentType file.
e.g., <binding.ws uri="http://localhost:8085/ode/processes/helloWorld"/>
Thanks & Regards
Ashwini Kumar Jeksani
-----Original Message-----
From: Dalys Sebastian [mailto:[EMAIL PROTECTED]
Sent: Monday, May 05, 2008 11:07 AM
To: [email protected]
Subject: How do I expose my BPEL component as a webservice?
Hi everyone,
This may probably be a very basic question. But I had been trying for quite
sometime and
could not find an example on it, so I thought I will post it.
How do I expose my component (BPEL implementation) as a webservice URI? Do I
modify the
componentType file?
I tried modifying both the componentType and the composite file and introduced
"<binding.ws/>" in both, but it does not seem to pick it up.
For e.g., my componentType file looks like:
<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0"
xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<service name="HelloService" promote="BPELHelloWorldComponent">
<interface.wsdl
interface="http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl#wsdl.interface(HelloPortType)"
/>
<binding.ws/>
</service>
</componentType>
I have deployed it as a webapp on Tomcat. And during startup, Tuscany throws a
warning
like:
WARNING: Element {http://www.osoa.org/xmlns/sca/1.0}binding.ws cannot be
processed.
([row,col,system-id]:
[27,9,"file:/C:/apache-tomcat-5.5.25/webapps/sample-helloworld-bpel/WEB-INF/classes/helloworld.componentType"])
What am I doing wrong?
Thanks,
Dalys
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are
not to copy, disclose, or distribute this e-mail or its contents to any other
person and any such actions are unlawful. This e-mail may contain viruses.
Infosys has taken every reasonable precaution to minimize this risk, but is not
liable for any damage you may sustain as a result of any virus in this e-mail.
You should carry out your own virus checks before opening the e-mail or
attachment. Infosys reserves the right to monitor and review the content of all
messages sent to or from this e-mail address. Messages sent to or from this
e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***