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>&lt;s:element name=3D&quot;SetWebServiceConfig&quot;&gt;<br>=
&minus;<br>&lt;s:complexType&gt;<br>&minus;<br>&lt;s:sequence&gt;<br>&lt;s:=
element minOccurs=3D&quot;0&quot; maxOccurs=3D&quot;1&quot; name=3D&quot;ws=
c&quot; type=3D&quot;tns:WebServiceConfigData&quot;/&gt;<br>
&lt;/s:sequence&gt;<br>&lt;/s:complexType&gt;<br>&lt;/s:element&gt;<br>&min=
us;<br>&lt;s:complexType name=3D&quot;WebServiceConfigData&quot;&gt;<br>&mi=
nus;<br>&lt;s:complexContent mixed=3D&quot;false&quot;&gt;<br>&minus;<br>&l=
t;s:extension base=3D&quot;tns:GeneralWebServiceConfigData&quot;&gt;<br>
&minus;<br>&lt;s:sequence&gt;<br>&lt;s:element minOccurs=3D&quot;0&quot; ma=
xOccurs=3D&quot;1&quot; name=3D&quot;String1&quot; type=3D&quot;s:string&qu=
ot;/&gt;<br>&lt;s:element minOccurs=3D&quot;0&quot; maxOccurs=3D&quot;1&quo=
t; name=3D&quot;String2&quot; type=3D&quot;s:string&quot;/&gt;<br>
&lt;s:element minOccurs=3D&quot;1&quot; maxOccurs=3D&quot;1&quot; name=3D&q=
uot;Int1&quot; type=3D&quot;s:int&quot;/&gt;<br>&lt;/s:sequence&gt;<br>&lt;=
/s:extension&gt;<br>&lt;/s:complexContent&gt;<br>&lt;/s:complexType&gt;<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">&lt;<a href=3D"mailto:re=
[email protected]">[email protected]</a>&gt;</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">&lt;<a href=3D"mailto:[email protected]" targ=
et=3D"_blank">[email protected]</a>&gt;</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>
&lt;?xml version=3D&quot;1.0&quot; encoding=3D&quot;utf-8&quot;?&gt;<br><br=
>&lt;soap12:Envelope xmlns:xsi=3D&quot;<a href=3D"http://www.w3.org/2001/XM=
LSchema-instance" target=3D"_blank">http://www.w3.org/2001/XMLSchema-instan=
ce</a>&quot; xmlns:xsd=3D&quot;<a href=3D"http://www.w3.org/2001/XMLSchema"=
 target=3D"_blank">http://www.w3.org/2001/XMLSchema</a>&quot; xmlns:soap12=
=3D&quot;<a href=3D"http://www.w3.org/2003/05/soap-envelope" target=3D"_bla=
nk">http://www.w3.org/2003/05/soap-envelope</a>&quot;&gt;<br>


<br><br>  &lt;soap12:Body&gt;<br><br>    &lt;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>&quot;</pre></span></sp=
an><span><span><pre>
&lt;wsc&gt;<br><br>    &lt;ConnectionString&gt;<font>string</font>&lt;/Conn=
ectionString&gt;<br>    &lt;ServerURL&gt;<font>string</font>&lt;/basServerU=
RL&gt;<br>    &lt;ServerTimeout&gt;<font>int</font>&lt;/basServerTimeout&gt=
;<br>


    &lt;username&gt;<font>string</font>&lt;/username&gt;<br><br>   &nbsp;&l=
t;password&gt;<font>string</font>&lt;/password&gt;<br>    &lt;domain&gt;<fo=
nt>string</font>&lt;/domain&gt;<br>    &lt;loginType&gt;<font>string</font>=
&lt;/loginType&gt;<br>


&lt;/wsc&gt;<br><span><span><pre>&lt;/SetWebServiceConfig&gt;<br><br><br>  =
&lt;/soap12:Body&gt;<br>&lt;/soap12:Envelope&gt;</pre></span></span></pre><=
/span></span><br>So when I use setObjectPart(serverURL, &quot;<a href=3D"ht=
tp://www.someurl.com/" target=3D"_blank">www.someurl.com</a>&quot;) the sev=
er doesn&#39;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--