[jbossws-issues] [JBoss JIRA] Commented: (JBWS-814) JSR-181 rpc/encoded should trigger an exception

Kenny Stainback (JIRA) jira-events at jboss.com
Mon Nov 6 12:01:41 EST 2006


    [ http://jira.jboss.com/jira/browse/JBWS-814?page=comments#action_12346316 ] 
            
Kenny Stainback commented on JBWS-814:
--------------------------------------

+1 for supporing RPC/encoded.

> JSR-181 rpc/encoded should trigger an exception
> -----------------------------------------------
>
>                 Key: JBWS-814
>                 URL: http://jira.jboss.com/jira/browse/JBWS-814
>             Project: JBoss Web Services
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: wstools
>            Reporter: Thomas Diesler
>         Assigned To: Thomas Diesler
>             Fix For:  jbossws-1.0.1
>
>
> 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:
> Code:
> 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:
> Code:
> ...
>  <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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbossws-issues mailing list