How 2 connect you web service with your servlet

I created a webservice in netbeans and i also created a client side where clients get to view the site but i have a problem i can't connect my webservice to my client as and i can't connect my webservice to my database. please help me if you can by showing me the coding

Hi , I want to intercept the webservice call using a servlet ..
how would i do this

Similar Messages

  • How to create a web services with Developer Studio?

    hi all,
    I would like to know how can I create a Web Services with Developer Studio 7.0, but a try because I could not publish it to consume.
    thanks!

    Thanks for your answers
    Web Services try when I get the following error:
    http://img386.imageshack.us/my.php?image=errorms9.jpg
    <--Localization failed: ResourceBundle='com.sap.caf.rt.resources.CAFExceptionResources',
    ID='MMR_BO_NOTFOUND', Arguments: ['Prueba2Service']-->
    I do not know what the cause of error
    thanks

  • Anyone have trouble connecting to web services with CF10?

    I'm trying to connect to InDesign server running in the same box @ http://localhost:18383/service?wsdl and this gives me the error "Web service operation RunScript with parameters ... cannot be found". I tried toggling web service version in CF admin to 1 and 2. I tried with CF updates, without updates. Tried in a different box, it is the same.
    When I dump my web service object, before invoking the function, it display WSDL structure correctly with all functions in it, including "RunScript". So I guess, create object part worked correctly.
    Uninstalled CF10, Installed CF9 in the same box, it works fine. 
    Has anyone experienced something similar? Is there any limitation in TomCat executing web services in a high port (18383)?
    Update:
    I send the SOAP request to InDesign server manually using CFHTTP and it works in CF10. Seems like CF10 somehow did not respect the WSDL instructions.

    Nataliya,
    Is the printer connected to a wireless network? 
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • How to access SOAP web service with authentication, HTTP basic Authentication

    Dear All
    i use Flash Builder 4.5, flex 4..1, i am developing a flex client to soap webservices hosted over Glassfish 2 Java server, the web services is protected by HTTP Basic Authentication, everythime i run my code , the prombt for username and password show up, i need to pass user name and password through action script, i followed the flollowing (but was for http web service, not soap) but really did not work.
    http://stackoverflow.com/questions/490806/http-basic-authentication-wi th-httpservice-objects-in-adobe-flex-air
    http://forums.adobe.com/message/4262868
    private function authAndSend(service:HTTPService):void
            var encoder:Base64Encoder = new Base64Encoder();
            encoder.insertNewLines = false; // see below for why you need to do this
            encoder.encode("someusername:somepassword");
            service.headers = {Authorization:"Basic " +encoder.toString()};                                               
            service.send();
    Also i noticed in debug mode, always that WARNNING raised up
    Warning: Ignoring 'secure' attribute in policy file from http://fpdownload.adobe.com/pub/swz/crossdomain.xml.  The 'secure' attribute is only permitted in HTTPS and socket policy files.  See http://www.adobe.com/go/strict_policy_files for details.
    any idea ?

    Hello,
    I don't know if this could help.
    Another way to connect to a web service by SOAP and WSDL is to click on the Data/Services panel, then click on "Connect to Data/Services" and then select the "Web Service" (WSDL) icon. This could help as well.

  • How to connect to web services from iOS to get list using anonymous access

    Hello
    This is a public facing web site that I would like to have access to a list file to get data in an iOS app however I get 403 forbidden because I do not have a username and password.  
    How can I get this list with anonymous access?  
    Under my admin account I published this list as a web page for anonymous access using a data view but I would also like the same data for my iOS app. 
    Thank you for any help and direction.

    yes, it is.  
    List
    Anonymous users can:
    View Items
    This site collection is hosted and the permission level for anonymous users is set to entire web site.
    here's the error & url I get off of IE when clicking http://myportal/_vti_bin/listdata.svc/MyList 
    http://myportal/_layouts/error.aspx?ErrorText=Object%20reference%20not%20set%20to%20an%20instance%20of%20an%20object%2E
    Error
    An error has occurred on the server.
    Troubleshoot issues with Microsoft SharePoint Foundation.
    Correlation ID: 52edf46c-682d-426e-b04c-8a8bb0a92040
    Date and Time: 7/29/2014 12:09:41 PM

  • How get data from Web Service with token?

    Can I get data from Web Service made with Java?
    This WS has a Token.
    Any ideas o reference?
    Regards!
    Fran Díaz | twitter: @frandiaz_ | Blog: {geeks.ms/blogs/fdiaz/} | Communities: {onobanet.es} & {secondnug.com}

    We've now added this ability to Web.Contents. You can say something like
    Web.Contents("http://my.web.service/1", [Headers=[#"The-Token"="0a0138ef2d"]])
    and it will pass a header with the key "The-Token" and the value "0a0138ef2d" as part of the HTTP request. For security reasons, this will only work for anonymous web requests.
    The December preview can be downloaded from
    http://www.microsoft.com/en-us/download/details.aspx?id=39933&WT.mc_id=blog_PBI_Update_PowerQuery

  • Web services with axis & servlets ????

    Hi !
    Iwould like to know if it is possible to reach a tomcat servlet when we are running a service with axis integrated in tomcat : can we use the servetcontext and share it between tomcat & axis ????
    TU a lot...
    PA

    Hi,
    As far as I know if Apache soap used to implemented as a servlet. If axis is implemented the same way ( I am not sure about this), then it should be able the share the context with other servlets within the container. Hope this helps.
    Cheers,
    Arun

  • How to connect you macbook pro to your tv

    I am trying to connect my 13 inch macbook pro to my Polaroid HDTV but I am not getting any signals. Any solutions?

    So I went to my display preferences and after looking around on youtube and google I found that I am missing the arrangment tab next to display and color.  Can someone tell me if this is because of the adaptor or my macbook pro.  Also I used the HDMI cable to plug into another laptop (not an apple product) and it worked perfectly fine it showed up on my tv and had sound and everything, but I didn't need the adaptor since it had a port for it already built in.  So my conclusion is that it isn't my TV or HDMI cable and the problem may lie with the adaptor or my Macbook pro. Also when I plug in the adaptor to my Mac it goes blue for like a split second and then comes back on but nothing else changes.

  • Razr wont connect to web services

    I'm in an area wher I am using a Verizon air card to reach the internet and my new Razr will not connect. Why is this?

    Hi deercreek,
    Welcome to the HP Support forums.  I understand you are having an issue trying to connect to Web services with your Photosmart 7520.
    To better assist you, would you please provide some further information:
    Is the printer connected to your wireless network? Web services won't work unless the printer is connected to a wireless network.
    When you set the Manual DNS did you also set a manual ip address?
    When you set the Manual DNS did you use 8.8.8.8 for the preferred DNS server and 8.8.4.4 for the alternate DNS server?
    Thank you.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • 7250 wont connect to web services

    I am having the same issue with my printer not connecting to web services.  I have changed to DNS to the recommend but still no love.

    Hi deercreek,
    Welcome to the HP Support forums.  I understand you are having an issue trying to connect to Web services with your Photosmart 7520.
    To better assist you, would you please provide some further information:
    Is the printer connected to your wireless network? Web services won't work unless the printer is connected to a wireless network.
    When you set the Manual DNS did you also set a manual ip address?
    When you set the Manual DNS did you use 8.8.8.8 for the preferred DNS server and 8.8.4.4 for the alternate DNS server?
    Thank you.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • Connect to Secure web service with certificate from SAP EP

    Hi Experts,
    Here is the current situation:
    1. Our business requirement is to connect 3rd party RESTful web service which requires secure connection with private client certificate attached
    2. I've tested in my Java test application and successfully attached private certificate to HttpsURLConection request to the web service and made a connection. No problem at all.
    KeyStore keyStore  = KeyStore.getInstance("PKCS12");
    InputStream inputStream = new FileInputStream("privateKeyCert.p12");
    keyStore.load(inputStream, "myPassword".toCharArray());
    KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
    keyManagerFactory.init(keyStore, "myPassword".toCharArray());
    KeyManager[] kms = keyManagerFactory.getKeyManagers();
    SSLContext sslContext = SSLContext.getInstance("SSL");
    sslContext.init(kms, null, new SecureRandom());
    SSLSocketFactory sockFact = sslContext.getSocketFactory();
    URL url = new URL("https://www.thirdpartywebservice.com/testroot/");
    HttpsURLConnection conn = (HttpsURLConnection) url.openConnection();
    conn.setSSLSocketFactory(sockFact);
    conn.setRequestMethod("POST");
    conn.setDoOutput(true);
    conn.setDoInput(true);
    conn.setUseCaches(false);
    conn.setDefaultUseCaches (false);
    conn.setRequestProperty("Content-Type", "text/xml");
    3. Next, I tried to apply my Java application to SAP EP NetWeaver, and found that I have to use SecureConnectionFactory:
    https://help.sap.com/saphelp_nw70ehp1/helpdata/en/e2/71c83edf72e16be10000000a114084/content.htm
    4. So, I modified my Java code for SAP EP:
    KeyStore keyStore  = KeyStore.getInstance("PKCS12");
    InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("privateKeyCert.p12");
    keyStore.load(inputStream, "myPassword".toCharArray());
    SecureConnectionFactory scFactory = new SecureConnectionFactory(keyStore);
    HttpURLConnection conn = scFactory.createURLConnection("https://www.thirdpartywebservice.com/testroot/");
    conn.setRequestMethod("POST");
    conn.setDoOutput(true);
    conn.setDoInput(true);
    conn.setUseCaches(false);
    conn.setDefaultUseCaches (false);
    conn.setRequestProperty("Content-Type", "text/xml");
    And I'm facing the following error message:
    Exception: java.security.UnrecoverableKeyException: ja
    va.security.GeneralSecurityException: Unable to decrypt private key: javax.crypto.BadPaddingException: Invalid PKCS#5 padding length: 253
    Could you please help me what this error message means?
    Do you think do I need to to do some other configuration to make connection to web service with client certificate?
    This is our first approach. Please help...
    Thank you in advance.

    SunJSSE implement SSL server CertificateRequest in a strict mode, if client failed to find a proper certificate corresponding the server request, it does not guess what's the proper certificate and send to the server. In your case, because there is no intermediate certificate in the client context, so there is no way to make the decision which certificate would be acceptable by server, so client does not send any cert to server. That's why you got a handshaking error.
    I guess your client key store does not contains a full certificate path from the client end-entity certificate to the root CA. Please import the full certificate path into the key store.
    BTW, these approaches should work, but I found no reason why one does not adopt #1:
    1. import the full certification path of client certificate into client key store.
    2. as a workaround, configure the server to send a list including the intermediate certificates;
    3. as a workaround, you will have to customize the client KeyManager if you don't want to or are not able to configure the server to send a list including the intermediate certificates.

  • Java.lang.NullPointerException while creating virtual classroom via Adobe Connect 9 Web Services

    Hello all, I am trying to create a virtual classroom via Adobe Connect 9 Web Services with the code below.
    https://XXXXXXXX.adobeconnect.com/api/xml?action=sco-update&type=virtual-classroom&name=My Virtual Classroom&folder-id=1358451232&date-begin=2014-01-02T10:00&date-end=2014-01-02T11:00
    And the result below:
    <results>
    <status code="internal-error">
    <exception>java.lang.NullPointerException</exception>
    </status>
    </results>
    What could be the reason of this problem? I need your help.

    Hi Teomanx
    To create a virtual classroom, you have to give type=meeting & icon = virtual-classroom. So the correct syntax is :
    https://XXXXXXXX.adobeconnect.com/api/xml?action=sco-update&type=meeting&icon=virtual-clas sroom&name=My Virtual Classroom&folder-id=1358451232&date-begin=2014-01-02T10:00&date-end=2 014-01-02T11:00.
    Hope that helps.
    Thank you

  • Web service with multiple out parameters

    Hi Developers,
    I have been playing around with som web services in the developer studio.
    I can create a webservice from a normal ejb.
    But i can only get one out parameter, which is the return parameter of the ejb.
    I tried to make an object to use as return parameter, but then i couldn't use the method for the web service.
    Can anyone tell me how to make a web service with multiple out parameters?
    Br Rasmus

    Hi Developers,
    I have the same question, is it possible to have multiple outgoing parameters?
    When not, does SAP Netweaver knows a IN-OUT parameter? Because I found on the internet that it is possible to have a IN-OUT parameter. But that was with the BEA Weblogic 8.x.
    When not, is then the only solution to return a object? With in this object all the parameters you want.
    Or otherwise is there a other workaround?
    Thanks in advance,
    Marinus Geuze

  • Learning Web Services with J2EE

    Hi:
    I've been developing in J2EE for 3 years now, using Servlets/JSP/Tag Libraries etc.... I want to find a good source (book) that teaches you web services with J2EE, does anyone recommend any good starters to advance books for Web Services.
    Thank you
    Goce

    Have you looked at the J2EE 1.4 Tutorial?
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html
    It includes chapters on developing both Web applications and enteprise beans as Web service endpoints.
    -Ian Evans

  • Debugging a Web service with JDeveloper 902

    JDeveloper (902) is the major development tool in my project, and till now we used RMI for remote function calls. We are considering to use SAOP instead.
    I've installed JWSDP and I manage to run SOAP based Web service with Tomcat.
    However, after deploying a Web service, even its screen output is hidden.
    My problem is how to debug a Web service with JDeveloper?

    JDeveloper (902) is the major development tool in my project, and till now we used RMI for remote function calls. We are considering to use SAOP instead.
    I've installed JWSDP and I manage to run SOAP based Web service with Tomcat.
    However, after deploying a Web service, even its screen output is hidden.
    My problem is how to debug a Web service with JDeveloper?

Maybe you are looking for

  • System no longer sees ix2-dl

    I recently purchased an ix2-dl enclosure and two 2TB WD Red drives.  The initial setup went smoothly and everything was working great using the default RAID1 setup.  After I upgraded the firmware I could not longer use the Lenovo manager utility but

  • Hierarchy look-n-feel?

    Hi, Can i have the look-n-feel of a hierarchy very similar to that of SQL Server Analysis Services in Web Intelligence report? The hierarchy should have +/ - to drillup/ drilldown, It has to show all the levels in the hierarchy, not only one level at

  • Shadows!

    I recently photoshoped a photo of my girlfriends sister, and I had problem with adding a proper shadow of her. Could anyony list me any tutorial of explain main things or techniques? Many Thanks.

  • Change FULL NAME in account information section?

    How do I change my full name under the account information section

  • Image Splicing Effect Challenge (Part 1)

    I ran across a neat image effect on this image: Rock In Rio Thought it might be neat to see how different people in the forums would go about doing this... Anyhow. Looking forward to your ideas. Take care. UPDATE* This thread has been continued into