Seeking help for JAX-RPC in Eclipse

Hi, I am going to deploy a web service with JAX RPC in Eclipse.
I googled the tutorials, but most of them involves priciples and XML stuffs. I feel it is really hard for a beginner.
I am looking for some snapshots or other materials to demonstate how to use it.
Any help would be greatly appreciated.

Hi, I am going to deploy a web service with JAX RPC in Eclipse.
I googled the tutorials, but most of them involves priciples and XML stuffs. I feel it is really hard for a beginner.
I am looking for some snapshots or other materials to demonstate how to use it.
Any help would be greatly appreciated.

Similar Messages

  • URGENT **** Need help for JAX-RPC Web Service Proxy deploy to OC4J 10.1.3.5

    Hi everyone!
    I’m really new to web services.
    I’m getting a *500 internal server error* while deploying my JAX-RPC web service Proxy to an Oracle AS, in an OC4J, v. 10.1.3.5.0.
    Running my client from my development environment (*jdeveloper 10g, 10.1.3.5.0*) everything functions correctly: from jdeveloper I can contact and use the web service defined by the following endpoint: https://www.medialibrary.it/services/federaMLOL.asmx?WSDL
    I created a "try_ws_client.jsp" file that runs correctly from my local development environment jdeveloper (that uses an embedded oc4j, v. 10.1.3.5.0) but fails when run from the test server (Oracle AS, in an OC4J, v. 10.1.3.5.0), getting, as I mentioned a 500 internal server error, a white page in IE but with FF the message says: The’s an error in the servlet .....
    Here's how I created the ws proxy and how I’m using it to consume the ws I mentioned.
    1. I used the jdeveloper “Create Web Service Proxy” wizard (File > New > Business Tier > Web Services > Web Service Prox) and in the WSDL document URL I put: https://www.medialibrary.it/services/federaMLOL.asmx?WSDL
    2. The operation ended without adding nothing to the web.xml file and creating the proxy files. One of them is: FederaMLOLSoapClient.java that have the WS exposed methods (es: public boolean createUser(String) ) + a “main” method with the example how to use this client to consume the WS.
    public static void main(String[] args) {
    try {
    it.reggiocity.provincia.mlol.proxy.FederaMLOLSoapClient myPort = new it.reggiocity.provincia.mlol.proxy.FederaMLOLSoapClient();
    System.out.println("calling " + myPort.getEndpoint());
    // Add your own code here
    } catch (Exception ex) {
    ex.printStackTrace();
    3. In FederaMLOLSoapClient.java I’ve create the method "tyIt":
    public String tryIt(String username) {
    try {
    it.reggiocity.provincia.mlol.proxy.FederaMLOLSoapClient myPort = new it.reggiocity.provincia.mlol.proxy.FederaMLOLSoapClient();
    if(myPort.createUser(String username)) {
    return “O.K”;
    } else {
    return “K.O”;
    } catch (Exception ex) {
    // logs error
    4. I created my try_ws_client.jsp file that creates FederaMLOLSoapClient object and calls the tryIt method, printing the “OK” or “KO” message.
    <%@ page import="it.reggiocity.provincia.biblioreggiane.*"%>
    <%
    String message = "";
    FederaMLOLSoapClient obj= new FederaMLOLSoapClient( );
    message = obj.tryIt(“AAAAAA70R10H226H”);
    %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
    <title>prova</title>
    </head>
    <body><%=message%></body>
    </html>
    The situation is:
    My try_ws_client.jsp runs correctly from my jdeveloper and the user is created while creating app.ear and deploying it to my Oracle AS/OC4J as mentioned above, I get a 500 Internal Server Error.
    Any idea to find a solution to this problem?
    Please help.
    Take care.
    John M.

    Hi,
    you want to build the Web Service, or you want to consume the Service as a client? If the latter, Web client (ADF?) or Java client?
    Frank

  • Constants for JAX-RPC

    Hello!
    How can I define constants in a value object? I need constants that should
    be used in a value object both by server and client. From Java language
    perspective, I can define static final constants in either value object
    itself or in separate class/interface. When servicegen and clientgen tasks
    create WSDL and remote stubs for value objects, they strip out my constants
    definitions.
    For now I use separate Constants class that I put manually into client JAR
    file. It works, but to make it cleaner I would like to define these
    constants in WSDL file. How can I do it?
    Thanks in advance!
    Michael Jouravlev.

    JAX-RPC does not say how to handle public final fileds in
    value types.
    One way to solve this problem may be to specify fixed attribute
    in the xsd:attribute.
    eg:
    <xsd:attribute name="country" type="xsd:string" fixed="US"/>
    But this will work only for simpleTypes. Anyway, I will file a feature
    request for this (CR080597). Hope someone(jax-rpc/soap builders)
    will comeup with a better solution.
    regards,
    -manoj
    "Michael Jouravlev" <[email protected]> wrote in message
    news:[email protected]..
    Hello!
    How can I define constants in a value object? I need constants that should
    be used in a value object both by server and client. From Java language
    perspective, I can define static final constants in either value object
    itself or in separate class/interface. When servicegen and clientgen tasks
    create WSDL and remote stubs for value objects, they strip out myconstants
    definitions.
    For now I use separate Constants class that I put manually into client JAR
    file. It works, but to make it cleaner I would like to define these
    constants in WSDL file. How can I do it?
    Thanks in advance!
    Michael Jouravlev.

  • How can I change namespace prefix for JAX-RPC client request?

    I'm creating a JAX-RPC client to invoke a RPC/encoded web service. The service was generated from a ColdFusion program and for some reason when the SOAP namespace prefix is anything but "soapenv" it returns text/html instead of text/xml. Currently the client is sending requests with the prefix "env" and I'd like to change it to "soapenv".
    I created a type of javax.xml.rpc.handler.GenericHandler and attempted to do the follow:
    @Override public boolean handleRequest(MessageContext p1) {
         SOAPMessage msg = ((SOAPMessageContext) p1).getMessage(); 
         try {
              SOAPPart part = msg.getSOAPPart();
              SOAPEnvelope envelope = part.getEnvelope(); 
              envelope.setPrefix("soapenv"); 
              msg.saveChanges(); 
         } catch(SOAPException ex) {
              // TODO
              return false;
         return true;
    However I get the following exception:
    java.rmi.RemoteException: SOAPFaultException - FaultCode [{http://schemas.xmlsoap.org/soap/envelope/}Server] FaultString [UNIMPLEMENTED ] FaultActor [null] Detail [<detail><bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">java.lang.AssertionError: UNIMPLEMENTED
    at weblogic.xml.domimpl.NodeImpl.setPrefix(NodeImpl.java:173)
    at test.MyHandler.handleRequest(MyHandler.java:33)
    at weblogic.wsee.handler.JaxrpcHandlerChain.handleRequest(JaxrpcHandlerChain.java:58)
    at weblogic.wsee.ws.dispatch.server.JaxrpcChainHandler.handleRequest(JaxrpcChainHandler.java:102)
    at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:141)
    at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:107)
    at weblogic.wsee.ws.dispatch.client.ClientDispatcher.dispatch(ClientDispatcher.java:132)
    at weblogic.wsee.ws.WsStub.invoke(WsStub.java:87)
    at weblogic.wsee.jaxrpc.StubImpl._invoke(StubImpl.java:341)
    at test.Approvedsuppliers_Wrap_Stub.echo(Approvedsuppliers_Wrap_Stub.java:31)
    at test.Approvedsuppliers_WrapPortClient.echo(Approvedsuppliers_WrapPortClient.java:130)
    at test.Approvedsuppliers_WrapPortClient.main(Approvedsuppliers_WrapPortClient.java:43)
    Is there any workaround? I appreciate any feedback.
    Thanks, Bill

    What I ended up doing is converting the SOAP message to a string, replacing the namespace prefix and converting it back to a SOAP message.
    @Override
       public boolean handleRequest(MessageContext messageContext) {
          SOAPMessageContext soapMessageContext = (SOAPMessageContext) messageContext;
          SOAPMessage soapMessage = soapMessageContext.getMessage();
          String soapString = convertSOAPToString(soapMessage);
          soapString = soapString.replaceAll("env:", "soapenv:");
          soapString = soapString.replaceAll("xmlns:env", "xmlns:soapenv");
          SOAPMessage newSoapMessage = convertStringToSOAP(soapString);
          MimeHeaders mimeHeader = newSoapMessage.getMimeHeaders();
          mimeHeader.setHeader("SOAPAction", "");
          soapMessageContext.setMessage(newSoapMessage);
          return true;
       private String convertSOAPToString(SOAPMessage soapMessage) {
          StringWriter stringWriter = null;
          try {
             stringWriter = new StringWriter();
             StreamResult streamResult = new StreamResult(stringWriter);
             TransformerFactory transformFactory = TransformerFactory.newInstance();
             Transformer transformer = transformFactory.newTransformer();
             transformer.transform(new DOMSource(soapMessage.getSOAPPart()), streamResult);
          } catch (TransformerException e) {
             throw new RuntimeException(e);
          } finally {
             close(stringWriter);
          return stringWriter.toString();   
       private SOAPMessage convertStringToSOAP(String soapString) {
          SOAPMessage soapMessage = null;
          ByteArrayInputStream byteInputStream = null;
          try {
             MessageFactory msgFactory = MessageFactory.newInstance();
             soapMessage = msgFactory.createMessage();
             SOAPPart soapPart = soapMessage.getSOAPPart();
             // Load the SOAP text into a stream source
             byte[] buffer = soapString.getBytes();
             byteInputStream = new ByteArrayInputStream(buffer);
             StreamSource source = new StreamSource(byteInputStream);
             // Set contents of message
             soapPart.setContent(source);       
          } catch (SOAPException e) {
             throw new RuntimeException(e);
          } finally {
             close(byteInputStream);
          return soapMessage;
       private void close(Closeable closeable) {
          if(closeable != null) {
             try {
                closeable.close();
             } catch (IOException e) {
                // TODO

  • How to compile and build a war file for JAX-RPC

    Hi all,
    I know that all who use JAX-RPC knows it.
    How to compile JAX-RPC code which was not the sample code of JWSDP example?.
    Which jar file is to be included in classpath?.
    After compiling,how to make a WAR file so i can deploy it in TOMCAT ...anyone plz

    Nobody answers.But i found a right article which was quite helpfull to do it.
    http://java.sun.com/developer/technicalArticles/WebServices/getstartjaxrpc/

  • Seeking help for a  report design

    How to create dynamic footnotes, if it's even possible, with Oracle
    Reports?
    A dynamic footnote would be one that appears on a page only if it is
    used on that page.
    For example:
    Regions: South East West North
    Widget A
    S: $1500.
    E: $100.
    Footnotes:
    S = South
    E = East
    ------------- (page break of group or bottom of page) --------
    Widget B
    S: $1500.
    W: $100.
    Widget C
    S: $1500.
    Widget D
    S: $15002.
    W: $100.
    Footnotes
    S= South
    W = West
    We only want the ones that are used on the page to appear on the footnote
    Any help will be appreciated,
    Thanks.

    Hallo Denis,
    I have a similar problem: Want to display some value from the database in a margin field. I created a user parameter v_Title_Crew and pressetted it in the format trigger of a formula field. Used srw.set_field_char (0, :v_Title_Crew) in the format trigger of the margin field to display the content of the variable. But unfortunately this does not work: It seems to me that the margins are prepared before the query is executed; the variable is not set. Before I simply connected the margin field to the variable in the property palette but this didn't work better. Any idea how to solve this problem?
    Thanks and regards - Ulrich

  • Seeking Help for Guidance in developing a product using JAVA CARD

    Hi All,
    I am using windows environment with netbeans 6.8 as developer tool and MySql Server connectivity for back end process.My requirement is to develop applets and installing them to my Smart card and reader.my question is
    1. how i am supposed to create applets to get the student id of particular student whose id is already registered in the database?
    2. how to install them into the smart card?
    3.what are the commands i am supposed to follow if other than APDU commands?
    4.i found there is APDU commands but what do that each CLA,INS,p1,p2,Lc,le..commands used for?how can i use them in my creation of applets.i found the command varies for certain requirements.
    5.if possible please help me with a small example so that i will start developing it.
    can anyone help me in developing this application.i will be so helpful if anyone helps me in guiding me to develop the java card product.
    Edited by: Sijukj on Mar 4, 2010 7:04 AM

    Hi,
    Welcome to the wonderful world of embedded Java development!
    Sijukj wrote:
    1. how i am supposed to create applets to get the student id of particular student whose id is already registered in the database?The first step is to download the Java Card Development Kit (JCDK) from the Sun website (along with the related documentation/specifications). If you plan on using your code on a real card, I would recommend JC version 2.2.1 or 2.2.2. If it is sufficient to run your applet on a simulator (as a proof of concept or for assignments) with no intention on running on real hardware you could go for JC 3.0.2 and use the supplied simulator. This version of JC does not have commercially available cards as of yet.
    Once you have the applet coded and installed on your card, you would personalise the card for the card holder. This means loading card holder specific data into your application. This may also involve registering the smart card ID with the student in your database.
    2. how to install them into the smart card?The procedure for loading and installing applets is outlined in the Java Card documentation (available with the JC development kits from Sun) and the GlobalPlatform card specifications (available from [http://www.globalplatform.org]). You can look into some open source tools for doing this (GPShell and the Java Card Development Kit).
    3.what are the commands i am supposed to follow if other than APDU commands?This depends on what you are trying to achieve with your applet. If you want interoperability you could implement a standard like ISO7816 or IOS24727. This is a lot of work so you may just want to implement the proprietary you require for each operation you need (e.g. set student ID, get student ID etc).
    4.i found there is APDU commands but what do that each CLA,INS,p1,p2,Lc,le..commands used for?how can i use them in my creation of applets.i found the command varies for certain requirements.These are defined in ISO7816 part 4.
    The CLA byte gives information on the command you are sending such as secure messaging, command chaining, ISO or proprietary command
    The INS is the instruction or command you are trying to perform
    P1 and P2 are parameters to the command. These may not be required for each command but are able to be used to convey further information to the applet.
    Lc is the length of the data field you are sending (e.g. for a PUT DATA command this would be the amount of data you are sending)
    Le is the length of the data you expect to receive back from the card. If this is absent you do not expect the card to return any data, 0x00 means send all the data you have left (up to the limit of the response APDU)
    5.if possible please help me with a small example so that i will start developing it.You can find example code in the Java Card Development Kit. There are a wide range of examples there that can help you get started.
    Cheers,
    Shane

  • Seeking help for VisualAge for Java

    Hi,
    I am using VisualAge 3.5 Professional version to develop Java applications. But I don't know how to build an independent Java application that I can run it outside VisualAge. Can someone give me some tips? THanks!
    I can build an application, and I can run within VisualAge, but when I try to export it, I can only choose either ".class" or ".java" file, so is it possible for me to build an independent ".exe" file from VisualAge? Because if I want to submit an software to a customer, I can't require him to install VisualAge, so what I can do?
    Thanks a lot!

    Hi!
    - Right click on project
    - Select export
    - Select Jar flie
    - Give Path and Name of Jar file
    - Export!
    Execute jar File.... :-)
    I dont have Visual Age Installed on my machiene at the moment, so there could be a step missing.... :-S
    Plus you can also export your whole project out at class files and directly execute your class file, but thats not a good approach for deploying to the client side.
    Hope this helps
    Regards
    Omer

  • Seeking help for d/l of Encore content.

    I am attempting to d/l EncoreContent_en-US.zip from http://helpx.adobe.com/encore/using/download-library-content.html but unfortunately the download is failing repeatedly. Is there another source from which I can d/l this? I am a long time Adobe user (circa 1992), am a CreativeCloud subscriber, but a first time Encore user, attempting to learn Encore and create a DVD menu that is due for work on Monday. Please let me know what I can do to successfully access this content which is not present in the app's original cloud download. Thank you.

    It is a large download. I'll give you the info I have below, but I suspect you have to solve your problem with the download. Mac users especially had problems in the past, and there was some option for download manager that may have helped.
    The full library is 3.8Gb when unzipped. The file you are trying to download is a zip only file that is 2.67 Gb. The earlier version (identical contents) was a 7z zipped file inside a zip file, and it was 1.67 Gb.
    The page you link above is the best option.
    But the page that has the smaller download (double compressed, zip and 7z) is at:
    Library, title templates, template projects missing: Premiere Pro, After Effects, Encore
    Do not download or try to install the file at the top of the page. Click on the link at the top for the download at the bottom of the page:
    Download the extra library content

  • Seeking help for an unresolved problem in the MHP forum

    Over in the discussion forum at the http://www.mhp.org webspace, in the "Getting Started With MHP Programming" section there is a thread named "How To Sign An App." where there are a lot of unanswered questions.
    Is there anyone here who could perhaps have a look at the questions there please?
    There used to be a man named Roger who was very knowledgeable about MHP in that forum and I have seen posts by him here in the past. I only know of him as Roger, so know of no other way to ask for his help than to hope that he is reading this posting. So, if Roger is reading this, could you possibly help please?
    William

    Hi Roger
    Thank you for replying.
    In the event Jon Piesing answered the question on 12 May.
    http://www.mhp.org/forum/forum.xml?forum=13&thread=106&msgid=266
    The answer was as follows.
    quote
    Right now app signing isn't used.
    If it was used, the idea was that broadcasters would have signing certificates not developers. Whoever put your application on air would be responsible for signing it.
    end quote
    That resolved the problem which had been raised as it was clear that an application developer does not need to obtain a certificate.
    William

  • Seek help for install java under linux

    I have successfully installed java on linux , but not able to use many features tht i possibly could , such as jdbc , prblms on Mysql. most buggin prblm how do i set the compiler path to compile files from my home directory. i have to forcefully use the bin directory and run the complier given long address for the files. plz help.
    abhi

    abhi
    I don't know about your MySQL problems based on what you have posted - can you post any more specific information? Have you got the relevant MySQL drivers in your classpath? The drivers are available here:
    http://www.mysql.com/downloads/download.php?file=Downloads/Connector-J/mysql-connector-java-2.0.14.tar.gz
    the README in that file will give you installation instructions.
    how do i set the compiler path to compile files from my home directorySet the CLASSPATH environment variable to include whichever directories you like, eg (on bash) type:
    export CLASSPATH=$CLASSPATH:.:<your java dirs>To make java easier to run, put the directory in which it is installed into your path:
    export JAVA_HOME=<where you installed java>Then do
    export PATH=$PATH:$JAVA_HOME/binverify it has worked by simply typing
    javaYou can put all of these commands into the .*rc file for your shell, so that they are executed every time you open the shell. So if you are using bash you can put them into ~/.bashrc
    Read up setting the PATH and CLASSPATH for more info.
    HTH
    Matt

  • Oracle 9iAS R2 support for JAX - RPC / B / P /M

    Hi,
    browsing the web I came accross to the following links:
    http://otn.oracle.com/tech/webservices/htdocs/wsvsm/wsorcl.html
    http://otn.oracle.com/tech/xml/htdocs/standard.html
    And it seems that Oracle 9iAS R2 supports the libs mentioned on Subject.
    From other channels I've been told that this is not true at least for some of them on OC4J 9.0.3/4.
    Can anyone please clarify this ?
    Aren't OC4J 9.0.3/9.0.4 part of 9is R2 ?
    Thanks.
    Giuseppe.

    Actually, JAXB is the preferred mechanism going forward with 10.0.3 JAXRPC Web Services(http://otn.oracle.com/tech/java/oc4j/1003/content_preview.html) - you will see in the XDK 10 beta (http://otn.oracle.com/tech/xml/xdk/xdkbeta.html).
    However, in 9iAS R2 JAXB is not built in ... if you want to go down this road you can try working with the JAXB RI.
    Our plans with 10.0.3 start with support JAXB in the run time but also within the design time of JDeveloper. The goal would be to model your schema in its new visual schema editor, have a design time option to generate the JAXB object model and then implement a Web service that consumes that schema. Of course this could be done out side of JDev - JDev just gives a design time rather than command line tools from the runtime.
    Mike.

  • Seeking help for PXI card Installati​on Procedure Guidance

     I have PXI-1042 Chassis with PXI Card numbers 2503 MUX , DIO and AIO cards.  We are running LabWindows CVI with TestStand 3.0.I have to load all of the above into a new system.  I wanna know the step wise procedure i need to follow for using these above mentioned cards w.r.t INSTALLATION process. May i get the document OR link OR any suggestions i need to follow.???
    Thank you in advance

     I have PXI-1042 Chassis with PXI Card numbers 2503 MUX , DIO and AIO cards.  We are running LabWindows CVI with TestStand 3.0.I have to load all of the above into a new system.  I wanna know the step wise procedure i need to follow for using these above mentioned cards w.r.t INSTALLATION process. May i get the document OR link OR any suggestions i need to follow.???
    Thank you in advance

  • Seeking help for compiling jdk1.5

    During the compilation I got the following errors. I'm wondering if anybody have the same experience and the way to solve it? Thanks a lot.

    ../../../src/share/native/java/lang/System.c(90) : error C2017: illegal escape sequence
    ../../../src/share/native/java/lang/System.c(90) : error C2115: 'function' : incompatible types
    ../../../src/share/native/java/lang/System.c(90) : warning C4024: 'function through pointer' : different types for forma
    l and actual parameter 2
    ../../../src/share/native/java/lang/System.c(90) : error C2143: syntax error : missing ')' before 'constant'
    ../../../src/share/native/java/lang/System.c(90) : error C2017: illegal escape sequence
    ../../../src/share/native/java/lang/System.c(90) : error C2017: illegal escape sequence
    ../../../src/share/native/java/lang/System.c(90) : error C2059: syntax error : ')'

  • Desperately seeking help for displaying image on button

    i wrote the following method to create and display a button with an icon, doesn't work and i cannot figure out what the problem might be and how to fix it, please help me...
    clo :))
    public static void addButton(Container c, String title,
    ActionListener listener)
    JButton button = new JButton(title);
    button.setBorder(null);
    button.setFocusPainted(false);
    button.setBorderPainted(false);
    button.setContentAreaFilled(false);
    ImageIcon icon = new ImageIcon("anImage.jpg");
    button.setIcon(icon);
    c.add(button);
    button.addActionListener(listener);
    the parameter c is of JPanel type and gets added to a JFrame object,
    the source compiles and runs but i see no image on my button, sigh :((!
    PS(the image file is placed in the same dir as the source file).

    Why buttons and labels might not show up the icon?
    Either your image is not in the classpath and you are trying to load it as a resource: see
    http://java.sun.com/docs/books/tutorial/uiswing/misc/icon.html
    or you are running the java machine from a different directory that you expect it does.
    or the file doesn't exist.
    To prove that the system cannot load the image use the example in the above link and the url will be null.
    URL iconURL = ClassLoader.getSystemResource("anImage.jpg");

Maybe you are looking for