It's all about the answers!

Ask a question

Plugin participant run service endpoint wsdl


Javier López (1134) | asked Sep 12 '12, 10:49 a.m.

Sorry my English is bad.

I am implemented a plugin participant, and this plugin has to send data to a web service.

I have given the wsdl interface (client), but it is not how it is done.

I open the wsdl with soapUI program (see):

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsin="http.....">
   <soapenv:Header/>
   <soapenv:Body>
      <wsin:ActualizarX>
         <codUno>?</codUno>
         <codDos>?</codDos>
         <fechaInicio>?</fechaInicio>
         <fechaFin>?</fechaFin>
         <!--Zero or more repetitions:-->
         <usuariosAsginados>?</usuariosAsginados>
      </wsin:ActualizarX>
   </soapenv:Body>
</soapenv:Envelope>

How plugin participant sends data web service?.....thanks. I have crazy looking in forums

3 answers



permanent link
sam detweiler (12.5k6195201) | answered Sep 12 '12, 11:58 a.m.
you would have to make a java class that does the client side call to the web service.

you could use the Eclipse WTP support to do this.

I do not know if the RTC runtime can tolerate long delay calls like this tho.. web service calls outside the RTC server can take a lifetime.. (seconds in computer speak)..  there are some timeout exceptions in some of the services to protect against hanging the UI.


permanent link
Hector Agudo (4622) | answered Sep 13 '12, 5:48 a.m.

Hi community

I think Javier wants to say that He have got a participant of RTC implemented correctly and he loaded it and running it in the RTC server. This participant obtain information of RTC and it must to send this info to a web service. He have the info but he need to send this info to a web service (that is the real question).

He can't make a web project to do this because the send must be done when participant is executed (in running time of RTC server) and one participant of RTC can not be a WSDL

He need to know How can he do the  call a external webService for send the information obteined of RTC to another web server external of RTC server. He need to know guidelines to do this: perhaps with REST call, perhaps with GET or POST call. 

Anybody could help him with some simple examples or with basics directives , please?

Thanks in advance and best regards

Héctor Agudo


permanent link
sam detweiler (12.5k6195201) | answered Sep 13 '12, 6:49 a.m.
GET or POST are standard http functions, and as rtc is a java web application there should be http services you could use.. 

I see the org.apache.httpclient jar file in the server plugins directory.

if the remote webservice server doesn't support REST calls, then u will have to make a soap supporting library, as I suggested earlier. This is what I do. I have not tried to use my web service function library from inside a participant or advisor.

Comments
Hector Agudo commented Sep 13 '12, 6:55 a.m.

ok Sam

We will work over this line

Thanks

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.