Debug EJB3 web service

according to SOA developer guide, it's very easy to create web service for EJB 3 simply by add annotation. what do I have to do to debug the created web service with the Jdeveloper embed OC4J. anybody could give me steps which I can follow?
Thanks

You can set a break-point in the source code of the EJB and hit the debug button.
You can also monitor the SOAP messages using the HTTP Analyzer in JDeveloper (under the view menu).

Similar Messages

  • How to debug ABAP Web services from Microsoft Visual Studio

    When developing .NET based Web services clients using Visual Studio that call Web services in SAP NetWeaver .NET developers would like to be able to debug inside SAP. In my blog <a href="/people/andre.fischer/blog/2007/02/07/how-to-debug-abap-web-services-from-microsoft-visual-studio to debug ABAP Web services from Microsoft Visual Studio</a> I would like to point .NET developers to the fact that SAP NetWeaver offers the option of external debugging to perform this task. Though the steps that have to be performed are described in the SAP Online Help I am sure that this option is not well known amongst the .NET developer community.

    Hello WilliamIV,
    >>How can I "configure" Visual Studio debugger to allow validation to work?
    Since I do not have a VS2012 environment, according to your provided link, I created a test demo with VS2013, however, both ways catch the validation error:
    If possible, you could have a try with VS2013 to see if it works or run the example on other machine with VS2012 to see if this is caused by the VS environment, in my side, I do not change any configuration, all are default.
    If I misunderstood this issue, please feel free to let me know.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • EJB3 Web Service - basic authentication

    I have a very simple EJB @WebService in an EJB jar and placed in an EAR. The web service has an @RolesAllowed annotation on a role called WSS_USER.
    I have a weblogic-ejb-jar.xml file containing..
    <?xml version="1.0" encoding="UTF-8"?>
    <weblogic-ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.bea.com/ns/weblogic/10.0" xsi:schemaLocation="http://www.bea.com/ns/weblogic/10.0 http://www.bea.com/ns/weblogic/10.0/weblogic-ejb-jar.xsd">
    <weblogic-enterprise-bean>
    <ejb-name>TestWebServiceEJB</ejb-name>
    <enable-call-by-reference>True</enable-call-by-reference>
    </weblogic-enterprise-bean>
    <security-role-assignment>
    <role-name>WSS_USER</role-name>
    <principal-name>WSS_USER</principal-name>
    </security-role-assignment>
    </weblogic-ejb-jar>
    I have created the correct WSS_USER principal within Weblogic.
    If I test the web service using SoapUI I get:
    <message>[EJB:010160]Security Violation: User: '&lt;anonymous>' has insufficient permission to access EJB: type=&lt;ejb>, application=Test, module=Bedrock.server.services.local.jar, ejb=TestWebServiceEJB, method=test, methodInterface=ServiceEndpoint, signature={}.</message>
    How do I get basic authentication working with this web service?
    In glassfish I add the following into sun-ejb-jar.xml and it works fine:
    <ejb>
    <ejb-name>TestWebServiceEJB</ejb-name>
    <webservice-endpoint>
    <port-component-name>TestWebServiceEJB</port-component-name>
    <endpoint-address-uri>ctx/TestWebServiceEJB</endpoint-address-uri>
    <login-config>
    <auth-method>BASIC</auth-method>
    </login-config>
    </webservice-endpoint>
    </ejb>
    Is there an equivalent in weblogic?
    Thanks,
    Matt

    I was hoping it could be achieved without weblogic specific annotations?
    What I'm after is an example of a simple EJB3 web service in a jar, inside an ear, with no war file.
    I'd then like BASIC authentication on that web service.
    Something that can be dropped into any app server.
    Matt

  • Eroor in eclipse when i have run TOMCAT in debuge mode web service debuging

    hello all,
    i have a serious problem with debug my web service. I set local variable in eclipse (-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000). And now if i run TOMCAT in normal mode all worked fine and i run remote java application fine, but if i run TOMCAT in debug mode, eclipse in console return error:
    "Error occurred during initialization of VM
    agent library failed to init: jdwp
    ERROR: Cannot load this JVM TI agent twice, check your java command line for duplicate jdwp options."
    If anyone have this problem please tell me how to resolved it.
    Thank for help.

    Eclipse is kind of a competing product so this is not the best place to ask the question. With that most will be nice enough to lend a hand. I suggest ensuring that all other instances of tomcat are stopped then try again. In the Debug perspective ensure there are no servers running with the same name as the one you are attempting to use. If all else fails ensure there are no tomcat process running if they are kill them. Finally, if you cant get it to work reboot. If still no good the Eclipse might be a better place to go.

  • How to deploy and debug java web service in eclipes or using any other soft

    Hai,
    can any one tell me how to deploy and debug java web service in eclipes or using any other software.
    i have used tomcat web server and jdk1.4.0 to develop web service.
    we have used web service to interact with MS outlook .
    bye
    sudhakar.m

    Hi Sudhakar,
    If you are used to working with ant then you can very well use eclipse to deploy your web service.
    You would usually have the ant script in the source root working directory. From eclipse if you select the build file from the navigator view and right click you will see a run ant option in the pop up menu.
    Select that option and you would be able to see each targets with a checkbox select option. So define each target maybe one for wsdl2java conversion, one for compilation and one for deploying your web services. You can either make all of them run by having depends option on or you can run them individually as it takes your fancy.
    I am not sure about debugging a web service yet.
    Hope this helps
    Aviroop
    The truth is out there? Does anyone know the URL?

  • 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?

  • Debugging a web service

    Hi All,
    I need to debug a web service (RFC-enabled function module in basis 640). Is it possible? I'm calling the web service from an adobe interactive form and need to see what is being passed to the web service.
    Please let me know if you can think of a way to do this.
    HTTP-enabled break-point did not work for me.
    Thanks!
    Roman D.

    Hi All,
    I need to debug a web service (RFC-enabled function module in basis 640). Is it possible? I'm calling the web service from an adobe interactive form and need to see what is being passed to the web service.
    Please let me know if you can think of a way to do this.
    HTTP-enabled break-point did not work for me.
    Thanks!
    Roman D.

  • How to debug sercued web service client ?

    I ususally use TCPMon or Jdeveloper Http analyzer to debug non-secured Java SE web service client application . however, how do I debug secured web service client, e.g. web service with OWSM policy enable service?
    I tried and got bad certificate error since the TCPMon or Jdeveloper Http analyzer act as proxy.
    BTW, I'm not able to install any such proxy on server side.
    Thanks

    Hi,
      As far as i know. the only way to debug a webservice is from SE80.
    open your webservice from se80,
    Give your REQUEST as an XML file,(put a break point in side ur web-class)and analyis ur RESPONSE.
    you are using RFC but it seams that problem is not in that function module else you can use SRDEBUG tcode to debug remote enabled function module.
    If you are getting error in CALL TRANSFORMATION.
    The only posibility is the data u r passing it for converting it in XML.
    just post your code with CALL TRANSFORMATION or the point which is going into dump....
    Regards,
    Raj

  • Breakpoints not working when debugging OC4J web service

    I am attempting to debug the PL/SQL web service autogenerated as part of the EMP_FETCHER tutorial example. My code has been compiled with debug information and the classes I wish to debug are not in my exclusions list.
    When using the embedded OC4J container, I've verified that it is starting up in debug mode in the log. Setting breakpoints in the Emp_Fetcher class on the line commencing
    __sJT_st = __sJT_ec.prepareOracleCall...
    however seems to have no effect. Running my web service client does not cause the web service to stop on the selected breakpoint.
    I've also tried remote debugging of the same web service on a separate database server. While I have been able to start OC4J on the server in debug mode, and connect to it from JDeveloper, setting of breakpoints seems to have no effect. I've monitored the TCP traffic on port 4000. It shows activity during the initial connection, but no traffic when I manipulate breakpoints in JDeveloper. I would have expected some traffic as breakpoints are added and removed.
    Any assistance would be appreciated.
    Regards
    Michael

    Hi Mithun Dha
    I am facing same problem !
    please let me know what is SICF user name and how to change it ?
    I am using MSS PCR application (MSS role, Personal Change Request which is standard application on portal and it calls BADI at backend, it was working fine till yday suddenly its not stopping at the ext breakpoint in BADI)
    thank you
    b

  • Start ABAP Debug in Web Services Application - won't take non-Dialog user

    Hello all. We are trying to Replicate Employees from SuccessFactors to SAP ECP/ERP with a delivered integration from SAP, but we''re having trouble interpreting some of the errors we're getting in the Application Log
    As shown in the Web Services Utilities Message Monitor - our message is successfully Delivered - we would like to set a break-point in Class CL_PAOCF_EC_EE_MDR_IMPL and run our test. Unfortunately we have to use a Technical User in our middleware connector to consume the Service (to connect to the Java Application Server?) and setting External Breakpoints or enabling Debugging in SICF will only permit Dialog users. Does anyone know how we can run our Web Service and invoke an External Breakpoint in our application posting Class?

    Hello Keith,
    What is the "user type" for this user? In our system we have the user for the middleware defined as "Service type" and external debugging is possible with that user.
    BR,
    Suhas
    PS - Read the documentation of the data element XUUSTYP for further details.

  • Debugging ABAP web services

    Hello,
      I have an ABAP web service created from a remote enabled function module. The web service is called from a BSP application. How can I debug the code within the function module?
    I activated debugging for the web service in ICF. I set external breakpoint in the function module. However, the execution does not stop in the function module.
    Any ideas?
    thank you
    Benolin

    Hello,
    I found a way to debug my ABAP code called from the web service.
    I have an http connection configured in sm59 of type H. My proxy class uses this http destination to connect to the web service. Target host of this http destination is an application server of the R/3 system where my web service is available.
    If I logon to the ABAP system to this particular  application server and set breakpoints in my code, the execution stops at the breakpoints.
    Regards
    Benolin

  • Customize -java-wsdl-mapping.xml with EJB3 web service

    Using OC4J 10.1.3, I have an EJB that I am exposing as a web service using JSR-181 annotations. Is it possible to customize the generated <ServiceName>-java-wsdl-mapping.xml file? I tried putting my own version in META-INF/ of my ejb jar, but it didn't seem to pick up on it.

    I was told the product manager and/or developers from Oracle watched this board. Doesn't anyone have a response to this?

  • EJB3 & Web Services

    Hello everybody. I've been working with JEE using Eclipse and JBoss. Right now i have an "shopping cart application" which uses entity and session beans (stateless ant statefull). I'm using JSF technology for the web deployment. Everything works fine. Now, I want to add web services to the application. I've already packed a Stateless bean which exposes a web service fucntionality. Here it is:
    @Stateless()
    @WebService()
    public class CarritoWS implements ILocalCarritoWS, IRemotaCarritoWS
        @EJB(name = "uniandes.cupi2.aplicacionIntermediaria.services.IServiciosProductos")
        private IServiciosProductos serviciosProducto;
        @WebMethod
        public String getCategoriesProducts(@WebParam String categories)
            String response = "";
            try
                response = serviciosProducto.findByCategory(categories).toString();
            catch (PersistenciaException e)
                e.printStackTrace();
            return response;
        }Well, here is the client:
    String endpointURL = "http://localhost:8080/intermediario/CarritoWS?wsdl";
            String targetNS = "http://webservices.aplicacionIntermediaria.cupi2.uniandes/jaws";
            URL wsdlURL = new URL(endpointURL);
            QName serviceName = new QName(targetNS, "ICarritoWSService");
            Service service = Service.create(wsdlURL, serviceName);
            ICarritoWS carrito = (ICarritoWS) service.getPort(ICarritoWS.class);
            String response = carrito.getCategoriesProducts("deportivo");
            System.out.println(response);The wsdl file generated exposes everything OK, but I got an exception when accesing the webservice:
    Exception in thread "main" javax.xml.ws.WebServiceException:
    java.lang.NoSuchMethodError:
    javax.xml.soap.MessageFactory.newInstance(Ljava/lang/String;)Ljavax/xml/soap/MessageFactory;
            at
    com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:296)
            at
    com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:153)
            at
    com.sun.xml.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:85)
            at
    com.sun.xml.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:176)
            at
    com.sun.xml.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:105)
            at $Proxy7.getCategoriesProducts(Unknown Source)
            at
    uniandes.cupi2.aplicacionIntermediaria.test.WebMethodTestCase.main(WebMethodTestCase.java:22)
    Caused by: java.lang.NoSuchMethodError:
    javax.xml.soap.MessageFactory.newInstance(Ljava/lang/String;)Ljavax/xml/soap/MessageFactory;
            at com.sun.xml.ws.util.SOAPUtil.createMessageFactory(SOAPUtil.java:174)
            at com.sun.xml.ws.util.SOAPUtil.<clinit>(SOAPUtil.java:43)
            at
    com.sun.xml.ws.encoding.soap.client.SOAPXMLEncoder.toSOAPMessage(SOAPXMLEncoder.java:180)
            at
    com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:261)
            ... 6 moreCan anybody help me please? Thanks a lot!
    JSebas.
    Message was edited by:
    jsebas

    Hi
    You seem to be mixing JWSDP and JBossWS libs in the client classpath. Try removing the JWSDP libraries and solely rely on the JBOSS_HOME/client/*.jar libraries. You may also take a look at the jbossws samples that ship with the distribution.

  • Debugging my Web Service Request

    Hi,
    I am trying to use standard WS tools (like soapUI) to consume the CW14 WS.
    The first operation I call is Authentication – login.
    I get a good response (“true”) and a “set cookie” back in the soap header.
    I am using this cookie in every Request that follows, to authenticate the session.
    Note 1: if I use a wrong cookie, or set it up incorrectly, I get a “session not authenticated” response, so I know I’m doing it write when I do.
    Now I am trying to call a simple operation like ReadProjects.
    The WSDL for ReadProjects has a set of restrictions on values I am allowed to pass, and I follow them.
    Note 2: there are some mismatches, where for example <Field> can be A,B or C (according to the restrictions in the WSDL) but if I use A, I get a “wrong field value” response. I found that I have to use lower case  (‘a’) instead.
    To make the operation simple, I do as suggested in the documentation and WSDL restriction, and I pass the minimum amount of arguments required ex:
    <Field>title</Field>
    <Filter>ProjectName=MyProjName </Filter>
    Seems like no matter what I try, I get back “error: general error” as a response.
    Any help solving this and getting me on the right path, would be simply amazing.

    No that did not fix the problem, I still get that error
    Web Service Request Failed
    The following fault was returned from the web service call:
    Code          Server.NoService
    String          The AXIS engine could not find a target service to invoke! targetService is rpc/webtopsession

  • EJB3 Web service - auto generate artifacts when deployed?

    Hello. I apologize in advance if this question was asked already, but I was unable to find an answer.
    Is there a way to tell WebLogic 10 to auto generate all of the required artifacts for a webservice (when deployed) instead of having to manually run the jwsc ant task on each web service class file?
    Thanks,
    Mike

    It is now working
    Regenerating everything form scratch made the stuff working
    From my experience:
    - the function you call in the web service should be available in remote and local interface
    - ArrayList or [] both works. The classes returned inside the List should implement Serializable
    - you do not have anything to change in the VI or any SAP file

Maybe you are looking for