1 Reply Latest reply on Apr 10, 2006 6:44 PM by thomas.diesler

    rpc/encoded support in 4.0.4 cr2?

    peter_kaas

      I'm trying to migrate our JBoss.NET based services to new JBossWS but I'm having trouble getting rpc/encoded styles working. I need this for my Perl (SOAP::Lite) based clients. Is rpc/encoded style still supported in JBossWS?

      My Java code looks like:

      package com.lunatech.test.jbossws;
      
      import javax.ejb.Stateless;
      import javax.jws.WebMethod;
      import javax.jws.WebParam;
      import javax.jws.WebResult;
      import javax.jws.WebService;
      import javax.jws.soap.SOAPBinding;
      
      import org.jboss.ws.annotation.PortComponent;
      
      import com.lunatech.test.jbossws.dvo.GetInfoRequest;
      import com.lunatech.test.jbossws.dvo.GetInfoResponse;
      
      @WebService(
       targetNamespace = "http://test.lunatech.com/MutationService/",
       serviceName = "MutationService"
      )
      @PortComponent(contextRoot="/MutationService", urlPattern="/*")
      @SOAPBinding(
       style = SOAPBinding.Style.RPC,
       use = SOAPBinding.Use.ENCODED
      )
      @Stateless
      public class MutationService implements MutationServiceRemote {
      
       @WebMethod(action = "getInfo")
       @WebResult(name = "response")
       public GetInfoResponse getInfo(@WebParam(name = "request") GetInfoRequest request) {
       return new GetInfoResponse();
       }
      
      }
      


      But the relevant bit of WSDL generated still says use='literal'. Also, my soapAction seems to be missing:

      ...
       <binding name='MutationServiceBinding' type='tns:MutationService'>
       <soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/>
       <operation name='getInfo'>
       <soap:operation soapAction=''/>
       <input>
       <soap:body namespace='http://test.lunatech.com/MutationService/' use='literal'/>
       </input>
       <output>
       <soap:body namespace='http://test.lunatech.com/MutationService/' use='literal'/>
       </output>
       </operation>
       </binding>
      ...
      


      This is with the latest 4.0.4 jboss-head checkout on 2006-03-26.