Help about Java web service

hi
does anyone help me on java web service.
what I want is: does the java interact with C# web service? because I have some of project in C# and some of it in java. and another thing: can any one direct me to some lessons for java web sarvice?
thanks

Hello,
You can have a lootk at the Tango project.
http://java.sun.com/developer/technicalArticles/glassfish/ProjectTango/
Regards,
Sebastien Degardin

Similar Messages

  • Help with Java Web Service

    Hi,
    I tried integrating java code with java embedding acitivity, but in em it is failing. Can anybody know how to convert the below java code to a webservice, so that I can pass the input paramaters directly to that webservice. I tried of converting java code to webservice in jdeveloper, but because of static void main it is not converting. Can somebody help me in this issue.
    this is the original executable java code.
    package com.holx.api.test;
    import java.util.HashMap;
    import com.agile.api.APIException;
    import com.agile.api.AgileSessionFactory;
    import com.agile.api.IAdmin;
    import com.agile.api.IAgileClass;
    import com.agile.api.IAgileList;
    import com.agile.api.IAgileSession;
    import com.agile.api.IAutoNumber;
    import com.agile.api.IDataObject;
    import com.agile.api.INode;
    import com.agile.api.IProperty;
    import com.agile.api.IServiceRequest;
    import com.agile.api.PropertyConstants;
    import com.agile.api.ServiceRequestConstants;
    import com.agile.px.ActionResult;
    import java.net.URL;
    public class TestAgileAPI {
    //     @Override
    //     public ActionResult doAction(IAgileSession arg0, INode arg1,
    //               IDataObject arg2) {
              // TODO Auto-generated method stub
    //          return null;
         * @param args
         public static void main(String[] args) {
              IAgileSession m_session = null;
              IAdmin admin = null;
              IAgileClass cls = null;
         String sr="PR-KB00028";
    String userName="*******";
    String password="*******";
    String URL="*********";
              try {
                   HashMap params = new HashMap();
                   params.put(AgileSessionFactory.USERNAME, userName);
                   params.put(AgileSessionFactory.PASSWORD, password);
                   AgileSessionFactory instance = AgileSessionFactory.getInstance(URL);     
                   m_session = instance.createSession(params);     
                   admin = m_session.getAdminInstance();
                   cls = admin.getAgileClass( "ProblemReport" );
                   IServiceRequest psr = (IServiceRequest)m_session.createObject( "ProblemReport", sr);
              psr.setValue(ServiceRequestConstants.ATT_COVER_PAGE_DESCRIPTION, "KB-Test-20121400");
              } catch (APIException e) {
                   e.printStackTrace();
              } finally {
                   m_session.close();
    Can somebody help me in converting this code into a webservice which accepts String SR as input from soa.
    Thanks,

    Hi Francois,
    I never tried to use a webservice in the value help wizzard, so I don't know if it works or not.
    But for your problem you can build your own value help to avoid the problem.
    You told us that the webservice works in the storyboard. The value help wizard "only" creates a popup iView in your model and assigns the output field of the popup to an input field in a form.
    Maybe as a solution you can insert a popup to the model by yourself. Assign the output field of your popup to the input field for which you want to have the value help. Inside the popup iView you can use your custom built webservice.
    I know that this is a little bit circuitous, but I think it will work.
    Regards
    Christophe

  • Dev Env Setup for Java Web Services

    Where can I find some good documentation that clear shows how to setup CR Server XI2 and my Java dev environment so I can deploy and run the Java Web Services samples and do develoment of my own.  I can only find bits and pieces about Java Web Services but so far cannot get anything to work.

    The XI Release 2 Service Pack 2 Web Services Developer guide is found here:
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2
    /en/en/WS_SDK/wssdk_consumer/default.htm
    Sincerely,
    Ted Ueda

  • Help need in Java Web Service method receiving object values as null

    Below is my web method and Package is the object received from dotnet client as a consumer. I have also defined the Package object structure. Now when I receive the data from dotnet I get only identifier value, but I get ownerid and price as null, even both values are sent by Dotnet client. I want to know whether only primitive datatype in java web service works or I need to do some configuration changes in order to have build in Wrapper class datatypes? It would be a great help if somebody explains.
    @WebMethod
    @WebResult(name = "PackageId")
    public long createNewPackage(@WebParam(name = "Package") com.db.radar.wl.data.Package data1,@WebParam(name = "PackageDetail") PackageDetail data2,@WebParam(name = "PackageTrade") PackageTrade data3);
    public class Package {
    Long ownerid;
    Double price;
    long identifier;
    }

    Hi ,
    I am getting the same error. I am running my application on jboss-4.0.4.GA. Please let me know the version of jboss that you to got it working.
    Thanks
    Viv

  • Java web services help needed

    i am a student. working on a project. using java web services. using its api jax-rpc. i have compiled, deployed and run an example given in the tutorial of the web services tutorial\examples\jaxrpc\hello. now i want to bring the "hello" folder out of its original directory to e.g c:\project\. i have tried alot. i am not able to set the paths in the xml files provided. if any one of you can help me in this. my address is [email protected] . i am waiting for your reply.

    Where are you stuck up.
    Try the following steps
    create a directory structure
    c:\projects\jaxrpc
    copy your example
    <JWSDP>/docs/tutorial/examples/jaxrpc/hello to
    c:\projects\jaxrpc
    you may need to remove \build and \dist from the
    example if you have already tried the example
    copy your example
    <JWSDP>/docs/tutorial/examples/jaxrpc/common to
    c:\projects\jaxrpc
    Now the example will run correctly but only the war
    file is created in your original tutorial location.
    Now modify tut-root in
    c:\projects\jaxrpc\common\build.properties to
    tut-root=C:\\projects
    and modify the war-path in \hello\build.properties to
    point to
    war-path=${tut-root}/jaxrpc/${example}/dist/${deployabl
    -war}
    If anything fails first check the paths through
    <YOUR_path>\hello>ant debug
    If there is problem post details where it is failing.
    Ri am trying this method. i will tell you when it is done. thank you.

  • Publish a JAX-RPC Java Web Service - HELP

    Hi,
    I try to generate a JAX-RPC web services as described in the tutorial : http://www.oracle.com/technology/tech/webservices/htdocs/series/jaxrpc1/index.html. but when generating the web services I have an exception : an unexpected error was encountered. Generation aborted. and when I click details I have the following message :
    java.io.FileNotFoundException: C:\jdev10g\jdev\mywork\WS2-TestOracle\Project1\src\__temp_assembler\public_html\WEB-INF\wsdl\MyWebService3.wsdl (Le chemin d'accès spécifié est introuvable)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.&lt;init&gt;(FileInputStream.java:106)
         at java.io.FileInputStream.&lt;init&gt;(FileInputStream.java:66)
         at oracle.ide.net.FileURLFileSystemHelper.openInputStream(FileURLFileSystemHelper.java:481)
         at oracle.ide.net.URLFileSystemHelperDecorator.openInputStream(URLFileSystemHelperDecorator.java:242)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1028)
         at oracle.jdevimpl.webservices.generator.JAXRPCGenerator.populateWSDLWithEndpoint(JAXRPCGenerator.java:2153)
         at oracle.jdevimpl.webservices.generator.JAXRPCGenerator.generateServiceImpl(JAXRPCGenerator.java:896)
         at oracle.jdevimpl.webservices.generator.JAXRPCGenerator.generateService(JAXRPCGenerator.java:241)
         at oracle.jdeveloper.webservices.JAXRPCSvcModel.saveEdit(JAXRPCSvcModel.java:1613)
         at oracle.jdevimpl.webservices.wizard.WebServicePublishWizard.runWizard(WebServicePublishWizard.java:504)
         at oracle.jdevimpl.webservices.wizard.WebServicePublish.invoke(WebServicePublish.java:95)
         at oracle.ide.WizardManager.invokeWizard(WizardManager.java:484)
         at oracle.ide.WizardManager$1.run(WizardManager.java:538)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    Can any one help,
    Thanks,

    The MyWebService1SEI.java interface does not get generated as indicated in the tutorial.
    If the Web service is generated with
    File>New>Business Tier>Java Web Service with the
    Autogenerate Service Endpoint Interface checkbox selected,
    the MyWebService1SEI.java interface does not get generated.
    The Autogenerate Service Endpoint Interface feature does not autogenerate java interface.

  • Help on Sun Certified Developer for Java Web Services (CX-310-220) exam

    Hi,
    I am planing for Sun Certified Developer for Java Web Services (CX-310-220) certification. Can anyone provide me the links for resouces? can anyone provide me books/publications/author best preparation material to score good marks in exam? can anyone provide me the download resources available over internet?
    thanks in advance..!!!
    regards
    gaveesha

    yes, that's the only decent book covering most of the exam curiculum (but NOT all of it, check the exam specs versus the book content to know what you are missing).
    I'm working on the same material, and boy is it a lot...
    Dry, boring stuff most of it.

  • Java Web Services - a nightmare?!

    Hello Techies,
    Java Web Services has been a nightmare for me. I would like to take your help in understanding it better. I have read many articles on it. But I did not ,yet, get a complete picture on it. They say there are JAX RPC , JAX WS , Axis and so many varities of Web Services. Its so confusing. Will you be kind enough to give a simple overview Java Web Services ? and Where do i start , If i have to learn it ? Any good source of information to learn them?
    Sincere thanks.

    I'm also facing the same problem with you to understand what is web service and how to go about it. Until today I still confusing but I tried to understand it by running a few tutorials. So far the cool one is at http://www.myeclipseide.com/documentation/quickstarts/webservices_jaxws/.

  • Java Web services book

    hello everyone!
    i d like your opinion about a java web services book.
    i am intermediate in java with no experience on web services and XML.
    i d like a book with code explanation and real-world examples.
    Because i like deitel java books (how to program and advanced java) that i have read,
    i am thinking to buy Java Web Services For Experienced Programmers (Deitel Developers Series) book.
    But it is quite old (2002) and i am noy sure.
    Any help would be appreciated! Thanks.

    hi,
    I wonder if I can get help on this, I want to do an automated search from my java code ,but I dont know exactly how to start on this, if anybody could explain or lead e to any website that has examples on this .
    thank you

  • "The Java Web Services" - ant install

    Hi, I recently downloaded "The Java Web Services" and "The Java Web Services Tutorial".
    And I've reached the Creating the Build Properties File portion of the tutorial:
    http://java.sun.com/webservices/docs/1.0/tutorial/doc/GettingStarted2.html#73059
    I'm using Windows ME and I have no idea where to put the build.properties file.
    Can anyone give me any suggestions? I am successfully able to
    ant compile
    but I can't get
    ant install
    to work once I have done the ant compile and I suspect this is because of me not having the build.properties file set... although it could be unrelated to that.
    when I try to use:
    ant install
    I get the following error at the command prompt:
    C:\tim\programs\jwsdp-1_0\docs\tutorial\examples\gs\build.xml:46: java.io.IOExce
    ption: Server returned HTTP response code: 401 for URL: http://localhost:8080/ma
    nager/install?path=%2Fgs&war=file%3AC%3A%5Ctim%5Cprograms%5Cjwsdp-1_0%2Fdocs%2Ft
    utorial%2Fexamples%2Fgs%2Fbuild
    Now tomcat is running on the correct port (8080) and the directory being referenced in the above URL exists. Am I supposed to map tomcat to a particular file system or something?
    Thanks,
    Tim
    PS I have another post in this forum (it contains only my first question concerning the build.properties file), so if you would like the Duke dollars for both posts, feel free to post in both threads and if your answer helps me out, I'll give you the Dollars from both threads.

    Hi Tim
    I have the same problem with the build.properties file. i am not able to solve the problem. did u find any solution for that problem u had. so plz let me knpow about that. i would appreciate if u could mail mne at [email protected]
    thanks in ADV.

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

  • Serialization error while invoking a Java web service

    Hi,
    I've a requirement where I need to create a Java web service, which returns a collection (a set of records).
    The way I've created a web service is by having a Java Class, which internally calls a Pl/sql package returning Ref cursors and a bean Class, which wraps the method of the Java Class, to return the collection. I could create the web service successfully and could invoke the end point. The end point looks like this: http://localhost:8988/MyJavaWebService-New_JWS-context-root/MyWebService_finalSoapHttpPort
    The method exposed for the web service in my Java class is of type ArrayList, to fetch the collection element.
    After giving the input at the end point, while I say invoke, for the web service, I get the following error:
    <env:Envelope
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ns0="http://mypkg/types/"
    xmlns:ns1="http://www.oracle.com/webservices/internal/literal">
    <env:Body>
    <env:Fault>
    <faultcode>env:Server</faultcode>
    <faultstring>Internal Server Error (serialization error: no serializer is registered for (class mypkg.EmpBean, null))</faultstring>
    </env:Fault>
    </env:Body>
    </env:Envelope>
    I've tried making my exposed method of type Vector as well and re-generated the web service. But still I face the same issue at invocation.
    Can anybody help me out and hint me on how I should proceed? I'm not sure if my approach is correct and so please correct me if I'm wrong.
    Thanks in Advance,
    Gayathri

    Hi,
    do you use 10.1.2 or 10.1.3?
    Take a look at:
    Re: How to create a web service with ArrayList or Collection

  • How to test a Java Web Service locally?

    I developed simple java web services.
    Now I want to test them locally.
    I want to expose my web service through my Web Server(Tomcat).
    How can I expose that webservice?
    After that I want to access my web service through a Internet Browser.
    Is it possible to test that web service locally (localhost)?
    My computer is not connected to a network or internet.
    My OS is Windows XP Professional.

    I just set up TCPMON. Considering it is free and the fact that it has more than just a basic UI, I am quite impressed. I also use SOAPscope, which is another great tool, but I am looking for a free option.
    My issue: I set up TCPMON to sniff messages sent over HTTPS through port 8080. But I am getting encrypted messages upon sending the SOAP request as follows:
    �b�b�b�bvC�Ym�)f��OvC�Ym�)f��W�O�k�v�W&#65533;�dQ�$�{� �4�����F&#65533;������vO���XEC
    )��~9gl^�OvC�Ym�)f��W�O�k�v�W&#65533;�dQ�$�{� �4�����F&#65533;������vO���XEC
    )��~9gl^�OvC�Ym�)f��W�O�k�v�W&#65533;�dQ�$�{� �4�����F&#65533;������vO���XEC
    )��~9gl^�
    Any clue why?
    Your help is greatly appreciated.
    Aish

  • Problem in fetching values from Java Web Service returning ArrayList

    Hi all,
    I am calling an External Java web Service from BPEL. That Java Web Service is returning an Arraylist.
    I am not able to assign the values returned by the Java web service to local String Variables of BPEL.
    Kindly help me...

    Hi,
    My problem has been resolved..
    I have used
    bpws:getVariableData('Invoke_1_useSSH_OutputVariable','parameters',concat('/ns7:useSSHResponseElement/ns7:result/ns8:item\[',bpws:getVariableData('count'),']'))
    where count is the local int variable which contains the index value of the arraylist i.e. which index element we want to retrieve from arraylist.
    Thanks....
    Edited by: user643533 on Sep 12, 2008 12:10 AM

  • Java Web Service Deployed on App server does not run

    hi,
    I created a java web service and deployed it on my Application server. When i open the enterprise manager i find my webservice there. I click on test web service and it gives me two options one with a 4443 port and other with a 7777 port. It picks up a 0.0.0.0 hostname though i deplyoed it on to a different machine.
    I choose to use the 7777 port and test the web service whrn i click invoke it give me the error
    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    More information about this error may be available in the server error log.
    and when using the 4443 port it gives me the error as
    "SSL Error: unable to find valid certification path to requested target"
    please suggest how i can test a simple java webservice.
    Thanks
    Sravanti

    I think the problem is to add the custom dll files while deploying the application. Could any one please suggest how i can add custom dll file for deployment?
    Thanks
    Sravanti

Maybe you are looking for

  • Cannot login to my usual account after power outage

    Had two power outages last night; machine survived the first one, but after the second outage and restoration I cannot get in to my usual user account. What happens: Grey apple screen, normal Blue screen with progress bar indicating that OS X is load

  • How to change dynamically style in smartforms

    Dear All,           I had a requirnment to select different styles in smartforms depending on some condition, can u plz suggest me any solution for this.Thanking you. With best regards Gaurav Lashkari

  • T3500 scan to email

    I have T3500 mfp, when scanning to email, i get a error saying "Permission: Write privilege. I spoke with HP support they say that the email server has a file size limit and that the item we are scanning is too large. The email server we are using ha

  • KE5Z:Profit Center actual line items report.

    Hello gurus, Points available. I need some clarification on the following issue. I just ran tcode KE5Z. In my report I see that any posting to any of my COGS accounts are flowing to a Dummy Profit Center that I created previously. My question is this

  • Automatically fill the same signatures

    In my  PDF form, there are multiple places where signature is required. Is it possible to cross-fill signatures where user just need to apply a signature once, and it gets automatically populated (may be as image) on the other signature fields. Can s