We have a pojo web service defined in a jsr181 su.  (...which is assembled
together with a http su.)

The service invokes without exception and input is passed to our POJO, but
only one of the parameters in the input class (which has two string
elements) gets set.  

The JSR181 declaration is (there are actually four services in the jsr181
SU):

    <jsr181:endpoint pojo="#AddUserToCoiBeanId" style="wrapped"
service="coi:AddUserToCoiService"/>
    <jsr181:endpoint pojo="#CreateCoiBeanId" style="wrapped"
service="coi:CreateCoiService"/>
    <jsr181:endpoint pojo="#DeleteCoiBeanId" style="wrapped"
service="coi:DeleteCoiService"/>
    <jsr181:endpoint pojo="#RemoveUserFromCoiBeanId" style="wrapped"
service="coi:RemoveUserFromCoiService"/>

I've tried 'wrapped' and 'document' for the attribute style.  Neither works. 

The POJO snippet is:

@WebService(serviceName = "AddUserToCoiService", targetNamespace =
"http://ssoa.raytheon.com/coiservices/adduser";)
public class AddUserToCoi {

        private Group ldapGroup; 

        /* */
        @WebMethod(operationName = "addUserToCoi", action =
"urn:addUserToCoi")
        @WebResult(name = "invocationResult")
        public InvocationResult addUserToCoi(UserCoiRequest request) {
                return ldapGroup.addUserToGroup(request.getUserName(),
request.getCoiName());
        }
 
request.getUserName() always resolves to "".  Only request.getCoiName() is
set as per the client.

The HTTP config is:

  <http:endpoint service="coi:AddUserToCoiService"
                 endpoint="addUserSoap"
                 targetService="coi:AddUserToCoiService"
                 role="consumer" 
                 locationURI="http://0.0.0.0:8192/AddUserToCoiService/";
                 soap="true" />
    ....


Does anyone have any ideas where to go from here?  

This is version 3.1.1.   And, it works when DEBUG is on.  Wow..

Thanks!
-- 
View this message in context: 
http://www.nabble.com/jsr181-dropping-input-parameter-tf4498434s12049.html#a12829370
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to