Deploy a web service on an old database proxy

I'm studying on different approaches to call an external web service of PL/SQL and I came across this document pretty old how-to:

Call a Web Service from the database

The document explains how to create a proxy web service in Java with JDeveloper and how to deploy it in a database.

The sample service is relatively simple. The service that I have to call exposes several methods that returns and requires complex objects as parameters, but I found more tips in the next song in the Oracle documentation:

http://docs.Oracle.com/CD/B19306_01/Java.102/b14187/chsix.htm#BABBEAJI

So I downloaded and installed the latest JDeveloper and I get a service proxy web work at a glance. When I tried to deploy to my old database (Oracle 10.0.2.5 running Java 1.4) I've got the errors listed in the attached paper (sorry for the names of class in Italian).

As indicated in the last line, it seems that I have some kind of compatibility issue between the version of Java that I used to generate the proxy and that which is available on my server. If, as suggested, change the JDK 1.7 to 1.4 version, I get an error saying something like "you have used data annotation, but this feature is available from Java 1.5".

Is there a way to force JDeveloper to generate a web service proxy ' 1.4 friendly '?

With the provided link, I was able to get all the missing pieces of the software.

Now I just need to convince our DBA to try this approach

However, it is a different story

Tags: Java

Similar Questions

  • Deploy the web service on ARM processor

    Is it possible to deploy a web service on an ARM processor with LabVIEW ARM module?  If this is not the case, a web server for an ARM processor has been done in before LabVIEW?  Is there an example of code out there?  Thank you.

    skryger,

    From LabVIEW for ARM 2009, there is no way pre-constructed to deploy a web service on an ARM processor.  (The only options in accordance with the specifications of construction are Application, Source Distribution and the Zip file.)  Of course, who does not eliminate the possibility of building one yourself.  Maybe someone from the community can develop more if this was done.

    Kevin S.

    Technical sales engineer

    National Instruments

  • Deployment of Web Services has failed. Web applications server OR still load.

    I installed LabVIEW 2013 and I am trying to publish the web service. Every time I try, I see this message: "unable to Web Services deployment. The Server Web applications OR load again. »

    I don't know how to stop or complete this loading. I have reinstalled LabVIEW 2013, removed LV 2012 and other software. In addition, when I restart the 32-bit server, I have old web services installed. Even if I do not publish them, they appear after the transition to 64-bit-> 32-bit server.

    I will be grateful for your help.

    Peter

    Hi all

    It was a problem introduced with the new deployment of LabVIEW web services in 2013, specifically on laptops (classified as CAR 422680). It is fixed in the patch of f1 2013 LabVIEW. This patch is available for download here and you can get more information about the patches in the patch here. The patch will travel via Service Update OR later this month.

    Kind regards

    Jeff Peacock

    Product Support Engineer | LabVIEW R & D | National Instruments

  • deployment of web services on a remote computer

    Hello

    Which is the best way and quick to deploy Web services for user WEB interface Builder on a remote computer, where there is no development, but only LV runtime environment?

    (in the case that I have to frequently change the vi that I use to create Web service and deploy it to a remote computer)

    Is it necessary to create an installer with included WS? Is always necessary in LV2012 to use labview.ini and niwebserver.conf to the webservices to run on the remote computer, as it is written on the following knowledge about LV2009 book?

    http://digital.NI.com/public.nsf/allkb/62B9C2D5C91EE8B28625778800609FF2

    I noticed that there is in the folder:

    C:\ProgramData\National Instruments\WebServices\aws

    the webservice is deployed with the screws that are used to operate.

    Is not possible to copy only the VI in this folder when I modify the vi used by the Web service, instead of doing each time the program installation and the whole procedure on the knowledge that I linked above?

    Thank you very much

    Steven

    Hi Steven,

    The best way to install a Web Service on a remote computer is to use an installer.  The reason being that the Web Service will be compiled and the installer will place the screws have respected and associated configuration files in the right place. If you were to put a VI from the development environment in the folder of aws would not correctly.  Any process other than the installer is also considered not supported by OR.

  • Error SSE2 optimization in the deployment of Web Services

    I'm migrating from 2010 to 2011 SP1 web service [because web services 2010 SP1 were buggy]. At first, I could build and deploy the code very well. Now, I get the following deployment error:

    LabVIEW error: (Hex 0xFFFEFA45) LabVIEW Web Services: call to create a VI reference failed. The target does not support SSE2 optimization. Disable SSE2 optimization in the Advanced dialog box of the Web Service Properties page before continuing.

    Based on the online documentation, my hardware can support SSE2 - but no matter, I disabled it anyway. The error message persists. This message means anything this SSE2 optimization is enabled and is not supported? Based on the text of the error, it seems that turning off optimization should probably fix the problem...


  • deploy the web service to xp embedded

    Hi all

    I struggle to run a web service on an xp embedded system. The web service works very well in my LV 2011 development environment and I have created an installer for my main application it is the lvws file is included as described in web services FAQ:

    http://zone.NI.com/DevZone/CDA/tut/p/ID/7747#toc12

    After the installation on the target computer, I can't access the web service. Also if you call localhost:3580, then I get an access error.

    But in the System Control Panel administrative tools, I can see that the server system OR like many Web server OR Web applications are started.

    For further investigation, I added the 'Distributed System Manager' to my Installer. With this tool, I see that all my web services deployed on my development system, but on the XP embedded system with TEN target is listed.

    I installed my application for a professional reference XP system to exclude that the problem is caused by embedded XP. But the behavior is exactly the same. So far, I tested only local so that settings security like firewalls and ports system should pose no problems. But to be sure I have disabled the firewall without success... I can't access the Web service. I have often found the suggestions in the forum to check if the web service is enabled. But I am not already and then access to http://localhost:3580.

    Any ideas?

    Thank you!

    This help document is somewhat outdated.

    You see 2 different problems: 1) you can not display the Configuration utility and do not install Web using localhost:3580 2) your web service monitoring.

    For the first number-->

    You probably did not understand the "Interface Web NI 2011 infrastructure" in your Setup program.  The doc to help you mentioned does not tell you to do, because it is not necessary for your web service works. However, if you want to change one of the settings of your web server after the installation, you will need this extra setup program.

    For the second question-->

    You probably didn't get your Spec to build Web services as a source file in your Setup program.  The help doc says to put your LVWS file as your installation source, but this is not correct. You must include the technical article to build real web service as a source file (not the web service create out of spec files, like LVWS).

    Let me know if any of these will help you.

    -Jared

  • deployment problems web services on weblogic server 10.2

    Hello... I have completed the first web service to web service tutorial and when I want to deploy the .war generated I have this error

    * An error occurred during activation of the changes, please see the log for more details.

    * Cannot load the webapp: "HelloWorldImpl.war."

    * cl/slider/webservices/HelloWorldImpl: classversion unsupported 50.0


    Can U help me please,

    Thanks in advance

    WebLogic 10.2 always uses the JDK 1.5. You have compiled your war with JDK 1.6.

    I would recommend recompile your application with JDK 1.5 or using the indicator 'target' to generate the JDK 1.5 class files.

    -Ryan

  • The deployment of Web Services custom R12

    Please let me know how to deploy the custom web services of R12. We have not installed in our instance of Oracle Enterprise Manager.

    Thank you

    You really need a manager of the company. You can install EM from the SOA Suite CD simply select the j2ee option not Suite SOA full blown.

    Not sure what you mean by R12, is this e-Business Suite. Web services must be installed on the same application server as the e-Business Suite, it can be installed in any oc4j / j2ee application server. If it's e-Business Suite, the application server will probably need connectivity to the e-Business Suite.

    You want the Web service for you do generally use adapters supplied for eBusiness Suite integration.

    see you soon
    James

  • How to deploy the web service PAPI

    I am new to OBPM.
    I use BPM studio 10.3 to create processes.
    I set the preferences of the engine "from PAPI web services." This works.
    But I do not know how to deploy them to web services PAPI since the BPM web service console shows that no service is deployed.

    Please tell me how to deploy BPM processes.

    Thank you very much

    Published by: YE on March 27, 2009 09:58

    To expose processes that Webservice, please follow the steps below.
    Just click on process--> select process Webservice then it will open a new window, and then specify the name of the corresponding input parameter Web service method.

    Then build the application and test the service by clicking on the icon LaunchDeployedWebServiceswebapp in Eclipse, it will open the new window, it contains information about Web service, URL endpoint to access the WSDL Style HTTP WS, WS-Security authentication basic authentication.

    Thank you best regards &,.
    M.Kumaraswamy.

  • Problem during the deployment of web services - bad location of WSDL files inside the jar

    Hi all.
    I create my web service from wsdl.

    First of all I run wsdlc and download archive jar that contains the generated sources - the highest level, it looks like this:
    META-INF
    MyPackage
    WSDLs

    After this, I change my web service class, in particular, that I decided that it will be session bean thus the SessionBean interface.

    Then I run jwsc and download archive final jar - module EJB with WebService
    The highest level, it looks like this:
    META-INF
    MyPackage

    And META-INF contains among other WSDL directory files.

    Everything seems OK, but when I try to deploy this I get an error (which I assume is caused by poorly located inside the ejb module generated WSDL files directory, it should probably be at the root of the jar not in META-INF):
    Please help me to force jwsc to generate the module with good location of WSDL dir files.

    WSDLC INVOCATION:

    < by default of the project = "generate-EventNotifierService-of-wsdl" >

    < taskdef = classname="weblogic.wsee.tools.anttasks.WsdlcTask"/ "wsdlc" name >

    < name target = "generate-EventNotifierService-of-wsdl" >
    "< wsdlc srcWsdl="src/main/wsdl_resources/EventNotifierService.wsdl ' destJwsDir = 'target' destImplDir = 'target' packageName = "mypackage" type = "JAXRPC" >
    < / wsdlc >
    < / target >

    < / project >

    JWSC INVOCATION:

    < by default of the project 'build EventNotifierService wsdl' = >

    < taskdef = classname="weblogic.wsee.tools.anttasks.JwscTask"/ "jwsc" name >

    < name target = "build EventNotifierService wsdl" >
    < jwsc srcdir = ' src/main/java' destdir = 'target' encoding = "UTF-8" >
    < queue = "mypackage/EventNotifierService.java TJ' compiledWsdl =" '... / peg-eai-wsdl/target/EventNotifierService_wsdl.jar ' "
    Type = "JAXRPC" >
    < / TJ >
    < / jwsc >
    < / target >

    < / project >

    ERROR:

    # < 24 March 2009 14:21:35 THIS > < error > < hats > <>< AdminServer > < ExecuteThread [ASSET]: '0' for the queue: '(self-adjusting) weblogic.kernel.Default' > < < WLS Kernel > > <><>< 1237900895770 > < BEA-149205 > < failed to initialize application "port" because of the error weblogic.application.ModuleException: Exception preparation module: EJBModule (EventNotifierService - 1.0 - SNAPSHOT.jar)


    Unable to deploy EJB: EventNotifierService - 1.0 - snapshot.jar EventNotifierService-1.0 - snapshot.jar:

    WSDL "wsdls/EventNotifierService.wsdl" is not in the deployment weblogic.utils.jars.JarFileDelegate@2bb9f2 - /var/peg/domains/wldev4/wldev4_domain/servers/AdminServer/tmp/_WL_user/port/edc553/EventNotifierService-1.0-SNAPSHOT.jar

    .
    weblogic.application.ModuleException: Exception preparation module: EJBModule (EventNotifierService - 1.0 - SNAPSHOT.jar)


    Unable to deploy EJB: EventNotifierService - 1.0 - snapshot.jar EventNotifierService-1.0 - snapshot.jar:

    WSDL "wsdls/EventNotifierService.wsdl" is not in the deployment weblogic.utils.jars.JarFileDelegate@2bb9f2 - /var/peg/domains/wldev4/wldev4_domain/servers/AdminServer/tmp/_WL_user/port/edc553/EventNotifierService-1.0-SNAPSHOT.jar


    at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:452)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
    to weblogic.application.internal.flow.DeploymentCallbackFlow$ 1.next(DeploymentCallbackFlow.java:387)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:42)
    to weblogic.application.internal.BaseDeployment$ 1.next(BaseDeployment.java:615)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
    at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16)
    at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
    at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:141)
    to weblogic.management.deploy.internal.DeploymentAdapter$ 1.doPrepare(DeploymentAdapter.java:39)
    at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:187)
    to weblogic.management.deploy.internal.AppTransition$ 1.transitionApp(AppTransition.java:21)
    at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
    at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
    at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
    at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
    at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    weblogic.wsee.ws.WsException: wsdl "wsdls/EventNotifierService.wsdl" is not in the deployment weblogic.utils.jars.JarFileDelegate@2bb9f2 - /var/peg/domains/wldev4/wldev4_domain/servers/AdminServer/tmp/_WL_user/port/edc553/EventNotifierService-1.0-SNAPSHOT.jar
    at weblogic.wsee.deploy.WSEEEjbModule.loadWsdlDefinitions(WSEEEjbModule.java:130)
    at weblogic.wsee.deploy.WSEEModule.loadWsdl(WSEEModule.java:292)
    at weblogic.wsee.deploy.WSEEModule.verifyWsdd(WSEEModule.java:147)
    at weblogic.wsee.deploy.WSEEModule.prepare(WSEEModule.java:106)
    at weblogic.wsee.deploy.WsEJBDeployListener.prepare(WsEJBDeployListener.java:36)
    at weblogic.ejb.container.deployer.EJBDeployer.prepare(EJBDeployer.java:1193)
    at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:425)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
    to weblogic.application.internal.flow.DeploymentCallbackFlow$ 1.next(DeploymentCallbackFlow.java:387)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:42)
    to weblogic.application.internal.BaseDeployment$ 1.next(BaseDeployment.java:615)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
    at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16)
    at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
    at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:141)
    to weblogic.management.deploy.internal.DeploymentAdapter$ 1.doPrepare(DeploymentAdapter.java:39)
    at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:187)
    to weblogic.management.deploy.internal.AppTransition$ 1.transitionApp(AppTransition.java:21)
    at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
    at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
    at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
    at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
    at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    >

    I think that the only solution is to manually update the webservices.xml.

  • Deploy the Web service client application

    I built a webservice client in FB3. It works very well in FB3. I can also run by referring to the SWF directly in the file
    Directory - bin-debug (not in the FB3) and it works very well also.

    Now, I copied the directory bin-debug outside the workspace of FB3 and evokes the swf file. "This time I got errors when accessing the webservice server:"Error of security to access the url"faultCode ="Channel.Security.Error"faultDetail =" Destination: DefaultHTTP '...

    Why I run the swf file when it is in the FB3 workspace and can't when it is out of the workspace?

    Also, I did the Release version and run the swf file in the bin-release directory. He gave me the same error messages when I ran in FB3.

    Am I missing some configurations?

    FlexBuilder installed in a trusted location. It can access anything whatsoever. That's nice for development, but cause a lot of grief the first time you deploy an application.

    This crossdomain isn't enough for FP9, especailly with WebService. There are several other parameters need to be defined. Here's what I have:

    http://www.Macromedia.com/XML/DTDs/cross-domain-policy.DTD">





    Tracy

  • Web service deployment failed

    Recently, I decided to make a Web server along with my design "currentdensity.vi" to have access to the data via Solution Explorer. I read the instructions for the Web server configurations, but I still have the problem in the correct implementation of it. I'm scared, I left a few simple steps or advice to do it successfully. (http://localhost: 8080/webservice1)---> but no result
    Please give me your feedback.

    Hello

    Can I know what version of LabVIEW you use? Deploying the web service on a desktop computer or a laptop? If it is a laptop, you can disable the WiFi card and try to deploy again?

    Kind regards

    Alan

  • Web Service on JCS13.2: InvalidSecurityToken: the security token is not valid.

    Hello

    I deployed a web service with security @SecurityPolicy (uri = "oracle/wss_username_token_over_ssl_service_policy") policy.  The WSDL file seems

    But when I test with SOAPUI and JDeveloper HTTP Analyzer, it always, up InvalidSecurityToken: the security token is not valid.

    The Web Service code is as below,

    Import javax.jws.WebMethod;

    Import javax.jws.WebService;

    Import weblogic.wsee.jws.jaxws.owsm.SecurityPolicies;

    Import weblogic.wsee.jws.jaxws.owsm.SecurityPolicy;

    @WebService

    @SecurityPolicy (uri = "oracle/wss_username_token_over_ssl_service_policy")

    public class HelloWorld {}

    public HelloWorld() {

    Super();

    }

    @WebMethod

    public String sayHi (String name) {}

    Return "Hello" + name;

    }

    }

    What is the valid username and password for the web service deployed on JCS?  Any suggestion and assistance is very much appreciated.

    Looked into this a bit and I think that your problem can be caused by a time stamp missing security feature. Try something like:

    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">."

    username

    http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText "> pwd"

    http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-SOAP-message-security-1.0#base64Binary "> XtfCRwo4W3qo8DqryRpuwg =="

    2014-07 - 04T 10: 29:29.371Z

    2014-07 - 04T 10: 29:29.361Z

    2014-07 - 04T 10: 46:09.361Z

    It worked for me using the Soap UI request. So try to add the "wsu:Timestamp" element and pointed out that the value used must be within the tolerance between the client and the server so have a valid value, you have the tolerance depends on how the system is configured for configuration details, refer to . Advanced Administration. Based on tests of strength bully me into JCS his game somewhere about 480 seconds...

    --

    Jani Rautiainen

    Relationship with the developers of Applications in fusion

    https://blogs.Oracle.com/fadevrel/

  • CASE to call external web services

    Hello

    I wonder what I should put in place to make calls to external web services providing data, which must be kept by the CAs in a record store.

    Could someone give me some advice?

    I think it must be different, then from the analyses of the documents or sites Web.

    Any help is appreciated.

    Thank you and best regards,

    Heiko

    Heiko,

    What is the format of data that you get from the web service?

    I'm not aware of frank manner (out of the box) to obtain Web service data in the ERMS. You have two options:

    ~ Add an intermediate step, like get Web service data in a database or store the answer in the form of XML file, then pointing to your to that source intermediate certification authorities.

    ~ Write java code using the API short to get the web service data and write this in a record store.

    HTH
    Pankaj.

  • Lance error ant tasks web service

    I have deployed a web service and I have 2 questions

    1:
    ==
    I am not able to run my customer code to test the web service.

    When executing java using Ant or when execute task directly executing java class customer I get:

    CU dmwls (286) java for $ MyFirstService_Impl.class
    Exception in thread "main" java.lang.NoClassDefFoundError: MyFirstService_Impl/class

    CU dmwls (298) java for $ MyFirstService.class
    Exception in thread "main" java.lang.NoClassDefFoundError: MyFirstService/class

    My client jar file has files more

    CU dmwls (302) $ unzip-l MyFirstService_client.jar
    Archive: MyFirstService_client.jar
    Date name of length of time
    -------- ---- ---- ----
    246 18/02/10 14:40 META-INF/MANIFEST. MF
    205 18/02/10 14:40 clientpkg/MathFace.class
    1877, 18/02/10 14:40 clientpkg/MathFace_Stub.class
    1116 18/02/10 14:40 clientpkg/MyFirstService_Impl.class
    1353 18/02/10 14:40 clientpkg/MyFirstService.wsdl
    493 18/02/10 14:40 clientpkg/MyFirstService.class
    233 18/02/10 14:40 clientpkg/MyFirstService.xml
    -------- -------
    5523 7 files

    What I would do to test my web service.

    2:
    ==
    I created this webservice to the unix server. Now I want to access it from my windows machine. How to do this.

    URL of the Web service has localhost which does not work in windows.


    Build.Xml
    =====
    < project name = default "buildWebservice" = "generate-to-WSDL" >

    < name = "output.dir property" value = "exit" / > "
    < name = "staging.dir property" value = "staging" / > "
    < name = "package.name/ property" value = "ksrpkg" / > "
    < name = "service.name property" value = "MyFirstService" / > "
    "< name ="$host.name property"value =" ffstestmisws02.nat.bt.com "/ >
    < property name = 'port' value = "61069" / >
    < name = "wl.user property" value = "weblogic" / > "
    "< name ="wl.pwd property"value =" * "/ >
    < property name = "contextURI" value = "Web Services" / >
    < name = "package.dir property" value="${output.dir}/${package.name}" / > "

    < name target = "generate-to-WSDL" >
    < wsdl2service
    generateImpl = 'yes '.
    WSDL = "${service." "Name} .wsdl.
    destDir = "${output.dir} '"
    packageName = "${package.name/}" / > "
    < / target >

    < target name = "compile" >
    < javac srcdir = "${package.dir}" destdir = "${staging.dir}" / > "
    < / target >

    < target name = "ear" depends = "compile" >
    < servicegen
    destEar="${staging.dir}/${service.name}.ear".
    contextURI = "${contextURI}" >
    < service
    javaClassComponents = "${package.name/}. ${service.name} '"
    targetNamespace = "http://www.bea.com/webservices/basic/statelesSession."
    serviceName = "${service.name} '"
    serviceURI = "/ ${service.name} '"
    generateTypes = 'True '.
    expandMethods = 'True '.
    style = "rpc" >
    < / service >
    < classpath >
    < pathelement path = "${staging.dir}" / > "
    < / classpath >
    < / servicegen >
    < / target >

    < target name = "deploy" >
    < wldeploy
    action = "deploy".
    adminurl="http://${host.name}:${port}.
    User = "${WL." User} ".
    Password = "${WL.pwd}" > "
    < dir = "${staging.dir file}" includes="${service.name}.ear"/ > "
    < / wldeploy >
    < / target >

    < a name = target "undeploy" >
    < wldeploy
    action = "cancel the deployment.
    Name = "${service." Name} '.
    adminurl = "http://$ {hostname}: ${port}" "
    User = "${WL." User} ".
    Password = "${WL.pwd}" "
    target = "admin_dmwls".
    FailOnError = "false" / >
    < / target >

    < target name = "gclient" >
    < wsdl = "MyFirstService.wsdl" clientgen
    packageName = 'clientpkg. '
    clientJar="${staging.dir}/${service.name}_client.jar"/ >
    < / target >

    < target name = "run" >
    < java classname = 'clientpkg. Fork MyFirstService"="true">
    < arg = value "http://localhost: ${port} / WebServices/MyFirstService?" WSDL "/ >"
    < arg value = "10" / >
    < value arg = "17" / >
    < classpath >
    < pathelement location = "staged" / >
    < pathelement path = "staged" / >
    < / classpath >
    < / java >
    < / target >

    < / project >

    Hi Kuldeep,

    The clientgen task generates just the artifacts (helper classes for the Client program) it never generates the real client program. We have to write our own Client program using the objects generated by the Clientgen tool.

    You need to write a client means as program... "clientpkg. MyFirstServiceClient".. then you can run it... You can refer to http://jaysensharma.wordpress.com/webservices/ (if you use WLS9.x or higher)

    For WebLogic 8.x... .and that you deploy your webservice in WebLogic Server... .you will find the Client Code snippet in your application test page in AdminConsole... you can use this snippet of code in your program.

    Thank you
    Jay SenSharma

    Published by: Jay SenSharma, 19 February 2010 13:56

Maybe you are looking for

  • Satellite P200 will not connect to wireless internet

    I have a Toshiba Satellite P200-143.I changed my internet provider, but the Toshiba will connect to the internet only when the blue ethernet cable is connected. Yet my laptop marry connects easily.I'll start, connect to identify the wireless network

  • Cannot access files recovery

    I had to do a recovery my PC system and before, then used the program of recovery to automatic backup on my external HARD drive. I have since then found my backup there and it extracted in a "System recovery files" folder on my pc. But it won't let m

  • HP LaserJet M426fdn MFP: HP MFP M426fdn battery at startup

    Hello My new battery HP MFP M426fdn at startup. How can you do a cold reset/Reset? Thanks for your replies.

  • A WRT160N V3 can be used as wireless access point.

    I have an AT & T's broadband router.  A WRT160N is connected, so I now have Wireless N capabilities.  I have a second WRT160N I want to put in my living room as a point of access, so I can connect my BluRay player and video stream.  How can I configu

  • How to return to my first pdf export?

    HelloI HAD ALREADY PURCHASED ANNUAL PDF-EXPORT IN APRIL 2017, THEN 10 DAYS AGO SIGNED FOR 7 DAY TRIALDC - PRO ADOBE, NOW THAT THE 7 DAYS ARE OVER, HE I CANNOT RETURN TO MY ORIGINALPLAN AND MAKE THE PDF-EXPORT TO WORD FORMAT.HE KEEPS ASKING ME TO SIGN