Making a Web Service Manually

Hey, Can Anyone help me?.
I Want to make a Web Service in J2EE, but I don't want to use the JWSDK. I want to do all without assistants.
Anyone have some tutorial or manual that con help me.
Sorry for my bad english, I don`t speak english very well.
Thanks a lot.
Marcos L�pez.
Mexico.

The JWS tutorial (http://java.sun.com/webservices/downloads/webservicespack.html) does a reasonable job of walking you through a Web service using Ant. We use GNU make, so we looked at the various Ant build.xml files in the tutorial examples for ideas.

Similar Messages

  • What stub code does APEX uses when making a web service call ?

    What stub code does APEX uses when making a web service call (manual web service reference)
    I am using APEX (which was part of the 11g installation).

    Hi Steve,
    Some options for the same issue:
    web service time out
    How to check for Web Srvice Timeout in ABAP Proxy call
    Regards
    Vijaya

  • How can I invoke the web service manually in websphere?

    Hi
    I've developed a webservice application using Rational Application Developer (RAD). I deployed it in a websphere 6.1 application server, using the administration console to import the war file that I had previously exported with RAD.
    My webservice application is listed in the "Enterprise Applications" section of websphere's administration console as started.
    My question is: how can I invoke the web service manually? Is there some kind of websphere generated webpage that I can use to call it manually?
    I tried http://<server:port>/<contextroot> and http://<server:port>/<contextroot>/<servicename> in a webbrowser, but it doesn't work. Is it possible to invoke the web service manually, or do I need to develop a client?
    Thanks in advance
    Pedro

    Hi Bo Wang,
        Go to the Portal -> System Administration -> System Configuration
                               -> Portal Content folder
                               -> Open Visual Composer folder
        There you can see the Webservice Systems you have created through VC.
    You can delete the unwanted system here.
    Regards,
    Shemim

  • How to create web service manually in APEX?

    When I try to create a web service from wsdl, I get error: "The WSDL document could not be understood by the rendering engine".
    I have found no APEX documentation about how to fill data when creating web service manually. I have wsdl file (have put wsdl url into browser and got contents), but don't know what to do with this beast.
    Anyone knows what to do?
    Igor

    Proxy class is out of date now... proxy class only support stateful web service call... and stateful web service may became a big limitation in development.
    Try to thinking about how to use stateless web service call, you may get an alternative solution.
    Edited by: user13036981 on 2011-10-7 上午9:20

  • How to build, package & deploy web services manually without ant on JWSDP

    Hello,
    How can I Build, Package & Deploy web services manually without using ant tool on JWSDP 1.3?.
    Because I am having difficulties in using ant tool for my own webservices. ant is very tightly coupled with the directory hierarchy & configuration files (as I go throught the examples of JWSDP1.3). Also I need to learn the overall process going on behind the scene.
    I have to teach the simplest required steps to build, package & deploy any webservice to any container independent of application server & OS without using ant tool. It would also help me to understand which items are required as specified in the Web Services Specifications & which one are implementation or platform specific.
    Any help would be greatly appreciated.
    Thanks,
    Iftikhar.

    Just follow the step of the JWSDP1.3 tutorial..

  • Issue with making multiple web service calls without ccBPM

    I have an issue -
    Sync call from ECC -> check global param if EMPTY
                                    -> if NOT EMPTY call Web service 1
                                         -> parse the return value
                                         -> call Web Service 3 ( pass the value from global param in the SOAP header to WS3)
                                         -> pass the return value back to ECC
                                   -> if EMPTY call Web Service 2
                                        -> parse the return value
                                        -> call Web Service 3 ( pass the value from WS2 in the SOAP header to WS3)
                                        -> pass the return value back to ECC
    Is it possible to design this scenario without using ccBPM? To start with, I can always read the global parameter but cannot find a way to read the response from WS1 or WS2 and pass it to WS3 without a ccBPM. Even if I use a ccBPM I still have the issue of passing the value (either global param or WS2 return val) in the SOAP Header to WS3.
    If I open a S/A bridge, all the subsequent WS calls are converted to async calls. Not sure how that will work out.
    For the last step, looks like I might have to manually build the data types without using the WSDL (XML SOAP envelope rather than a WSDL) to generate the Service Interface to prevent the Adapter from building the envelope. Is there any other way that I havent investigated?
    Any suggestions ?
    Thanks
    Sridhar
    Any suggestions ? Please advice.

    I guess the indentations got messed up.
    I have an issue -
    Sync call from ECC -> check global param if EMPTY
                                   -> if NOT EMPTY call Web service 1
                                       BEGIN
                                         -> parse the return value
                                         -> call Web Service 3 ( pass the value from global param in the SOAP header to WS3)
                                         -> pass the return value back to ECC
                                        END
                                   -> if EMPTY call Web Service 2
                                       BEGIN
                                        -> parse the return value
                                        -> call Web Service 3 ( pass the value from WS2 in the SOAP header to WS3)
                                        -> pass the return value back to ECC
                                        END

  • Weblogic 10.3 - web service - manual jdbc commit

    Hi All,
    I need a little help.
    I have been made a web service with a web method. My business logic is very strange, and I have to make some jdbc commit manually in the web method. I try to call transaction.begin() and transaction.commit() but the weblogic throws an exception:
    javax.transaction.NotSupportedException: Another transaction is associated with this thread. Existing transaction Name=[EJB ...
    Could you tell me, how can I get the current transaction context and handle manually the jdbc commit?
    _Here is part of my code:_
    @WebService()
    @Stateless()
    public class MyWebService
         * Web service operation
        @WebMethod(operationName = "businessDataUpload")
        public String businessDataUpload(@WebParam(name = "businessData") String businessData)
            try
                javax.naming.Context ctx = new javax.naming.InitialContext();
                javax.transaction.UserTransaction transaction =  (UserTransaction) ctx.lookup("javax.transaction.UserTransaction";);
                javax.sql.DataSource ds = (DataSource) ctx.lookup(JNDI_NAME);
                java.sql.Connection = ds.getConnection();
                *transaction.begin();*
                // jdbc code here
                transaction.commit();
    catch (Exception ex)
    // transaction rollback
    transaction.rollback();
    throw new RuntimeException(ex);
    Please help me.
    thx, SoMa
    Edited by: user1130432 on May 27, 2011 9:16 AM

    Hi SoMa,
    Please try this:
    @WebService()
    @Stateless()
    public class MyWebService
               * Web service operation
               @WebMethod(operationName = "businessDataUpload")
               public String businessDataUpload(@WebParam(name = "businessData") String businessData)
                                     try
                                                javax.naming.Context ctx = new javax.naming.InitialContext();
                                                javax.sql.DataSource ds = (DataSource) ctx.lookup(JNDI_NAME);
                                                java.sql.Connection con= ds.getConnection();
                                                con.setAutoCommit(false);                // By default on JDBC Connections the AutoCommit is TRUE  //
                                                // jdbc code here
                                                con.commit();
                                     catch (Exception ex)
                                                // transaction rollback
                                                con.rollback();
                                                throw new RuntimeException(ex);
                          }Thanks
    Ravish Mody

  • Connection Reset while making http web service call to remote server

    Hello guys,
    Our environment details are as follows:
    WebLogic version: 10.3.3
    Cluster: yes
    Database: Oracle
    Web service server: Remote application
    When our WebLogic server makes a http Web service call to another remote application which runs on IIS server for creating a record. The record gets created in remote application but WebLogic server log says java.net.SocketException: Connection reset and the same record doesn't get created in WebLogic application. We have confirmed that remote application is running and it is behaving as expected. Also, we installed web service client on our WebLogic machine just to isolate any network related issues, when we make a same request through this client it works fine and we get answer. At this point in time, it looks like it could be WebLogic or application which is behaving goofy. we are running out of ideas, it would be nice if someone have any thoughts on it like turning on any flags or any other troubleshooting steps. Please, let me know.
    Here is the stack trace:
    ####<Sep 18, 2011 12:31:40 AM MDT> <Info> <com.blah.blah> <server1> <WLSserver> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Defaul
    t (self-tuning)'> <user> <BEA1-69D606DA85BDB1A0A7D5> <> <1316327500388> <BEA-000000> <ERROR com.blah.blah - Error during creating a order remoteappja
    va.net.SocketException: Connection reset
    com.sun.jersey.api.client.ClientHandlerException: java.net.SocketException: Connection reset
    at com.sun.jersey.api.client.Client.handle(Client.java:569)
    at com.sun.jersey.api.client.WebResource.handle(WebResource.java:556)
    at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:69)
    at com.sun.jersey.api.client.WebResource$Builder.get(WebResource.java:451)
    Caused by: java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:173)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
    at weblogic.net.http.MessageHeader.isHTTP(MessageHeader.java:220)
    at weblogic.net.http.MessageHeader.parseHeader(MessageHeader.java:143)
    at weblogic.net.http.HttpClient.parseHTTP(HttpClient.java:462)
    at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:364)
    at weblogic.net.http.SOAPHttpURLConnection.getInputStream(SOAPHttpURLConnection.java:37)
    at weblogic.net.http.HttpURLConnection.getResponseCode(HttpURLConnection.java:952)
    at com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:215)
    at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:126)
    ... 58 more
    >
    thanks a lot for your help in advance
    Regards,

    Here's what the issue was for us:
    When the web service was initializing, Weblogic? was trying to retrieve the WSDL first before initializing the service.
    Though the web service URL was proper, the WSDL itself was unresolvable. This led to this strange connection reset error.
    So, if you're experiencing this consistently, check your WSDL URL.
    We used "strace" to discover this problem by running it for a brief time while the web service initialization was attempted - and it very clearly showed that the code was attempting to laod something from a bogus address / IP

  • Making a Web Service Client

    Hi,
    I have compiled and tested the first example of Webservice in JDeveloper (Annotation) from this tutorial:
    http://download.oracle.com/docs/cd/E18941_01/tutorials/jdtut_11r2_52/jdtut_11r2_52_1.html
    Now I am trying to call this Webservice from IE using this URL
    http://mypc:7101/WebService-Annotation-context-root/MyCompanyWsPort?method=getMyDepts
    But I only get a page with the link to the WSDL.
    How could I call this webservice outside of JDeveloper while Weblogic is running and contains the web service?
    Many thanks for your help.

    To test a web service (or call it) you need to do a bit more. You have to envelope the info into a soap envelope which the web service opens, exceutes it nad send you the result back in an other envelope.
    You can however use a default test screen which is build by wls.
    If you user http://mypc:7101/WebService-Annotation-context-root/MyCompanyWsPort you should see a default test page.
    To get a better output you can use e.g. SoapUI (google for it).
    Timo

  • JCD - making a web service client call from a jcd

    Hi,
    We would like to make web service client calls from our jcd's in Java CAPS 5.1.2 to an external web services running under a Tomcat 5.5 servlet.
    What is the recommended method of calling web services from a jcd?
    We attempted to import a WSDL and use the wsdl object but that failed.
    One alternative I thought of is generating the client classes from Axis 1.3 and importing an external .jar file with those classes plus the necessary jar to run Axis.
    Our external web services are typed as docment/literal, wrapped.
    Thanks

    The recommended way to make Web Services calls from a Java Collaboration is to use the support for this feature in JCaps 5.1.2. This means using the WSDL as an OTD and linking it to an external web service on the connectivity map.
    If you have trouble using the WSDl as an OTD you can open a support case with Sun support (http://goldstar.stc.com/support).
    Regards,
    Frederik

  • Making Asynchronous Web Services in apache axis

    Hi all,
    I am willing to make an asynchronous web service using apache axis.Can I use Tomcat 5.x or I have to use WebLogic only.Please help.
    With regards,
    ajse

    Hi all,
    I really need to know this,becouse I am running out of time.Can anyone pls
    let me know about this?
    With regards,
    ajse

  • Making a web service and have a problem

    Hi all.
    I've greated a synchronous communication. SOAP<->XI<->RFC
    No problem to create a webservice from this.
    When I implement a BPM for that communication the web service makes the request message as respones message and the response message as request message. I don't get why?
    In the synchronous setup the inteface for the SOAP are outbound, synchronous and for the BPM solution the the inteface are abstract, synchronous. I've made abstract asynchronous interfaces for the request and the respone to use inside the BPM.
    Can somebody please give me a hint of why the web service swiches the request and respones message in the BPM solution? If you need more information I gladly provide what you need about my solution.
    BR
    Kalle

    Yes the request and the respones are mapped with the Abstarct Asynchronous interfaces.
    The mappings are called inside the BPM from a transformation step.
    There are no mappings with the source synchronous interface that are abstract when using BPM and outbound when not using BPM and same with the target synchronous interface that are abstract. Created the target synchronous interface when implementing BPM in teh solution.
    If not using BPm how should I do this then?
    //Kalle

  • Can I alter soapAddress using script before making a web service connection

    Originally I set up a data connection on Data View using a local wsdl file.
    I found following codes on the XML source:
    <connectionSet xmlns="http://www.xfa.org/schema/xfa-connection-set/2.1/">
       <?originalXFAVersion http://www.xfa.org/schema/xfa-connection-set/2.1/?>
       <wsdlConnection name="WebServiceDC" dataDescription="WebServiceDCgetAddressXMLDD">
          <soapAddress>https://myURL/myWebServiceFunction</soapAddress>
          <wsdlAddress>.\myWebServiceFunction.wsdl</wsdlAddress>
          <soapAction/>
          <operation input="getAddressXMLRequest" output="getAddressXMLResponse">getAddressXML</operation>
          <?templateDesigner fileDigest shaHash="uKcwzAn9YOsLHWypIz9ycuoeBPE="?></wsdlConnection>
    </connectionSet>
    Does it mean that if I use the form on another machine, I need to place the same file myWebServiceFunction.wsdl on the exact location of the form as well?
    Another question:
    How about I set up a data connection on Data View using a wsdl file from web.
    Then is it possible to change the <soapAddress> from script to alter the connection before I issue:
    xfa.connectionSet.WebServiceDC.execute(false);
    I need to do this because the wsdl's soapAddress point to another endpoint that I need to change.
    Or should I write script at all to make the data connection?
    Rgds.

    Just find from the forum that it cannot be altered but need to be cloned first:
    var oCS = xfa.connectionSet.WebServiceDC.clone(1);
    oCS.soapAddress.value = "http://pgdell:8080/soap/services/WebServiceTest";
    oCS.execute(0);
    But I have a question, how can I access the data returned from the cloned connection oCS?
    Originally in the postExecute event of WSResponsePreProc :
    var rootXml = null;
    var soapFault = null;
    if (xfa.event.soapFaultCode)
         soapFault = {code:xfa.event.soapFaultCode, message:xfa.event.soapFaultString};
    else
         rootXml = xfa.datasets.connectionData.WebServiceDC.Body;               <=========  how can I refer to the cloned oCS  ??
    preProcessor.processResponse(rootXml, soapFault);
    Rgds.

  • Timestamp Error when calling Encrypt and Signed Web Service

    Hello,
    I maked one Web Service in the Oracle Service Bus 10gR3 that supports Encryption and Sign, basically inserting (manually) this on WSDL Contract:
    This two namespaces:
    xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
    xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
    This Declarations:
    <wsp:UsingPolicy Required="true"/>
    <input>
    <wsp:Policy>
    <wsp:PolicyReference URI="policy:Encrypt.xml"/>
    </wsp:Policy>
    <soap:body use="literal" />
    </input>
    <wsp:Policy>
    <wsp:PolicyReference URI="policy:Sign.xml"/>
    </wsp:Policy>
    The above declarations was inserted in the correct points inside the WSDL Contract and the Web Service is working correctly.
    The Problem is related to Sign.xml declaration, when i insert this declaration:
    <wsp:Policy>
    <wsp:PolicyReference URI="policy:Sign.xml"/>
    </wsp:Policy>
    Then, the Web Service shows an error. Following the Request and Resonse (That shows the error):
    Request:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ger="http://www.abc.com.br/Service">
    <soapenv:Header/>
    <soapenv:Body>
    <ger:gerarHashSenha>
    <arg0>123456</arg0>
    </ger:gerarHashSenha>
    </soapenv:Body>
    </soapenv:Envelope>
    Response:
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header/>
    <env:Body>
    <env:Fault>
    <faultcode>env:Server</faultcode>
    *<faultstring>Can not retrieve header: {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp</faultstring>*
    </env:Fault>
    </env:Body>
    </env:Envelope>
    Observation: I was invoking the WebService using the soapUI Tool.
    I Tryed change the request to bellow code, but doesn't work:
    <soapenv:Envelope xmlns:ger="http://www.abc.com.br/Service" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Header>
    <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
    <wsu:Timestamp wsu:Id="Timestamp-447" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <wsu:Created>2010-05-27T21:40:55.667Z</wsu:Created>
    <wsu:Expires>2010-05-27T21:41:55.667Z</wsu:Expires>
    </wsu:Timestamp>
    </wsse:Security>
    </soapenv:Header>
    <soapenv:Body>
    <ger:gerarHashSenha>
    <arg0>123456</arg0>
    </ger:gerarHashSenha>
    </soapenv:Body>
    </soapenv:Envelope>
    Thanks.
    Victor Jabur.

    someone has any idea ?
    Thanks

  • 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

Maybe you are looking for

  • Safari quits unexpectedly whenever I try to open it

    For a while now, whenever I try to open Safari, it crashes, or "quits unexpectedly". As soon as I click the Safari button on my dock, the icon jumps up and down a couple of times, but then suddenly, the page pops up with "Safari quit unexpectedly". I

  • Mac won't open Premiere Project CC files created from PC

    Hi, I am helping a friend edit a series of short videos.  He is on a Mac with the latest OS using Premiere Pro CC.  I am on a PC with Windows 7 Pro 64-bit also using Premiere Pro CC.  I did the rough cut for the first video, copied the folder (all cl

  • How can i disable offline viewing in Mavericks Mail 7?

    I use a very large IMAP account. So i disabled the offline viewing. Now, after upgrade to mavericks, i cannot find this option anymore!?

  • Flash call the method of flex application

    In a flex application I use the SWFLoader to load a flash,the code: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" fontSize="12"> <mx:Script> <![CDATA[ import mx.controls.Alert; public function testRe

  • Licensing E-Business Suite Products

    Hello, I Have two questions about licensing in EBS. 1- what is the difference between shared,licensed product. 2- How is EBS licensed ? by user ? by CPU ? BR