on 05-07-2008 2:54 PM
Hi Friends,
i have wriiten application using webservices(using EJB)
i need to call that webservice in webdybpro...
In one of method it takes 100+ inputs and gives me result...
But when in webdynpro when i set input parametrs 100 and execute that webservice method..
i am getting Socket Exception Timed out..
Can we call webservice in webdynpro without using Webservice definition or intwrface of webservice..?
How to call webservice directly into webdynpro without adding model in webdynpro???
Thanks Regards
Shravan
HI shravan,
you can increase socket time out of yor webservice in visual admin.
visual admin->server->services->web service container...........select your webservice-> settings-> WS client socket timeout
but a best way is. try to send you 100+ insputs in batches.
if your inputs a large enough for standerd timeout.. then it is preferable to dicide them into batches.
As normally no one agrees to increase socket timeout of webservice from visual admin.
p.s. batch input is a nice solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
How to create deployable proxy for webservice and
consume in webbdynpro.....?
i dont want to set socket time using Visual Admin,
Since it may affect other webservices which are not needed
unnecessary burden to server,
i am unable to get socket out time to logical port..?
how to set socket time in webdynpro??
Thanks
Shravang
Hi Shravan,
Follow the link [Creating a Deployable Proxy|http://help.sap.com/saphelp_nw70/helpdata/EN/2d/b9766df88f4a24967dae38cb672fe1/frameset.htm].
You can follow the links given at the help.sap.com page for consuming proxy.
Once you deploy the Web Dynpro Project with Adaptive Web Service Model, the Destinations mentioned are created on the Server. Then using Visual Admin or NWA one can modify the settings like Socket Timeout for a specific web service.
Regards,
Alka.
What kind of webservice-framework are you using in your application? Can't you set the socket-timeout to a higher value as currently? If you are using the Adaptive Webservice Model of Webdynpro, you can manipulate it. Read the SAP-tutorial about it: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/900bbf94-a7a8-2910-e298-a651b470...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
I am using Model as "Import webservice model deprictaed"
after that i used the methods which are written by webservice...
I need to set inputs to one of the method but inputs are very large, after setting the inputs when i execute webservice method,
Since it take lot of time to get Response....
I am getting Socket time exception,time out
java.rmi.RemoteException: Service call exception; nested exception is: java.net.SocketTimeoutException: Read timed out
So how to solve this issue..
Thanks and regards
Shravang
Hi Shravan,
For invoking Web Services, you need to have some kind of client programming. The Web Dynpro Web Service model does this.
Other ways of consuming your EJB exposed as Web Service,
1. Create a deployable proxy for the Web Service, and consume it in Web Dynpro.
2. Access the EJB directly using its remote interface.
As Frank has mentioned, for the Socket Time Out exception, if you would have used Adaptive Web Service Model, the Socket Timeout period is maintainable.
This option is open for all deployable proxies too.
Another Visual Admin setting can also be used to set higher Socket Time Out.
1. Visual Administrator -> Server -> Services -> Web Services Container .
2. On the Settings tab --> Socket Timeout input field.
3. You can change the default value there and it will be automatically applied to all WS client proxies and logical ports deployed on the system.
i.e., this will be applicable to all the Web Service Clients on your server.
Hope it helps.
Regards,
Alka.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.