Web service connection pooling question

I have a web service running on a Win2003 machine. I am accessing it using a
client implemented in an EJB. The server is running Weblogic 8.1 SP2. It
works, but there are three things I would like to implement
1) Connection timeouts. i.e. If the web service client attempts to connect
and does not get any response back, such as when you try to access a machine
at an address that does not exist. Note: I am already using
setProperty("weblogic.webservice.rpc.timeoutsecs", "2") and
bindingInfo.setTimeout(2) to set a read timeout (and this works).
2) Connection pooling. The web service endpoint is reached using SSL, and
establishing an SSL connection is expensive in terms of CPU and network
latency. Can I pool a certain number of connections, and then use them when
I access the web service? This would be faster than creating a new
connection each time. Currently, I have one line of code that invokes the
method on my web service and stores the result in an object. Any ideas?
3) Connection limiting. I want to limit the maximum number of simultaneous
invocations of my web service by this particular WebLogic instance. Does
WebLogic allow me to do this?
Thanks in advance.

I have used connection pooling in tomcat using a servlets init method to set up the pool, but I am not sure how I could incorporate something similar with my web service. Maybe I'm just confused as to if a webservice is created when it connected to or does it live at the endpoint untill the container shuts down??!!

Similar Messages

  • The reporting service web service connection pool reached the max pool size

    I got a problem that it throw an exception "The timeout peroid elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connection was in use and max pool size was reached."
    The satuation is our service use 15 thread to render report, but sometimes we met such exception I list above. I didn't change any configuration in rsreportserver.config, and it seems the connection to reportserver database from reporting service web
    service was not disposed.
    Is there any configuration I can modify to fix this issue?

    Hi Dexter,
    In your case, we can try to increasing the size of the connection pool to resolve the issue. By default, the Max Pool Size is 100. You can refer to the similar issue below:
    http://social.msdn.microsoft.com/Forums/en-US/c57c0432-c27b-45ab-81ca-b2df76c911ef/timeout-expired-the-timeout-period-elapsed-prior-to-obtaining-a-connection-from-the-pool?forum=adodotnetdataproviders
    Since the issue is related with ADO.NET. I suggestion you post the question in the following forum:
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=adodotnetdataproviders
    It is appropriate and more experts will assist you.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Closing stateful web service connections

    Hi All,
    I've created a staeful web service(in ABAP) and we are doing load tests for 50-100 concurrent users on this webservice.
    After some time we are getting invalid response time exceptions while calling the web service.
    In transaction SM04 , we observed all the (HTTP connections)stateful connections are opened and after reaching  1000 users its anot allowing further webservice calls.
    How can we close the staeful web service connections  . I am cosuming this web service in java.
    I've created  standalone proxy .
    Please let me know.
    Thanks,Anilkumar

    hi,
    this is a very interesting question. Since I didn't know how the WAS ABAP actually supports stateful webservices at all I did research it a little. It seems that there is no standard for stateful webservices in existence (yet?). So there seem to be two mechanisms actually used to maintain session (in the world not SAP), one by (mis)using WS-Adressing and the other one by simply using HTTP sessions (cookies). Using WS-Addressing would be reflected in the WSDL which isn't the case (Rel. 7.0). So this must be achieved by HTTP session cookies.
    In HTTP session management there is, AFAIK, no mechanism to allow the  client to explicitly close a server session. Usually the client destroys it's session and the corresponding server session simply times out because it is not called for a certain amount of time.
    Second, IMHO, such a session is not much good for (apart from getting rid of successive authentication) as long as the application cannot access the session information. I am not aware how a function module underlying a webservice can access this session information.
    In conclusion, I would be very interested if you could share a bit on how youse stateful connections and what you can achieve with it.
    regards, anton

  • "Unable to load URL" - SQL Server 2005 DB Web Service Connection

    Hi ,
    I am using XCelsius version 5.0.0.99 to create dashboards connecting to SQL Server 2005.
    Find below the details of the steps -
    1. Created a web service within SQL Server 2005 database.
    2. Copied the WSDL URL.
    3. In XCelsius 2008 -> Data Manager -> Web Service Connection, pasted the URL in the WSDL URL input box and clicked "Import" to import the methods. At this point I am getting "Unable to load URL" .
    Am I missing any step ?
    Any suggestion would be highly appreciated.
    Note : I have tested the web service by using it in a ASP.Net project and works fine.
    Thanks
    Chitra

    Hi,
    Error :unable to Load URL occurs" because Crystal xcelsius only support single schema web service created from Query as a web service and Flynet tool available in xcelsius 2008.
    The reason:
    All the web service create from Sql 2005 ,PHP script produced multiple scehma web service and crystal xcelsius only support single schema web service which can be created from Query as a web service or Flynet.
    Please revert in case of any queries.
    Regards
    Kekti Fadnavis

  • Mapping input values for a web service connection to a range of cells

    I've created a web service connection in Xcelsius data manager. My web service requires an array of integer as input parameter. How do I map input values for a web service connection to read from a range of cells in the spreadsheet, e.g. $A$2:$A$20, in similar way of mapping output values to write to a range of cells in the spreadsheet?
    For output values of the web service, I can specify to map the output values to write to a range of cells. However, it doesn't seem to work for reading the input values.
    I can map input values for each node to a single cell, e.g. $A$2, in the spreadsheet. However, when I set the "Read From" field to a range of cells, e.g. $A$2:$A$20, it only reads in the first value in the range.
    Is there any way that we can do this mapping for input values as we do for output values?
    Your assistance is very much appreciated.
    Regards,
    Van

    Van,
    There is a workaround for that...
    Example:
    My Webservice accepts input data range in a specific format with " :" symbol, i.e. 072008:082008
    Now what i do is
    A1 = 072008
    A2 = 082008
    A3 = CONCATENATE(A1,":",A2)
    so A3 = 072008:082008
    Now i map the input value in web service to cell A3
    P.S have 2 input box components and map it to cells A1 and A2, i.e you are giving users an  option to enter the range of values...then web service will capture the range and refreshes data with the range of values user entered.
    hope this helps..
    -Anil

  • Difference beetween QAASW and Web Service Connections

    Hi everybody,
    I'm trying to install a connection between Xcelsius and a QaaWS I created, but it doesn't work. In the list of the different connections available in the Xcelsius Connections Manager, the "QaaWS" connections doesn't appear. Instead of that I can choose the "Web Service Connections" type.
    Do you think this little difference can't be the source of my big problem?
    If not, do any of you would like to risk an explanation about this odd pheanomenom (which seems to belongs to the category of the surnatural things thats happens when I even try to undertake a slight complex task in my Business Objects environnment)
    In advance , thanks a lot ( why "in advance"? Because I feel, I'll get an answer, as an old bohemian woman who's suddenly poped in my office today told me one you would light the darkness of my interrogations)
    Bye bye !!

    Hi Meryll,
    As you have already noticed, invoking a QaaWS URL into the standard Web Service Connection will NOT fire, regardless if everything is configured correctly.
    I would assume that this is by design due to the fact that QaaWS Web Services are fetching data out of a BOE server.  As such, anything that has to do with BOE connectivity (LiveOffice, QaaWS, Open/Save/Import/Export to Enterprise) is only available in the Xcelsius 2008 Engage Enterprise edition.
    Thanks.

  • Dynamic columns on output values for a Web Service connection

    Hello,
    I'm trying to create a web service connection that is similar in response to the XML data connection in that i don't want to fix the number of columns per row down in the WSDL. i.e. i want to create an array of columns:
      <xsd:complexType name="XLRowDef">
        <xsd:sequence>
          <xsd:element name="column" curashared:shortname="c" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
        </xsd:sequence>
      </xsd:complexType>
    and for the user of the WSDL (the guy who will design the dashboard) to be able to fix and link the number of columns when he designs the dashboard. I was hoping the button would reveal itself in the "output values" box much like it does in the "input values" but no matter how i twist the xsd - no joy. I also tried just linking the column element to multiple excel columns but still fixes to the first column in the range. Can this result be achieved in Xcelsius short of using an XML data connection?
    Regards,
    Gilbert

    Van,
    There is a workaround for that...
    Example:
    My Webservice accepts input data range in a specific format with " :" symbol, i.e. 072008:082008
    Now what i do is
    A1 = 072008
    A2 = 082008
    A3 = CONCATENATE(A1,":",A2)
    so A3 = 072008:082008
    Now i map the input value in web service to cell A3
    P.S have 2 input box components and map it to cells A1 and A2, i.e you are giving users an  option to enter the range of values...then web service will capture the range and refreshes data with the range of values user entered.
    hope this helps..
    -Anil

  • Calculations in Xcelsius using data generated by a Web Service Connection

    Hi,
    I have set up a web service connection to pull in 4 columns of data: 1. CATEGORY  2. SUBCATEGORY 3. PRODUCT TYPE   4.#OFCALLS.  There will be anywhere from 1 to 500 rows of data depending on day of week and time of day.  The web service sorts the list by #OFCALLS descending. The OUTPUT VALUES of the web service connection are mapped to cells A19:D518.
    Formulas in the spreadsheet take the Top 10 from the list and populate it to cells  A4:D13.  A formula in cell D15 sums the #OFCALLS for the entire web service connection output (A19:D518).
    The data in A4:D15 is mapped to a spreadsheet table on my canvas.   When the report generates, the data from the TOP 10 of the web service connection populates properly, but the cell that should reflect the TOTAL#OFCALLS (D15) shows zero.
    Is it not possible to do additional calculations in the spreadsheet based on data generated by the web service connection?  A major difference between using an XML Map and a Web Service Connection is the XML Map actually populates the spreadsheet with the new data when it is refreshed.  The Web Service connection data never actually appears in the spreadsheet itself, even though it updates to the appropriate vessel on the canvas.   This makes me think that no additional calculations can be done in the spreadsheet based on the web service connection data.
    Can anyone tell me if that is correct?  If so, then the web service connection would also have to pull in the TOTAL#OFCALLS along with the other data.   This would also seem to greatly limit what you could do with data generated by a web service connection, so I am hoping I am wrong and just don't understand how to do this.
    Can anyone clarify this for me?  If I failed to give any pertinent info let me know what it is, and I will update my post.
    Thanks!

    I have seen similar behavior as well.  I have live data coming into Xcelsius from a data connection. 
    A supported Excel formula
    =IF(ISBLANK(J2),I2,VALUE(TODAY()-J2))
    is then applied to one of the columns to create an additional derived column.
    Taking a snapshot of the data shows that the derived column is being populated, however the controls I've tried hooking up to the derived column (charts and labels) are always empty.
    Information on whether this is supported would be appreciated.
    Thank you,
    David

  • Error with web services connection to B1 DI API

    We are attempting to utilize the web services connection to SAP Business One and are running into difficulty.  Below are the particulars:
    -   We are attempting to make a web services connection to B1 using PHP on Linux.
    -   We are able to establish a session, but not able to make a successful web services request.
    -   The attempted action is to add a Business Partner
    -   Error we are receiving:
    SoapFault exception: Not Found in /var/www/test.php:83 Stack trace: #0 : SoapClient->__doRequest('__call('Add', Array) #2 /var/www/test.php(83): SoapClient->Add(Array) #3
    -         We are also able make a successful web services request to the same B1 server using ASP from Windows.
    -         Once we establish a session through PHP / Linux, the DI Server will not respond to either PHP or ASP on Windows
    Any advice or suggestions would be appreciated.

    Russell,
    Since you are getting a "SoapFault Exception", you must be trying to use SOAP messaging.  The DI API does not understand SOAP messages.  You would need to use the DI Server (SDK Help has information on DI Server) for SOAP based messaging and in turn you may also want to look at the Business One Web Services (B1WS) tool that s located in the Tools section of the SAP Business One main page here on SDN.
    HTH,
    Eddy

  • Slow response when using Xcelsius web service connection witn input values

    We've been very successful in using the Xcelsius Web Service Connection. We've recently moved forward toward using input values when calling a web service and having issues with response time. Without input values, it takes 3 - 6 seconds to retrieve and display the results in Xcelsius, but, when using the input values to the web service, it takes about 27 seconds for Xcelsius to retrieve and display the results.  Does anyone have experience with fixing slow response associated with using input values for a web service connection?

    Hi Sharone,
    What's the version of your Xcelsius and BOBJ server?
    I'm asking because using the last version of BOBJ server (BOXI 3.1 SP 3) you have new services on CMC just to help Xcelsius to work better with WebServices.
    Regards,
    Rodrigo.

  • Web Service Connection in Xcelsius 2008

    I have recently upgraded from 4.5 to Xcelsius 2008 and am having trouble getting the Web Service Connections set up correctly for my QaaWS.
    I have 7 LiveOffice connections in a model that seem to all refresh on load fine and i have already set up a Web Service Connection that picks up the drill through path of what the user has clicked on and used them as input parameters to a QaaWS query.
    I now need to add another Web Service Connection for another QaaWS and i get the following error message;
    "Unable to Load URL"
    I have checked the available QaaWS services using dswsbobje/qaawsservices and the 2 queries appear as i would expect.
    I have checked the dsws.properties file and the user name and password are correct (which i would expect as teh 1st connections works in the Xcelsius model.
    I have restarted the Tomcat server and CMS and this does not cure the problem.
    I have even tried re-installing QaaWS.
    I have installed SP1 fix 1 for 2008. I am currently using XIR2 SP2.
    Can anyone help as sometimes this functionality works and sometimes it does not. The 2 queries i want to use point aty teh ssame database and BO Universe.
    Edited by: Anthony Jones on Jan 8, 2009 12:18 PM

    Hi Anthony,
    You might check that type of the licence type of the user QaaWSPrincipal. I had a problem where the QaaWSPrincipal user was Concurrent Access License while my server was Named User only. Switching to Named User resolved the problem.
    However, I am not sure that this is your issue as the you have one QaaWAS url working. YOu might want to check your URL is available
    try
    http://<name of server>:<Tomcat port number>/dswsbobje/qaawsservices
    This contains a list of all URLs. Finally, you might look at importing the wsdl into other applications to see if the issue is Xcelsius or QaaWS related. You can copy to MS Office InfoPath with steps described below.
    http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_query_as_a_web_service_en.pdf
    Hope this helps
    Alan

  • Web Service Connection on fresh SUM formula is zero

    I am using Xcelsius SP1.  I have a field in the spreadsheet that has the formula "=SUM(H12:H16)".  I am using a Web Service Connection to refresh the data.  Following a refresh from the web service connection the field with the SUM formula is 0.  I have discovered that ff the values in SUM range (in my case H12:H16) are identical to the refrehsed data then the formulas results willl be 0.  If one of the sum values is different from the original values then the sum formula works.  Is this a bug? Is there a work around?

    I had a problem with the data format after getting number-values from my web-service, because every number-value I got was not a number - it was a string.
    so I had to convert all the data in Excel from string to number values. after that everything works fine for me.
    you could try that out....

  • Web Service Connection Date Input Values Converted to Number

    I am using a Web Service Connection that has an input value called 'ModifiedOn' that is a date type.  The problem that I have is that instead of sending a date string like '2008-08-04' it sends a number '39665' as the input to the web service method instead.  Is there a way to force a date string to be returned instead of the number?
    Here is the XML that is being sent to the web service method from Xcelsius:
    <?xml version="1.0" encoding="UTF-8"?>
    <soap:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:n0="http://tempuri.org/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
       <soap:Header />
       <soap:Body>
          <n0:SaveScenerio>
             <n0:dash>
                <n0:Scenerio CreatedBy="1" MedianIncome="54000" ModifiedBy="-1" Deleted="false" Population="56001" Title="Scenerio 5" ModelId="14" Year="2008" Description="" ScenerioId="5" SystemName="Scenerio 5" CreatedOn="39665" ModifiedOn="39665">
                   <n0:Model ModuleId="" Description="" ModifiedBy="-1" Deleted="false" CreatedBy="1" CreatedOn="39665" Title="My First Model EDITED 2" ModifiedOn="39665" ModelId="14">
                   </n0:Model>
                   <n0:RateRevenueResidential RateRevenueTypeId="" CreatedBy="1" NumOfCustomers="34000" NumNewCustomers="12000" RateRevenueId="" Deleted="false" MonthlyAvgUsage="10000" HookupCharge="74" VolumeCharge="0" VolumeRate="0.36" ScenerioId="" ModifiedBy="-1" CreatedOn="39665" FixedRate="20" ModifiedOn="39665">
                      <n0:RateRevenueType RateRevenueTypeId="" Description="">
                      </n0:RateRevenueType>
                   </n0:RateRevenueResidential>
                   <n0:RateRevenueCommercial RateRevenueTypeId="" CreatedBy="1" NumOfCustomers="150" NumNewCustomers="12002" RateRevenueId="" Deleted="false" MonthlyAvgUsage="20000" HookupCharge="75" VolumeCharge="0" VolumeRate="0.37" ScenerioId="" ModifiedBy="-1" CreatedOn="39665" FixedRate="30" ModifiedOn="39665">
                      <n0:RateRevenueType RateRevenueTypeId="" Description="">
                      </n0:RateRevenueType>
                   </n0:RateRevenueCommercial>
                   <n0:RateRevenueIndustrial RateRevenueTypeId="" CreatedBy="1" NumOfCustomers="34" NumNewCustomers="12003" RateRevenueId="" Deleted="false" MonthlyAvgUsage="30000" HookupCharge="76" VolumeCharge="0" VolumeRate="0.38" ScenerioId="" ModifiedBy="-1" CreatedOn="39665" FixedRate="40" ModifiedOn="39665">
                      <n0:RateRevenueType RateRevenueTypeId="" Description="">
                      </n0:RateRevenueType>
                   </n0:RateRevenueIndustrial>
                   <n0:RateRevenueGovernmental RateRevenueTypeId="" CreatedBy="1" NumOfCustomers="6" NumNewCustomers="12004" RateRevenueId="" Deleted="false" MonthlyAvgUsage="40000" HookupCharge="77" VolumeCharge="0" VolumeRate="0.39" ScenerioId="" ModifiedBy="-1" CreatedOn="39665" FixedRate="50" ModifiedOn="39665">
                      <n0:RateRevenueType RateRevenueTypeId="" Description="">
                      </n0:RateRevenueType>
                   </n0:RateRevenueGovernmental>
                   <n0:RateRevenueOther RateRevenueTypeId="" CreatedBy="1" NumOfCustomers="10" NumNewCustomers="12005" RateRevenueId="" Deleted="false" MonthlyAvgUsage="50000" HookupCharge="78" VolumeCharge="0" VolumeRate="0.4" ScenerioId="" ModifiedBy="-1" CreatedOn="39665" FixedRate="60" ModifiedOn="39665">
                      <n0:RateRevenueType RateRevenueTypeId="" Description="">
                      </n0:RateRevenueType>
                   </n0:RateRevenueOther>
                </n0:Scenerio>
                <n0:ErrorMessage>
                </n0:ErrorMessage>
                <n0:Forecast EstSystemCapacityYear4="" Industrial="0" Other="0" RateRevenue="0" EstSystemCapacityYear5="" HookupRevenue="0" CreatedBy="1" OtherRevenue="0" ModifiedBy="-1" CapitalFunds="0" ModifiedOn="39665" OperationsNMaintenanceExpenses="0" GeneralNAdminExpenses="0" OtherExpenses="0" Governmental="0" Deleted="false" ResidentialRates="0" CapitalImprvFundsYear2="0" CapitalImprvFundsYear3="0" CapitalImprvFundsYear4="0" CapitalImprvFundsYear5="0" CapitalExpYear2="0" CapitalExpYear3="0" CapitalExpYear4="0" CustResidential="0" CapitalExpYear5="0" Year="2008" EstSystemCapacityYear1="" Commercial="0" EstSystemCapacityYear2="" CreatedOn="39665" ScenerioId="" EstSystemCapacityYear3="" Mhi="0">
                </n0:Forecast>
                <n0:Revenue CapitalDWSRF="5600" AnnualHookup="4561076" CapitalGovLoan="5600.01" CapitalBusinessLoan="5600.02" CreatedBy="1" CapitalGrant="5601.03" AnnualOperationg="14292490.399999999" ModifiedBy="-1" Deleted="false" OtherInterestIncome="5600" OtherRevenue="5600" CapitalWithdraw="5602.04" ScenerioId="" CapitalOther="5603.05" OtherFeesNServiceCharges="5600" AnnualRate="9731414.399999999" CreatedOn="39665" AnnualOther="16800" ModifiedOn="39665">
                </n0:Revenue>
                <n0:Expense OpsMartriesNSupplies="1000000" CapitalNonFacility="1000000" AdminEngineering="1000000" ModifiedBy="-1" OpsMonitoring="1000000" Deleted="false" CreatedBy="1" OpsTransportation="1000000" AdminConservation="1000000" ModifiedOn="39665" CapitalDebtService="1000000" OpsMisc="1000000" AdminMisc="1000000" OpsUnaccountedWater="1000000" OtherDepreciation="1000000" OpsSalariesNBenefits="1000000" AdminSalareisNBenefits="1000000" OtherDeductionsFeesExp="1000000" OpsPowerNUtility="1000000" AdminOfficeSupplies="1000000" CapitalNewFacilities="1000000" AdminInsurance="1000000" ScenerioId="" OpsChemicalNTreatment="1000000" CapitalOther="1000000" AdminLegalNAccounting="1000000" CreatedOn="39665" CapitalReplacement="1000000" CapitalLeakageRepair="1000000">
                </n0:Expense>
             </n0:dash>
          </n0:SaveScenerio>
       </soap:Body>
    </soap:Envelope>
    Edited by: Aaron Jackson on Aug 7, 2008 10:44 PM

    Hi Aaron,
    You may want to try formatting the cell of "ModifiedOn" to a TEXT format instead of date to get yyyy/mm/dd formatting to appear. 
    It seems that Xcelsius automatically converts any type of date-specific formatting (as specified from Excel) to a date serial, which is what you are seeing here.
    Hope that works.

  • Error in ADF Web Service Connection

    Hello everyone.
    I have the following problem.
    Create a "Web Services Proxy" to consume a Web Services outside the application.
    Web services require authentication and create a Web ADF Services Connection to authenticate, but when you programmatically use the ADF Web Service Connection I get the following error:
    java.lang.NullPointerException
         at java.lang.Class.isAssignableFrom(Native Method)
         at oracle.j2ee.ws.common.jaxws.runtime.GenericJavaType.create(GenericJavaType.java:97)
         at oracle.j2ee.ws.common.jaxws.runtime.GenericJavaType.create(GenericJavaType.java:118)
         at oracle.j2ee.ws.common.jaxws.runtime.OperationMappingModeler.processParameters(OperationMappingModeler.java:268)
         at oracle.j2ee.ws.common.jaxws.runtime.OperationMappingModeler.processMethod(OperationMappingModeler.java:155)
         at oracle.j2ee.ws.common.jaxws.runtime.ServiceEndpointRuntimeModeler.buildRuntimeModel(ServiceEndpointRuntimeModeler.java:114)
         at oracle.j2ee.ws.client.jaxws.WsClientProxyFactory.getRuntimeMetadata(WsClientProxyFactory.java:69)
         at oracle.j2ee.ws.client.jaxws.WsClientProxyFactory.createProxy(WsClientProxyFactory.java:126)
         at oracle.j2ee.ws.client.jaxws.WsClientProxyFactory.createProxy(WsClientProxyFactory.java:106)
         at oracle.j2ee.ws.common.jaxws.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:219)
         at oracle.j2ee.ws.common.jaxws.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:249)
         at oracle.adf.model.connection.webservice.impl.WebServiceConnectionImpl.getJaxWSPort(WebServiceConnectionImpl.java:399)
         at edu.esade.portal.wsclient.wordpress.WordPressCliente.getDatosBlogsBndQSService(WordPressCliente.java:62)
         at edu.esade.portal.wsclient.wordpress.WordPressCliente.getDatosBlogsPortClient(WordPressCliente.java:86)
         at edu.esade.portal.wsclient.wordpress.WordPressCliente.getBlogs(WordPressCliente.java:105)
         at edu.esade.portal.wsclient.wordpress.WordPressCliente.main(WordPressCliente.java:167)
    The code I use to get the connection is:
    private DatosBlogsBndQSService getDatosBlogsBndQSService () {
    Context ctx;
    try {
    ctx = ADFContext.getCurrent().getConnectionsContext();
    WebServiceConnection wsc = (WebServiceConnection) ctx.lookup("DatosBlogsBndQSService");
    System.out.println("wsc:"+wsc.toString());
    DatosBlogsBndQSService proxy = wsc.getJaxWSPort(DatosBlogsBndQSService.class); // line 62
    return proxy;
    } catch (NamingException e) {
    e.printStackTrace();
    return null;
    Finalmente la configuración del recurso es:
    <Reference name="DatosBlogsBndQSService" className="oracle.adf.model.connection.webservice.impl.WebServiceConnectionImpl" credentialStoreKey="DatosBlogsBndQSService" xmlns="">
    <Factory className="oracle.adf.model.connection.webservice.api.WebServiceConnectionFactory"/>
    <RefAddresses>
    <XmlRefAddr addrType="WebServiceConnection">
    <Contents>
    <wsconnection description="URL-XXX" service="{URL-XXX}DatosBlogsBndQSService">
    <model name="{URL-XXX}DatosBlogsBndQSService" xmlns="http://oracle.com/ws/model">
    <service name="{URL-XXX}DatosBlogsBndQSService">
    <port name="DatosBlogsBndQSPort" binding="{URL-XXX}DatosBlogsBnd">
    <soap username="transportUserName" password="transportPassword" addressUrl="URL-XXX" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
    <operation name="consultarPosts">
    <soap soapAction="URL-XXX" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
    <output name=""/>
    <input name=""/>
    </operation>
    <operation name="listarBlogs">
    <soap soapAction="URL-XXX" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
    <output name=""/>
    <input name=""/>
    </operation>
    </port>
    </service>
    </model>
    </wsconnection>
    </Contents>
    </XmlRefAddr>
    <SecureRefAddr addrType="transportPassword"/>
    <SecureRefAddr addrType="transportUserName"/>
    </RefAddresses>
    </Reference>
    When the Web Service did not require authentication to work without problem, the error arises when you need to login and use the "ADF Web Services Connection", is there some other way to log in using the Web Service proxy client directly?
    Any help is welcome.
    Regards.
    Marcelo

    Hi Shay.
    I not use Web service data control, I use only Web Service proxy and the client class for populate data to view object programmatically.
    However, in a test class do I have this:
    public class WordPressCliente {
    private final static Logger logger = Logger.getLogger(WordPressCliente.class);
    public WordPressCliente() {
    super();
    private DatosBlogsBndQSService getDatosBlogsBndQSService () {
    Context ctx;
    try {
    ctx = ADFContext.getCurrent().getConnectionsContext();
    WebServiceConnection wsc = (WebServiceConnection) ctx.lookup("DatosBlogsBndQSService");
    System.out.println("wsc:"+wsc.toString());
    DatosBlogsBndQSService proxy = wsc.getJaxWSPort(DatosBlogsBndQSService.class);
    return proxy;
    } catch (NamingException e) {
    e.printStackTrace();
    return null;
    private DatosBlogsPT getDatosBlogsPortClient() throws Exception {
    URL baseUrl = DatosBlogsBndQSService.class.getResource(".");
    URL url = new URL(baseUrl,ArchivoUtil.getInstance().getPropiedad("ws.integracion.wordpress"));
    QName qName = new QName("http://esade.edu/soa/servicio/DatosBlogs/v01_00","DatosBlogsBndQSService");
    System.setProperty("http.username", "atsistemas");
    System.setProperty("http.password", "atsistemas2011");
    DatosBlogsBndQSService integracionWordpress = new DatosBlogsBndQSService(url,qName);
    DatosBlogsPT wordpressPT = integracionWordpress.getDatosBlogsBndQSPort();
    if (ArchivoUtil.getInstance().getPropiedad("ws.integracion.wordpress.autenticacion").equals("true")) {
    System.out.println("hay que validar el WS");
    BindingProvider bp = (BindingProvider)wordpressPT;
    bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, ArchivoUtil.getInstance().getPropiedad("ws.integracion.wordpress.usuario"));
    bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, ArchivoUtil.getInstance().getPropiedad("ws.integracion.wordpress.clave"));
    DatosBlogsPT wordpressPT = getDatosBlogsBndQSService().getDatosBlogsBndQSPort();
    return wordpressPT;
    private DatosItemsPT getDatosItemsPortClient() throws Exception {
    DatosItemsBndQSService datosItems = new DatosItemsBndQSService();
    DatosItemsPT itemsPT = datosItems.getDatosItemsBndQSPort();
    if (ArchivoUtil.getInstance().getPropiedad("ws.integracion.items.autenticacion").equals("true")) {
    BindingProvider bp = (BindingProvider)itemsPT;
    bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, ArchivoUtil.getInstance().getPropiedad("ws.integracion.wordpress.usuario"));
    bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, ArchivoUtil.getInstance().getPropiedad("ws.integracion.wordpress.clave"));
    return itemsPT;
    public List<Blog> getBlogs() throws Exception {
    List<Blog> lista = null;
    try {
    DatosBlogsPT cliente = getDatosBlogsPortClient();
    FiltroBlogs filtroBlog = new FiltroBlogs();
    ListarBlogsInput blogInput = new ListarBlogsInput();
    HeaderESADE header = new HeaderESADE();
    header.setUsernameESADE("");
    header.setParentSOAComponent("");
    blogInput.setFiltroBlogs(filtroBlog);
    lista = cliente.listarBlogs(blogInput,header).getBlogs().getBlog();
    } catch (ClientTransportException e) {
    logger.error(e.getStackTrace());
    e.printStackTrace();
    ADFUtils.showMessage(Constantes.TITULO_01, Constantes.MENSAJE_01);
    return lista;
    public List<Post> getPostsPorBlog(String idBlog) throws Exception {
    List<Post> lista = null;
    try {
    DatosBlogsPT cliente = getDatosBlogsPortClient();
    ConsultarPostsInput postInput = new ConsultarPostsInput();
    FiltroPosts filtroPost = new FiltroPosts();
    HeaderESADE header = new HeaderESADE();
    filtroPost.setBlogId(new Long(idBlog).longValue());
    filtroPost.setFechaInicio(FechaUtil.getFecha());
    filtroPost.setFechaFin(null);
    header.setUsernameESADE("");
    header.setParentSOAComponent("");
    lista = cliente.consultarPosts(postInput,header).getPosts().getPost();
    } catch (ClientTransportException e) {
    logger.error(e.getStackTrace());
    ADFUtils.showMessage(Constantes.TITULO_01, Constantes.MENSAJE_01);
    return lista;
    public static void main(String[] args) {
    WordPressCliente wordPressCliente = new WordPressCliente();
    try {
    Iterator i = wordPressCliente.getBlogs().iterator();
    while (i.hasNext()) {
    Blog blog = (Blog)i.next();
    logger.debug("Blog Id:" + blog.getId() + " url:" + blog.getUrl() + " nombre:" + blog.getNombre() + " publico:" + blog.isPublico() + " lang:" + blog.getLang());
    try {
    Iterator j = wordPressCliente.getPostsPorBlog(Long.toString(blog.getId())).iterator();
    while (j.hasNext()) {
    Post post = (Post)j.next();
    logger.debug(" Post Id:" + post.getId() + " autor:" + post.getAutor() + " titulo:" + post.getTitulo() + " size ambitos:" + post.getAmbitos().getAmbito().size() +
    " tags:" + post.getTags());
    } catch (Exception e) {
    e.printStackTrace();
    } catch (Exception e) {
    e.printStackTrace();
    }

  • Web Service connection timeout

    How to configure the web service connection timeout properties (eg. weblogic.wsee.transport.connection.timeout) in configuration files rather setting them at client's stub code?
    Help is appreciated.

    This might be due to following reasons.
    Please check whether firewall exist between Pi and external system. If so check with  network team weather port or connectivity is established between PI server and external system. This should be the main reason.  Also check the target URL and see whether you can able to consume the webservice directly from Soapui without PI.  If your workstation is within PI's landscape and you see the same timed out error, then the network connectivity is the issue.  Ask them to enable the port.

Maybe you are looking for

  • Internal Server Error When Trying to Open Flex Builder Tutorials

    Anyone know what I need to set up to run the tutorials in Flex Builder - get an internal error server (500) when trying to open up the tutorials listed on the start page. I can open, compile and run projects . Thanks

  • Plz give me work flow of film editing in Final Cut Pro..

    Hello Everyone... I am basically a Avid Film Editor. Past 2 years I am using Final Cut Pro. Recently I finished Final Cut Pro Level 1 & T3. Right now I am working as a App. Support Engineer specially for Final Cut Pro . I want know the work flow of f

  • Hi Friends, need help on maintaining vendor classification data in MDG

    Hi All, I have a requirement to handle classification data for Vendor, How do I do that as MDG does not provide any standard way of handling that for Vendor.Can anyone please guide.Attached a file for your understanding. Regards, ArnMitz javascript:;

  • Can't type while Acrobat plug-in is active!

    I'm currently using Firefox 3.6.16 with Acrobat 10.0.1.434 on Windows 7, and I'm encountering the following problem. Whenever I load a PDF file in Firefox, I can't type into the URL bar, the search bar, or on forms on pages loaded in other tabs. It's

  • How to manage automated batch processing with save for web?

    Hi All, This has been driving me insane. I am currently in PhotoshopCC and I know that several versions back I had no problems doing this but now I cannot create a generic action that I can then have save out to different folders. What I used to be a