Creating Web Service in Eclipse with Axis and Tomcat

Hi I'm quite new to web services. But I got a compiled class that i want to create a web service of. Since this class is compiled and lies in a package I can't just use the WTP and create a Buttom Up Web Service. So I created av wrapper class to this class to see if that would solve the problem, but i still get error messages that it's not JAX-RPC compliant. I've decompiled the class file I want to create a web service of and made a wrapper class with an interface around this class.
package org.ejbca.core.protocol.ocsp;
import org.bouncycastle.ocsp.*;
public class OCSPResponse
public OCSPResponse()
resp = null;
fnr = null;
httpReturnCode = 200;
errCode = 0;
public OCSPResponse(OCSPResp ocspresp)
resp = null;
fnr = null;
httpReturnCode = 200;
errCode = 0;
resp = ocspresp;
public int getHttpReturnCode()
return httpReturnCode;
public void setHttpReturnCode(int code)
httpReturnCode = code;
public int getErrorCode()
return errCode;
public void setErrorCode(int code)
errCode = code;
public String getFnr()
return fnr;
public void setFnr(String fnr)
this.fnr = fnr;
public OCSPResp getResp()
return resp;
public void setResp(OCSPResp resp)
this.resp = resp;
public int getStatus()
Something
private OCSPResp resp;
private String fnr;
private int httpReturnCode;
private int errCode;
OCSPResp is an object from boncycastle, as i found out one of the problems is that OCSPResponse is a non Non-Built-In Data Type and don't just contain bulit-in datatypes.
So can anybody give me a detaild input on how to solve this problem, including some hints on how to create a wrapper incase I've done something wrong.
Tommy

Try having a look at the following tutorial on how to create web services in PeopleSoft.
Integration Broker basics for the PeopleSoft developer | Blogging About Oracle Applications

Similar Messages

  • Create web service consumer client with Ant and wsdl

    How can I create a web service client with just Ant and WSDL?
    Thanks.

    Hi,
    Did you check this web log?
    /people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
    Eddy

  • Create Web Services Through Eclipse

    Hi,
    Any one can help me , I am creating the web services and facing below error. I am new to create web service.
    Apr 25, 2010 7:59:02 AM org.apache.catalina.core.AprLifecycleListener init
    INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Intel\WiFi\bin\
    Apr 25, 2010 7:59:02 AM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Apr 25, 2010 7:59:02 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 437 ms
    Apr 25, 2010 7:59:02 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Apr 25, 2010 7:59:02 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
    [INFO] Clustering has been disabled
    [INFO] Deploying module: addressing-1.5.1 - file:/D:/rocking/rockprojects/weser01/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/RajWebSer/WEB-INF/modules/addressing-1.5.1.mar
    log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
    log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
    log4j:ERROR [org.apache.catalina.loader.StandardClassLoader@119cca4] whereas object of type
    log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [WebappClassLoader
    delegate: false
    repositories:
    /WEB-INF/classes/
    ----------> Parent Classloader:
    org.apache.catalina.loader.StandardClassLoader@119cca4
    log4j:ERROR Could not instantiate appender named "CONSOLE".
    [ERROR] The mex-1.5.1.mar module, which is not valid, caused org.apache.axis2.mex.MetadataExchangeModule cannot be cast to org.apache.axis2.modules.Module
    org.apache.axis2.deployment.DeploymentException: org.apache.axis2.mex.MetadataExchangeModule cannot be cast to org.apache.axis2.modules.Module
         at org.apache.axis2.deployment.repository.util.ArchiveReader.readModuleArchive(ArchiveReader.java:529)
         at org.apache.axis2.deployment.ModuleDeployer.deploy(ModuleDeployer.java:71)
         at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
         at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:659)
         at org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.java:251)
         at org.apache.axis2.deployment.RepositoryListener.init2(RepositoryListener.java:68)
         at org.apache.axis2.deployment.RepositoryListener.<init>(RepositoryListener.java:63)
         at org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEngine.java:147)
         at org.apache.axis2.deployment.WarBasedAxisConfigurator.getAxisConfiguration(WarBasedAxisConfigurator.java:229)
         at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
         at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:525)
         at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:443)
         at org.apache.axis2.webapp.AxisAdminServlet.init(AxisAdminServlet.java:56)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4045)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4351)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
         at org.apache.catalina.core.StandardService.start(StandardService.java:516)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Edited by: JayRajDeep on Apr 24, 2010 8:32 PM
    Edited by: JayRajDeep on Apr 24, 2010 8:34 PM

    Couple of points to note:
    1) Mentioned error is not due to web service
    2) It sounds like the classpath issue, logger error etc. Fix those error first.

  • How to Create web service using JMS with PUB/SUB pattern.

    Hi All,
    I need to expose web service using JMS with PUB/SUB pattern.
    if you have any source for this.
    I tried to use @WLJmsTransport annotation but unable to get it done.
    I have configured all JMS server, topic, and connection factory.
    Thanks.

    Hi, I am having web sample web service program which is simple one.
    But I need to Modify this to JMS enable.
    Can any one help me?
    Thanks.

  • Is it the same create web service in netweaver CE7.1 and create in ECC6.0?

    Hi.
    I have some questions about ECC 6.0 and netweaver CE 7.1
    1.  I want to test webservice in ECC6.0.
         At this time I have no this product, butI have downloaded netweaver CE 7.1 trial version (contains java edition).
         If I create web service in netweaver CE 7.1 trial version(contains java edition) environment, is it same as create
         web service in ECC6.0?
    2.  If I call this web service in netweaver CE7.1 from third party(such as JSP on another machine), is it same as call webservice in
         ecc6.0 from http client?
    3.  What relationship and difference between ECC6.0, netweaver 7.1 and netweaver CE 7.1?
    Thanks.

    answered on another place.

  • Not able to access web service with axis and tomcat

    Dear all
    i am trying to access web service using axis in tomcat.
    i downloaded axis-bin-1_4.zip, unzipped it and installed it properly in tomcat.
    i had tested axis, its working fine.
    i had created a simple java class(a sample class from book) and deployed it in axis. i also created a client(a java consol class) for accessing that web service. but its giving error. i have no idea why this is comming.
    plz point me in right direction.
    thanks in advance
    The error is:
    Exception in thread "main" AxisFault
    faultCode: {http://xml.apache.org/axis/}HTTP
    faultSubcode:
    faultString: (404)/axis/ArithmeticProcessor.jws
    faultActor:
    faultNode:
    faultDetail:
            {}:return code:  404
    <html><head><title>Apache Tomcat/6.0.14 - Error report</tit
    le><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;ba
    ckground-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;
    color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Ari
    al,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-f
    amily:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-famil
    y:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:
    Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color :
    black;}A.name {color : black;}HR {color : #525D76;}--></style> </hea
    d><body><h1>HTTP Status 404 - /axis/ArithmeticProcessor.jws</h
    1><HR size="1" noshade="noshade"><p><b>
    type</b> Status report</p><p><b>message</b> <u&
    gt;/axis/ArithmeticProcessor.jws</u></p><p><b>descriptio
    n</b> <u>The requested resource (/axis/ArithmeticProcessor.jws) is n
    ot available.</u></p><HR size="1" noshade="noshade
    "><h3>Apache Tomcat/6.0.14</h3></body></html>
            {http://xml.apache.org/axis/}HttpErrorCode:404
    (404)/axis/ArithmeticProcessor.jws
            at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.j
    ava:744)
            at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
            at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
    y.java:32)
            at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
            at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
            at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
            at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
            at org.apache.axis.client.Call.invoke(Call.java:2767)
            at org.apache.axis.client.Call.invoke(Call.java:2443)
            at org.apache.axis.client.Call.invoke(Call.java:2366)
            at org.apache.axis.client.Call.invoke(Call.java:1812)
            at ArithmeticClient.main(ArithmeticClient.java:50)

    Hi ,
    Please go through this link and check in this way only you created the webservice correctly or not. If not follow and do it definitely will get you the webservice access by iphone or any application.
    www.scribd.com/doc/19255987/Web-Services-in-Abap

  • Create Web Service (outbound proxy) with WAS 620

    Hi all,
    Is it possible to create an outbound Abap proxy - using a WSDL - to consume a web service, in a 4.7 Release (Web AS 620)? Is there any restrictions on this release?
    Thanks,
    Miguel

    Hi,
    Did you check this web log?
    /people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
    Eddy

  • How to create Web Service Client from wsdl with digital signature?

    Please, help me to create Web Service Client from wsdl with digital signature. I know create Web Service client from wsdl file and I know how to add digital signature to XML with jwsdp, but I don't know how to do it together.
    Thanks.

    I'm handling security wit JAX-WS handler. So I insert "manually" ws-security tag and I encrypt (and sign) message parts.
    On client side, all works fine, but on server side I obtain:
    ---Server Inbound SOAP message---|#]
    Decrypting message and rebuilding Valuees... |#]
    Starting decrypt|#]
    . dectypted.!
    --found following string: <ns1:addiziona><num1>80</num1><num2>22222</num2></ns1:addiziona>|#]
    ...MESSAGE Restored.|#]
    <?xml version="1.0" ?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:ns1="http://calculator.me.org/" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><soapenv:Body><ns1:addiziona><num1>80</num1><num2>22222</num2></ns1:addiziona></soapenv:Body></soapenv:Envelope>|#]
    Error in decoding SOAP Message
    Error in decoding SOAP Message
            at com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.toInternalMessage(SOAPXMLDecoder.java:89)
            at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.toMessageInfo(SOAPMessageDispatcher.java:187)
            at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher$SoapInvoker.invoke(SOAPMessageDispatcher.java:571)
            at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:145)
            at com.sun.xml.ws.server.Tie.handle(Tie.java:88)
            at com.sun.enterprise.webservice.Ejb3MessageDispatcher.handlePost(Ejb3MessageDispatcher.java:160)
            at com.sun.enterprise.webservice.Ejb3MessageDispatcher.invoke(Ejb3MessageDispatcher.java:89)
            at com.sun.enterprise.webservice.EjbWebServiceServlet.dispatchToEjbEndpoint(EjbWebServiceServlet.java:178)
            at com.sun.enterprise.webservice.EjbWebServiceServlet.service(EjbWebServiceServlet.java:109)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
            at com.sun.enterprise.web.AdHocContextValve.invoke(AdHocContextValve.java:100)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:71)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
            at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    Caused by: javax.xml.ws.soap.SOAPFaultException: Cannot find the dispatch method
            at com.sun.xml.ws.encoding.soap.SOAPDecoder.raiseFault(SOAPDecoder.java:674)
            at com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.decodeDispatchMethod(SOAPXMLDecoder.java:152)
            at com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeBodyContent(SOAPDecoder.java:337)
            at com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeBody(SOAPDecoder.java:327)
            at com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeEnvelope(SOAPDecoder.java:250)
            at com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.toInternalMessage(SOAPXMLDecoder.java:81)
            ... 29 more
    |#]
    --->handleFault O_o<---|#]If you have any idea for solving my problem, then I can post my simple example :(
    Bye!

  • Which Eclipse plug-in for creating web services?

    Dear all,
    I am looking for a simple, straight-forward eclipse plug-in to create web-services from existing java classes, based on Axis. I am looking to create and deploy the web service to Tomcat, create the WSDL file and create a client class that I can use in client applications. So far I have tried WTP, Lavadora and Lomboz. Neither of these have worked out for me (without going into the details here). Which other plug-ins would you recommend?
    Cheers,
    N.

    The best Eclipse-based web service development environment I've used is IBM's WebSphere Application Developer (WSAD). Whether going from WSDL to Java or the reverse, you're up and running in next to no time.
    But, assuming you don't have $8000 to spend, WTP is probably as good as it gets at the free end of the market, and it includes the same graphical WSDL editor you get in WSAD.
    WTP, a couple of Ant scripts, and a little perseverance are all you really need for web service development.

  • How to create Web service proxy in Eclipse?

    Hi,
    I want to create web service proxy in Eclipse. Can someone tell me what all plug ins are needed for it and what is the detail procedure for the same?
    Thanks in advance.

    Proxy class is out of date now... proxy class only support stateful web service call... and stateful web service may became a big limitation in development.
    Try to thinking about how to use stateless web service call, you may get an alternative solution.
    Edited by: user13036981 on 2011-10-7 上午9:20

  • Creating Web service for PL/SQL Procedure with Complex Data Types

    I need to created web service for PL/SQL Procedure with Complex Data types like table of records as parameters, how do we map the pl/sql table type parameters with web service, how to go about these?

    Hello,
    When you are creating a service from a Stored Procedure, the OracleAS WS tools will create necessary Java and PL wrapper code to handle the complex types (table of record) properly and make them compatible with XML format for SOAP messages.
    So what you should do is to use JDeveloper or WSA command line, to create a service from your store procedure and you will see that most of the work will be done for you.
    You can find more information in the:
    - Developing Web Services that Expose Database Resources
    chapter of the Web Service Developer's guide.
    Regards
    Tugdual Grall

  • Creating web service for bapi and consume in portal.

    Hi ,
    I am new to Web Services. This is my requirement I need to publish the functionality of bapi as a web service and consume the web service from portal side.
    I have followed these steps to create web service.In transaction se80 i have created service definiton and a wsdl file is generated.
    When i am exporting that WSDL file and creating a model in a webdynpro project. I am getting the following error. I dont know how to proceed further.Error while loading WSDL.Check error log for more details.
    Whether the proxies need to be generated?What is the purpose of it? Where the proxies need to be generated?
    Is Process integration needed to use web services?
    Kindly guide me how to proceed.
    Best Wishes
    Idhaya R

    the proxy is the object that make possible to use the service; even if service and consumer are on the same host, you need a proxy to use it.
    try to check this blog
    /people/thomas.jung/blog/2007/12/17/consuming-services-with-abap

  • Create Web Service with Function Group

    Hi experts,
    I have 2 question for web service
    1- i want to create web service with function group. My function group is have 2 function modules. I selected function group for web service end point type. And next action i want to select my function group but this is impossible. Because this field is inaktive for value entry. (Img1) How can i make to active this field?
    2- I'm created one bussinness object in SWO1. And assigned ZBAPI... this object. (API METHOD ->ADD METHOD menu). I'm changed oject type's statu for released and created this object. Everything is ok so i can test this object and run ZBAPI method. But i can not see this object type in BAPI transaction. Why i can not see in BAPI transaction my object type ?
    Thank you for your help.

    /bump

  • Consuming web service in PI 7.3 and creating file

    Hi,
    I need to consume web service in PI 7.3 and create file from response. I have WSDL for the web service. Now confused about datatype/message type. Is there any document/note to follow?
    thanks,
    7Z

    I need to consume web service in PI 7.3 and create file from response. I have WSDL for the web service. Now confused about datatype/message type. Is there any document/note to follow?
    ==>
    Hi,
    There are 2 ways you can do this :-
    If your sender is a file and receiver is a webservice and you want to map the response back to the file then :-
    Sol 1 :- Async-Sync Bridge using RequesResponse Oneway bean
    Sender File channel ---> Soap Receiver Channel
    Soap Receiver Channel brings the response back to the File Receiver Channel.
    Now this File Receiver Channel should be called inside the Sender File Channel using the above bean.
    Data Type :
    Src - File struc to SOAP request (WSDL used as an external definition)(mapping 1)
    SOAP response(WSDL used as an external definition) to Tgt File Struc (mapping 2)
    Sol 2 :- Async Scenario
    Make a Sender File Channel --> use SOAP lookup channel (pass the request payload through the SOAP receiver channel) --> Map the response back to the File using File Receiver Channel.
    Data Type:
    Src - File struc to Tgt File Struc (mapping 1). Since you are passing the request payload through SOAP lookup in the UDF itself.
    ======================================================================

  • How to create Web Service Proxy with help of WSDL.

    Hi ,
    How to create Web Service Proxy with help of WSDL .
    Please help me .
    Thanks in advacne for reply .

    check out this article. It has all the details
    http://www.oracle.com/technology/products/jdev/howtos/1013/wsadf/adfcomplexwstypes.html

Maybe you are looking for