You are viewing a plain text version of this content. The canonical link for it is here.
Posted to agila-user@incubator.apache.org by tn...@symcor.com on 2006/02/12 15:04:27 UTC
how to invoke a webservice without parameter input and output
Hi,
I would like to invoke a webservice with no input parameter and no output
parameter.
<invoke ... inputVariable="?" outputVariable="?" /> can I invoke a
webservice without inputVariable or outVariable ?
Thanks
Tu
Re: how to invoke a webservice without parameter input and output
Posted by Aleksander Slominski <as...@cs.indiana.edu>.
tnguyen@symcor.com wrote:
>I would like to invoke a webservice with no input parameter and no output
>parameter.
>
><invoke ... inputVariable="?" outputVariable="?" /> can I invoke a
>webservice without inputVariable or outVariable ?
>
>
hi,
presence of inputVar/outputVar is deciding about type of invocation not
just what is sent i.e. it can be one-way (no response only inputVar) or
RPC (request-response)
if you want to invoke a webservice that has no parameters you still need
to send *empty* message as a variable (and receive empty message if it
was RPC) and that should be described in your WSDL (exact details of
WSDL will depend on what binding you use: doc-literal, rpc-literal,
rpc-encoded ...)
HTH,
alek
--
The best way to predict the future is to invent it - Alan Kay
Re: No service has been define
Posted by Davide Ling <li...@libero.it>.
On Sunday 12 February 2006 17:58, tnguyen@symcor.com wrote:
> Hi,
>
> I got no service has been define exception for initiator port. This port
> is local port for Agila, so that I don't have any service for it. How do I
> define a service in this situation?
Maybe You forgot to attach wsdef and process files
--
Davide Ling
Sito Personale - http://davideling.altervista.org
Key fingerprint = 284A 0FB9 F9F6 763C D429 E02B AA5D 483A 7E45 D2A6
No service has been define
Posted by tn...@symcor.com.
Hi,
I got no service has been define exception for initiator port. This port
is local port for Agila, so that I don't have any service for it. How do I
define a service in this situation?
I also enclose the wsdef file and the bpel file. In this example: I want
to invoke the exceptionService, reply back the output and then invoke the
ftpService.
(See attached file: tecpbpel.bpel)(See attached file: tecpbpel.wsdl)
Exception in thread "Thread-41"
org.apache.agila.bpel.engine.priv.messaging.Invo
cationException: No service have been defined for portType initiator
at
org.apache.agila.bpel.engine.priv.messaging.impl.WSMessageBroker.getS
ervice(WSMessageBroker.java:299)
at
org.apache.agila.bpel.engine.priv.messaging.impl.WSMessageBroker.sync
Send(WSMessageBroker.java:114)
at
org.apache.agila.bpel.engine.priv.messaging.impl.WSMessageBroker$1.ru
n(WSMessageBroker.java:94)
at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExec
utor.java:727)
at java.lang.Thread.run(Thread.java:595)
.......
[Agila] DEBUG [http-8080-Processor23] EngineWSA.sendToEngine(118) |
Producing re
ply: <?xml version="1.0" encoding="UTF-8"?>
<message><return-code>1</return-code></message>
Thanks
Tu
Re: how to invoke a webservice without parameter input and output
Posted by Davide Ling <li...@libero.it>.
On Sunday 12 February 2006 16:04, tnguyen@symcor.com wrote:
> Hi,
>
> I would like to invoke a webservice with no input parameter and no output
> parameter.
>
> <invoke ... inputVariable="?" outputVariable="?" /> can I invoke a
> webservice without inputVariable or outVariable ?
BPEL4WS spec states that You can do It only if Your process is an
abstract process (not executable one).
If your process is an executable it is not possible omit both variables.
Example: in one-way invoke you need only input variable.
--
Davide Ling
Sito Personale - http://davideling.altervista.org
Key fingerprint = 284A 0FB9 F9F6 763C D429 E02B AA5D 483A 7E45 D2A6