Announcement Announcement Module
Collapse
No announcement yet.
writing a web service with jwsdp 2 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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,

    Comment


    • #3
      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.

      Comment

      Working...
      X