Connect to a web service?

Can someone please tell me how to connect to a web service
and receive the array and display it in AS 2.0? It's more then one
item in the array I will receive. I need to do it by code and can
not use Web Service connector.

I have now added one Web Service Connector and bind it to a
label, this works fine. But, how do I do when the answer from the
web service contains more then one object? I think it have to be
something like this?
for(i = 0; i < WebServerConnector.Items.Length; i++){
WebServerConector
As you can see so have I no clue of how to do this. Can you
pleas help me with this?

Similar Messages

  • An error occurred while trying to connect to a Web service, when InfoPath web enabled form loads.

    Hi Everyone,
    I am getting an error message: An error occurred while trying to connect to a web service, when my InfoPath form tries to load.  The last few days, it only spits this error message in the morning and around 12pm-1pm it resolves itself and the form loads
    fine the rest of the day, oddly enough. 
    A few things about my form:
    1). It is web enabled
    2). The form submits to a form library on the SP server
    3). I use the UserProfileService data connection in the form to auto-populate a few fields
    4). I use a udcx file with correct language stored in the root of the site collection in the data connection library
    5). The form has been working fine until a few days ago
    I noticed while in Central Administration, that the User Profile Service Synchronization is Stopped.  Not sure if this is causing some or all of the problem. If I need to start it I will need to contact my farm administrator to do this, since I do not
    have the service account information.
    Also, I looked thru the log files on the SharePoint server and found the following by searching for the Correlation ID shown when the error comes up, I won't put in everything just the important messages.
    Schema file was already loaded: BuiltInActiveXControls.xsd
    FormServer Partial Trust - Proxy operation invoked in the SHIM process.
    FormServer Partial Trust - Invoking proxy operation for Web service adapter failed with exception Operation is not valid due to the current state of the object. for Url=https://<SP URL>/_vti_bin/UserProfileService.asmx
    Data adapter failed during OnLoad: The custom code in the form cannot be run. This functionality may be deactivated on the server. For more information, contact the server farm administrator.
    The following query failed: GetUserProfileByName (User: , Form Name: Expense Report, IP: , Connection Target: <SP URL>/Data Connections/GetUserProfileByName.udcx, Request: , Form ID: urn:schemas-microsoft-com:office:infopath:Expense-Report:-myXSD-2014-04-11T21-06-32
    Type: DataAdapterException, Exception Message: The custom code in the form cannot be run. This functionality may be deactivated on the server.

    Hi B.,
    You are on the right track. I recommend that you first get the User Profile Synchronization Service started because that itself could be the root cause of the issue.
    If that doesn't fix it then focus your attention on the GetUserprofileByName data connection. I always use my secure store ID for this connection. I add the ID by editing the udcx file and then publishing it again.
    Hope this helps.
    Daniel Christian (MCTS)

  • Laserjet Pro 400 MFP M425DN Can not connect to HP Web Services

    I have a Laserjet Pro 400 MFP M425DN  printer on a network running windows 7 and we Can not connect to HP Web Services. When we use the display on the menu it comes back with error "Internal Processing error, try again or check firmware update"  We installed the new firmware but still get the same message. IF type in our printers IP address into our browser we get the info on our printer but if we go to the HP web services tap and click enable it trys but come back with a "connection error"
    Any ideas?
    Thanks
    Paul

    I just updated my Firmware on this printer today to the latest version dated May 3 2013 and  Web Services
    worked.  Had the same type of problem you had for months and had worked with HP but could never get
    Web Services to work at my location with my Modem/Router. 
    Had tried at other locations and it would work with the old Firmware.  But for some reason it did not at my
    location with the Modem/Router I was using. 
    Again the latest Firmware fixed it.  I tried all the other solutions that I had found on the internet and non of them worked.

  • Cannot submit sharepoint form due to error. An error occurred while trying to connect to a Web service. Please Help!

    An error occurred while trying to connect to a Web service.
    An entry has been added to the Windows event log of the server.
    Log ID:5567
    Correlation ID:4db21044-cbc4-4f2f-8653-d73e5496b891

    check the log file first to get detailed information, go to ULS log file, find the related Correlation ID, you will get the error message, the information you provided is less helpful to know this issue.
    Qiao Wei
    My blog:http://blog.goobol.com

  • An error occurred while trying to connect to a Web service

    In infopath 2013 getting current user through web service getting this error in the browser
    "An error occurred while trying to connect to a Web service"

    Hi Jithendar,
    If you can send the ULS log entries which has that Correlation ID, it would be more helpful.
    The text you send is only the ID of the entries and dont give any clue to us about your problem.
    Best regards,
    Mustafa Yılmaz
    Best Regards, Mustafa Yılmaz MCITP, MCPD | www.mustafa-yilmaz.org | www.sharepointciyiz.biz

  • How to dynamically connect to a web service

    hello
    i wana know how can i connect to a webservices dynamically in java
    i am using MYeclipse i know how to create a web service client but i dnt know how to connect to a web service dynamically ie i give the url of the service at run time and then connect to that service....................
    regards
    Shakeel Abbas

    Shakeel.Abbas wrote:
    how can i connect to a webservices dynamically in java?you can do this following ways:
    *&#963;*    Use [javax.xml.soap|http://java.sun.com/javaee/5/docs/api/javax/xml/soap/package-summary.html] package for invoking web services using Simple Object Access Protocol (SOAP). Using SOAPConnection you can connect and communicate to a webservice via SOAPMessage . [More about SOAP Connection|http://java.sun.com/javaee/5/docs/tutorial/doc/bnbhg.html#bnbhq].
    *&#963;*    Use [java.net|http://java.sun.com/javase/6/docs/api/java/net/package-summary.html] package for invoking web services using Hypertext Transfer Protocol (HTTP). Using HttpURLConnection you can connect and communicate to a webservice.
    Hope this will help.
    Thanks,
    Tejas

  • How to connect to a web service??

    I am banging my head on how to produce the appropriate code
    to connect to a
    web service I created locally.
    I have a local web service:
    http://localhost:8500/cfc/getprojects.cfc?wsdl
    I am trying to figure out how to write a correct
    <mx:WebService> to connect
    to it so I can go on and bang my head on how to then bind the
    results to
    Labels.
    I am attempting to follow the manual on this topic but it
    goes all over the
    place and my newbie mind can't wrap my head around it.
    I tried this:
    <mx:WebService id="get_projects"
    wsdl="
    http://localhost:8500/cfc/getprojects.cfc?wsdl"
    useProxy="false"/>
    </mx:WebService>
    But I keep getting: The prefix "mx" for element
    "mx:WebService" is not
    bound.
    I tried to find out more about it and thought I had to add:
    <mx
    peration name="getProjects">
    <mx:request>
    <projecttitle>????</projecttitle>
    </mx:request>
    </mx
    peration>
    But I have no idea on what to put in the request section per
    each title
    (<projecttitle>
    And anyone show me how to write a correct
    <mx:WebService> statement to be
    able to connect to my web service?!
    And if anyone is really bored:
    The query results in 5 fields of data (project_title,
    p_height, p_width,
    p_type, live)
    How do I then bind the project_title results to a label?
    Wally Kolcz
    Developer / Support

    Hi Wally,
    > I tried this:
    > <mx:WebService id="get_projects"
    > wsdl="
    http://localhost:8500/cfc/getprojects.cfc?wsdl"
    useProxy="false"/>
    > </mx:WebService>
    >
    > But I keep getting: The prefix "mx" for element
    "mx:WebService" is not
    > bound.
    Do you have a namespace declaration for mx in the root tag of
    the file
    that contains the WebService tag? For example, if you're in
    the main
    application file, your root tag should look something like:
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    ...>
    nj
    Flex Builder team

  • Failure to connect to a web service.

    hi guys,
    I am trying to connect to a web service but i keep getting the following errors:
    <faultcode>soap:Server</faultcode>
    <faultstring>Server was unable to process request. --> Value cannot be
    null.
    Parameter name: s</faultstring>
    My guess is that it is to do with converting java unicode to utf-8..
    Please help.

    Can you access that web site via other browser like IE ?
    See http://kb.mozillazine.org/Error_loading_websites - "Error_loading_some_websites"

  • Failed to connect to VMware web service: Invalid keystore

    Hi,
    We have a CPO 2.3.1 that refuses to connect to vCenter (see log extract at the end of the post).
    We recently changed our vCenter server (part of an update to 5.1).
    We tried following workarounds:
    remove and add all platform elements from the portal using SE services
    re import automation packs (the 4 from the Starter Edition v2.3.1.38)
    re set the keystore password
    No change at all...
    Would you have a clue on how to correct that?
    Thank you.
    Regards,
    Pierre
    ||235|2012/10/02 15:46:21.667|6072||||WCF: <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.TraceHandledException.aspx</TraceIdentifier><Description>Handling an exception.</Description><AppDomain>Tidal.Automation.Server.exe</AppDomain><Exception><ExceptionType>Tidal.Scheduler.Common.Communications.CommunicationException, Tidal.Scheduler.Common, Version=2.3.0.0, Culture=neutral, PublicKeyToken=fba593b23cf207cd</ExceptionType><Message>The attempt to connect to (VMware vCenter Server (603)@VMware vCenter Server (603)) has failed due to following error:  Failed to connect to VMware web service: Invalid keystore.</Message><StackTrace>   at Tidal.Automation.Server.JavaAdapterBase.PerformServerAssistedOperation(ServerAssistedOperation operation, TargetConfiguration target, RuntimeUserConfiguration runtimeUser)
       at Tidal.Automation.Server.JavaAdapterBase.PerformServerAssistedOperation(ServerAssistedOperation operation)
       at Tidal.Automation.Engine.Core.Adapter.SuspendableAdapter.&amp;lt;&amp;gt;c__DisplayClass1c.&amp;lt;PerformServerAssistedOperation&amp;gt;b__1b(IAdapter adapter)
       at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction(Guid adapterId, AdapterAction action, Boolean haltingAction, Int32 remainingRetries)
       at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction(Guid adapterId, AdapterAction action, Boolean haltingAction)
       at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction(Guid adapterId, AdapterAction action)
       at Tidal.Automation.Engine.Core.Adapter.SuspendableAdapter.PerformServerAssistedOperation(ServerAssistedOperation operation)
       at Tidal.Automation.Engine.Core.AdapterSystem.PerformServerAssistedOperation(ServerAssistedOperation operation)
       at Tidal.Automation.Server.WebService.AdapterService.PerformServerAssistedOperation(ServerAssistedOperation operation)
       at SyncInvokePerformServerAssistedOperation(Object , Object[] , Object[] )
       at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]&amp;amp; outputs)
       at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc&amp;amp; rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc&amp;amp; rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc&amp;amp; rpc)
       at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)</StackTrace><ExceptionString>Tidal.Scheduler.Common.Communications.CommunicationException: The attempt to connect to (VMware vCenter Server (603)@VMware vCenter Server (603)) has failed due to following error:  Failed to connect to VMware web service: Invalid keystore.
       at Tidal.Automation.Server.JavaAdapterBase.PerformServerAssistedOperation(ServerAssistedOperation operation, TargetConfiguration target, RuntimeUserConfiguration runtimeUser)
       at Tidal.Automation.Server.JavaAdapterBase.PerformServerAssistedOperation(ServerAssistedOperation operation)
       at Tidal.Automation.Engine.Core.Adapter.SuspendableAdapter.&amp;lt;&amp;gt;c__DisplayClass1c.&amp;lt;PerformServerAssistedOperation&amp;gt;b__1b(IAdapter adapter)
       at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction(Guid adapterId, AdapterAction action, Boolean haltingAction, Int32 remainingRetries)
       at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction(Guid adapterId, AdapterAction action, Boolean haltingAction)
       at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction(Guid adapterId, AdapterAction action)
       at Tidal.Automation.Engine.Core.Adapter.SuspendableAdapter.PerformServerAssistedOperation(ServerAssistedOperation operation)
       at Tidal.Automation.Engine.Core.AdapterSystem.PerformServerAssistedOperation(ServerAssistedOperation operation)
       at Tidal.Automation.Server.WebService.AdapterService.PerformServerAssistedOperation(ServerAssistedOperation operation)
       at SyncInvokePerformServerAssistedOperation(Object , Object[] , Object[] )
       at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]&amp;amp; outputs)
       at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc&amp;amp; rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc&amp;amp; rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc&amp;amp; rpc)
       at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)</ExceptionString></Exception></TraceRecord>
    ||236|2012/10/02 15:46:21.667|6072||||An exception that was not of type RhapsodyException was caught while a webmethod call was being made.  This exception has been caught and genericized.
    ||237|2012/10/02 15:46:21.667|6072||||EXCEPTION (Tidal.Scheduler.Common.Communications.CommunicationException): The attempt to connect to (VMware vCenter Server (603)@VMware vCenter Server (603)) has failed due to following error:  Failed to connect to VMware web service: Invalid keystore.
    Stack Trace:   at Tidal.Automation.Server.JavaAdapterBase.PerformServerAssistedOperation(ServerAssistedOperation operation, TargetConfiguration target, RuntimeUserConfiguration runtimeUser)
       at Tidal.Automation.Server.JavaAdapterBase.PerformServerAssistedOperation(ServerAssistedOperation operation)
       at Tidal.Automation.Engine.Core.Adapter.SuspendableAdapter.<>c__DisplayClass1c.<PerformServerAssistedOperation>b__1b(IAdapter adapter)
       at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction(Guid adapterId, AdapterAction action, Boolean haltingAction, Int32 remainingRetries)
       at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction(Guid adapterId, AdapterAction action, Boolean haltingAction)
       at Tidal.Automation.Engine.Core.AdapterLifecycleManager.PerformAdapterAction(Guid adapterId, AdapterAction action)
       at Tidal.Automation.Engine.Core.Adapter.SuspendableAdapter.PerformServerAssistedOperation(ServerAssistedOperation operation)
       at Tidal.Automation.Engine.Core.AdapterSystem.PerformServerAssistedOperation(ServerAssistedOperation operation)
       at Tidal.Automation.Server.WebService.AdapterService.PerformServerAssistedOperation(ServerAssistedOperation operation)
       at SyncInvokePerformServerAssistedOperation(Object , Object[] , Object[] )
       at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
       at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)

    You have an invalid keystore file because the HTTPS certification has changed. You need to delete the old keystore file and restart the CPO server and then reconnect/run something against vCenter.
    There is also a possibility for Adatper Host Framework/java issues that I have seen commonly.
    If you need more help, you'll need to open a TAC case with your services contract please. We normally try to not troubleshoot logs on the forums.
    -Shaun Roberts
    CIAC/CPO Support Team Lead
    [email protected]

  • Is it possible to connect to a web Service(JAX-RPC) with a middlet?

    Is it possible to connect to a web Service(JAX-RPC) with a middlet?

    Hi
    Check this article: http://developers.sun.com/sw/building/codesamples/j2me-client/index.html
    Mihai

  • IP IVR 8.0 connecting on the Web Service.

    Hi Everybody,
    I am trying to connect on the Web Service using Java Classes by JAX-WS and I am having some problems.
    Using NetBeans 7.0 I created a Java application project and I am connecting on the Web service successfully, and I am receiving the Web Service' returns normally.
    Through of NetBeans some classes were created automatically (these classes are "talking" with the Web Service). I created a JAR file with the whole project and I imported it to the IP IVR using the 'Cisco Unified CCX Administration\System\Custom File Configuration'.
    And now if I open the 'Cisco Unified CCX Editor' I can see all classes. I m trying to make a simple test, and it doesn't work.
    I see this error: could not initialize class com.sun.org.apache.xml.internal.resolver.CatalogManager; nested exception is:
                        java.lang.NoClassDefFoundError: Could not initialize class com.sun.org.xml.internal.resolver.CatalogManager(line: 1, col: 1).
    1) Has anybody already connected on the Web Service using Java Classes through the IP IVR?
    2) Does anybody know this error?
    Note: Through the NetBeans I tried to import this class (com.sun.org.apache.xml.internal.resolver.CatalogManager) to the project, but I see another error when I am compiling the project:
    error: package com.sun.org.apache.xml.internal.resolver does not exist
    import com.sun.org.apache.xml.internal.resolver.*;
    Does anybody can help me, please?
    IP IVR - version: 8.0.2.10000-42
    Valber

    Hi everyone,
    "This Linux is boring" - well, you made my day It's amazing to see people making such qualified remarks without even trying to dig deeper scratch the surface.
    Well, Sir, I must inform you it's not the limitation of the platform, it's your attitude. Creating a SOAP client is rather easy for anyone who knows some XML and HTTP - that's basically SOAP is about. IP IVR (all versions, starting 4.0x) knows both XML and HTTP perfectly, out of the box, without the need of programming in Java, let alone, playing around with some wizards in Netbeans.
    To do a SOAP request: first, create an XML, just a plain old XML that is expected by the SOAP server. No need to be shy, populate all the attributes and text nodes, with some meaningful stuff. Upload this XML on to the IP IVR. In your CRS script, do the XSL transformation. Or you know what, just do some text replacement. Take the output. Do a HTTP post. Read the result. Grab the necessary info using an XPATH expression.
    This is not that hard, isn't it?
    G.

  • Problems connecting to php web service

    Hello
    I am pretty raw when it comes to using web services. I am facing a bit of a problem.
    I have been given a url to a web service. http://41.208.61.35/legacyfallback/ws/legacyLifeWS.php?wsdl
    I am trying to connect using cfinvoke:
    <cfinvoke webservice="http://41.208.61.35/legacyfallback/ws/legacyLifeWS.php?wsdl" method="test"  returnVariable="result"> </cfinvoke>
    <cfoutput>#result.test#</cfoutput>
    I keep getting the following error:
    Cannot generate stub objects for web service invocation.
    Name: http://41.208.61.35/legacyfallback/ws/legacyLifeWS.php?wsdl. WSDL: http://41.208.61.35/legacyfallback/ws/legacyLifeWS.php?wsdl. java.io.IOException: Type {http://www.w3.org/2001/XMLSchema}char is referenced but not defined. It is recommended that you use a web browser to retrieve and examine the requested WSDL document to ensure it is correct. If the requested WSDL document cannot be retrieved or is dynamically generated, it is likely that the target web service has programming errors.
    Please can someone assist me in getting around this.
    Have a look at the service url if you need to.
    Ive been at it all day and im ready to pull my hair out!
    Thanks in advance

    Hi
    Ok now i am using the following code:
    <cfinvoke webservice="http://41.208.61.35/legacyfallback/ws/legacyLifeWS.php?wsdl" method="register" returnvariable="registerRequest">
        <cfinvokeargument name="wsUserName" value="delon">
        <cfinvokeargument name="wsUserPass" value="cheketri">
        <cfinvokeargument name="mobileNumber" value="0834064488">                
        <cfinvokeargument name="name" value="delon">        
        <cfinvokeargument name="gender" value="M">
        <cfinvokeargument name="birthDate" value="01-01-2010">
        <cfinvokeargument name="merchantid" value="0">
        <cfinvokeargument name="email" value="[email protected]">
    </cfinvoke>
    and getting the follosing error:
    Web  service operation register with parameters  {mobileNumber={0831727737},name={hansie},wsUserPass={smit},birthDate={01-01-2010},gender= {M},email={[email protected]},wsUserName={delon},merchantid={0}}  cannot be found.
    WHy would that be?
    I checked with the provider and the var names are correct.

  • How to move data connections with SOAP web service in different environments in InfoPath Forms 2010

    Hello,
    I've an InfoPath Form where I've around 10 SOAP web service data connections. They are calling a custom web service for a custom business process. The web service URL has a query string parameter which identifies whether it's a Test web service or the Production
    one. The web service URL looks like this:
    http://server/webservice/wsdl?targetURI=testSPRead (for the Test environment)
    http://server/webservice/wsdl?targetURI=ProdSPRead (for the Production environment)
    When I develop the form in Dev environment, I use the Test web service URL and save the data connection as UDCX files in the data connection library. After completing the development, when I deploy this Form in Production, I update the URL in the UDCX
    file in the Production data connection library, but when I run the Form in Production, it throws error 'Error occurred in calling the web service'. After doing more research, when I extracted the XSN file and opened Manifest.xsf file in Notepad, I found the
    references of 'testSPRead' parameter.
    So, in the UDCX file the web service URL is '/targetURI=ProdSPRead' but in the Manifest.xsf file, there is a reference of Test web service parameter which is 'testSPRead' and that's why it's throwing error.
    For testing purpose, I updated the Manifest.xsf file and replaced all the occurrences of 'testSPRead' to 'ProdSPRead' and also updated all the relevant files of the data connections (like XML, XSF etc.) and saved the Manifest.xsf as Form.xsn and deployed
    in Prod and it worked.
    The question is - is this the right way of doing it? There should be a simple method in such cases where web service has conditional parameter to identify the Test and Production web service.
    Does somebody know what is the right way of doing it? I also thought of adding 'double' data connections - one set of Test and another set of Production and call them by identifying the current SharePointServerRootURL, but that's a lot of work. I've 10 web
    service data connections in my Form and in that case I'll be having 20 data connections and setting their parameters in different Rules is too much work.
    Please advise. It's very important for me!
    Thanks in advance.
    Ashish

    Thanks for your response Hemendra!
    I hope Microsoft improves this thing in subsequent patches of InfoPath 2010 or InfoPath 2013 because I don't think this is a very special requirement. This is failing the purpose of having UDCX files for data connections. Why the WSDL's parameter value
    is being written in the Manifest.xsf and other XSF and XML files. InfoPath should always refer the URL and parameters from the UDCX files.
    --Ashish

  • Certificate error while connecting to multiple web service

    I am having a web service test client through which I can connects and get reports from multiple web services.
    In Development unix box, we are using "self-signed certificate" using keystore type JKS. In Production server, we are using certificate from CA.
    The web service is running in Development and in Production.
    Now I have developed single test client with a drop down selection for different web services. For example, if we select "Development", the request will go the development web service and if we select "Production", the request will go to Production web service.
    Now while connecting to Develpment service, we are settings the below certificates details Because we are using the self signed certificate.
    System.setProperty("javax.net.ssl.keyStore",keyStoreFileLocation);
    System.setProperty("javax.net.ssl.keyStorePassword",keyStorePassword);
    System.setProperty("javax.net.ssl.keyStoreType", keyStoreType);
    System.setProperty("javax.net.ssl.trustStoreType",trustStoreType);
    System.setProperty("javax.net.ssl.trustStore",trustStoreFileLocation);
    System.setProperty("javax.net.ssl.trustStorePassword",trustStorePassword);
    I am clearing the System properties using the System.clearProperty() while pointing to Production service. because in Production we are using the CA certificate from Thawte so these details are not required at all and our JRE (java 5) is pre configured to support that CA certificate.
    I am using Resin-2.1.12, axis1.2 and java5.
    Now the problem is
    (1) for the first time, when I send the request to Production Service URL, the report gets generated. For the next time when we are running against Development, it's giving below certificate error.
    sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    (2) Now restart resin and run the test client against Developemnt service URL, here report gets generated and for the next time, run the test client against Production, it's giving the certificate error.
    So for the 2nd request, it always gives the error irrespective of the web service instance selected.
    Please suggest ....thanks in advance.

    Hi  ,
    No, due to the issue is happening only on one computer.
    The error "(401) Unauthorized" usually indicates that the connection has been established but the permission check fails.  InfoPath Form Services uses the application pool identity of the web
    application to connect to resources.
    Does the account  which login the computer have permission to connect to User Profile Service Application?
    For a workaround, you can go to IIS Manager , set the User Profile Application Pool to Anonymous Access and try again.
    Also you can have a look at the blog:
    http://sharepointconnoisseur.blogspot.in/2011/04/how-to-resolve-401-unauthorized-error.html
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • 401 - Unauthorized error while connecting to userprofile web service in InfoPath 2010

    Hello,
    I have 2wfe (NLB), 2app, 1db farm.
    Everything is working fine except for one computer! I have several InfoPath forms, they have custom webservices and userprofile web service. They work without any problem, but there is one computer that gives me 401-Unathourized Error! I'm not sure it is
    double hop issue because there is no other user/computer we are having a problem!
    I checked several blogs, they refer to hosts file, but not sure because why is it happening only on one computer?
    I have hosts files refers to 127.0.0.1 webapp .
    What could be the issue? I have other Service Apps are working without any issues.
    Could you please help me?
    Thank You
    Orrin

    Hi  ,
    No, due to the issue is happening only on one computer.
    The error "(401) Unauthorized" usually indicates that the connection has been established but the permission check fails.  InfoPath Form Services uses the application pool identity of the web
    application to connect to resources.
    Does the account  which login the computer have permission to connect to User Profile Service Application?
    For a workaround, you can go to IIS Manager , set the User Profile Application Pool to Anonymous Access and try again.
    Also you can have a look at the blog:
    http://sharepointconnoisseur.blogspot.in/2011/04/how-to-resolve-401-unauthorized-error.html
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

Maybe you are looking for