Re: How to dynamicly invoke a web service?
"Srinivas Velidanda" <[email protected]> Mon, 11 Aug 2008 15:09:40 +0530
| Newsgroups | gmane.comp.apache.webservices.wsif.user |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_42766_33508573.1218447580498 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Are you trying to invoke a webservice with a complex type ? The sample xml that you have given in your query does not show any complex type. Assuming that you are trying to send complex type while invoking a webserve from WSIF client, then what I can suggest you is that WSIF doesn't support complex types, better you try Apache CXF as it is more advanced compare to WSIF and in CXF there is support for generating the server side stubs dynamically. Srinivas. On Sun, Aug 10, 2008 at 11:22 AM, lorkyo <lorkyo-9Onoh4P/[email protected]> wrote: > Hello, I'm new in using wsif, can anyone give me a example on how to > invoke a webservice? the sample "DynamicInvoker" only support parts as a to > be basic type, such as integer, String ansd so on. But if a part refers to a > XML element listed below, How should I do? > <xsd:element name="request" type="xsd:string"/> > <xsd:element name="response" type="xsd:string"/> > </xsd:schema> > </types> > <message name="RequestMessage"> > <part name="parameters" element="tns:request"/> > </message> > <message name="ResponseMessage"> > <part name="parameters" element="tns:response"/> > </message> > <portType name="WFSPortType"> > <operation name="doservice"> > <input message="tns:RequestMessage"/> > <output message="tns:ResponseMessage"/> > </operation> > </portType> > </definitions> > > I have tried to pass String object as in put,but get a error :No such > operation 'request' . Do I need to pass Elements as input parameters? How > to generate such Elements and How to set their values? > > > ------=_Part_42766_33508573.1218447580498 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline <div dir="ltr">Are you trying to invoke a webservice with a complex type ?<br><br>The sample xml that you have given in your query does not show any complex type.<br><br>Assuming that you are trying to send complex type while invoking a webserve from WSIF client, then what I can suggest you is that WSIF doesn't support complex types, better you try Apache CXF as it is more advanced compare to WSIF and in CXF there is support for generating the server side stubs dynamically.<br> <br>Srinivas.<br><div class="gmail_quote">On Sun, Aug 10, 2008 at 11:22 AM, lorkyo <span dir="ltr"><<a href="mailto:lorkyo-9Onoh4P/[email protected]">lorkyo-9Onoh4P/[email protected]</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div>Hello, I'm new in using wsif, can anyone give me a example on how to invoke a webservice? the sample "DynamicInvoker" only support parts as a to be basic type, such as integer, String ansd so on. But if a part refers to a XML element listed below, How should I do? <br> <xsd:element name="request" type="xsd:string"/><br> <xsd:element name="response" type="xsd:string"/><br></xsd:schema><br> </types><br> <message name="RequestMessage"><br> <part name="parameters" element="tns:request"/><br> </message><br> <message name="ResponseMessage"><br> <part name="parameters" element="tns:response"/><br> </message><br> <portType name="WFSPortType"><br> <operation name="doservice"><br> <input message="tns:RequestMessage"/><br> <output message="tns:ResponseMessage"/><br> </operation><br> </portType><br></definitions></div><div> <br>I have tried to pass String object as in put,but get a error :No such operation 'request' . Do I need to pass Elements as input parameters? How to generate such Elements and How to set their values?<br> </div><div> </div><div> </div></blockquote></div><br></div> ------=_Part_42766_33508573.1218447580498--