What are the steps to create a webservice from java

i followed the doc. of weblogic 10.3 but something is missing..i am using ubuntu
1)
i created a webservice ping.java which placed in myproject/HelloWorld directory
package HelloWorld;
import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.xml.ws.BindingType;
@WebService(name="SimplePortType", serviceName="SimpleService",
targetNamespace="http://example.org")
@SOAPBinding
@BindingType
public class ping {
@WebMethod
public String main(String p){
System.out.println("sayHello:" + p);
return "Here is the message: '" + p + "'";
2) and created a build.xml and placed it in myproject folder
<project default="all">
<target name="all"
depends="clean,build-service,deploy" />
<target name="clean">
<delete dir="output" />
</target>
<path id="*my.path*">
     <pathelement path="/home/suresh/bea/jdk160_05/lib/tools.jar"/>
<pathelement path="/home/suresh/bea/wlserver_10.3/server/lib/weblogic.jar"/>
</path>
<taskdef name="jwsc"
classname="weblogic.wsee.tools.anttasks.JwscTask" classpath="/home/suresh/bea/wlserver_10.3/server/lib/weblogic.jar" />
<target name="build-service">
<jwsc srcdir="HelloWorld" destdir="output/helloWorldEar">
<jws file="ping.java" type="JAXWS"/>
</jwsc>
</target>
<taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy" classpath="/home/suresh/bea/wlserver_10.3/server/lib/weblogic.jar"/>
<target name="deploy">
<wldeploy action="deploy"
name="myproject"
source="output/helloworldEar" user="weblogic"
password="weblogic"
adminurl="t3://${wls.hostname}:${wls.port}"
targets="${wls.server.name}"/>
</target>
</project>
3) after that how to start weblogic and how to set any needed env or domain properties.How to publish it to server?
4) how to configure security
can i use netbeans to do all the above things?
Thanks
Suresh

what my.path indicates in the above wsdl?
or which path i have to give there?

Similar Messages

  • What are the steps to create sap apo ..plz send step by steps plzzzzzzzzzzz

    what are the steps to create sap apo ..plz send step by steps plz. Iam new for these ?

    what are the steps to create sap apo ..plz send step by steps plz. Iam new for these ?

  • What are the steps to create DB connect?

    What are the steps to create DB connect?

    Hi,
    Check the following link for DB Connect details:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2f0fea94-0501-0010-829c-d6b5c2ae5e40
    Also please search in the forum, you will find lot of threads on this topic.
    regards,
    Pruthvi R

  • What are the steps to create classes?

    What are the steps to create classes?

    Hello.
    Here's one example applied to a BSP page.
    How to create your first OO Abap Class for a BSP
    Kind regards.
    Bruno

  • What are the steps to reload my MacBook from a Time Machine back up on a external HD.

    Before I upgraded my MacBook to Lion I first used Time Machine to back the OS using a external HD. Not being satisfied  with the Lion OS
    I want to revert back to the Snow Lepopard. What are the steps to reload my laptop from my external HD?

    I tried this but my external drive is not appearing for some reason. Although it is accessible through finder.
    Is ther perhaps another way of doing this??
    Your help is massively appreciated!!

  • What are the steps in creating a customised report?

    Dear Experts,
    can you help me with your expereince what are the steps involved in creating a customised report?
    Who generates the requirement?
    Who prepares the functional spec and what information it contains?
    Who approves the functional spec once it is prepared?
    You can take the followig case as an example:
    The customer requirement is that a report can be run for everything that is received in a given area and compare the price at which the material was received to the standard or moving average price in SAP.
    Here, what information you will give to ABAP ers to devlop the report?
    I would appreciate if anyone can help me with the entire process.
    Full points to be awarded for a satisfactory reply.
    Regards,
    Ranjan

    hi
    >Who generates the requirement?
    client or end user
    >Who prepares the functional spec and what information it contains
    there should be a specific format and it is to be filled by the functional consultant
    http://www.sap-img.com/general/what-are-functional-specification-in-sap.htm
    http://erp.ittoolbox.com/groups/project-management/erp-projectmanagement/samples-for-sap-functional-specification-1194336
    >Who approves the functional spec once it is prepared?
    abaper or the TL
    http://sap.niraj.tripod.com/id67.html
    get the proper info from ur customer as what means all information
    get the proper fields he required
    regards
    KI

  • What are the steps to migrate j2ee project from version 1.4 to 1.6

    Hi All,
    What are the steps to migrate java project from version1.4 to 1.6 and weblogic 9 to 12c.
    Currently my application(java version1.4) is running on weblogic 9, i want to migrate it to weblogic 12c, what are the major steps i have to follow.
    Please anyone of you help me as soon as possible.
    Thanks,
    Yugandhar.G

    Hi Jeet,
    The following are the logs for exception.
    <Dec 13, 2012 12:04:52 PM CST> <Warning> <Socket> <BEA-000449> <Closing the socket, as no data read from it on 0:0:0:0:0:0:0:1:52,370 during the configured idle timeout of 5 seconds.>
    <Dec 13, 2012 12:07:14 PM CST> <Warning> <Deployer> <BEA-149251> <Operation Remove failed for application "tcs". Error: java.lang.NullPointerException
    java.lang.NullPointerException
         at weblogic.servlet.internal.WebAppModule.remove(WebAppModule.java:851)
         at weblogic.application.internal.flow.ModuleStateDriver$4.previous(ModuleStateDriver.java:236)
         at weblogic.application.internal.flow.ModuleStateDriver$4.previous(ModuleStateDriver.java:223)
         at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:148)
         at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:138)
         Truncated. see log file for complete stacktrace
    Caused By: java.lang.NullPointerException
         at weblogic.servlet.internal.WebAppModule.remove(WebAppModule.java:851)
         at weblogic.application.internal.flow.ModuleStateDriver$4.previous(ModuleStateDriver.java:236)
         at weblogic.application.internal.flow.ModuleStateDriver$4.previous(ModuleStateDriver.java:223)
         at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:148)
         at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:138)
         Truncated. see log file for complete stacktrace
    >
    <Dec 13, 2012 12:07:14 PM CST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID "1355371555961" for task "1". Error is: "java.lang.ArrayIndexOutOfBoundsException: 8"
    java.lang.ArrayIndexOutOfBoundsException: 8
         at com.bea.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source)
         at com.bea.objectweb.asm.ClassReader.<init>(Unknown Source)
         at com.bea.objectweb.asm.ClassReader.<init>(Unknown Source)
         at weblogic.application.utils.annotation.ClassInfoImpl.<init>(ClassInfoImpl.java:44)
         at weblogic.application.utils.annotation.ClassfinderClassInfos.polulateOneClassInfo(ClassfinderClassInfos.java:145)
         Truncated. see log file for complete stacktrace
    Caused By: java.lang.ArrayIndexOutOfBoundsException: 8
         at com.bea.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source)
         at com.bea.objectweb.asm.ClassReader.<init>(Unknown Source)
         at com.bea.objectweb.asm.ClassReader.<init>(Unknown Source)
         at weblogic.application.utils.annotation.ClassInfoImpl.<init>(ClassInfoImpl.java:44)
         at weblogic.application.utils.annotation.ClassfinderClassInfos.polulateOneClassInfo(ClassfinderClassInfos.java:145)
         Truncated. see log file for complete stacktrace
    >
    <Dec 13, 2012 12:07:14 PM CST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application "tcs".>
    <Dec 13, 2012 12:07:14 PM CST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    java.lang.ArrayIndexOutOfBoundsException: 8
         at com.bea.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source)
         at com.bea.objectweb.asm.ClassReader.<init>(Unknown Source)
         at com.bea.objectweb.asm.ClassReader.<init>(Unknown Source)
         at weblogic.application.utils.annotation.ClassInfoImpl.<init>(ClassInfoImpl.java:44)
         at weblogic.application.utils.annotation.ClassfinderClassInfos.polulateOneClassInfo(ClassfinderClassInfos.java:145)
         Truncated. see log file for complete stacktrace
    Caused By: java.lang.ArrayIndexOutOfBoundsException: 8
         at com.bea.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source)
         at com.bea.objectweb.asm.ClassReader.<init>(Unknown Source)
         at com.bea.objectweb.asm.ClassReader.<init>(Unknown Source)
         at weblogic.application.utils.annotation.ClassInfoImpl.<init>(ClassInfoImpl.java:44)
         at weblogic.application.utils.annotation.ClassfinderClassInfos.polulateOneClassInfo(ClassfinderClassInfos.java:145)
         Truncated. see log file for complete stacktrace
    >
    <Dec 13, 2012 12:07:17 PM CST> <Error> <Console> <BEA-240003> <Administration Console encountered the following error: weblogic.application.WrappedDeploymentException: 8
         at com.bea.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source)
         at com.bea.objectweb.asm.ClassReader.<init>(Unknown Source)
         at com.bea.objectweb.asm.ClassReader.<init>(Unknown Source)
         at weblogic.application.utils.annotation.ClassInfoImpl.<init>(ClassInfoImpl.java:44)
         at weblogic.application.utils.annotation.ClassfinderClassInfos.polulateOneClassInfo(ClassfinderClassInfos.java:145)
         at weblogic.application.utils.annotation.ClassfinderClassInfos.populateClassInfos(ClassfinderClassInfos.java:137)
         at weblogic.application.utils.annotation.ClassfinderClassInfos.<init>(ClassfinderClassInfos.java:28)
         at weblogic.application.utils.annotation.AnnotationMappingsImpl.loadAnnotatedClasses(AnnotationMappingsImpl.java:69)
         at weblogic.application.internal.ApplicationContextImpl.processAnnotationMappings(ApplicationContextImpl.java:985)
         at weblogic.application.internal.ApplicationContextImpl.getAnnotatedClasses(ApplicationContextImpl.java:1010)
         at weblogic.j2ee.managedbean.ManagedBeanModuleExtensionFactory.create(ManagedBeanModuleExtensionFactory.java:43)
         at weblogic.servlet.internal.WebAppModule.initModuleExtensions(WebAppModule.java:562)
         at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:271)
         at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:636)
         at weblogic.application.internal.flow.ScopedModuleDriver.init(ScopedModuleDriver.java:162)
         at weblogic.application.internal.ExtensibleModuleWrapper.init(ExtensibleModuleWrapper.java:74)
         at weblogic.application.internal.flow.ModuleListenerInvoker.init(ModuleListenerInvoker.java:84)
         at weblogic.application.internal.flow.InitModulesFlow.initModule(InitModulesFlow.java:312)
         at weblogic.application.internal.flow.InitModulesFlow.initModules(InitModulesFlow.java:325)
         at weblogic.application.internal.flow.InitModulesFlow.prepare(InitModulesFlow.java:378)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:706)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:237)
         at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:61)
         at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:158)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:96)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:229)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
         at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    >

  • How to create materlised view in oracle 10g what are the step to create it

    hi,
    this hafeez i have a database in oracle 10g now i want to create materlised view to the database what arre the step required for it.

    You should refer to documentation for more information:
    [Overview of Materialized Views|http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/schema.htm#CNCPT411]
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • What are the steps to create an idoc in the system?

    Hi all,
    Could you give me the steps for the idoc creation..Please give step by step procedure only and if possible point me to related files or threads.
    Thanks,
    Charles.

    Hi,
    Check this link
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    Thanks,
    Naren

  • What are the ways to create RESTful webservices to expose backend data?

    Hi All,
    As far as i know, we can create RESTful webservices using,
    1. SAP Netweaver gateway.
    2. SAP PI using third party adapter.
    Please tell me if there is any other ways to create RESTful webservices in SAP.
    Thanks & Regards,
    Naseem

    Hi Haritha,
    Go to Tcode SE16, give your ODS active Table name and give width of output list as 1023.
    Now run transaction to see your data and then click Settings --> User parameters and Select ALV Grid Display.
    Now you should see and Excel Icon on top, click on it then select Table , then
    Microsoft Excel and it will open your data with all columns you want.
    I just tried for 213 columns
    Hope this helps.
    Thanks
    CK

  • What are the steps to upgrade oracle clusterware from 10.2.0.4 to 11.2.0.2.

    We have two node clusterware installed and we want to upgrade the oracle clusterware from 10.2.0.4 to 11.2.0.2 can any one share the steps for upgrade.
    Regards
    Naveen Dutt

    Hi Rajeys,
    I read all the documents but i was not able to find the information that i was looking. Below i am providing my cluster node configuration and version -
    1) No of Node in cluster - 2 (node1 ,node2)
    2) OCR (clusterware) version - 10.2.0.4
    3) Storage type - NAS storage (we are not using ASM).
    Now link provided by you is to upgrade ASM from 10.2.0.3 to 11GR2 but we are not using ASM as storage we are using NAS storage. Do we have any link or document that help me to upgrade oracle clusterware only without ASM from version 10.2.0.4 to 11.2.0.2 .
    Thanks in advance
    Regards
    Naveen Dutt

  • What are the steps to create a simple html e-mail form?

    I've attempted to make an html e-mail form using PHP. However, the instructions from Adobe that I've been following aren't working. Perhaps because I am doing something wrong. Anybody have any ideas as to why it might not be working?

    The path to the form script is wrong. Change
    <form action="www.mocatholic.org/sendresults.php"
    to
    <form action="/sendresults.php"
    or include the full url like
    <form action="http://www.mocatholic.org/sendresults.php"

  • What are the steps  needs to be perform to define a data model

    What are the steps  needs to be perform to define a data model
    a.     Information Gathering 
    b.     Hardware & Software
    c.     Structure the Information – MDM
    d.     Transfer into a Physical Model – BW data model
    e.     Explore use of existing model – Business Content

    Hi Siva,
         Very first activity is Proof of concept (POC), here we have to show How BW works for clients Reporting requirement during POC we as BW consultants need to creat some sample BW back end objects and also some reports based on business requirement. This is very crucial stage as Client Judge wethere BW would meet his demands. If every thing is fine then next step is Bidding.
    After Bidding the contract then actual Project intiates. from here we follow ASAP methodology.
    <u><b>
    Project Preparation</b></u>
    Here Senior Consultant would go to Client place for Business Process Transistion and to know in what way the Architectue should be set up so here Basis People will come into picture.
    <u><b>Blue Print</b></u>
    Transistion could be understood by BRD (Business Requirement Documents) BRD states what is exact requirement and it is given by End users.
               By seeeing thr BRD's we as BW consultants must prepare APPlication Design Documents . The Application Design Documents states all the Technical aspects that needs to be performed as BW backend and also as well as Frontend.
    <u><b>Realization Phase</b></u>
      Here as BW consultants we must start confuguring as mentioned in ADD's by taking care of all performance aspects, once all the configuration are done we do Unit testing. unit testing is an activity where we check all the design process wether it running correct or not. After unit testing we move the design objects to Qulaity for Integration Testing.
    <u><b>Testing</b></u>
        Here end user will check all the objects, reports on end to end basis. after integration testing is done then UAT ( User acceptance Testing) would come into picture where user check each process and sign off.
    <u><b>Go live</b></u>
    Here all the object will be moved to Production where end users and power users can start working on the system. intially for some days Development team would be taking care of all support activites there after  it will be transitoned to support team.
    Hope It helps you.
    Assign Points if it usefull
    Regards
    Sujan

  • What are the steps involed in Mvt types

    Dear friends I have 3 Questions
    1.    How to create movement types? What are the steps involved? Can someone explain in details?
    2. What is the difference between the stock transfer between 2 plants of same company code, and stock transfer between 2 plants belonging to the different company codes.
    3. What are the steps involved in creating pricing procedure?
    Thanks in advance
    regards
    Radha

    Hi
    1. Please check this
    http://www.sap-basis-abap.com/sapmm015.htm
    2. please check this
    http://help.sap.com/saphelp_47x200/helpdata/en/4d/2b90dc43ad11d189410000e829fbbd/content.htm
    3. Please check this
    http://sap-img.com/materials/steps-for-mm-pricing-procedures.htm
    Hope it helps
    regards
    Srinivas

  • What are the steps for using the backup files to reload data to my blackberry curve (8310, i think)?

    What are the steps for using the backup files to reload data to my blackberry curve (8310, i think)?

    Connect BB to PC. On 'Desktop Manager'>Backup & Restore tab>Click Restore. Double click .ipd file (backup file created from Desktop Manager).

Maybe you are looking for

  • Cinema desktop issing

    Hi there Have been working on a projec for a while now Suddenly tho in my video output the options for Cinema desktop viewing have disapeared. The only option let is NONE or missing firewire. If I atach a deck the computer will recognise this and giv

  • Errors in phase MAIN_SHDIMP/SHADOW_IMPORT_INC for upgrade ERP 6.0 EHP4

    Hello, I am executing the upgrade to ERP 6.0 EHP4-Stack4 and in the phase MAIN_SHDIMP/SHADOW_IMPORT_INC, i have the follow error: "SHADOW IMPORT ERRORS and RETURN CODE in SAPK-40001INCPRXRPM.FSD 2EETW165 Function "/RPM/RELATION_MODIFY (/RPM/CONFIG|15

  • To find which user has clicked on which link in capmaign mail

    When a campaign is executed we send a mail to the BPu2019s.now I have couple of link in that mail formu2026.I want to know which person has clicked on a what hyperlinku2026for e.g. I have two link one for sending to yahoo and other for my site addres

  • Mac OS X Leopard and PHP

    Posted in both the Dreamweaver and Dreamweaver Application Development forums. Mac OS X 10.5 (Leopard) uses Apache 2.2.6. This is NOT compatible with the Mac PHP package recommended in all my books. Marc Liyanage (www.entropy.ch/home) is aware of the

  • How do I make RoboHelp report missing graphics?

    [RoboHelp 9]  Before building my CHM, I need to find out if any linked graphics are missing from the project's \graphics sub-folder. Is there any way I can make RoboHelp report missing graphics? The Broken Links report doesn't care if graphics are mi