Webservice tutorial

I am new to webservices and was trying to go through the tutorial at http://www.manojc.com/?sample1. For some reason, I am getting the error:
webss.build:
[source2wsdd] source2wsdd: Cannot find doclet class weblogic.webservice.tools.dd
gen.ServiceGen
[source2wsdd] 1 error
I have the following in my build.xml
<pathelement location="D:/bea/weblogic81/server/lib/webservices.jar" />
<taskdef name="source2wsdd"
classname="weblogic.ant.taskdefs.webservices.autotype.JavaSource2DD"
     classpathref="client.class.path"/>
and it still cannot find ServiceGen.
Ideas?

How did you solve this problem.

Similar Messages

  • Where to find example code referenced in Java WebServices Tutorial, v1.5_01

    Java WebServices Tutorial, v1.5_01 refenced a lot of code examples, which are supposed to be in <JWSDP_HOME>/docs/tutorial/examples.
    I have downloaded and installed "Java Web Services Developer Pack v1.5" and "Java WebServices Tutorial, v1.5_01" from http://java.sun.com/webservices/downloads/webservicespack.html
    But none of these downloads includes the code examples.
    Thanks for any hitns.

    Thanks.
    But you were talking about a different set of examples referenced in a different document. You can get these examples when you install downloaded file:jwsdp-1_5-windows-i586.exe
    The code examples I am looking for are referenced in:
    "Java WebServices Tutorial, v1.5_01"
    and this document can be downloaded at:
    http://java.sun.com/webservices/downloads/webservicespack.html

  • J2me, webservices tutorial

    hi,
    im looking for some J2me and webservices tutorial. ill apprecialte early help
    thanks
    waiting...

    JSR 172 is still not supported by many mobile phones.
    So, we have to use external SOAP libraries (like kSOAP) to access XML webservices.
    try , KSOAP ...I used it during one of my projects.

  • Sun J2ee webservice tutorial doubt

    Hi,
    I am trying to understand how the JAX RPC static stub client is built in Sun Webservices tutorial
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JAXRPC3.html
    Here we have HelloIF and HelloImpl classes. Both these classes are in the
    package helloservice.
    package helloservice;
    public interface HelloIF extends Remote {
    }These have been built using
        asant build, asant create-war, asant deploy-war commands.Now the client HelloClient.java is in package staticstub.
    package staticstub;
    import javax.xml.rpc.Stub;
    public class HelloClient {
    public static void main(String[] args) {
    HelloIF hello = (HelloIF)stub;
    }}I wanted to know how does HelloClient compile WITHOUT importing package helloservice in which HelloIF has been declared.
    Isn't this against the basic java rules.
    Or is there a smart way ANT does.
    Can someone please explain or give me a plain javac command to compile the HelloClient.java
    regards
    Vasim

    Hello,
    Could you post a stack trace?
    Thanks,
    Bruce
    zbcong wrote:
    >
    hello
    i want to deploy the jax-rpc sample that come with the sun's tutorial(hello) and
    can works well in the tomcat into wls7,but the wls tell me that some files can't
    be found,then i add enough jar files under the jwsdp to the lib directory of the
    war package till the deployment success,but when i invoke it in the browser,the
    browser tell me "no jax-rpc context available",why?and the same package even can't
    be deployed in the jboss,the jboss always complain that the "class not found",but
    i am sure the classes is included in the lib jar files,why?who can help me?
    thank you

  • TopLink Workbench Webservices tutorial

    Hi,
    can you point me to a tutorial explaining how to use TopLink and Webservices ? I know there is an article and sample code on OTN for webservices/toplink but it doesn't say how you actually start ..
    That is : which are the steps one would have to make to expose TopLink data (objects) through webservices ?
    Thank you,
    F

    Hi there,
    Can you provide a little more information about the type of TopLink project you currently have mapped? Presumably you have mapped your object model to a relational database and wish to access the cached TopLink data through a web service?
    Our TopLink 10.1.3 release offers the ability to use TopLink as a serializer/deserializer in a web service environment, as highlighted in the How To: http://www.oracle.com/technology/products/ias/toplink/preview/10.1.3dp3/howto/webSrv/index.htm , but I'm guessing that's not what you're looking for. Let me know which article you were looking at on OTN and I can point you in the right direction from there.
    Regards,
    Dave

  • The Tutorial files for Java webservices tutorial

    hi ,
    The links given on the Java Web services tutorial, to download the source code for the samples dealt in the book seems to be outdated, Does any one have new link.
    Here is the old link
    http://java.sun.com/webservices/download/webservicespack.html.
    thanks for your help..
    chiranjeevi.

    never mind,
    Looks like the book has wrong link,
    it has
    http://java.sun.com/webservices/download/webservicespack.html
    where it should be
    http://java.sun.com/webservices/downloads/webservicespack.html
    thank you,
    Chiranjeevi.

  • Migrating old BC4J Webservice tutorial from JDev9i to JDev10g

    I was asked to develop a simple web service that pulls data out of some tables in our oracle database. I'm familiar with BC4Js and thought it would be easy to try out an old tutorial found on the OTN website:
    Publishing BC4J Components as a Web Services
    http://www.oracle.com/technology/tech/webservices/htdocs/series/pattern/index.html
    Easily written with JDev9i and runs smoothly on the OC4J that comes with it.
    IDE 9.0.3.10.35
    BC4J 9.0.3.10.7
    JDK 1.3.1_02
    OC4J 9.0.3.0.0
    However, when I try (even beginning from the scratch) it out on JDev10g production
    IDE 10.1.2.18.38
    BC4J 10.1.2.18.73
    JDK 1.4.2_06
    OC4J 10.1.2.0.2
    I'm getting the infamous oracle.jbo.common.ampool.ApplicationPoolException
    <faultstring>oracle.jbo.common.ampool.ApplicationPoolException: JBO-30003: The application pool (com.optus.onpsj.dal.ONPSModuleLocal) failed to checkout an application module due to the following exception:</faultstring>
    Any ideas? If I run a simple class without OC4J, it connects fine to the database.
    The plan is to get the web service developed using ADF and Toplink XO (to generate XML based on a defined schema), and then get it deployed to a websphere appserver (after doing the necessary changes the web service, of course).
    Any help would be greatly appreciated.
    Regards
    Sandro

    Has anyone ever been able to run a BC4J webservice with JDev10g production successfully? Or it better for me to develop the whole thing with JDev9 instead?
    Regards
    Sandro

  • Is there a bug in the WebService tutorial for JDeveloper 9i?

    In reading through the JDeveloper 9i tutorial for building a web service, the final step generates the DateTimeServiceStub.java, but the testing that follows does not use this class, it uses the DateTimeService class.
    I built a Web Service based on the this tutorial and when I test with "MyClass.java" it works fine, but when I try to use "MyClassStub.java" it throws the ClassNotFound Exception below:
    java.lang.NoClassDefFoundError: HTTPClient/ModuleException
         at mypackage.RandomQuoteStub.<init>(RandomQuoteStub.java:21)
         at mypackage.RandomQuoteServlet.doGet(RandomQuoteServlet.java:27)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:195)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
    If we are supposed to use the Stub methods, any thought as to why it fails?
    If we are NOT supposed to use the Stub methods, any thought as to why they are generated.
    (Yes, I am a bit new to Web Service development).
    Thanks in advance for any answers,
    RB

    Hi Richard,
    I ran into another problem when I tried to create a web service and call this web service following the tutorial from Oracle9i JDeveloper Release 2.
    The following error message occured after I ran DateTimeClient class:
    [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type &quot;text/html&quot;, must be: &quot;text/xml&quot;. Response was:
              &lt;DIV class=Section1&gt;
              &lt;P class=MsoNormal
              style=&quot;mso-list: none; mso-list-ins: &apos;&apos; 19991102T2025&quot;&gt;&amp;nbsp;
              &lt;/P&gt;
                  &lt;TABLE border=1 cellPadding=0
              style=&quot;BORDER-BOTTOM: 4.5pt outset; BORDER-LEFT: 4.5pt outset; BORDER-RIGHT:
              4.5pt outset; BORDER-TOP: 4.5pt outset; WIDTH: 100%; mso-cellspacing: 1.5pt&quot;
              width=&quot;100%&quot;&gt;
              &lt;TBODY&gt;
                 &lt;TR&gt;
                 &lt;TD     
              style=&quot;PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
              PADDING-TOP: 0.75pt&quot; width=&quot;22%&quot; valign=&quot;top&quot;&gt;
              &lt;P class=MsoNormal&gt;&lt;B&gt;Problem Report&lt;/B&gt;&lt;/P&gt;
                 &lt;/TD&gt;
                 &lt;TD
              style=&quot;PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
              PADDING-TOP: 0.75pt&quot; width=&quot;78%&quot; valign=&quot;top&quot;&gt;
              &lt;P class=MsoNormal&gt;The Web proxy was not able to authenticate you through
                    the authentication server because:&amp;#32&amp;#32&lt;b&gt;General authentication failure due to bad user ID or authentication token.&lt;/b&gt;
                    You will not be able to browse the Web through this proxy until your
                    credentials can be retrieved and verified.&lt;/P&gt;
                 &lt;/TD&gt;
                 &lt;/TR&gt;
                 &lt;tr&gt;
                 &lt;td
              style=&quot;PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
              PADDING-TOP: 0.75pt&quot; width=&quot;22%&quot; valign=&quot;top&quot;&gt;
              &lt;p class=MsoNormal&gt;&lt;b&gt;Message ID&lt;/b&gt;&lt;/p&gt;
                  &lt;/td&gt;
                  &lt;td
              style=&quot;PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
              PADDING-TOP: 0.75pt&quot; width=&quot;22%&quot; valign=&quot;top&quot;&gt;
              &lt;p class=MsoNormal&gt;PROXY_AUTH_FAIL_OTHER
              &lt;p&gt;&lt;/p&gt;
                  &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;TR&gt;
                  &lt;TD
              style=&quot;PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
              PADDING-TOP: 0.75pt&quot; width=&quot;22%&quot; valign=&quot;top&quot;&gt;
              &lt;P class=MsoNormal&gt;&lt;B&gt;Problem Description&lt;/B&gt;&lt;/P&gt;
                  &lt;/TD&gt;
                  &lt;TD
              style=&quot;PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
              PADDING-TOP: 0.75pt&quot; width=&quot;78%&quot; valign=&quot;top&quot;&gt;
              &lt;P class=MsoNormal&gt;The user verification was not successful.&lt;/P&gt;
                  &lt;/TD&gt;
                  &lt;/TR&gt;
                  &lt;TR&gt;
                  &lt;TD
              style=&quot;PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
              ADDING-TOP: 0.75pt&quot; width=&quot;22%&quot; valign=&quot;top&quot;&gt;
              &lt;P class=MsoNormal&gt;&lt;B&gt;Problem Cause&lt;/B&gt;&lt;/P&gt;
                  &lt;/TD&gt;
                  &lt;TD
              style=&quot;PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
              PADDING-TOP: 0.75pt&quot; width=&quot;78%&quot; valign=&quot;top&quot;&gt;
              &lt;P class=MsoNormal&gt;This might be due to transient network problems or due to the
                    user&apos;s not being authorized to use this Web proxy.&lt;/P&gt;
                 &lt;/TD&gt;
                 &lt;/TR&gt;
                 &lt;TR&gt;
                 &lt;TD
              style=&quot;PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
              PADDING-TOP: 0.75pt&quot; width=&quot;22%&quot; valign=&quot;top&quot;&gt;
              &lt;P class=MsoNormal&gt;&lt;B&gt;Possible Solution&lt;/B&gt;&lt;/P&gt;
                 &lt;/TD&gt;
                 &lt;TD
              style=&quot;PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
              PADDING-TOP: 0.75pt&quot; width=&quot;78%&quot; valign=&quot;top&quot;&gt;
                          &lt;P class=MsoNormal&gt;Contact your network support team
                                  if this problem persists, and provide the team your
                                  account information.&lt;/P&gt;
                 &lt;/TD&gt;
                 &lt;/T
         java.lang.String org.apache.soap.rpc.Call.getEnvelopeString(org.apache.soap.transport.SOAPTransport)
         org.apache.soap.rpc.Response org.apache.soap.rpc.Call.invoke(java.net.URL, java.lang.String)
         java.lang.String datetimeclientpackage.DateTimeClientStub.getDate()
         void datetimeclientpackage.DateTimeClient.main(java.lang.String[])
    Exception in thread main
    Process exited with exit code 1.
    By the way, I got the correct information when I tried to load:
    (1) http://159.249.94.139:8888
    (2) http://159.249.94.139:8888/soap/servlet/soaprouter
    which means that oc4j and SOAP server are running properly.
    Do you have any idea what went wrong?
    Thank you in advance.
    - Hao

  • Want to run jax-rpc sample from sun's webservice tutorial in the wls7

    hello
    i want to deploy the jax-rpc sample that come with the sun's tutorial(hello) and
    can works well in the tomcat into wls7,but the wls tell me that some files can't
    be found,then i add enough jar files under the jwsdp to the lib directory of the
    war package till the deployment success,but when i invoke it in the browser,the
    browser tell me "no jax-rpc context available",why?and the same package even can't
    be deployed in the jboss,the jboss always complain that the "class not found",but
    i am sure the classes is included in the lib jar files,why?who can help me?
    thank you

    Hello,
    Could you post a stack trace?
    Thanks,
    Bruce
    zbcong wrote:
    >
    hello
    i want to deploy the jax-rpc sample that come with the sun's tutorial(hello) and
    can works well in the tomcat into wls7,but the wls tell me that some files can't
    be found,then i add enough jar files under the jwsdp to the lib directory of the
    war package till the deployment success,but when i invoke it in the browser,the
    browser tell me "no jax-rpc context available",why?and the same package even can't
    be deployed in the jboss,the jboss always complain that the "class not found",but
    i am sure the classes is included in the lib jar files,why?who can help me?
    thank you

  • Any working WebServices tutorial?

    I tried Sun's app server and tutorial, but it just doesn't work!
    I kept having a 405 error when accessing my web service.
    Could anyone advice me on a link to working example?

    I figure it out!

  • Oracle TopLink as a Custom Serializer in a Webservice tutorial question

    Tutorial link: http://www.oracle.com/technology/products/ias/toplink/technical/tips/jaxRpc11/index.htm
    Has anyone successfuly completed that tutorial using Toplink and JDeveloper 10.1.3? If so I have some questions for you. If not, then it could be possible there is a bug in the IDE with the automatic creation of serializers. I read in the documentation for Oracle, that the serializer classes are to have default constructors but none of the IDE auto-generated serializers do however.
    Surya

    If anyone is interested, I have recreated the Toplink part and the directory structures including the source code and the compiled classes. All that is to be done is to create the web service. I can send it to whoever is interested in trying to solve this problem.
    I am going to give it a shot at creating the service through the IDE or creating it separately through the command prompt and see how it goes.

  • Cannot connect to Informix Server from workshop webservice tutorial

    I am trying to modify the web service tutorial sample application to change the
    database connection to point to the informix database server. After running application,
    it displayed the following errror message:
    weblogic.jws.control.ControlException: Unable to obtain connection to database[Connection
    has already been created in this tx context for pool named cgPool. Illegal attempt
    to create connection from another pool: ecomPool] .
    Here ecomPool is a working pool which I am doing other development with it.
    Please advice if someone has some idea.
    Thanks.

    "kevin" <[email protected]> wrote:
    >
    I am trying to modify the web service tutorial sample application to
    change the
    database connection to point to the informix database server. After
    running application,
    it displayed the following errror message:
    weblogic.jws.control.ControlException: Unable to obtain connection to
    database[Connection
    has already been created in this tx context for pool named cgPool. Illegal
    attempt
    to create connection from another pool: ecomPool] .
    Here ecomPool is a working pool which I am doing other development with
    it.
    Please advice if someone has some idea.
    Thanks.You cannot have two non-XA enabled connection pools used by workshop. What you'll
    need to do is set up ecomPool to be XA enabled, then when you point cgPool to
    Informix (non-XA), it should run smoothly.
    Be aware cgPool cannont be XA enabled, because the JMS traffic is over this pool
    as well

  • WebServices and Java/Weblogic RPC Client

    Hi,
    I have a simple usability question :
    - Where would I want to use a java client that invokes the (WebLogic) Webservice
    using RPC/SOAP - especially the static client model?
    - Probably the corollary to that would be - why wouldn't I simply invoke the ejb
    using the EJB interface invocation?
    In both cases, the information required by the developer to write the code is
    same, the coding effort is same (only the Properties object being passed to obtain
    the InitialContext is populated with different values) - and everything is hardcoded
    i.e. no dynamic behavior advantage.
    I ran some quick and dirty benchmarks and the webService client is slower than
    the mundane ejb client to the order of magnitude of 1:4, 1:5. (duh .. xml!)
    Two advantages that I can think of are :
    - Because of HTTP, firewall/port issues may be circumvented when using WebServices.
    - The thin client.jar maybe easier to distribute than weblogic.jar.
    Shall deeply appreciate any insight to the utility from a business perspective
    (read ~ convincing clients).
    Thanks,
    Ajay

    It took me almost 3 seconds to find this so I can see why you would ask. http://java.sun.com/webservices/tutorial.html

  • Tutorials about WebServices and Java

    I am looking for general info on how to use WebServices in Java. Has anybody have sample Code?
    I want to implement a WebService that sends large amounts of data to the client. Can a WebService send complex Objects to the client?
    thx

    It took me almost 3 seconds to find this so I can see why you would ask. http://java.sun.com/webservices/tutorial.html

  • What is the benefit of using J2EE for webservices?

    (I posted this on google news group, but no one answer, sorry for the cross post)
    This maybe obvious to some of you, but after I went over the
    webservices tutorial from Sun, about XML RPC and JAXM, I don't know
    what is the benefit of using webservices within J2EE container.
    Please tell me about it.
    My assumption is that RPC and JAXM both enables the communication, but
    the managing of session, persistent, thread pool, connection pool,
    database, etc, are all handled by the container. Well, I still hope
    my assumption is true. However, from what I read, the tutorial does
    not even mention the word beans. So, how to get a beans to talk the
    JAXM language so that I can get all of the above features? Or am I totally off track here? if an enterprise bean is not needed, then how to get all the above benefits that the J2EE offers?
    By the way, does Sun's RPC and JAXM has things such as quality of
    service (such as request time out). They mention guarantee delivery,
    but if a reply to my query come 5 minutes later versus instantly, then
    I probably lost a customer already. RPC also has big limitation, Corba has asynchronous request, but Sun's RPC does not.
    Thank you in advance for all comments and help.

    Basic communication aside, J2EE is mostly a synchronous run-time environment. When asynchrony is introduced, a whole new set of infrastructure requirements is needed to support QoS and commercial-quality implementations. In other words, it's not just about API anymore, it's about reliable communication, exception handling, time outs, etc. You may want to look at this Q&A to see some of the benefits provided by J2EE as underlying run-time for orchestration:
    http://searchwebservices.techtarget.com/ateQuestionNResponse/0,289625,sid26_cid511195_tax292928,00.html
    Doron\
    Download Collaxa 2.0
    http://www.collaxa.com

Maybe you are looking for