Question about web service and timeouts

I have a form with a button script that invokes a synchronous soap web service request to an address validation service. It works nicely in testing but I am a bit concerned at what might happen when we go live with respect to the form hanging if the soap server is unavailable or the user is offline.
From some simple tests in production, where the web service is available yet:
     - in Windows, it times out in Adobe Reader 10.1.1 within about 15 seconds; and
     - In the Mac, with Adobe Reader 10.1.3 it takes around 4 1/2 minutes.
The latter is not good, as it hangs Reader the entire time.
Is there some way I can set a timeout in the soap request. Would it be worth considering an async call? If I changed it to async, could I let the user continue to fill the form and then setFocus with an async flag?

Hi,
I'm almost there. I dont think that you can do exception handling in FormCalc. How do I trap the error. So far I have
if (HasValue(Get("http://despaiqo001.development.local:4001/crossdomain.xml")) == 0) then
     $xfa.host.messageBox("not available")
else
    $xfa.host.messageBox("got it")
endif
but when I change the URL so it cant access it, I get a form calc exception. Any samples of how I can script it?

Similar Messages

  • Questions about web services and BPEL in ALBPM

    Hi all,
    We are currently evaluating various BPM products in order to decide which one to use. Currently I am evaluating ALBPM Studio 5.7 and I am running my processes on the embedded engine provided with the studio. I have some questions:
    1. We want to be able to use complex types for the web services that are generated for processes. Will this limitation be solved any time in the future?
    2. We want to be able to use the generated web services directly (that is, without calling the startSession method first). Is that possible?
    3. I could not find extensive documentation about developing BPEL processes. There is only one small chapter in the developer documentation about BPEL processes. Is there any more documentation or sample about how BPEL is used in ALBPM?
    4. I have developed a very simple BPEL process, but when I try to deploy it, I get the error "Activity BPEL receive does not have any incoming transitions". How can I resolve this issue? I guess it may be a problem about my PartnerLink definition.
    5. When I try to catalog a wsdl which imports another wsdl (and when the imported wsdl also imports some xsds from another namespace), I get an error which says that a web service xxx with namespace yyy is not found, but actually the thing named xxx is not a web service but a soap fault. What could be the problem?
    6. Is it possible to write a BP method in PBL for a BPEL activity?
    Thanks in advance and best regards..

    look for anwsers in the other newsgroup posting:
    http://forums.bea.com/bea/message.jspa?messageID=600047258
    MAriano
    Benitez/BEA/BPM/Beautiful

  • A question about web service

    hi experts,
    I develop a web service based on abap FM. When the 3party programs call it, user need to input the username/password.
    can I config sth for the web service, and user don't need the input user/pass?
    Thanks

    Hi Michael,
    I understand you are worried about security (i.e.people accessing the Service anonymously is something you want to avoid).  Also, you don't want the people to have to manually authenticate themselves (i.e. enter a User ID and Password) to execute the Service.   In this case, you need to use a more sophisticated authentication technique like X.509 SSL Client Certificate or SAP Single Sign On Ticket.  This is a complex subject and not suitable for discussion here.  Here are links to topics that could get you started.
    1. SAP Help Portal link to the topic Security Aspects for Web Services:
    http://help.sap.com/saphelp_nwpi71/helpdata/en/46/a088198f835edfe10000000a11466f/frameset.htm
    2. SAP Help Portal link to the topic Making a Web Service Secure:
    https://help.sap.com/saphelp_nwpi711/helpdata/EN/47/ab7ba049f84848e10000000a421138/frameset.htm
    I hope this helps.
    Best Regards,
    Andy

  • Need advice about web services and Java beans

    Hi
    I am very new to web services and to Java beans as well.
    I am trying to understand if and how a web service can use functionality I have in a Java bean. I couldn't find any documentation I can use.
    For example:
    InitialContext ic = new InitialContext();
    Adder adder = (Adder) ic.lookup("ejb/AdderJNDI");In a EJB client project (I'm working with Eclipse) if I add the EJB project to the build path, the Adder interface is recognized.
    Theoritacally I thought I can do the same in a web service server project, but the Adder interface is not recognized.
    Is there something I can read to understand how I need to use the EJB or implement the web service?
    Many thanks
    Sigal

    Okay....I think I made some errors with the original scenario:
    It basically comes down to this....I think. OCS Calendar has a set of Java classes and methods that provide an abstraction for their web services interface. I know how to create something to use these classes using an IDE like JDeveloper, but I'm not sure how that would work with HTML DB.
    I've noticed that the SQL Workshop has a place for Java sources and classes, and I've heard mentions of PL/SQL wrapping. Is there a way to import classes into an HTML DB workspace, wrap 'em up, and access them via PL/SQL?
    Thanks again,
    Jonathan

  • Question about web service security and certificate registry?

    I'm trying to add security to my web service. I've created a keystore and added a certificate that was signed by a CA that I created (for testing only). The documentation says I need to create a Certificate registry and add my CA as a trusted CA. I can't quite figure this step out. Does anyone know how to do this or am I heading in the wrong direction?
    thanks

    Hi,
    I'm almost there. I dont think that you can do exception handling in FormCalc. How do I trap the error. So far I have
    if (HasValue(Get("http://despaiqo001.development.local:4001/crossdomain.xml")) == 0) then
         $xfa.host.messageBox("not available")
    else
        $xfa.host.messageBox("got it")
    endif
    but when I change the URL so it cant access it, I get a form calc exception. Any samples of how I can script it?

  • Some question about Web service

    Hi experts,
    I have created a Web service about Function Module 'BAPI_EXCHANGERATE_GETDETAIL'.Now I plan to use Transaction code 'WSADMIN' to create a WSDL.But the display result of IE tell me my host could not be resolved by DNS.I don't know how to solve this question, and which happened based on this question.Is there any experienced experts tell me the solution?
    Thanks & Best regards!
    Kelvin

    Hi,
    In your system folder:
    C:\WINDOWS\system32\drivers\etc there is a file hosts;
    Add your server I address and servername in it.
    like:
    193.10.100.70     myserver.com     MYSERVER
    Hope this will resolve the problem. If you do not have authorisation for the same, your network admin will help.
    Regards,
    Renjith Michael.

  • Questions about web services

    Hi! Experts:
    I am at the Web Servivces Navigator.
    I have a basic question about it:
    We are using MI7.1 which has NO Java stack. Therefore we do NOT have the Web Services Navigator.
    How do we use the Web Services for MI7.1?
    Thanks!

    Hi!
    1) SICF lists the BSP services; Web Services are requests between java application to client application.
        Are you sure them are the same thing?
    2) When I compare the services between web service navigator and SICF, I do not see there is any
       relationship.  For example, if I search "AdapterMessageMonitoring" in SICF, I cannot find it.
    I think SICF and  web service navigator  are listing totally different services.
    Therefore my question is that since MI7.1 has NO Java stack (hence NO web service navigator ), how
    are web services handled in MI7.1?
    Thanks!

  • Basic question about Web Services

    First I wan't to say that i've searched the net for info, and all I could find was some advanced code snipets. However, I would like to start from the begining.
    I'm trying to develop a web service which takes XML as input parameter, an returns some other XML.
    I developed a WS like that
    import org.w3c.dom.Element
    public static Element returnElement(Element xml)
    { return xml }Now here's the problem:
    I would like to be able to call this WS from other programming languages, like Delphi, C++...
    To try and make something like that, I converted xml to String and pass it to a WS. However, this string is too big (about 3200 chars) for HTTP GET to handle.
    How can I do that?? Which classes to use? How to represent data in XML form that could be read in Java and other programming languages?
    Please, at least, post a link, I just need some basic pointers.
    Code examples would be much apreciated.
    Thanks a lot in advance,
    Good day,
    Simon

    Hi,
    Thanks for your reply. There is a directory on the web logic server's box where the required classes exist. How can I add those to the CLASSPATH? How can I do it from Web Logic Admin Console?
    Regards,
    Ram

  • Question about web service client

    Hi,
    I am creating the a client to call non wls web serveice.
    First I need to create the client jar using clientgen. My question is when i create the client jar I need the wsdl file. where is the correct place to store the wsdl file? Also I have development and production wsdl file with the different service location. Do I have to store both of the wsdl files? It's a trouble to remember to build the different client jar for development and production (using different wsdl), is there anyway that I can build the client jar once and somehow dynamically configure to use different wsdl (ie service location) in different environment? Thanks

    Hi Holy,
    If you know the WSDL hasn't changed since you used it when running the clientgen Ant task, you can just use the one that is inside the JAR that clientgen produces. To do this, you just need to not specify an argument to the XXX_Impl constructor. For instance:
    AttachmentPartsService_Impl service = new AttachmentPartsService_Impl();
    This has some performance benefits, because it reduces the total number of network calls, the client-side Web Services stack makes. If you specify the URL for the WSDL to the constructor (as recommended by someone else here), the client-side Web Services stack will issue an HTTP GET to get it. Now if the WSDL that is returned uses types that are different than the ones the clientgen Ant task generated classes for (i.e. the ones in the JAR generated by the clientgen Ant task), you are in trouble because the client-side Web Services doesn't generate serialization/deserialization classes (i.e. the ones in the JAR generated by the clientgen Ant task) "on-the-fly".
    The service endpoint for a Web Service call can (and should) be set programmatically, from a properties or configuration file. This will look something like this in the code:
    import java.util.Properties;
    import javax.xml.rpc.Stub;
    private static Properties loadProperties(String fileName) throws IOException
    if (fileName == null || fileName.length() == 0) return null;
    Properties props = new Properties();
    FileInputStream fis = null;
    try
    fis = new FileInputStream(fileName);
    props.load(fis);
    finally
    if (fis != null) try { fis.close(); } catch (Exception ignore){}
    return props;
    public static void main() throws Exception
    Properties props = loadProperties("MyProperties.properties");
    Client client = new Client(props);
    public Client(Properties properties)
    AttachmentPartsService_Impl service = new AttachmentPartsService_Impl();
    AttachmentPartsServiceSoap port = service.getAttachmentPartsServiceSoap();
    if (schemeHostPort == null) schemeHostPort = "http://localhost:7001";
    ((AttachmentPartsServiceSoap_Stub)port)._setProperty(
    Stub.ENDPOINT_ADDRESS_PROPERTY,
    properties.getProperty("production.AttachmentPartsService.serviceEndpointURL"));
    This way, you can have a different properties file for each environment you propagate the web service to, as opposed to saving copies of WSDL files just to have the "correct" service endpoint address. It also has the additional benefit of letting you store the service endpoint URLs for more than just one web service.
    Regards,
    Mike Wooten

  • A basic question about web service

    Hello,
    Does all the Web services need to be run under a Web server?
    Or it just needs to be run under a server which has either a web container or a J2EE container?
    I mean if the application does not need to generate HTML pages, but just generate SOAP messages, do I still need to have a web server?
    Thanks!

    A J2EE server runs independently and does not require an HTML/HTTP web server.
    If you're just interested in SOAP, an application server or servlet engine which understands the SOAP specification will be enough.
    --Jon

  • Question About Web Service Endpoint

    Is there a way to specify the endpoint of a Web Service that exposes a Data Source?
    For example, if I have a Liquid Data Control jcx with a Java package of foo.bar and the corresponding jws file is also in this package, then the web service endpoint will be http://myserver/myproject/foo/bar/mywebservice.jws.
    Is there a way to change this to say something like http://myserver/myproject/services/mywebservice.jws.
    Thanks.

    JWS files are created by Workshop. Try posting on the Workshop newsgroup or check edocs.

  • Beginner question about Web Services pack just released

    Hi all,
    I have seen that Sun just released Web Services early access Api. I'd like to
    know if this Api are compatible with Weblogic standards for Web Services. For
    example can I use the Sun's JAXM Api with Weblogic for creating and sending Messages?
    or do I have to use weblogic Api to do this?
    Thanks
    Francesco

    It defines what the parameter names should be exposed as in the wsdl.
    Without specifying it JAX-WS for example would just name the arguments as arg0 and arg1 which i not very meaningful to the client programmer who will use your web service.
    - Roy

  • Questions about Customer Service and Prepaid Phones

    Yes, I have had Straight Talk for over two years. The phone service its self was wonderful. I only came across three places within a 50 mile radios of not being able to get reception. After asking around I found out that Straight Talks service is through Verizon. Everyone I talk to says the Verizon Tower reception was the best. I have been waiting a total of 22 days for Straight Talk to send my replacement for my broken phone. I have had it and I am going to sell the phone on Ebay when I receive it. My service with Straight Talk ends in four days and I am really considering Verizon.. Wanting to do this over the weekend. I know if I purchase a phone from Verizon directly it will be shipped overnight.
    The main thing I want to know is if Verizon has a Customer Call Center in the United States? Where I can speak to someone that speaks "Fluent" English and actually cares if I get good service or not.
    I am older and I like basics with no change. So, these are the features I want on my new phone.
    A phone with a 3 megapix are larger camera with video.
    A phone with a touchscreen and a query keyboard.
    I want a speak to text feature. The last phone had it but I have been told that a app can be put on a phone to do it if it doesn't have it..
    I haven't never had any apps downloaded on my phone but still want options for some.
    A phone that has GPS.
    These are the main features I have got to have. Nothing else matters. Can anybody help a elderly old man find a basic phone with these features?
    I would greatly appreciate any input from Verizon Users about Verizon's Customer Service Department and any suggestions for a good phone under $50. Of course I am not looking for necessarily a new phone with a lot of extras. Thanks and have a "Wonderful and Blessed Day". Chris

    The docs haven't been moved over to the 8.1 docsite, but the 7.0 docs
    for campaigns are still pretty much valid in 8.1. Look at:
    http://e-docs.bea.com/wlp/docs70/dev/cmpaign.htm#998197
    for more information.
    Basic answers:
    1. You can't from a campaign. It will always batch emails in the database.
    2. Use the bea/weblogic81/portal/bin/mainmanager.bat|sh script, which
    uses the com.bea.p13n.mail.MailManager command-line java class (JavaDoc
    at http://e-docs.bea.com/wlp/docs81/javadoc/index.html). This can be
    invoked from cron or at for regular email delivery. Also, the emails are
    deposited in the MAIL_* tables
    (http://e-docs.bea.com/wlp/docs81/db/4Schemas.html#1064602), so you
    could implement a delivery system from that as well.
    3. There are no parameters since the email delivery is invoked from a
    command-line process.
    Greg
    surfboy wrote:
    1.How to disable batch mode email in portal 8.1 Mail Service using
    Campaign?
    2.For batch mode email, when will it deliver?
    3.Where can I admin those parameter besides the fields mapping in
    portal Admin->Campaign Server and Mail Service?

  • Questions about Mail Service and Campaign in Portal 8.1

    1.How to disable batch mode email in portal 8.1 Mail Service using
    Campaign?
    2.For batch mode email, when will it deliver?
    3.Where can I admin those parameter besides the fields mapping in
    portal Admin->Campaign Server and Mail Service?

    The docs haven't been moved over to the 8.1 docsite, but the 7.0 docs
    for campaigns are still pretty much valid in 8.1. Look at:
    http://e-docs.bea.com/wlp/docs70/dev/cmpaign.htm#998197
    for more information.
    Basic answers:
    1. You can't from a campaign. It will always batch emails in the database.
    2. Use the bea/weblogic81/portal/bin/mainmanager.bat|sh script, which
    uses the com.bea.p13n.mail.MailManager command-line java class (JavaDoc
    at http://e-docs.bea.com/wlp/docs81/javadoc/index.html). This can be
    invoked from cron or at for regular email delivery. Also, the emails are
    deposited in the MAIL_* tables
    (http://e-docs.bea.com/wlp/docs81/db/4Schemas.html#1064602), so you
    could implement a delivery system from that as well.
    3. There are no parameters since the email delivery is invoked from a
    command-line process.
    Greg
    surfboy wrote:
    1.How to disable batch mode email in portal 8.1 Mail Service using
    Campaign?
    2.For batch mode email, when will it deliver?
    3.Where can I admin those parameter besides the fields mapping in
    portal Admin->Campaign Server and Mail Service?

  • Questions about web site and HP ePrint Mobile.

    Hi! I have some problems with website www.hpeprint.com and I hope that somebody will help me.
    1. When I try to download my picture on ePrintCenter(Setting), picture is not appear.I've tried so many times with different sizes of pictures but it doesn't work. I use my iMac Computer(MAC OS X V.10.7.4 Lion).
    2. ePrintCenter show wrong Model my printer  and I can't change it. i have HP LaserJet Pro CM1415fnw but hpeprint.com show CM1415fn without "w" and it is important because this models generally similar but have some differences from each other.
    3. I would like to use HP ePrint mobile and software on setup ask me my e-mail but I have a few e-mails and don't know 
    which e-mail I need to put: my hpeprint.com or hotmail.co.uk?
    Please help me to dissolve this problems. Thank you in anticipate for your kind reply.
    Best regards, S.

    Hi,
    The HP ePrint mobile driver require any valid personal email address, tou should use the hotmail one for that purpose.
    Then you will recieve an email with activation code to enter into the ePritn Mobile driver.
    If you configured the HP ePrint Center settings for allowed senders only, make sure the specific email used to activate the app is listed within the allowed senders. You may configure the allowed senders by logging into HP ePrint Center and clickng the  ePrint Settings button,
    Regards,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

Maybe you are looking for

  • Error in updating ALV field catalog in selection

    Dear all, I'm trying to use the standard transaction /SAPAPO/TSKEYFMAIN in order to check the TS values. After filling the selection variant, the system shows the following error: 'Error in updating ALV field catalog in selection' Could you please pr

  • MacBook Pro with Retina Display Wakes Up By Itself

    My MacBook Pro with Retina display wakes up by itself on battery sometime with reason "EC.PME (User)". Any idea what is that? and what causes it? Regards Andrew

  • How do I get the new Flashplayer to work?

    followed all the steps and tried Everything I found in the support. The bar asking if I want to run it at the bottom of the page does pop up right after I accept. and nothing happens.

  • Calling SAP transaction from WebDynpro

    HI, Could someone post a link as to how I may call a SAP transaction from a webdynpro. Will this be an external call to R/3 or can i get it embedded in my dynpro....... Tnks..

  • Noisy mighty mouse click

    I'm using a mighty mouse that came with my iMac in May 2008. Recently the clicking noise when I left click often becomes noisier and clunkier. Any suggestions as to what might be the trouble and solution?