How to create a message
"Miguel Julián" <[email protected]> Fri, 20 Jul 2007 02:23:56 +0200
| Newsgroups | gmane.comp.apache.webservices.wsif.user |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_86268_30880792.1184891036936
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hi everybody!
I'm trying to invoke dynamicly a ws and I'm having some problems, so I hope
you'd solve them.
I have to invoke a ws wich has the following typing:
<operation name=3D"add">
<input message=3D"tns:AddInputMessage"/>
</operation>
<message name=3D"AddInputMessage">
<part name=3D"parameters" element=3D"tns:add"/>
</message>
<xsd:element name=3D"add" type=3D"xsd:int"/>
I added the objectPart("add",10) to the inputmessage, but the invokation
didn't work. After reading and asking I now It's supposed that I have to
construct a Xml message and then call the
operation.executeRequestResponseOperation method. I'm now able to extract
information from the wsdl (with WSDL4J and so), but which are the next
steps? I have been looking for a solution around the WSIF API (wsif.schema,=
..)
but I haven't found nothing clear. Maybe I only need a simple code example
because I'm a little bit lost with too many functions and my brief time wit=
h
ws.
I'll be very pleased if someone could help me :-)
Thank you for your time.
ps: Next step will be taking the types from an outer xml document...I'll tr=
y
with some faith :P
--=20
By Miguel Juli=E1n (Miky)
http://www.mikysblog.com
http://www.youtube.com/watch?v=3Dd6gmp8pf8k4
------=_Part_86268_30880792.1184891036936
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hi everybody!<br>I'm trying to invoke dynamicly a ws and I'm having=
some problems, so I hope you'd solve them.<br>I have to invoke a ws wi=
ch has the following typing:<br><operation name=3D"add"><br=
>
<input message=3D"tns:AddInputMessage"/><br></operation&=
gt;<br><div style=3D"margin-left: 40px;">
<br><message name=3D"AddInputMessage"><br><part name=3D&=
quot;parameters" element=3D"tns:add"/><br></message>=
;<br><br><div style=3D"margin-left: 40px;"><xsd:element name=3D"add=
" type=3D"xsd:int"/>
<br></div></div><br>I added the objectPart("add",10) to the input=
message, but the invokation didn't work. After reading and asking I now=
It's supposed that I have to construct a Xml message and then call the=
=20
operation.executeRequestResponseOperation method. I'm now able to extra=
ct information from the wsdl (with WSDL4J and so), but which are the next s=
teps? I have been looking for a solution around the WSIF API (wsif.schema
,..) but I haven't found nothing clear. Maybe I only need a simple code=
example because I'm a little bit lost with too many functions and my b=
rief time with ws.<br><br>I'll be very pleased if someone could help me=
:-)
<br><br>Thank you for your time.<br><br>ps: Next step will be taking the ty=
pes from an outer xml document...I'll try with some faith :P<br clear=
=3D"all"><br>-- <br>By Miguel Juli=E1n (Miky)<br><a href=3D"http://www.miky=
sblog.com">
http://www.mikysblog.com</a><br><a href=3D"http://www.youtube.com/watch?v=
=3Dd6gmp8pf8k4">http://www.youtube.com/watch?v=3Dd6gmp8pf8k4</a>
------=_Part_86268_30880792.1184891036936--