Re: setObjectPart for a specific WSDL
Dinyo Haygarov <[email protected]> Mon, 2 Nov 2009 09:38:39 +0100
| Newsgroups | gmane.comp.apache.webservices.wsif.user |
|---|---|
| Message-ID | <[email protected]> |
--000e0cd7620ceeee0e04775f4d91 Content-Type: text/plain; charset=ISO-8859-1 Hi Gnanaprakash , I invoke a RPC service. Here is an excerpt from the WSDL: <s:element name="SetWebServiceConfig"> - <s:complexType> - <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="wsc" type="tns:WebServiceConfigData"/> </s:sequence> </s:complexType> </s:element> - <s:complexType name="WebServiceConfigData"> - <s:complexContent mixed="false"> - <s:extension base="tns:GeneralWebServiceConfigData"> - <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="String1" type="s:string"/> <s:element minOccurs="0" maxOccurs="1" name="String2" type="s:string"/> <s:element minOccurs="1" maxOccurs="1" name="Int1" type="s:int"/> </s:sequence> </s:extension> </s:complexContent> </s:complexType> So I need to set using WSIF the parameters String1, String2 and Int1, which will be used in SetWebServiceConfig. I hope thats enough. Let me know if you need more information. Thanks, Dinyo 2009/10/31 Gnanaprakash Ramswami <[email protected]> > Hi Dinyo, > > The way you set the parameters depends on which style of service you are > invoking, rpc/literal or document/literal| wrapped. > > If you can send the WSDL I can take a look at it. > > Thanks > Prakash > > > On Sat, Oct 31, 2009 at 4:03 AM, Dinyo Haygarov <[email protected]>wrote: > >> Hello, >> >> I was wondering if you could help me with a problem I have in WSIF. I have >> the following WSDL of a webservice: >> >> <?xml version="1.0" encoding="utf-8"?> >> >> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> >> >> >> >> <soap12:Body> >> >> <SetWebServiceConfig xmlns="http://test/gor/apps/testcase/lib/stubs/boo <http://test/rim/bbapps/testcase/lib/stubs/boo>" >> >> <wsc> >> >> <ConnectionString>string</ConnectionString> >> <ServerURL>string</basServerURL> >> <ServerTimeout>int</basServerTimeout> >> >> >> <username>string</username> >> >> <password>string</password> >> <domain>string</domain> >> <loginType>string</loginType> >> >> >> </wsc> >> >> </SetWebServiceConfig> >> >> >> </soap12:Body> >> </soap12:Envelope> >> >> >> So when I use setObjectPart(serverURL, "www.someurl.com") the sever >> doesn't accept it but rather wants to set that wsc xml tag first. >> >> Do you have an idea how to access i.e. set the wsc tag from WSIF? >> >> Thanks, >> Dinyo > > > --000e0cd7620ceeee0e04775f4d91 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Gnanaprakash ,<br><br>I invoke a RPC service. Here is an excerpt from th= e WSDL:<br><br><s:element name=3D"SetWebServiceConfig"><br>= −<br><s:complexType><br>−<br><s:sequence><br><s:= element minOccurs=3D"0" maxOccurs=3D"1" name=3D"ws= c" type=3D"tns:WebServiceConfigData"/><br> </s:sequence><br></s:complexType><br></s:element><br>&min= us;<br><s:complexType name=3D"WebServiceConfigData"><br>&mi= nus;<br><s:complexContent mixed=3D"false"><br>−<br>&l= t;s:extension base=3D"tns:GeneralWebServiceConfigData"><br> −<br><s:sequence><br><s:element minOccurs=3D"0" ma= xOccurs=3D"1" name=3D"String1" type=3D"s:string&qu= ot;/><br><s:element minOccurs=3D"0" maxOccurs=3D"1&quo= t; name=3D"String2" type=3D"s:string"/><br> <s:element minOccurs=3D"1" maxOccurs=3D"1" name=3D&q= uot;Int1" type=3D"s:int"/><br></s:sequence><br><= /s:extension><br></s:complexContent><br></s:complexType><br>= <br> So I need to set using WSIF the parameters String1, String2 and Int1, which= will be used in SetWebServiceConfig.<br><br>I hope thats enough. Let me kn= ow if you need more information.<br><br>Thanks,<br>Dinyo<br><br><div class= =3D"gmail_quote"> 2009/10/31 Gnanaprakash Ramswami <span dir=3D"ltr"><<a href=3D"mailto:re= [email protected]">[email protected]</a>></span><br><blockquot= e class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 204, 204);= margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hi Dinyo,<div><br></div><div>The way you set the parameters depends on whic= h style of service you are invoking, rpc/literal or document/literal| wrapp= ed.</div><div><br></div><div>If you can send the WSDL I can take a look at = it.</div> <div><br></div><div>Thanks</div><div>Prakash<div><div></div><div class=3D"h= 5"><br><br><div class=3D"gmail_quote">On Sat, Oct 31, 2009 at 4:03 AM, Diny= o Haygarov <span dir=3D"ltr"><<a href=3D"mailto:[email protected]" targ= et=3D"_blank">[email protected]</a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, = 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br><br>I w= as wondering if you could help me with a problem I have in WSIF. I have the= following WSDL of a webservice:<span><span><pre> <?xml version=3D"1.0" encoding=3D"utf-8"?><br><br= ><soap12:Envelope xmlns:xsi=3D"<a href=3D"http://www.w3.org/2001/XM= LSchema-instance" target=3D"_blank">http://www.w3.org/2001/XMLSchema-instan= ce</a>" xmlns:xsd=3D"<a href=3D"http://www.w3.org/2001/XMLSchema"= target=3D"_blank">http://www.w3.org/2001/XMLSchema</a>" xmlns:soap12= =3D"<a href=3D"http://www.w3.org/2003/05/soap-envelope" target=3D"_bla= nk">http://www.w3.org/2003/05/soap-envelope</a>"><br> <br><br> <soap12:Body><br><br> <SetWebServiceConfig xmlns=3D&q= uot;<a href=3D"http://test/rim/bbapps/testcase/lib/stubs/boo" target=3D"_bl= ank">http://test/gor/apps/testcase/lib/stubs/boo</a>"</pre></span></sp= an><span><span><pre> <wsc><br><br> <ConnectionString><font>string</font></Conn= ectionString><br> <ServerURL><font>string</font></basServerU= RL><br> <ServerTimeout><font>int</font></basServerTimeout>= ;<br> <username><font>string</font></username><br><br> &l= t;password><font>string</font></password><br> <domain><fo= nt>string</font></domain><br> <loginType><font>string</font>= </loginType><br> </wsc><br><span><span><pre></SetWebServiceConfig><br><br><br> = </soap12:Body><br></soap12:Envelope></pre></span></span></pre><= /span></span><br>So when I use setObjectPart(serverURL, "<a href=3D"ht= tp://www.someurl.com/" target=3D"_blank">www.someurl.com</a>") the sev= er doesn't accept it but rather wants to set that wsc xml tag first. <b= r> <br>Do you have an idea how to access i.e. set the wsc tag from WSIF?<br><b= r>Thanks,<br><font color=3D"#888888"><font color=3D"#888888">Dinyo</font> </font></blockquote></div><br></div></div></div> </blockquote></div><br> --000e0cd7620ceeee0e04775f4d91--