J2ee web services

Hi;
I would like to communicate two applications ( but can be more) which are written differently (one in C++ with a heavy customer and another in J2ee but can be another in PHP...) on different platforms (Windows and linux).
The Web service technologie to be able to make communicate these applications.
Q : There are several technologies: WDSL, SOAP, UDDI, XML... wish proposes J2ee on this subject: how realize a Web service (with an example ) and especially your experience feedbacks.
Regards;

this thread might help a little.
http://forum.java.sun.com/thread.jspa?threadID=726513&tstart=0

Similar Messages

  • JAX-RPC vs OC4J J2Ee web service

    Hi,
    Currently we use Oracle10G 10.0.3 developer preview edition. we deployed same web service on both JAX-RPC platfrom and OC4J J2EE web service platfrom (RPC encoding style). We found that old platform seems to perform better than JAx-RPC platfrom with regard to serialization and de-serialzation. We also did the test on Doc/literal style in JAX-RPC platfrom and its performance is not as good as the one deployed on old platform. We understand JAX-RPC is new implementation and Oracle10.0.3 is under developer preview edition and so it may not be optimized. We have following questions
    1. Is this a known issue in JAX-RPC platform?
    2. Is there anyway to optimize JAX-RPC web service? Like using different XMl parser (instead of Oracle XML parser)
    3. When is the final release of 10.0.3 expected?
    4. Will Oracle be supporting old web service platfrom (OC4J J2EE web service platform)? If so how long?
    Thanks and regards
    __Hari

    Hi,
    Currently we use Oracle10G 10.0.3 developer preview edition. we deployed same web service on both JAX-RPC platfrom and OC4J J2EE web service platfrom (RPC encoding style). We found that old platform seems to perform better than JAx-RPC platfrom with regard to serialization and de-serialzation. We also did the test on Doc/literal style in JAX-RPC platfrom and its performance is not as good as the one deployed on old platform. We understand JAX-RPC is new implementation and Oracle10.0.3 is under developer preview edition and so it may not be optimized. We have following questions
    1. Is this a known issue in JAX-RPC platform?
    2. Is there anyway to optimize JAX-RPC web service? Like using different XMl parser (instead of Oracle XML parser)
    3. When is the final release of 10.0.3 expected?
    4. Will Oracle be supporting old web service platfrom (OC4J J2EE web service platform)? If so how long?
    Thanks and regards
    __Hari

  • Error while returning complex data type in a J2EE web service

    Hello,
    I am implementing J2EE web service which returns array of custom class object.
    I have implemented serializable interface to custom class, and also to session bean.
    But it gives the following error:
    Serializing object [Lcom.ltitl.j2ee.ejb.classes.ProjectDetails;@2a2289 fails. Nested message: XML Serialization Error. Object of Class [com.ltitl.j2ee.ejb.classes.ProjectDetails] does not have property [ObjId] of type [java.lang.Integer]. Check if the right object is passed to the serialization routine..
    As error stated about some property ObjId..I tried including such property in my class. But now it gave exception while deploying stating that ObjId already defined.
    Also I want to return multiple arrays of complex custom classes. i tried using vectors but didnt work. What is the method to return arrays of complex custom classes.
    Please help..
    Abhijeet

    Trying to create a web service that returns a Collection doesn't seem to be possible in Netweaver. The reason for this is that languages other than Java have difficulty in mapping Collections, amongst others, to their own native equivalents.
    There is a discussion on the subject here you may find useful:
    http://forum.capescience.com/showthreaded.php?Cat=&Board=webservices&Number=147&page=0&view=collapsed&sb=5&o=&vc=1
    The short answer is to use object Arrays instead, or a custom class that contains an array of each type of object you would expect to find in your Vector
    Hope this helps
    Steve

  • NullPointerException in Create J2EE Web Service Wizard

    I created an EJB2.1 session bean that has a method which returns an user defined class and also throws user defined exception. I tried to use the Create J2EE Web Service and chose to use RPC/Encoded scheme.
    The WSDL and java-wsdl mapping files were generated, but I got the following messages and exception. The webservices.xml and oracle-webservices.xml were not generated and wizard did not finish. Any ideas why would this happen?
    Web Service Log :
    Generating WSDL and mapping file
    Generating deployment descriptors
    ERROR: [failed to localize] Unable to find member message in jax-rpc mapping metadata for the exception whose wsdl message is: {http://mypackage/}MyException
    Exception dialog :
    java.lang.NullPointerException
         at oracle.j2ee.ws.tools.wsa.Util.createDeploymentDescriptors(Util.java:482)
         at oracle.j2ee.ws.tools.wsa.Util.createDeploymentDescriptors(Util.java:759)
         at oracle.jdeveloper.webservices.model.Generator.generateDDFiles(Generator.java:734)
         at oracle.jdeveloper.webservices.model.java.BaseJavaGenerator.doGeneration(BaseJavaGenerator.java:173)
         at oracle.jdeveloper.webservices.model.Generator.generateImpl(Generator.java:447)
         at oracle.jdeveloper.webservices.model.Generator.generate(Generator.java:295)
         at oracle.jdeveloper.webservices.model.WebService.saveEditImpl(WebService.java:3971)
         at oracle.jdeveloper.webservices.model.WebService.mav$saveEditImpl(WebService.java)
         at oracle.jdeveloper.webservices.model.WebService$1.run(WebService.java:3817)
         at oracle.jdeveloper.webservices.model.GeneratorUI$GeneratorAction.run(GeneratorUI.java:446)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:551)
         at java.lang.Thread.run(Thread.java:595)

    Specifically, this happens only when there is an exception thrown from the session bean method.

  • How to create stub for C++ client to invoke a  j2ee web service

    Hi All,
    I have developed a j2ee web service which is deployed in Tomcat. I have to call this service from C++ client. I have followed "Axis C++ Client User's Guide" to create stub for my service. I am running WSDL2Ws tool with command
    D:\axisserver\axis-c-win\wsdls>java -cp %AXISCLASSPATH_C%; org.apache.axis.wsdl.wsdl2ws.WSDL2Ws Calculator.wsdl -lc++ -sclient. While running this WSDL2Ws tool , it is giving error.
    Exception Stack is as follows.
    Exception in thread "main" java.lang.NoSuchMethodError
    at org.apache.axis.wsdl.wsdl2ws.info.Type.<init>(Unknown Source)
    at org.apache.axis.wsdl.wsdl2ws.info.TypeMap.getType(Unknown Source)
    at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.createParameterInfo(Unknown Source)
    at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.addRPCStyleInputMessageToMethodInfo(Unknown Source)
    at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.setMethodInfo(Unknown Source)
    at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.getServiceInfo(Unknown Source)
    at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.generateWrappers(Unknown Source)
    at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.main(Unknown Source)
    Anybody can suggest me what i missed...
    Thanks in advance...

    Hi all,
    I have solved this issue. I had JDK1.3 by default. So it was giving error. When i use java from jdk1.4, it created stubs for web service. Java version was the problem. Now it is working fine.
    Thanks....

  • J2EE Web services and JAX-RPC

    Hello..
    While working with J2EE web services using JDeveloper and OC4J, I noticed that it really doesn't confirm to Sun's JAX-RPC standard. The Web Service interface class does not extend the "Remote" and all methods don't throw "RemoteException" as mandated by JAX-RPC standard.
    I have few questions:
    (1) Are the OC4J J2EE web services completey different from JAX-RPC based web services.??
    (2) Does Oracle have any implementation of JAX-RPC??
    (3) Is Sun the only one promoting and implementing the JAX-RPC standard? Or are there other players?
    thanks...

    (1) Are the OC4J J2EE web services completey different from JAX-RPC based web services.??
    OC4J J2EE Web Services originate from Oracle/Apache SOAP with several differences:
    a. A model where each type of implementation gets a specific servlet (e.g. one for EJB's, one for PL/SQL, one for stateless and stateful Java classes. Architecturally, you can see the picture here:
    http://otn.oracle.com/docs/products/ias/doc_library/903doc_otn/generic.903/b10004/orawebservices.htm#1024808
    (scroll down a half page for the picture)
    b. The packaging of the Web services rather than using the Apache SOAP registration mechanism uses something closer to JSR 109 (also known as Web Services for J2EE, part of J2EE 1.4 with JAX-RPC, SAAJ [SOAP API forAttachments in Java] and JAXP [Java API for XML Parsing]), where the Web service is packaged as an ordinary ear file for deployment.
    Oracle built this implementation by extrapolating from the JAX-RPC documentation that was available last year before it was a final specification in an effort to release a production quality Web services implementation that was aligned with JAX-RPC. It has been through two releases - Oracle9iAS 9.02 and Oracle9iAS 9.0.3 and is now being evolved to JAX-RPC as we move to J2EE 1.4.
    (2) Does Oracle have any implementation of JAX-RPC??
    We are planning to release a JAX-RPC implementation in the new year (I don't have specific dates yet) on OC4J. The production implementation of this will be as seamless a migration as possible from the existing implementation. Oracle9i JDeveloper will also add support for JAX-RPC as a 3rd option in its list of choices available. You can get a sense of how such a migration would work by running the Web services wizard in JDev for Apache SOAP and then, in a separate project, running it for Oracle9iAS J2EE Web Services - imagine there being another option for JAX-RPC. The work to migrate should be as simple as running a wizard or command line utility (known as the Web Services Assembler tool in Oracle9iAS).
    (3) Is Sun the only one promoting and implementing the JAX-RPC standard? Or are there other players?
    Pretty much every one in the Java side of industry will be implementing JAX-RPC. The important time to note is when J2EE 1.4 is released ... sometime in the new year ... I believe around March but may be mistaken. Part of J2EE 1.4 is required support for JAX-RPC, SAAJ, Web Services for J2EE etc etc. This will standardize the implementation of Web services. Oracle, like others in the industry, supports the standard protocols, (SOAP), interfaces (WSDL) and registries (UDDI) - what J2EE 1.4 does is standardize the packaging, deployment and implementation (the wrappers generated by the tooling).
    My guess is that around JavaOne (June 2003) there will be a rash of announcements from J2EE vendors announcing support of JAX-RPC and J2EE 1.4 (or early implementations) as we will be in the same race that happened in 2001/2002 when J2EE 1.3 was the spec to announce implementations around.
    Mike.

  • Deploy a J2EE Web Services App in CE 7.1 SP1 SDN Preview

    Hi,
    I am new to SAP CE 7.1 SP1 (SDN Preview). I have a SAP J2EE (web services) application developed for SAP Netweaver 7.0.
    How to deply the application in CE 7.1 SP1.
    thanks in advance,
    Nagarjuna.

    Hi Nagarjuna,
    the easiest way will be to use the Deployment perspective in NWDS. Just choose Window > Open Perspective > Other > Deployment.
    If you have the application packages in a deployable archive (EAR, SCA, SDA, ...) in the file system, right-click External Deployable Archive and select Add. You can also choose archives to be deployed from the workspace.
    If your application cannot be deployed or doesn't run properly, you might have to make some changes to it in order to port it from NW 7.0 to 71.
    Other methods of deployment:
    - There's a program called JSPM which is aimed primarily at non-development, admin users (the guys running the production system).
    - There's a command-line deployment tool - have a look at <Install drive>\usr\sap\CE1\J00\j2ee\deployment\scripts.
    Cheers,
    Thorsten

  • Timeout error at J2EE Web Service client

    i have a .NET web service. a J2EE web service client deployed on Websphere application server 5.1 is invoking it. some services on .NET end take a long time to return a value. in such cases, the following error occurs on J2EE end. please suggest a solution.
    faultCode: Server.generalException
    faultString: java.net.SocketTimeoutException: Read timed out
    faultActor: null
    faultDetail:
    java.net.SocketTimeoutException: Read timed out
    at com.ibm.ws.webservices.engine.WebServicesFault.makeFault(WebServicesFault.java:150)
    at com.ibm.ws.webservices.engine.transport.http.HTTPSender.invoke(HTTPSender.java:200)
    at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:212)
    at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:255)
    at com.ibm.ws.webservices.engine.client.Connection.invokeEngine(Connection.java:685)
    at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:611)
    at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:441)
    at com.ibm.ws.webservices.engine.client.Stub$Invoke.invoke(Stub.java:662)

    Hi, am also getting time out .. excepiton in client
    i added the following code inside stub class constructer...
    System.out.println("GET TIME OUT ::::"+super.getTimeout());
    super.setTimeout(77777);
    System.out.println("GET TIME OUT AFTER SET::"+super.getTimeout());
    compilation success. However am getting runtime exception after the sop.
    GET TIME OUT ::::0
    javax.xml.rpc.ServiceException: WSWS5014E: Error instantiating generated Stub class.
    can you please tell me how u solved the issue.
    Thanks
    Bogi

  • Deploying ADF BC as J2EE Web Service

    I am attempting to deploy some ADF BC components (just the data model) as a J2EE web service. In the Application Module Editor I have selected the "Remoteable Application Module" and selected the "J2EE Web Service" option. Some of my public methods that I have exposed on the Client Interface (which return primitive types or serializable complex types) of the AM are placed into the WSDL of the web service. I would like to return a representation of one of the View objects and understand since the view itself is not a serializable type, I cannot return this directly. I created a public method on the Application Module that returns a RowSet (which I grabbed from the view) and it allows me to put that method on the Client interface but it does not show up in my web service. Is there anyway to directly return a representation of the view without manually retrieving the data and placing it in a custom class/bean that I return and then have to turn back into a view on the calling side?
    Thanks for any help

    Hi,
    exposing a VO as a WebService will come a s a feature in JDeveloper 11. Until then you can only expose methods
    Frank

  • Problem creating j2ee web service

    Hello. I'm having an issue deploying a given java class as a web service. I believe that problem is caused because, in the generated WSDL, the target namespace is set via the package name (i.e. http://myapplication.mycompany.com ), which is not a valid host. I tried changing every occurrence of that URL, in the WSDL, to the context root of my local host, but it still can't resolve the bindings. Given the following deployment message, what should my target namespace be:
    (from OC4J startup):
    Target URL -- http://localhost:8988/myApp-myProject-context-root/MyWebServiceSoapHttpPort
    06/06/12 13:34:17 Web service MenuWebService has been started on the embedded server
    06/06/12 13:34:17 Oracle Containers for J2EE 10g (10.1.3.0.0) initialized
    Any help would be appreciated. Thanks. Take care.

    here are the classes:
    service class:
    package com.test.service
    public class MenuService {
        public MenuService() {
        public String echo(String payload) {
            return payload;
        public ViewRight echoViewRight(ViewRight viewRight) {
            return viewRight;
    }view right class:
    package com.test.service
    public class ViewRight {
      private Integer id;
      private String name;
      private String description;
      private String members;
        public ViewRight() {
      //setters/getters
    }Here's the exception I get (if I just try to inovke the string echo method):
    java.rmi.RemoteException: Error parsing envelope: (1, 1) Start of root element expected.; nested exception is:
         javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
         at menusproject.proxy.runtime.MenuWebServiceSoapHttp_Stub.echo(MenuWebServiceSoapHttp_Stub.java:100)
         at com.test.gui.menus.service.MenuWebServiceSoapHttpPortClient.<init>(MenuWebServiceSoapHttpPortClient.java:19)
         at com.test.gui.menus.service.MenuWebServiceSoapHttpPortClient.main(MenuWebServiceSoapHttpPortClient.java:27)
    Caused by: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
         at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:104)
         at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:76)
         at oracle.j2ee.ws.saaj.soap.MessageImpl.getSOAPBody(MessageImpl.java:713)
         at oracle.j2ee.ws.client.StreamingSender._preHandlingHook(StreamingSender.java:673)
         at oracle.j2ee.ws.client.StubBase._preHandlingHook(StubBase.java:664)
         at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:201)
         at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:111)
         at menusproject.proxy.runtime.MenuWebServiceSoapHttp_Stub.echo(MenuWebServiceSoapHttp_Stub.java:77)
         ... 2 more
    Caused by: oracle.xml.parser.v2.XMLParseException: Start of root element expected.
         at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:333)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:295)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:201)
         at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:78)
         ... 9 more
    Message was edited by:
    sean_m_flannery

  • Deploy J2EE Web Service with otherwise than SUN1AS

    Right now i have a webservice up and running on a Sun1 that comes with J2EE1.4 tutorial.
    But if i try to deploy the war to other AS (say OC4J), saving the web.xml transformed to 2.3, the call to this WS fails because it says the Servlet is not a Servlet (wich is quite right). So, what is going on?
    Can't I deploy a WAR containing a WS generated with deploytool to other AS?
    Thanks and thanks again,
    Mariano.

    Things I've learnt these days.
    1-) J2EE is still too new for many Application Servers.
    2-) Developing web services is a tough, long way to go.
    I finally realized war's containing web services are not that portable at all.
    I had to download Jdev's 10g preview in order to deploy 1 miserable JAX-RPC web service in OC4J.
    And I still can't return a java.util.HashMap in the service's response...not to mention trying to add its mapping in JDev's web service creating process...
    So, hold still gentleman, for it's rough.
    Thanks,
    Mariano.

  • J2EE web service client using WSDL

    Hi,
    We are required to develop client program in Java for the
    web services developed in SAP XI 2.0.
    We will be getting the WSDL files for corresponding web
    services.
    We have tried doing it with J2EE JAX-RPC...
    We studied the sample program of HelloService...
    While calling the service from command line..it takes .jar file..
    But we have to make use of only WSDL....
    Is there any alternative way?? or jax-rpc is the best one???
    wat will be the best way to do so??

    Hi,
    thanx for your reply!
    We have written web services in SAP XI 2.0....
    we has generated corresponding WSDL..which is little
    incomplete..but we can modify and update it according to
    requirements...so we have complete WSDL....for corresponding web
    services.
    My colleagues have developed web dynpro application which
    makes use of those services. Now for demostration purpsoe we need
    to write java/jsp which will access those services...
    can u help???

  • BPEL & Oracle J2EE Web Services

    I have only tested with success invocations to JAX-RPC
    web services.
    When I try to call an oracle J2EE rpc/encoded web service
    I get a runtime error:
    BPEL Fault: {http://mypackage4/ws_hola.wsdl}org.apache.wsif.soap.fault{org.apache.wsif.soap.fault.object=No Deserializer found to deserialize a 'http://mypackage4/ws_hola.wsdl:quien' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'. [java.lang.IllegalArgumentException]}
    Does anybody know why?

    Hello 2087,
    try to add support for xsi type in "bpel.xml" of your bpel process
    Example:
    <?xml version="1.0"?>
    <BPELSuitcase>
    <partnerLinkBinding name="PartnerLinkName">
    <property name="wsdlLocation">services/PartnerLinkNameWrapper.wsdl</property>
    <property name="sendXSIType">true</property>
                   </partnerLinkBinding>
    For more information see the link in this forum:
    [NOTE] Adding xsi type to SOAP messages
    ByeBye
    Andrea

  • Log for J2EE Web Services?

    Hi All,
    My SAP Web Application Server has some Web Services.
    The Web Services are being run from the same server (Web Dynpro/Java Projects).
    Is there a <b>built in</b> log which holds data of the calls?
    Info like request/response, HTTP codes etc...
    My J2EE version is 6.14, soon will be upgraded to 6.19.
    Regards,
    Omri

    Thanks for the answers.
    I've found <a href="http://help.sap.com/saphelp_nw04/helpdata/en/60/aec0b110a940d09e7a296c09af27bf/frameset.htm">this</a> in help.sap.com.
    I did the config in 'Log Configurator' and log file should be
    ./log/services/webservices/runtime/sap.com_WS/Hello.trc
    I changed the severity to 'ALL' and run the service a few times (through Web Service Navigator & a Web Dynpro application)
    I looked for 'Hello*.trc' files but I couldn't find any.
    So what is the correct way to configure it?
    I've checked the 'regular' config files (DefaultTrace, applications etc) but they don't contain the data I need.
    Regards,
    Omri

  • Calling j2ee web service with portal user

    Hello,
    I created web service using Nwds Ejb.
    I want to run this web service from sap portal iview and to receive the same user Id that logon to the portal , on the web service side.
    In the j2ee Ejb code I am using :
    try{
      String username = myContext.getCallerPrincipal().getName();
    IUser user =
    UMFactory.getUserFactory().getUserByUniqueName(username);
    return user.getUniqueName;       
    } catch(UMException e) {
    return e.getMessage();                
    But the result is  always Guest ?
    even if I selected use sap authentication on the wsdl descriptor.
    Need some help solving this issue?
    Thanks in advance
    Nir

    Hi,
    And Could we know how you manage this?
    I'm also interested in resolving this kind of issue.
    Edited by: Xavier Tendron on Oct 19, 2009 3:23 PM

Maybe you are looking for

  • PT880 board problems, PLEASE HELP!!!!!!

      someone please help. so my computer is running totally fine. i plug in my usb cable for my wifes digital camera like normal, but it smelled funny.................   strange cause she has used this so many times. anyways at the boot up screen it che

  • How to wipe hard drive to sell without disks

    I am selling my 13"  macbook pro  (anyone interested?) I need to wipe or restore my hard drive to protect my information. What is the best way to do this without having to purchase the disks? Thanks!

  • Photoshop element 9: no thumbnails

    Hi! When I import picture tubnails is not showing up, only timeglas even how long I wait the tubnails is not executed I tried to update from 9 to 9.03 but it did not worked out either. Any help would be much appriciated, Best regards Kenneth

  • How to implement search help instead of match code objects table in program

    Hi, We are now in upgrade process of code remediation ( From 4.6c to EC6.0). We have created search helps instead of matchcode object table. This match code object table M_VMVLC has been deleted in EC6.0.  And search help VMVLC is available. In the p

  • Apex database  problem

    hello I use apex which in 10g XE but I could not create any forms except the samples how can I create my own forms? and also I could not link my database which installed in SQL developer. there are only sample forms and the other sample pages in apex