Results 1 to 3 of 3

Thread: writing a web service with jwsdp 2

  1. #1
    Join Date
    Jun 2006
    Posts
    2

    Default writing a web service with jwsdp 2

    Hi
    I writed a jwsdp 2 document/literal web service.
    My application framework is spring.
    How I migrate that web service with spring?
    I want to call my dao beans in web service proxy.so i must wiring web services in application context.
    I can't find suitable document for this.All of available documents are in jax-rpc 1.0 technology.
    Can anyone help me?

  2. #2
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    Quote Originally Posted by hmmahboobi
    Hi
    I writed a jwsdp 2 document/literal web service.
    My application framework is spring.
    How I migrate that web service with spring?
    I want to call my dao beans in web service proxy.so i must wiring web services in application context.
    I can't find suitable document for this.All of available documents are in jax-rpc 1.0 technology.
    Can anyone help me?
    I'm afraid I don't understand your question. Did you write your web service using JSR 181? Or Jax-WS? Or SAAJ? All three APIs are part of JWSDP, that's why I ask. What do you want to migrate to?

    In any case, you can create a WebApplicationContext using the WebApplicationContextUtils. All you need is a ServletContext. You can just lookup your dao beans with that. It's not nice, but it works.

    Cheers,
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  3. #3
    Join Date
    Jun 2006
    Posts
    2

    Arrow detailed description

    Hi
    Thanks for your reply.
    I write my web service with jax-ws 2.0 technology.
    I want to put spring over the web service.How can I create a bean that defines the web service?in spring old documents,I saw JaxRpcPortProxyFactoryBean.I think I want a factory like this.
    Suppose we have a web service with this class:

    @WebService(...)
    @SOAPBinding(...)
    public class TestService{
    private myDAO;

    public void setMyDAO(MyDAO myDAO){
    this.myDAO=myDAO;
    }
    @WebMethod(...)
    @Oneway
    public void add(
    @WebParam(...)
    Message body){
    ... use of myDAO in this method
    }
    }

    when i call the web service url,I want to myDAO object is assigned to service and then add method was called.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •