AnsweredAssumed Answered

New User Creation

Question asked by pat2man on Mar 17, 2010
I am trying to create a new user and I am getting an error message: operation description is missing parameter description!

Below is my request and the response. This is all coming out of code generated by wsdl2ruby with a custom header code for the ticket. Everything works with queryUsers etc but creating users does not work.

[size=150]Request:
[/size]
<?xml version="1.0" encoding="utf-8" ?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
  <env:Header>
        <Security env:mustUnderstand="1"
            xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
          <Timestamp xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"></Timestamp>
          <UsernameToken xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
              xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
            <Username>admin</Username>
            <Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">TICKET_TICKETREMOVEDFORSECURITY</Password>
          </UsernameToken>
        </Security>
  </env:Header>
  <env:Body>
    <n1:createUsers xmlns:n1="http://www.alfresco.org/ws/service/administration/1.0">
      <n1:userName>testuser</n1:userName>
      <n1:password>Password1</n1:password>
      <n1:properties xmlns:n2="http://www.alfresco.org/ws/model/content/1.0">
        <n2:name>firstName</n2:name>
        <n2:isMultiValue xsi:nil="true"></n2:isMultiValue>
        <n2:value>FIRST NAME</n2:value>
      </n1:properties>
    </n1:createUsers>
  </env:Body>
</env:Envelope>

[size=150]Error:
[/size]
HTTP/1.1 500 Internal Server Error
Date: Wed, 17 Mar 2010 19:00:07 GMT
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=utf-8
Via: 1.1 share.iscompass.com
Vary: Accept-Encoding
Connection: close
Transfer-Encoding: chunked

ba6
<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>org.xml.sax.SAXException: operation description is missing parameter description!</faultstring><detail><ns1:stackTrace xmlns:ns1="http://xml.apache.org/axis/">org.xml.sax.SAXException: operation description is missing parameter description!
   at org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:202)
   at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
   at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
   at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
   at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
   at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
   at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:81)
   at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
   at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
   at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
   at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
   at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
   at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
   at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
   at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
   at java.lang.Thread.run(Thread.java:619)
</ns1:stackTrace><ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">share01</ns2:hostname></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
0

! CONNECTION CLOSED

Outcomes