Debug and log Web Service

Hello,
i have a problem regarding web service. I wrote a web service (adapted to my needs) as described in the tutorial for java. But when it comes to testing, the web service throws an exception. The method itself is fine (tested and debugged with a local test client).
The question is, is there a way to debug the web service or is there a logfile in which the exception is described in detail?
Thanks in advanced for all replies
regards,
Rene

Hi Rene,
There is quite a bit of posting in this thread, and as described in the forum hints, that could discourage some people from reading. Maybe if you post the most recent problem in a new post, that will attract more attention.
To your problem, or more likely to the several problems you are having in this thread - the exceptions and its stacktrace should be seen in the server log files.
These are found at something like
:\usr\sap\<sid>\<id>\j2ee\cluster\server<number>\log
It's hard to say where exactly the exception would go without knowing your application, but I would guess that the likely candidate should be the latest defaultTrace.trc file.
If it's not there you may try to copy everything from there in a new location, reproduce the exceptions and check what files have increased their size. There you should see some information what is wrong.
The other way you could deal is to attach via debugger like Benny has suggested, if you have the server already in a debug mode, just connect with the IDE, put a breakpoint in your code before you have invoked the web service, then trigger your code somehow and trace the execution.
The IDE has also the possibility to make a breakpoint on any unhandled exception, there is such button in the debug view. You may try switching it on.
If you want to invoke your bean from a standalone client and see the result, but you are unable to lookupi the JNDI name, then you should double check what exactly JNDI name you are supplying and under what name is your bean. The easiest way is to login at the server telnet administration (telnet 127.0.0.1 50008)
(The telnet port should be the same as the HTTP on your server but with 8 as last digit), then execute those commands :
jump 0
add naming
lsn > c:\my_naming.txt
you should see in a nice way the JNDI tree on your server and you can check where is your bean and how it should be invoked. However I would personally not go to writing standalone program to see the exception. It sounds like less efforts to try some of the other suggestions.
Btw, ideally, you should be able to code your application so that exceptions are reported in a nice way and you are sure where they are going. For example if your front end is a HTML, then a classic approach is to have an error page where the exceptions will be printed so that you don't have to search logs or debug the server.
HTH
Peter

Similar Messages

  • Standard Web Service and Customized Web Services with or without PI?

    Hi All,
    I want to know how I can use Standard Web Service available in SAP  and customized Web Services
    without PI Interface?
    And what is the best practice to expose services ,via PI Interface or directly?
    Thanks in advance!!
    Pushkar

    This is purely based on your requirement. If you use PI middleware to expose web services, you get standard functionalities such as certificate authentication, logging, message reprocessing for the failed messages etc.  If your requirement is so simple, then you might not need PI. In this case you can develop simple webdynpro for abap program to create webservice and expose the webservice in ECC webservice runtime. You can let anyone to consume within your network. other ways like exposing BAPI/RFC as webservice.  I would recommend going with PI.

  • SSO and ABAP Web Services

    I am opening this thread on behalf of my colleague Bala regarding SSO and ABAP Web Services.
    We have gone through single sign on options and found several options are available within 5.0.
    We would like to know the options available for SAP ABAP web services access from a Non-SAP system with user authorization but without Portal/ITS installation.
    Also I would like to avoid any hard coding of user id in Non-SAP system .
    Could you provide any information.
    Thanks,
    Bala

    We have gone through single sign on options and found several options are available within 5.0.
    Tell me what are the several options and what is your Non-SAP system?
    without Portal/ITS installation.
    ITS is now an integral part of ECC 5.0 system. So would not need a seperate installation, unlike earlier versions.
    AB

  • Front End internal and external web services

    Hi all,
    Can someone explain the purpose of internal and external web services URL in front end server. what does it do and what is it used for? and why the external traffic goes directly to it and not through reverse proxy?
    Thanks,

    They're for multiple purposes.  Address books, autodiscovery, meeting urls, mobile clients, etc.  There are two because they respond slightly differently based on whether the client is internal or external.  External traffic should always reach
    it through a reverse proxy, that reverse proxy should proxy traffic received on port 443 to port 4443 on your front end pool.
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
    SWC Unified Communications
    This forum post is based upon my personal experience and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Correction for Daily Report Log Web Service

    In the August 29th iTunes U Administrator email, there was a mistake in the example for the Daily Report Log Web Service.
    The example showed:
    http://deimos.apple.com/WebObjects/Core.woa/API/GetDailyReportLogs/example.edu?S tartDate=2007-07-01&EndDate=2007-07-17&destination=example.edu&username=ADMIN&ac cesskeys=Administrator@urn:mace:itunesu.com:sites:example.edu&emailaddress=foo@b ar.com&displayname=test&expiration=1186086577&signature=4443ac48a8ae1a0c50dbfb35 f201b6d0db14b16d
    There are extraneous form value pairs in the above example. The POST form values required to get a daily report are:
    StartDate (EndDate is optional) - format YYYY-MM-DD
    credentials
    identity
    signature
    An example of a correct request:
    http://deimos.apple.com/WebObjects/Core.woa/API/GetDailyReportLogs/example.edu?S tartDate=2007-09-12&EndDate=2007-09-13&credentials=Administrator@urn:mace:itunes u.com:sites:example.edu&identity=%22JaneDoe%22+%3Cjdoe%40example.edu%3E+%28jdoe%29%5B42%5D&signature=38bda70d9aa6975ae8756754034feb6e3c794aca4b21665f6dc85d2ed42d4 f6b

    Currently displaying audit log reports in REST or API is not supported by Microsoft. SharePoint online in Office 365 just supports saving an audit log report as a Microsoft Excel 2012 Preview workbook.
    You can refer the following post :
    http://community.office365.com/en-us/f/172/t/164047.aspx

  • 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

  • EBS11i to provide Web services and receive Web services

    Our corporate direction is to have all major systems internal has to communicate to each other using web services. No more using pl/sql, dblink, FTP to communicate.
    we are using EBS 11i.
    1) Is that possible to have our EBS 11i able to receive web service call and make web service call to other systems?
    2) Will 'Oracle AS Adapter for Oracle Applications' is the solution for this? is this adapter install at EBS box to receive web service call and make web service call to other systems?

    Hi,
    WebDynPro Java/ABAP are primarily User Interface technologies. Webservices are faceless (without UI ) components that provide certain functionality. Using UI technologies like WebDynPro Java/ABAP etc, we can build a face( UI ) to the webservices.
    DnyPro itself means a screen & WebDynPro is for building web based applciations.
    Hope this resolves your question.
    Well, if you still want to use it as provider & if you have an existing web-service, the way to do it is, Right click on your WebDynPro ABAP component & select CREATE->Service Call. Build a Custom Controller or use the Component Controller to get the service using service type = Webservice proxy for your webservice. You can use this Component as a Used component in any other webdynpro components & use this to access webservices.
    Thanks,
    Phani
    Edited by: Phani Rajesh Mullapudi on Oct 8, 2009 10:41 PM

  • Lync control panel and internal web Services

    Hi,
    In our Lync 2013 deployment for web services we have set override  FQDN for internal Web Services asialyncpool.corp.contoso.com and External web services as web.contoso.com. The Control Panel URL has been set to https://admin.contoso.com
    When i launch Control panel, in the IE https://admin.contoso.com the control panel opens and but the url get changed to internal web services ie sialyncpool.corp.contoso.com. When i enter https://admin.contoso.com/cscp in the IE it ask for logon
    credentials and doen't accept the credentials at all, how many times i may try.

    Thanks for the response.
    https://admin.contoso.com,
    it will redirect to the URL of: https://asialyncpool.corp.contoso.com/cscp -
    This is exactly what is happening.
    When i use - https://asialyncpool.corp.contoso.com/cscp,
    it doesn't accept the credentials, it keep asking for right credentials, when i use Lync control panel, it does accept the credentials.

  • How to Create and Deploy Web Services Using Oracle 9i JDeveloper

    Hi,
    My Question is how to create and deploy Web Services using Oracle 9i JDeveloper.Anybody please give me a detailed Reply.Please Reply to [email protected]
    Hopr to Hear From you,
    Regards,
    G Sreekumar

    You could use datasources. You should do this in your BC4J Configuration. Then when deploying your applicaiton use the command -installDataSource (from admin.jar) to create the right datasource.
    You could probably use the name of your connection + "DS" so you can also use it locally in JDeveloper as JDev seesm to create this automaticly for your Connections.

  • ANN: Contest open, new tutorial and new Web services software

    The OTN Web Services Challenge is now open and accepting entries. Read the details, rules and requirements at:
    http://otn.oracle.com/tech/webservices/htdocs/challenge/content.html
    You could win a Dell Notebook worth USD$5,000 :-) First 500 real entries (that is one with source code and works) will get an Oracle Press book (my understanding is that it is one on Oracle9iAS).
    There are also a number of new things also available on the OTN Web Services Center:
    - A new Oracle9i Reports tutorial at:
    http://otn.oracle.com/tech/webservices/htdocs/series/reports/content.html
    - The Oracle9iAS Containers for J2EE Developer Preview (9.0.3) now supports document style Web Services and asynchronous Web services. Read all the content off the main page in the center:
    http://otn.oracle.com/tech/webservices/
    - A new paper talking about the Java XML Pack from Sun which Oracle is iterating its Oracle9iAS implementation towards:
    http://otn.oracle.com/tech/webservices/htdocs/standards/jax.html
    Mike.

    Currently the patch is only available on MetaLink (metalink.oracle.com) which requires a support account with Oracle. The patch number is 2367149 - see this post for instructions of how to get it from MetaLink:
    Re: Database or Client Level?
    Mike.

  • JDeveloper and Database Web Service Connection

    Hi all,
    I'm trying to publish a Java class as a web service. However, I'm getting the following error for the sample code below. Please help me out pubish this class as a Web service.
    The error:
    No methods were selected. Select one or more methods to publish as a web service.
    My code is below:
    package hr;
    import java.sql.Connection;
    import java.sql.SQLException;
    import oracle.jdbc.pool.OracleDataSource;
    import java.sql.Statement;
    import java.sql.ResultSet;
    import oracle.xml.sql.query.OracleXMLQuery;
    import oracle.xml.parser.v2.*;
    public class DataHandler {
    public DataHandler() {
    String jdbcUrl = "jdbc:oracle:thin:@127.0.0.1:1521:orcl";
    String userid = "hr";
    String password = "mohammed";
    Connection conn;
    Statement stmt;
    ResultSet rset;
    String query;
    String sqlString;
    public void getDBConnection() throws SQLException{
    OracleDataSource ds;
    ds = new OracleDataSource();
    ds.setURL(jdbcUrl);
    conn=ds.getConnection(userid,password);
    public ResultSet getAllEmployees() throws SQLException{
    getDBConnection();
    stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
    ResultSet.CONCUR_READ_ONLY);
    query = "SELECT * FROM Employees ORDER BY employee_id";
    System.out.println("\nExecuting query: " + query);
    rset = stmt.executeQuery(query);
    return rset;
    }

    Dear dvohra16,
    Thank you for the great book you're recommended. It's really a powerful tool that makes things much better for me.
    I've noticed that you're the author of this book. I'm really honered to discuss with the problems I have and
    I'm so lucky to get your responses for my questions.
    My current question is based on this book. How do I orchestrate a web service that inserts into an oracle database table and a web service that reads
    the contents of that table?
    In other words, the first web service inserts some values into a table and the second should read these values.
    So, how does BPEL orchestrate these web service such that the output of the first one is the input of the second?
    Your assistance is truly appreciated.
    Thank you for your time.

  • Debug Remotelly WebLogic Web Service - Debugger unable to connect

    I have been able to debug locally when I start debug from IntegratedWebLogicServer,
    but I have not been able to debug remotelly although I deploied successfully to WebLogic Server and I got correct result while testing from SoapUI.
    With the purpose to debug remotelly the simple web service described below, I have done these steps on my enviroment:
    On WebLogic
    1) In the WebLogic console, belong the AdminServer definition, I browsed to Protocol > HTTP Tunneling and I checked it.
    2) In startWebLogic.cmd I added:
    set JAVA_OPTIONS=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n %SAVE_JAVA_OPTIONS%
    3) In setDomainEnv.cmd I changed to be:
    set debugFlag=true
    if "%debugFlag%"=="true" (
         set JAVA_DEBUG=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=%DEBUG_PORT%,server=y,suspend=n -Djava.compiler=NONE
         set JAVA_OPTIONS=%JAVA_OPTIONS% %enableHotswapFlag% -ea -da:com.bea... -da:javelin... -da:weblogic... -ea:com.bea.wli... -ea:com.bea.broker... -ea:com.bea.sbconsole...
    After that, I restarted the weblogic.
    On JDeveloper
    4) In the page Project Properties > Run/Debug/Profile > Default > Edit:
    I wrote the path to the HelloWorld.java on Default Run Target box.
    I checked Remote Debugging
    5) I right clicked the project and clicked Start Remote Debugger.
    On Attach to JDPA Debugger window I wrote LocalHost on Host and 4000 on Port.
    In my log window I got this message:
    "Debugger attempting to connect to remote process at LocalHost 4000.
    ...Debugger unable to connect to remote process."
    I was expecting to be able to call the web service from SoapUI and then stop on my breakpopint. What else should I do?
    The only suggestion found on internet I have not done was
    "In order for JDeveloper to work with WebLogic it will need a copy of the weblogic.jar file that can be found at [WLS-root]\weblogic1001\server\lib, copy this file to [jdev-root]\jdev\lib\ext directory and restart JDeveloper."
    (http://www.oracle.com/technetwork/developer-tools/jdev/remotedebugwls-086628.html) I didn't find the path [jdev-root]\jdev\lib\ext in my computer.
    My Sources:
    //HelloWorld.java
    package demo;
    import javax.jws.WebService;
    import javax.xml.ws.BindingType;
    import javax.xml.ws.soap.SOAPBinding;
    @WebService(portName = "HelloWorldSoap12HttpPort")
    @BindingType(SOAPBinding.SOAP12HTTP_BINDING)
    public class HelloWorld {
    public String sayHello(String firstname, String lastname){
    return "Hello " + firstname + " " + lastname;
    //web.xml
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">
    <servlet>
    <servlet-name>HelloWorldSoap12HttpPort</servlet-name>
    <servlet-class>demo.HelloWorld</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>HelloWorldSoap12HttpPort</servlet-name>
    <url-pattern>/HelloWorldSoap12HttpPort</url-pattern>
    </servlet-mapping>
    </web-app>

    Check out which port is actually used by your WLS for debug.
    Some instructions here:
    http://thirumalaisamyt.blogspot.com/2012/10/jdeveloper-remote-debugging.html

  • Using InfoPath and the Web service GetUserProfileByName-An error occurred accessing a data source

    Hi, Everyone,
    I want to realize the function that when user fills out the infopath form the form can automatically get current users' name and I've searched that I can use the Web service GetUserProfileByName method. When I preview the form it is all right, however, when
    I fill the form online, it occurs this error as folllowing. Anyone knows why and how to solve this problem?
    Thanks forward!
    Warning
    An error occurred querying a data source.
    Click OK to resume filling out the form. You may want to check your form data for errors.
    Hide error details
    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:5566
    Correlation ID:9c23d39c-18fa-1025-c7ec-600a1582a54a

    Hi,
    According to your post, my understanding is that you get error when using the Web service GetUserProfileByName in InfoPath.
    Have the InfoPath form template call web service in code? If yes, please see following KB and check if it is the cause.
    http://support.microsoft.com/kb/981684
    You can also
    follow the steps in the article to resolve this error in InfoPath. Please refer to:
    Auto Populate User Information in InfoPath with Claims Based Authentication in SharePoint – Part 2 of 3
    In addition, you need to disable the Loopback check.
    Here is a similar thread for your reference:
    https://social.technet.microsoft.com/Forums/en-US/d6d20308-a5d0-45fa-881d-0626c68c4e73/infopath-an-entry-has-been-added-to-the-windows-event-log-of-the-server-logid-5566?forum=sharepointcustomizationprevious
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Audit log web service for Office 365

    I am working on developing an application that will interact with the Office 365 services. I am currently able to get the files and folders of a singed-in user using the OAuth2 authentication. I am aware that we can get the audit logs and it will be exported
    to Microsoft Excel. 
    However, my question is : Is there any web service or endpoint I can use to access the logs using REST API. For example, Box provides an api/endpoint to achieve this: http://developers.box.com/docs/#events.
    Any help would be highly appreciated!
    Many Thanks 

    Currently displaying audit log reports in REST or API is not supported by Microsoft. SharePoint online in Office 365 just supports saving an audit log report as a Microsoft Excel 2012 Preview workbook.
    You can refer the following post :
    http://community.office365.com/en-us/f/172/t/164047.aspx

  • ESB and Secured Web Service strange response

    Hi guys,
    We are facing strange response from ESB when we try to talk to a Secured Siebel service. Credentials are passed useing SOAP header, and in test case of not including any header at all.
    1-First try will return error, bad user name password
    2-Second or third try may even return actually results from Siebel service (and header is not included at all). I tested using SOAPUI tool.
    3-But If I test Siebel Service directly things go fine.
    Question: Is there some thing like a caching of SOAP header in ESB, if not an idea on how can after giving first fault second try right after that returns query results (from siebel service).
    any helps apperciated.
    thanks

    there shouldn't much difference in the time for the response ..., also when you are calling the secured web service from another BPEL, make sure you don't consider the time of the calling process ( i mean that BPEL ). you just try calling the secured web service from the EM console if it is a SOA composite. do you see any messages in the log files ? the procedure you followed is correct only, confirm here., i have posted a similar solution long back..
    Re: Creating a partnerlink  from a secure webservice
    Thanks,
    N

Maybe you are looking for

  • Incompletion procedure -Sales order Item level.

    Hi I want to add the field "MATERIAL SALES TEXT" in Incompletion procedure -Sales order Item level. The Table that i need to enter in procedure is VBAP. But what should be the "Field Name" and  Screen for creating missing data? Plz Help.... Regards S

  • Can't re-install CS3 Design Premium on Windows 7

    The product is Adobe Creative Suite 3 Design Premium. It is volume licensed and I can't get support for it through Adobe Support - they told me to post here. The computer is only a couple of years old and has Windows 7 32bit on it. We have Flash Play

  • Filter Report Based on Day

    Hi All, Im somewhat new to crystal report. Here my requiremnt is when the user select the from and to date while running the report the date field should display only fridays of the week in report data. Based on the friday values we are going to make

  • Miix 8 touchscreen issue

    Typing fast on the keyboard frequently results in strange characters, the kind that are supposed to require a press and hold to select. This issue is discussed in the following review and show around 6:10 in the video. http://www.techspot.com/review/

  • Sound Blaster Audigy & Vi

    I'm new to these boards, not posted much at all. I have been confused about something. I currently use the Sound Blaster Audigy card. I have a 4. speaker setup. I utilize the "heavy metal" option under the EAX->Advanced EQ section of the Audio Consol