You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Nathaniel A. Johnson" <na...@indiana.edu> on 2005/06/05 03:49:52 UTC

problem with doc/literal...

hi all,

i have a java application and need to make it available via web
services... so i'd like to use java2wsdl.  it works great if i use
rpc/encoded (i even have it working with wss4j, signing and encrypting
all communications), but doc/literal doesnt seem to play nicely.  the
java interface only uses simple String objects and String arrays, so its
a really simple interface (no complex objects or anything).  i get the
following fault when a String array return type is processed.

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a
child element, which is NOT expected, in something it was trying to
deserialize.

i use the java2wsdl ant task, if that helps anyone think of any
advice... here is the wsdl that it generates, but i really dont want to
have to modify it by hand after each change to the java objects... but
if thats what it comes down to so that it will work with other clients,
i guess thats what i will have to do.

thanks all!  heres the wsdl (sorry about the +/- signs... copied it from
internet explorer)

nate


<?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions
targetNamespace="http://services.osg.uis.iu.edu/GroupsService"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://services.osg.uis.iu.edu/GroupsService"
xmlns:intf="http://services.osg.uis.iu.edu/GroupsService"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <!--
WSDL created by Apache Axis version: 1.2.1
Built on Jun 03, 2005 (06:10:52 PDT)

  -->
- <wsdl:types>
- <schema elementFormDefault="qualified"
targetNamespace="http://services.osg.uis.iu.edu/GroupsService"
xmlns="http://www.w3.org/2001/XMLSchema">
- <element name="createGroup">
- <complexType>
- <sequence>
  <element name="in0" type="xsd:string" />
  </sequence>
  </complexType>
  </element>
- <element name="createGroupResponse">
- <complexType>
- <sequence>
  <element name="createGroupReturn" type="xsd:int" />
  </sequence>
  </complexType>
  </element>
- <element name="getMembers">
- <complexType>
- <sequence>
  <element name="in0" type="xsd:string" />
  </sequence>
  </complexType>
  </element>
- <element name="getMembersResponse">
- <complexType>
- <sequence>
  <element maxOccurs="unbounded" name="getMembersReturn"
type="xsd:string" />
  </sequence>
  </complexType>
  </element>
- <element name="createGroupWithMembers">
- <complexType>
- <sequence>
  <element name="in0" type="xsd:string" />
  <element maxOccurs="unbounded" name="in1" type="xsd:string" />
  </sequence>
  </complexType>
  </element>
- <element name="createGroupWithMembersResponse">
- <complexType>
- <sequence>
  <element name="createGroupWithMembersReturn" type="xsd:int" />
  </sequence>
  </complexType>
  </element>
- <element name="addMember">
- <complexType>
- <sequence>
  <element name="in0" type="xsd:string" />
  <element name="in1" type="xsd:string" />
  </sequence>
  </complexType>
  </element>
- <element name="addMemberResponse">
- <complexType>
- <sequence>
  <element name="addMemberReturn" type="xsd:int" />
  </sequence>
  </complexType>
  </element>
- <element name="addMembers">
- <complexType>
- <sequence>
  <element name="in0" type="xsd:string" />
  <element maxOccurs="unbounded" name="in1" type="xsd:string" />
  </sequence>
  </complexType>
  </element>
- <element name="addMembersResponse">
- <complexType>
- <sequence>
  <element name="addMembersReturn" type="xsd:int" />
  </sequence>
  </complexType>
  </element>
- <element name="removeMember">
- <complexType>
- <sequence>
  <element name="in0" type="xsd:string" />
  <element name="in1" type="xsd:string" />
  </sequence>
  </complexType>
  </element>
- <element name="removeMemberResponse">
- <complexType>
- <sequence>
  <element name="removeMemberReturn" type="xsd:int" />
  </sequence>
  </complexType>
  </element>
- <element name="removeMembers">
- <complexType>
- <sequence>
  <element name="in0" type="xsd:string" />
  <element maxOccurs="unbounded" name="in1" type="xsd:string" />
  </sequence>
  </complexType>
  </element>
- <element name="removeMembersResponse">
- <complexType>
- <sequence>
  <element name="removeMembersReturn" type="xsd:int" />
  </sequence>
  </complexType>
  </element>
- <element name="removeGroup">
- <complexType>
- <sequence>
  <element name="in0" type="xsd:string" />
  </sequence>
  </complexType>
  </element>
- <element name="removeGroupResponse">
- <complexType>
- <sequence>
  <element name="removeGroupReturn" type="xsd:int" />
  </sequence>
  </complexType>
  </element>
  </schema>
  </wsdl:types>
- <wsdl:message name="createGroupWithMembersResponse">
  <wsdl:part element="impl:createGroupWithMembersResponse"
name="parameters" />
  </wsdl:message>
- <wsdl:message name="createGroupWithMembersRequest">
  <wsdl:part element="impl:createGroupWithMembers" name="parameters" />
  </wsdl:message>
- <wsdl:message name="removeMembersResponse">
  <wsdl:part element="impl:removeMembersResponse" name="parameters" />
  </wsdl:message>
- <wsdl:message name="removeMemberRequest">
  <wsdl:part element="impl:removeMember" name="parameters" />
  </wsdl:message>
- <wsdl:message name="removeMemberResponse">
  <wsdl:part element="impl:removeMemberResponse" name="parameters" />
  </wsdl:message>
- <wsdl:message name="getMembersResponse">
  <wsdl:part element="impl:getMembersResponse" name="parameters" />
  </wsdl:message>
- <wsdl:message name="addMembersResponse">
  <wsdl:part element="impl:addMembersResponse" name="parameters" />
  </wsdl:message>
- <wsdl:message name="removeGroupRequest">
  <wsdl:part element="impl:removeGroup" name="parameters" />
  </wsdl:message>
- <wsdl:message name="createGroupRequest">
  <wsdl:part element="impl:createGroup" name="parameters" />
  </wsdl:message>
- <wsdl:message name="addMemberResponse">
  <wsdl:part element="impl:addMemberResponse" name="parameters" />
  </wsdl:message>
- <wsdl:message name="addMemberRequest">
  <wsdl:part element="impl:addMember" name="parameters" />
  </wsdl:message>
- <wsdl:message name="createGroupResponse">
  <wsdl:part element="impl:createGroupResponse" name="parameters" />
  </wsdl:message>
- <wsdl:message name="getMembersRequest">
  <wsdl:part element="impl:getMembers" name="parameters" />
  </wsdl:message>
- <wsdl:message name="removeMembersRequest">
  <wsdl:part element="impl:removeMembers" name="parameters" />
  </wsdl:message>
- <wsdl:message name="removeGroupResponse">
  <wsdl:part element="impl:removeGroupResponse" name="parameters" />
  </wsdl:message>
- <wsdl:message name="addMembersRequest">
  <wsdl:part element="impl:addMembers" name="parameters" />
  </wsdl:message>
- <wsdl:portType name="GroupsService">
- <wsdl:operation name="createGroup">
  <wsdl:input message="impl:createGroupRequest"
name="createGroupRequest" />
  <wsdl:output message="impl:createGroupResponse"
name="createGroupResponse" />
  </wsdl:operation>
- <wsdl:operation name="getMembers">
  <wsdl:input message="impl:getMembersRequest" name="getMembersRequest" />
  <wsdl:output message="impl:getMembersResponse"
name="getMembersResponse" />
  </wsdl:operation>
- <wsdl:operation name="createGroupWithMembers">
  <wsdl:input message="impl:createGroupWithMembersRequest"
name="createGroupWithMembersRequest" />
  <wsdl:output message="impl:createGroupWithMembersResponse"
name="createGroupWithMembersResponse" />
  </wsdl:operation>
- <wsdl:operation name="addMember">
  <wsdl:input message="impl:addMemberRequest" name="addMemberRequest" />
  <wsdl:output message="impl:addMemberResponse" name="addMemberResponse" />
  </wsdl:operation>
- <wsdl:operation name="addMembers">
  <wsdl:input message="impl:addMembersRequest" name="addMembersRequest" />
  <wsdl:output message="impl:addMembersResponse"
name="addMembersResponse" />
  </wsdl:operation>
- <wsdl:operation name="removeMember">
  <wsdl:input message="impl:removeMemberRequest"
name="removeMemberRequest" />
  <wsdl:output message="impl:removeMemberResponse"
name="removeMemberResponse" />
  </wsdl:operation>
- <wsdl:operation name="removeMembers">
  <wsdl:input message="impl:removeMembersRequest"
name="removeMembersRequest" />
  <wsdl:output message="impl:removeMembersResponse"
name="removeMembersResponse" />
  </wsdl:operation>
- <wsdl:operation name="removeGroup">
  <wsdl:input message="impl:removeGroupRequest"
name="removeGroupRequest" />
  <wsdl:output message="impl:removeGroupResponse"
name="removeGroupResponse" />
  </wsdl:operation>
  </wsdl:portType>
- <wsdl:binding name="GroupsServiceServiceSoapBinding"
type="impl:GroupsService">
  <wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="createGroup">
  <wsdlsoap:operation soapAction="" />
- <wsdl:input name="createGroupRequest">
  <wsdlsoap:body use="literal" />
  </wsdl:input>
- <wsdl:output name="createGroupResponse">
  <wsdlsoap:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="getMembers">
  <wsdlsoap:operation soapAction="" />
- <wsdl:input name="getMembersRequest">
  <wsdlsoap:body use="literal" />
  </wsdl:input>
- <wsdl:output name="getMembersResponse">
  <wsdlsoap:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="createGroupWithMembers">
  <wsdlsoap:operation soapAction="" />
- <wsdl:input name="createGroupWithMembersRequest">
  <wsdlsoap:body use="literal" />
  </wsdl:input>
- <wsdl:output name="createGroupWithMembersResponse">
  <wsdlsoap:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="addMember">
  <wsdlsoap:operation soapAction="" />
- <wsdl:input name="addMemberRequest">
  <wsdlsoap:body use="literal" />
  </wsdl:input>
- <wsdl:output name="addMemberResponse">
  <wsdlsoap:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="addMembers">
  <wsdlsoap:operation soapAction="" />
- <wsdl:input name="addMembersRequest">
  <wsdlsoap:body use="literal" />
  </wsdl:input>
- <wsdl:output name="addMembersResponse">
  <wsdlsoap:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="removeMember">
  <wsdlsoap:operation soapAction="" />
- <wsdl:input name="removeMemberRequest">
  <wsdlsoap:body use="literal" />
  </wsdl:input>
- <wsdl:output name="removeMemberResponse">
  <wsdlsoap:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="removeMembers">
  <wsdlsoap:operation soapAction="" />
- <wsdl:input name="removeMembersRequest">
  <wsdlsoap:body use="literal" />
  </wsdl:input>
- <wsdl:output name="removeMembersResponse">
  <wsdlsoap:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="removeGroup">
  <wsdlsoap:operation soapAction="" />
- <wsdl:input name="removeGroupRequest">
  <wsdlsoap:body use="literal" />
  </wsdl:input>
- <wsdl:output name="removeGroupResponse">
  <wsdlsoap:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:service name="GroupsServiceService">
- <wsdl:port binding="impl:GroupsServiceServiceSoapBinding"
name="GroupsServiceService">
  <wsdlsoap:address
location="http://localhost:8080/osg-dev/services/GroupsServiceService" />
  </wsdl:port>
  </wsdl:service>
  </wsdl:definitions>

Re: problem with doc/literal...

Posted by James Taylor <ta...@tcd.ie>.
Cheers will give it a blast,
                           good luck to ya.

Quoting "Nathaniel A. Johnson" <na...@indiana.edu>:

> james,
>
> here ya go... i initialize it like this so that log4j will reload if the
> file changes.  osg is the name of my application down there, so dont
> worry about the naming conventions and the {user} stuff below is extra
> logging that the application sets during web requests so i know who is
> using the application (won't work for you unless you set that in some
> filter or something).
>
> nate
>
>
> PropertyConfigurator.configureAndWatch(path, 5 * 60 * 1000);
>
> # log4j settings
> log4j.rootLogger=debug, StdOut, OSGFile
>
> # Define StdOut appender as going to System.out
> log4j.appender.StdOut=org.apache.log4j.ConsoleAppender
> log4j.appender.StdOut.File=System.out
> log4j.appender.StdOut.Threshold=INFO
> log4j.appender.StdOut.layout=org.apache.log4j.PatternLayout
> log4j.appender.StdOut.layout.ConversionPattern=%d [%t] %-5p %X{user} %c
> :: %m%n
>
> # Define OSGFile appender as going to a file
> log4j.appender.OSGFile=org.apache.log4j.RollingFileAppender
> log4j.appender.OSGFile.File=/opt/logs/dev/osg/osg.log
> log4j.appender.OSGFile.Threshold=DEBUG
> log4j.appender.OSGFile.layout=org.apache.log4j.PatternLayout
> log4j.appender.OSGFile.layout.ConversionPattern=%d [%t] %-5p %c :: %m%n
> log4j.appender.OSGFile.MaxFileSize=10000KB
> log4j.appender.OSGFile.MaxBackupIndex=10
>
>
>
> James Taylor wrote:
> > Hey Nathaniel,
> >               would you mind posting me your log4J properties file as I'm
> trying
> > to set it up in axis. At the minute I have the below listing in C:\Program
> > Files\Apache\jakarta-tomcat-4.1.31\webapps\axis\WEB-INF\classes but there's
> no
> > log file in C:\Program Files\Apache\jakarta-tomcat-4.1.31\logs\
> > I also stuck a class static variable Logger logger =
> > Logger.getLogger(myclass.class);
> >                James.
> >
> > # Log4j configuration file.
> > # Set root logger level to DEBUG and its only appender to A.
> > log4j.rootCategory=DEBUG, A
> >
> > # A is a DailyRollingFileAppender
> > log4j.appender.A=org.apache.log4j.DailyRollingFileAppender
> > log4j.appender.A.file=C:\Program
> > Files\Apache\jakarta-tomcat-4.1.31\logs\JamesAxis.log
> > log4j.appender.A.datePattern='.'yyyy-MM-dd
> > log4j.appender.A.append=true
> > log4j.appender.A.layout=org.apache.log4j.PatternLayout
> > log4j.appender.A.layout.ConversionPattern=%-5p %d{ISO8601} [%t] - %m%n
> >
> >
> > Quoting "Nathaniel A. Johnson" <na...@indiana.edu>:
> >
> >
> >>anne,
> >>
> >>here is a sample message and the full stack trace.  i have log4j turned
> >>on in debug mode and from that and the soapmonitor, right now it appears
> >>that when this request goes out, it blows up while in doc/literal mode.
> >> there is no response.  seems weird that it needs to deserialize before
> >>sending to the server, doesnt it?  because the client it blowing up, not
> >>the server.  anyway, here is a request message and the stack trace.
> >>thanks again for looking at this.
> >>
> >>ps: i left the digital signature in there, but turned off the
> >>encryption, so you can see the small soap body down at the bottom of the
> >>message.
> >>
> >>nate
> >>
> >>
> >><?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:Header>
> >><wsse:Security
> >>
> >
> >
>
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
> >
> >>soapenv:mustUnderstand="1">
> >><wsse:BinarySecurityToken
> >>
> >
> >
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> >
> >
>
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"
> >
> >
>
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"
> >
> >
>
wsu:Id="CertId-612575">MIIBnjCCAQcCBEKeIDgwDQYJKoZIhvcNAQEEBQAwFjEUMBIGA1UEAxMLeHhhcHBjbGllbnQwHhcN
> >
> >>MDUwNjAxMjA1MzEyWhcNMDUwODMwMjA1MzEyWjAWMRQwEgYDVQQDEwt4eGFwcGNsaWVudDCBnzAN
> >>BgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEApzheMPxZkjI8iIpPv08KIGI7hMWOzx47b2ym4VGH+b3N
> >>L90rT/3Eghll2RhRaJIAWuh/A3ZeVog6B4vdH6rSLWPpOrKsC+R4ar1dHqvCNYdtC5A2CWA4l9ni
> >>cLbFamviOKCxanbfFtCAvqwUJXdFDV0V7HgqKJRdErZlO1tl0FkCAwEAATANBgkqhkiG9w0BAQQF
> >>AAOBgQBgH/EID1mBxU2gMmuycfw/Gx41wALz7VwuOFWBWQdj2btnm2fM4GVmLk9BlijL3QSLb3b9
> >>GRboZJBkbUB91MfD6I0PZ5OyaeqP53sM1QX+7amWZ3Yzo7ZwViWCmFUXK4LZid/8Ue2mxB4mRKo+
> >>lwow5/kMTf7n1LnIXjMPTf6hMg==</wsse:BinarySecurityToken>
> >><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
> >><ds:SignedInfo>
> >><ds:CanonicalizationMethod
> >>
> >
> >
>
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:CanonicalizationMethod>
> >
> >><ds:SignatureMethod
> >>Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></ds:SignatureMethod>
> >><ds:Reference URI="#id-10486149">
> >><ds:Transforms>
> >><ds:Transform
> >>Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:Transform>
> >></ds:Transforms>
> >><ds:DigestMethod
> >>Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></ds:DigestMethod>
> >><ds:DigestValue>KiGD6r9lsMJErPKd4D3VIproaFE=</ds:DigestValue>
> >></ds:Reference>
> >></ds:SignedInfo>
> >><ds:SignatureValue>
> >>ZYtuKrljUs38ZIXRp0NPqmnNUtbgb23zM24GLMcXJKGH/op5Tz7nj3B0g6DhsXn2vwc5aWvfK2U3
> >>66ZS1T7OCKGx+z+QHwqwF2B+TepW743KrahqgnrdJ3c7DkODjFcr9I2E8A70+IJDXut8bHMJ09ys
> >>Pz/brQoqXusrI5IeFQQ=
> >></ds:SignatureValue>
> >><ds:KeyInfo Id="KeyId-28523022">
> >><wsse:SecurityTokenReference
> >>
> >
> >
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> >
> >>wsu:Id="STRId-13782591"><wsse:Reference URI="#CertId-612575"
> >>
> >
> >
>
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"></wsse:Reference>
> >
> >></wsse:SecurityTokenReference>
> >></ds:KeyInfo>
> >></ds:Signature>
> >></wsse:Security>
> >></soapenv:Header>
> >><soapenv:Body
> >>
> >
> >
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> >
> >>wsu:Id="id-10486149">
> >><getMembers xmlns="http://services.osg.uis.iu.edu/GroupsService">
> >><in0>bl-uits-onestart-admin</in0>
> >></getMembers>
> >></soapenv:Body>
> >></soapenv:Envelope>
> >>
> >>
> >>
> >>
> >>AxisFault
> >> faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> >> faultSubcode:
> >> faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a
> >>child element, which is NOT expected, in something it was trying to
> >>deserialize.
> >> faultActor:
> >> faultNode:
> >> faultDetail:
> >>	{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException:
> >>SimpleDeserializer encountered a child element, which is NOT expected,
> >>in something it was trying to deserialize.
> >>	at
> >>
> >
> >
>
org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
> >
> >>	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:1140)
> >
> >>	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:148)
> >
> >>	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:453)
> >>	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:709)
> >>	at
> >>
> >
> >
>
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
> >
> >>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >>	at
> >>
> >
> >
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
> >
> >>	at
> >>
> >
> >
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
> >
> >>	at
> >>
> >
> >
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
> >
> >>	at
> >>
> >
> >
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> >
> >>	at
> >>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> >>	at
> >>
> >
> >
>
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
> >
> >>	at
> >>
> >
> >
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
> >
> >>	at
> >>
> >
> >
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> >
> >>	at
> >>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> >>	at
>
>>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
> >>	at
> >>
> >
> >
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> >
> >>	at
>
>>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
> >>	at
> >>
> >
> >
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
> >
> >>	at
> >>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> >>	at
> >>
> >
> >
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> >
> >>	at
> >>
> >
> >
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> >
> >>	at
> >>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> >>	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
> >>	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
> >>	at
> >>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
> >>	at
> >>
> >
> >
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
> >
> >>	at
> >>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
> >>	at
> >>
> >
> >
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
> >
> >>	at java.lang.Thread.run(Thread.java:534)
> >>
> >>	{http://xml.apache.org/axis/}hostname:bl-uits-naj
> >>
> >>org.xml.sax.SAXException: SimpleDeserializer encountered a child
> >>element, which is NOT expected, in something it was trying to deserialize.
> >>	at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
> >>	at
> >>org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:330)
> >>	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:453)
> >>	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:709)
> >>	at
> >>
> >
> >
>
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
> >
> >>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >>	at
> >>
> >
> >
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
> >
> >>	at
> >>
> >
> >
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
> >
> >>	at
> >>
> >
> >
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
> >
> >>	at
> >>
> >
> >
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> >
> >>	at
> >>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> >>	at
> >>
> >
> >
>
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
> >
> >>	at
> >>
> >
> >
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
> >
> >>	at
> >>
> >
> >
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> >
> >>	at
> >>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> >>	at
>
>>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
> >>	at
> >>
> >
> >
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> >
> >>	at
>
>>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
> >>	at
> >>
> >
> >
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
> >
> >>	at
> >>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> >>	at
> >>
> >
> >
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> >
> >>	at
> >>
> >
> >
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> >
> >>	at
> >>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> >>	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
> >>	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
> >>	at
> >>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
> >>	at
> >>
> >
> >
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
> >
> >>	at
> >>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
> >>	at
> >>
> >
> >
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
> >
> >>	at java.lang.Thread.run(Thread.java:534)
> >>Caused by: org.xml.sax.SAXException: SimpleDeserializer encountered a
> >>child element, which is NOT expected, in something it was trying to
> >>deserialize.
> >>	at
> >>
> >
> >
>
org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
> >
> >>	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:1140)
> >
> >>	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:148)
> >
> >>	at
> >>org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
> >>	... 33 more
> >>
> >>
> >>
> >>Anne Thomas Manes wrote:
> >>
> >>>Could you provide us with a sample of your errant SOAP messages?
> >>>Is the fault occuring on the client, server, or both?
> >>>
> >>>Anne
> >>>
> >>>(ps -- the WSDL looks just fine)
> >>>(I recommend that you compile your code with debug on so that
> >>>java2wsdl produces more reasonable parameter names.)
> >>>
> >>>On 6/4/05, Nathaniel A. Johnson <na...@indiana.edu> wrote:
> >>>
> >>>
> >>>>hi all,
> >>>>
> >>>>i have a java application and need to make it available via web
> >>>>services... so i'd like to use java2wsdl.  it works great if i use
> >>>>rpc/encoded (i even have it working with wss4j, signing and encrypting
> >>>>all communications), but doc/literal doesnt seem to play nicely.  the
> >>>>java interface only uses simple String objects and String arrays, so its
> >>>>a really simple interface (no complex objects or anything).  i get the
> >>>>following fault when a String array return type is processed.
> >>>>
> >>>>AxisFault
> >>>>faultCode:
> {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> >>>>faultSubcode:
> >>>>faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a
> >>>>child element, which is NOT expected, in something it was trying to
> >>>>deserialize.
> >>>>
> >>>>i use the java2wsdl ant task, if that helps anyone think of any
> >>>>advice... here is the wsdl that it generates, but i really dont want to
> >>>>have to modify it by hand after each change to the java objects... but
> >>>>if thats what it comes down to so that it will work with other clients,
> >>>>i guess thats what i will have to do.
> >>>>
> >>>>thanks all!  heres the wsdl (sorry about the +/- signs... copied it from
> >>>>internet explorer)
> >>>>
> >>>>nate
> >>>>
> >>>>
> >>>><?xml version="1.0" encoding="UTF-8" ?>
> >>>>- <wsdl:definitions
> >>>>targetNamespace="http://services.osg.uis.iu.edu/GroupsService"
> >>>>xmlns:apachesoap="http://xml.apache.org/xml-soap"
> >>>>xmlns:impl="http://services.osg.uis.iu.edu/GroupsService"
> >>>>xmlns:intf="http://services.osg.uis.iu.edu/GroupsService"
> >>>>xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> >>>>xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> >>>>xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> >>>>- <!--
> >>>>WSDL created by Apache Axis version: 1.2.1
> >>>>Built on Jun 03, 2005 (06:10:52 PDT)
> >>>>
> >>>> -->
> >>>>- <wsdl:types>
> >>>>- <schema elementFormDefault="qualified"
> >>>>targetNamespace="http://services.osg.uis.iu.edu/GroupsService"
> >>>>xmlns="http://www.w3.org/2001/XMLSchema">
> >>>>- <element name="createGroup">
> >>>>- <complexType>
> >>>>- <sequence>
> >>>> <element name="in0" type="xsd:string" />
> >>>> </sequence>
> >>>> </complexType>
> >>>> </element>
> >>>>- <element name="createGroupResponse">
> >>>>- <complexType>
> >>>>- <sequence>
> >>>> <element name="createGroupReturn" type="xsd:int" />
> >>>> </sequence>
> >>>> </complexType>
> >>>> </element>
> >>>>- <element name="getMembers">
> >>>>- <complexType>
> >>>>- <sequence>
> >>>> <element name="in0" type="xsd:string" />
> >>>> </sequence>
> >>>> </complexType>
> >>>> </element>
> >>>>- <element name="getMembersResponse">
> >>>>- <complexType>
> >>>>- <sequence>
> >>>> <element maxOccurs="unbounded" name="getMembersReturn"
> >>>>type="xsd:string" />
> >>>> </sequence>
> >>>> </complexType>
> >>>> </element>
> >>>>- <element name="createGroupWithMembers">
> >>>>- <complexType>
> >>>>- <sequence>
> >>>> <element name="in0" type="xsd:string" />
> >>>> <element maxOccurs="unbounded" name="in1" type="xsd:string" />
> >>>> </sequence>
> >>>> </complexType>
> >>>> </element>
> >>>>- <element name="createGroupWithMembersResponse">
> >>>>- <complexType>
> >>>>- <sequence>
> >>>> <element name="createGroupWithMembersReturn" type="xsd:int" />
> >>>> </sequence>
> >>>> </complexType>
> >>>> </element>
> >>>>- <element name="addMember">
> >>>>- <complexType>
> >>>>- <sequence>
> >>>> <element name="in0" type="xsd:string" />
> >>>> <element name="in1" type="xsd:string" />
> >>>> </sequence>
> >>>> </complexType>
> >>>> </element>
> >>>>- <element name="addMemberResponse">
> >>>>- <complexType>
> >>>>- <sequence>
> >>>> <element name="addMemberReturn" type="xsd:int" />
> >>>> </sequence>
> >>>> </complexType>
> >>>> </element>
> >>>>- <element name="addMembers">
> >>>>- <complexType>
> >>>>- <sequence>
> >>>> <element name="in0" type="xsd:string" />
> >>>> <element maxOccurs="unbounded" name="in1" type="xsd:string" />
> >>>> </sequence>
> >>>> </complexType>
> >>>> </element>
> >>>>- <element name="addMembersResponse">
> >>>>- <complexType>
> >>>>- <sequence>
> >>>> <element name="addMembersReturn" type="xsd:int" />
> >>>> </sequence>
> >>>> </complexType>
> >>>> </element>
> >>>>- <element name="removeMember">
> >>>>- <complexType>
> >>>>- <sequence>
> >>>> <element name="in0" type="xsd:string" />
> >>>> <element name="in1" type="xsd:string" />
> >>>> </sequence>
> >>>> </complexType>
> >>>> </element>
> >>>>- <element name="removeMemberResponse">
> >>>>- <complexType>
> >>>>- <sequence>
> >>>> <element name="removeMemberReturn" type="xsd:int" />
> >>>> </sequence>
> >>>> </complexType>
> >>>> </element>
> >>>>- <element name="removeMembers">
> >>>>- <complexType>
> >>>>- <sequence>
> >>>> <element name="in0" type="xsd:string" />
> >>>> <element maxOccurs="unbounded" name="in1" type="xsd:string" />
> >>>> </sequence>
> >>>> </complexType>
> >>>> </element>
> >>>>- <element name="removeMembersResponse">
> >>>>- <complexType>
> >>>>- <sequence>
> >>>> <element name="removeMembersReturn" type="xsd:int" />
> >>>> </sequence>
> >>>> </complexType>
> >>>> </element>
> >>>>- <element name="removeGroup">
> >>>>- <complexType>
> >>>>- <sequence>
> >>>> <element name="in0" type="xsd:string" />
> >>>> </sequence>
> >>>> </complexType>
> >>>> </element>
> >>>>- <element name="removeGroupResponse">
> >>>>- <complexType>
> >>>>- <sequence>
> >>>> <element name="removeGroupReturn" type="xsd:int" />
> >>>> </sequence>
> >>>> </complexType>
> >>>> </element>
> >>>> </schema>
> >>>> </wsdl:types>
> >>>>- <wsdl:message name="createGroupWithMembersResponse">
> >>>> <wsdl:part element="impl:createGroupWithMembersResponse"
> >>>>name="parameters" />
> >>>> </wsdl:message>
> >>>>- <wsdl:message name="createGroupWithMembersRequest">
> >>>> <wsdl:part element="impl:createGroupWithMembers" name="parameters" />
> >>>> </wsdl:message>
> >>>>- <wsdl:message name="removeMembersResponse">
> >>>> <wsdl:part element="impl:removeMembersResponse" name="parameters" />
> >>>> </wsdl:message>
> >>>>- <wsdl:message name="removeMemberRequest">
> >>>> <wsdl:part element="impl:removeMember" name="parameters" />
> >>>> </wsdl:message>
> >>>>- <wsdl:message name="removeMemberResponse">
> >>>> <wsdl:part element="impl:removeMemberResponse" name="parameters" />
> >>>> </wsdl:message>
> >>>>- <wsdl:message name="getMembersResponse">
> >>>> <wsdl:part element="impl:getMembersResponse" name="parameters" />
> >>>> </wsdl:message>
> >>>>- <wsdl:message name="addMembersResponse">
> >>>> <wsdl:part element="impl:addMembersResponse" name="parameters" />
> >>>> </wsdl:message>
> >>>>- <wsdl:message name="removeGroupRequest">
> >>>> <wsdl:part element="impl:removeGroup" name="parameters" />
> >>>> </wsdl:message>
> >>>>- <wsdl:message name="createGroupRequest">
> >>>> <wsdl:part element="impl:createGroup" name="parameters" />
> >>>> </wsdl:message>
> >>>>- <wsdl:message name="addMemberResponse">
> >>>> <wsdl:part element="impl:addMemberResponse" name="parameters" />
> >>>> </wsdl:message>
> >>>>- <wsdl:message name="addMemberRequest">
> >>>> <wsdl:part element="impl:addMember" name="parameters" />
> >>>> </wsdl:message>
> >>>>- <wsdl:message name="createGroupResponse">
> >>>> <wsdl:part element="impl:createGroupResponse" name="parameters" />
> >>>> </wsdl:message>
> >>>>- <wsdl:message name="getMembersRequest">
> >>>> <wsdl:part element="impl:getMembers" name="parameters" />
> >>>> </wsdl:message>
> >>>>- <wsdl:message name="removeMembersRequest">
> >>>> <wsdl:part element="impl:removeMembers" name="parameters" />
> >>>> </wsdl:message>
> >>>>- <wsdl:message name="removeGroupResponse">
> >>>> <wsdl:part element="impl:removeGroupResponse" name="parameters" />
> >>>> </wsdl:message>
> >>>>- <wsdl:message name="addMembersRequest">
> >>>> <wsdl:part element="impl:addMembers" name="parameters" />
> >>>> </wsdl:message>
> >>>>- <wsdl:portType name="GroupsService">
> >>>>- <wsdl:operation name="createGroup">
> >>>> <wsdl:input message="impl:createGroupRequest"
> >>>>name="createGroupRequest" />
> >>>> <wsdl:output message="impl:createGroupResponse"
> >>>>name="createGroupResponse" />
> >>>> </wsdl:operation>
> >>>>- <wsdl:operation name="getMembers">
> >>>> <wsdl:input message="impl:getMembersRequest" name="getMembersRequest" />
> >>>> <wsdl:output message="impl:getMembersResponse"
> >>>>name="getMembersResponse" />
> >>>> </wsdl:operation>
> >>>>- <wsdl:operation name="createGroupWithMembers">
> >>>> <wsdl:input message="impl:createGroupWithMembersRequest"
> >>>>name="createGroupWithMembersRequest" />
> >>>> <wsdl:output message="impl:createGroupWithMembersResponse"
> >>>>name="createGroupWithMembersResponse" />
> >>>> </wsdl:operation>
> >>>>- <wsdl:operation name="addMember">
> >>>> <wsdl:input message="impl:addMemberRequest" name="addMemberRequest" />
> >>>> <wsdl:output message="impl:addMemberResponse" name="addMemberResponse"
> />
> >>>> </wsdl:operation>
> >>>>- <wsdl:operation name="addMembers">
> >>>> <wsdl:input message="impl:addMembersRequest" name="addMembersRequest" />
> >>>> <wsdl:output message="impl:addMembersResponse"
> >>>>name="addMembersResponse" />
> >>>> </wsdl:operation>
> >>>>- <wsdl:operation name="removeMember">
> >>>> <wsdl:input message="impl:removeMemberRequest"
> >>>>name="removeMemberRequest" />
> >>>> <wsdl:output message="impl:removeMemberResponse"
> >>>>name="removeMemberResponse" />
> >>>> </wsdl:operation>
> >>>>- <wsdl:operation name="removeMembers">
> >>>> <wsdl:input message="impl:removeMembersRequest"
> >>>>name="removeMembersRequest" />
> >>>> <wsdl:output message="impl:removeMembersResponse"
> >>>>name="removeMembersResponse" />
> >>>> </wsdl:operation>
> >>>>- <wsdl:operation name="removeGroup">
> >>>> <wsdl:input message="impl:removeGroupRequest"
> >>>>name="removeGroupRequest" />
> >>>> <wsdl:output message="impl:removeGroupResponse"
> >>>>name="removeGroupResponse" />
> >>>> </wsdl:operation>
> >>>> </wsdl:portType>
> >>>>- <wsdl:binding name="GroupsServiceServiceSoapBinding"
> >>>>type="impl:GroupsService">
> >>>> <wsdlsoap:binding style="document"
> >>>>transport="http://schemas.xmlsoap.org/soap/http" />
> >>>>- <wsdl:operation name="createGroup">
> >>>> <wsdlsoap:operation soapAction="" />
> >>>>- <wsdl:input name="createGroupRequest">
> >>>> <wsdlsoap:body use="literal" />
> >>>> </wsdl:input>
> >>>>- <wsdl:output name="createGroupResponse">
> >>>> <wsdlsoap:body use="literal" />
> >>>> </wsdl:output>
> >>>> </wsdl:operation>
> >>>>- <wsdl:operation name="getMembers">
> >>>> <wsdlsoap:operation soapAction="" />
> >>>>- <wsdl:input name="getMembersRequest">
> >>>> <wsdlsoap:body use="literal" />
> >>>> </wsdl:input>
> >>>>- <wsdl:output name="getMembersResponse">
> >>>> <wsdlsoap:body use="literal" />
> >>>> </wsdl:output>
> >>>> </wsdl:operation>
> >>>>- <wsdl:operation name="createGroupWithMembers">
> >>>> <wsdlsoap:operation soapAction="" />
> >>>>- <wsdl:input name="createGroupWithMembersRequest">
> >>>> <wsdlsoap:body use="literal" />
> >>>> </wsdl:input>
> >>>>- <wsdl:output name="createGroupWithMembersResponse">
> >>>> <wsdlsoap:body use="literal" />
> >>>> </wsdl:output>
> >>>> </wsdl:operation>
> >>>>- <wsdl:operation name="addMember">
> >>>> <wsdlsoap:operation soapAction="" />
> >>>>- <wsdl:input name="addMemberRequest">
> >>>> <wsdlsoap:body use="literal" />
> >>>> </wsdl:input>
> >>>>- <wsdl:output name="addMemberResponse">
> >>>> <wsdlsoap:body use="literal" />
> >>>> </wsdl:output>
> >>>> </wsdl:operation>
> >>>>- <wsdl:operation name="addMembers">
> >>>> <wsdlsoap:operation soapAction="" />
> >>>>- <wsdl:input name="addMembersRequest">
> >>>> <wsdlsoap:body use="literal" />
> >>>> </wsdl:input>
> >>>>- <wsdl:output name="addMembersResponse">
> >>>> <wsdlsoap:body use="literal" />
> >>>> </wsdl:output>
> >>>> </wsdl:operation>
> >>>>- <wsdl:operation name="removeMember">
> >>>> <wsdlsoap:operation soapAction="" />
> >>>>- <wsdl:input name="removeMemberRequest">
> >>>> <wsdlsoap:body use="literal" />
> >>>> </wsdl:input>
> >>>>- <wsdl:output name="removeMemberResponse">
> >>>> <wsdlsoap:body use="literal" />
> >>>> </wsdl:output>
> >>>> </wsdl:operation>
> >>>>- <wsdl:operation name="removeMembers">
> >>>> <wsdlsoap:operation soapAction="" />
> >>>>- <wsdl:input name="removeMembersRequest">
> >>>> <wsdlsoap:body use="literal" />
> >>>> </wsdl:input>
> >>>>- <wsdl:output name="removeMembersResponse">
> >>>> <wsdlsoap:body use="literal" />
> >>>> </wsdl:output>
> >>>> </wsdl:operation>
> >>>>- <wsdl:operation name="removeGroup">
> >>>> <wsdlsoap:operation soapAction="" />
> >>>>- <wsdl:input name="removeGroupRequest">
> >>>> <wsdlsoap:body use="literal" />
> >>>> </wsdl:input>
> >>>>- <wsdl:output name="removeGroupResponse">
> >>>> <wsdlsoap:body use="literal" />
> >>>> </wsdl:output>
> >>>> </wsdl:operation>
> >>>> </wsdl:binding>
> >>>>- <wsdl:service name="GroupsServiceService">
> >>>>- <wsdl:port binding="impl:GroupsServiceServiceSoapBinding"
> >>>>name="GroupsServiceService">
> >>>> <wsdlsoap:address
> >>>>location="http://localhost:8080/osg-dev/services/GroupsServiceService" />
> >>>> </wsdl:port>
> >>>> </wsdl:service>
> >>>> </wsdl:definitions>
> >>>>
> >
> >
> > --
> > Between the question and the answer lies free will
>


--
Between the question and the answer lies free will

Re: problem with doc/literal...

Posted by "Nathaniel A. Johnson" <na...@indiana.edu>.
james,

here ya go... i initialize it like this so that log4j will reload if the
file changes.  osg is the name of my application down there, so dont
worry about the naming conventions and the {user} stuff below is extra
logging that the application sets during web requests so i know who is
using the application (won't work for you unless you set that in some
filter or something).

nate


PropertyConfigurator.configureAndWatch(path, 5 * 60 * 1000);

# log4j settings
log4j.rootLogger=debug, StdOut, OSGFile

# Define StdOut appender as going to System.out
log4j.appender.StdOut=org.apache.log4j.ConsoleAppender
log4j.appender.StdOut.File=System.out
log4j.appender.StdOut.Threshold=INFO
log4j.appender.StdOut.layout=org.apache.log4j.PatternLayout
log4j.appender.StdOut.layout.ConversionPattern=%d [%t] %-5p %X{user} %c
:: %m%n

# Define OSGFile appender as going to a file
log4j.appender.OSGFile=org.apache.log4j.RollingFileAppender
log4j.appender.OSGFile.File=/opt/logs/dev/osg/osg.log
log4j.appender.OSGFile.Threshold=DEBUG
log4j.appender.OSGFile.layout=org.apache.log4j.PatternLayout
log4j.appender.OSGFile.layout.ConversionPattern=%d [%t] %-5p %c :: %m%n
log4j.appender.OSGFile.MaxFileSize=10000KB
log4j.appender.OSGFile.MaxBackupIndex=10



James Taylor wrote:
> Hey Nathaniel,
>               would you mind posting me your log4J properties file as I'm trying
> to set it up in axis. At the minute I have the below listing in C:\Program
> Files\Apache\jakarta-tomcat-4.1.31\webapps\axis\WEB-INF\classes but there's no
> log file in C:\Program Files\Apache\jakarta-tomcat-4.1.31\logs\
> I also stuck a class static variable Logger logger =
> Logger.getLogger(myclass.class);
>                James.
> 
> # Log4j configuration file.
> # Set root logger level to DEBUG and its only appender to A.
> log4j.rootCategory=DEBUG, A
> 
> # A is a DailyRollingFileAppender
> log4j.appender.A=org.apache.log4j.DailyRollingFileAppender
> log4j.appender.A.file=C:\Program
> Files\Apache\jakarta-tomcat-4.1.31\logs\JamesAxis.log
> log4j.appender.A.datePattern='.'yyyy-MM-dd
> log4j.appender.A.append=true
> log4j.appender.A.layout=org.apache.log4j.PatternLayout
> log4j.appender.A.layout.ConversionPattern=%-5p %d{ISO8601} [%t] - %m%n
> 
> 
> Quoting "Nathaniel A. Johnson" <na...@indiana.edu>:
> 
> 
>>anne,
>>
>>here is a sample message and the full stack trace.  i have log4j turned
>>on in debug mode and from that and the soapmonitor, right now it appears
>>that when this request goes out, it blows up while in doc/literal mode.
>> there is no response.  seems weird that it needs to deserialize before
>>sending to the server, doesnt it?  because the client it blowing up, not
>>the server.  anyway, here is a request message and the stack trace.
>>thanks again for looking at this.
>>
>>ps: i left the digital signature in there, but turned off the
>>encryption, so you can see the small soap body down at the bottom of the
>>message.
>>
>>nate
>>
>>
>><?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:Header>
>><wsse:Security
>>
> 
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
> 
>>soapenv:mustUnderstand="1">
>><wsse:BinarySecurityToken
>>
> 
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> 
> EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"
> 
> ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"
> 
> wsu:Id="CertId-612575">MIIBnjCCAQcCBEKeIDgwDQYJKoZIhvcNAQEEBQAwFjEUMBIGA1UEAxMLeHhhcHBjbGllbnQwHhcN
> 
>>MDUwNjAxMjA1MzEyWhcNMDUwODMwMjA1MzEyWjAWMRQwEgYDVQQDEwt4eGFwcGNsaWVudDCBnzAN
>>BgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEApzheMPxZkjI8iIpPv08KIGI7hMWOzx47b2ym4VGH+b3N
>>L90rT/3Eghll2RhRaJIAWuh/A3ZeVog6B4vdH6rSLWPpOrKsC+R4ar1dHqvCNYdtC5A2CWA4l9ni
>>cLbFamviOKCxanbfFtCAvqwUJXdFDV0V7HgqKJRdErZlO1tl0FkCAwEAATANBgkqhkiG9w0BAQQF
>>AAOBgQBgH/EID1mBxU2gMmuycfw/Gx41wALz7VwuOFWBWQdj2btnm2fM4GVmLk9BlijL3QSLb3b9
>>GRboZJBkbUB91MfD6I0PZ5OyaeqP53sM1QX+7amWZ3Yzo7ZwViWCmFUXK4LZid/8Ue2mxB4mRKo+
>>lwow5/kMTf7n1LnIXjMPTf6hMg==</wsse:BinarySecurityToken>
>><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
>><ds:SignedInfo>
>><ds:CanonicalizationMethod
>>
> 
> Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:CanonicalizationMethod>
> 
>><ds:SignatureMethod
>>Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></ds:SignatureMethod>
>><ds:Reference URI="#id-10486149">
>><ds:Transforms>
>><ds:Transform
>>Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:Transform>
>></ds:Transforms>
>><ds:DigestMethod
>>Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></ds:DigestMethod>
>><ds:DigestValue>KiGD6r9lsMJErPKd4D3VIproaFE=</ds:DigestValue>
>></ds:Reference>
>></ds:SignedInfo>
>><ds:SignatureValue>
>>ZYtuKrljUs38ZIXRp0NPqmnNUtbgb23zM24GLMcXJKGH/op5Tz7nj3B0g6DhsXn2vwc5aWvfK2U3
>>66ZS1T7OCKGx+z+QHwqwF2B+TepW743KrahqgnrdJ3c7DkODjFcr9I2E8A70+IJDXut8bHMJ09ys
>>Pz/brQoqXusrI5IeFQQ=
>></ds:SignatureValue>
>><ds:KeyInfo Id="KeyId-28523022">
>><wsse:SecurityTokenReference
>>
> 
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> 
>>wsu:Id="STRId-13782591"><wsse:Reference URI="#CertId-612575"
>>
> 
> ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"></wsse:Reference>
> 
>></wsse:SecurityTokenReference>
>></ds:KeyInfo>
>></ds:Signature>
>></wsse:Security>
>></soapenv:Header>
>><soapenv:Body
>>
> 
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> 
>>wsu:Id="id-10486149">
>><getMembers xmlns="http://services.osg.uis.iu.edu/GroupsService">
>><in0>bl-uits-onestart-admin</in0>
>></getMembers>
>></soapenv:Body>
>></soapenv:Envelope>
>>
>>
>>
>>
>>AxisFault
>> faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>> faultSubcode:
>> faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a
>>child element, which is NOT expected, in something it was trying to
>>deserialize.
>> faultActor:
>> faultNode:
>> faultDetail:
>>	{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException:
>>SimpleDeserializer encountered a child element, which is NOT expected,
>>in something it was trying to deserialize.
>>	at
>>
> 
> org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
> 
>>	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:1140)
> 
>>	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:148)
> 
>>	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:453)
>>	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:709)
>>	at
>>
> 
> org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
> 
>>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>	at
>>
> 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
> 
>>	at
>>
> 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
> 
>>	at
>>
> 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
> 
>>	at
>>
> 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 
>>	at
>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>	at
>>
> 
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
> 
>>	at
>>
> 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
> 
>>	at
>>
> 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 
>>	at
>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>	at
>>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>>	at
>>
> 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 
>>	at
>>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
>>	at
>>
> 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
> 
>>	at
>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>	at
>>
> 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 
>>	at
>>
> 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 
>>	at
>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>>	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>>	at
>>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
>>	at
>>
> 
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
> 
>>	at
>>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
>>	at
>>
> 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
> 
>>	at java.lang.Thread.run(Thread.java:534)
>>
>>	{http://xml.apache.org/axis/}hostname:bl-uits-naj
>>
>>org.xml.sax.SAXException: SimpleDeserializer encountered a child
>>element, which is NOT expected, in something it was trying to deserialize.
>>	at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
>>	at
>>org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:330)
>>	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:453)
>>	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:709)
>>	at
>>
> 
> org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
> 
>>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>	at
>>
> 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
> 
>>	at
>>
> 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
> 
>>	at
>>
> 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
> 
>>	at
>>
> 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 
>>	at
>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>	at
>>
> 
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
> 
>>	at
>>
> 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
> 
>>	at
>>
> 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 
>>	at
>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>	at
>>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>>	at
>>
> 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 
>>	at
>>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
>>	at
>>
> 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
> 
>>	at
>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>	at
>>
> 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 
>>	at
>>
> 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 
>>	at
>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>>	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>>	at
>>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
>>	at
>>
> 
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
> 
>>	at
>>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
>>	at
>>
> 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
> 
>>	at java.lang.Thread.run(Thread.java:534)
>>Caused by: org.xml.sax.SAXException: SimpleDeserializer encountered a
>>child element, which is NOT expected, in something it was trying to
>>deserialize.
>>	at
>>
> 
> org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
> 
>>	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:1140)
> 
>>	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:148)
> 
>>	at
>>org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
>>	... 33 more
>>
>>
>>
>>Anne Thomas Manes wrote:
>>
>>>Could you provide us with a sample of your errant SOAP messages?
>>>Is the fault occuring on the client, server, or both?
>>>
>>>Anne
>>>
>>>(ps -- the WSDL looks just fine)
>>>(I recommend that you compile your code with debug on so that
>>>java2wsdl produces more reasonable parameter names.)
>>>
>>>On 6/4/05, Nathaniel A. Johnson <na...@indiana.edu> wrote:
>>>
>>>
>>>>hi all,
>>>>
>>>>i have a java application and need to make it available via web
>>>>services... so i'd like to use java2wsdl.  it works great if i use
>>>>rpc/encoded (i even have it working with wss4j, signing and encrypting
>>>>all communications), but doc/literal doesnt seem to play nicely.  the
>>>>java interface only uses simple String objects and String arrays, so its
>>>>a really simple interface (no complex objects or anything).  i get the
>>>>following fault when a String array return type is processed.
>>>>
>>>>AxisFault
>>>>faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>>>>faultSubcode:
>>>>faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a
>>>>child element, which is NOT expected, in something it was trying to
>>>>deserialize.
>>>>
>>>>i use the java2wsdl ant task, if that helps anyone think of any
>>>>advice... here is the wsdl that it generates, but i really dont want to
>>>>have to modify it by hand after each change to the java objects... but
>>>>if thats what it comes down to so that it will work with other clients,
>>>>i guess thats what i will have to do.
>>>>
>>>>thanks all!  heres the wsdl (sorry about the +/- signs... copied it from
>>>>internet explorer)
>>>>
>>>>nate
>>>>
>>>>
>>>><?xml version="1.0" encoding="UTF-8" ?>
>>>>- <wsdl:definitions
>>>>targetNamespace="http://services.osg.uis.iu.edu/GroupsService"
>>>>xmlns:apachesoap="http://xml.apache.org/xml-soap"
>>>>xmlns:impl="http://services.osg.uis.iu.edu/GroupsService"
>>>>xmlns:intf="http://services.osg.uis.iu.edu/GroupsService"
>>>>xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>>>>xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
>>>>xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>>>>- <!--
>>>>WSDL created by Apache Axis version: 1.2.1
>>>>Built on Jun 03, 2005 (06:10:52 PDT)
>>>>
>>>> -->
>>>>- <wsdl:types>
>>>>- <schema elementFormDefault="qualified"
>>>>targetNamespace="http://services.osg.uis.iu.edu/GroupsService"
>>>>xmlns="http://www.w3.org/2001/XMLSchema">
>>>>- <element name="createGroup">
>>>>- <complexType>
>>>>- <sequence>
>>>> <element name="in0" type="xsd:string" />
>>>> </sequence>
>>>> </complexType>
>>>> </element>
>>>>- <element name="createGroupResponse">
>>>>- <complexType>
>>>>- <sequence>
>>>> <element name="createGroupReturn" type="xsd:int" />
>>>> </sequence>
>>>> </complexType>
>>>> </element>
>>>>- <element name="getMembers">
>>>>- <complexType>
>>>>- <sequence>
>>>> <element name="in0" type="xsd:string" />
>>>> </sequence>
>>>> </complexType>
>>>> </element>
>>>>- <element name="getMembersResponse">
>>>>- <complexType>
>>>>- <sequence>
>>>> <element maxOccurs="unbounded" name="getMembersReturn"
>>>>type="xsd:string" />
>>>> </sequence>
>>>> </complexType>
>>>> </element>
>>>>- <element name="createGroupWithMembers">
>>>>- <complexType>
>>>>- <sequence>
>>>> <element name="in0" type="xsd:string" />
>>>> <element maxOccurs="unbounded" name="in1" type="xsd:string" />
>>>> </sequence>
>>>> </complexType>
>>>> </element>
>>>>- <element name="createGroupWithMembersResponse">
>>>>- <complexType>
>>>>- <sequence>
>>>> <element name="createGroupWithMembersReturn" type="xsd:int" />
>>>> </sequence>
>>>> </complexType>
>>>> </element>
>>>>- <element name="addMember">
>>>>- <complexType>
>>>>- <sequence>
>>>> <element name="in0" type="xsd:string" />
>>>> <element name="in1" type="xsd:string" />
>>>> </sequence>
>>>> </complexType>
>>>> </element>
>>>>- <element name="addMemberResponse">
>>>>- <complexType>
>>>>- <sequence>
>>>> <element name="addMemberReturn" type="xsd:int" />
>>>> </sequence>
>>>> </complexType>
>>>> </element>
>>>>- <element name="addMembers">
>>>>- <complexType>
>>>>- <sequence>
>>>> <element name="in0" type="xsd:string" />
>>>> <element maxOccurs="unbounded" name="in1" type="xsd:string" />
>>>> </sequence>
>>>> </complexType>
>>>> </element>
>>>>- <element name="addMembersResponse">
>>>>- <complexType>
>>>>- <sequence>
>>>> <element name="addMembersReturn" type="xsd:int" />
>>>> </sequence>
>>>> </complexType>
>>>> </element>
>>>>- <element name="removeMember">
>>>>- <complexType>
>>>>- <sequence>
>>>> <element name="in0" type="xsd:string" />
>>>> <element name="in1" type="xsd:string" />
>>>> </sequence>
>>>> </complexType>
>>>> </element>
>>>>- <element name="removeMemberResponse">
>>>>- <complexType>
>>>>- <sequence>
>>>> <element name="removeMemberReturn" type="xsd:int" />
>>>> </sequence>
>>>> </complexType>
>>>> </element>
>>>>- <element name="removeMembers">
>>>>- <complexType>
>>>>- <sequence>
>>>> <element name="in0" type="xsd:string" />
>>>> <element maxOccurs="unbounded" name="in1" type="xsd:string" />
>>>> </sequence>
>>>> </complexType>
>>>> </element>
>>>>- <element name="removeMembersResponse">
>>>>- <complexType>
>>>>- <sequence>
>>>> <element name="removeMembersReturn" type="xsd:int" />
>>>> </sequence>
>>>> </complexType>
>>>> </element>
>>>>- <element name="removeGroup">
>>>>- <complexType>
>>>>- <sequence>
>>>> <element name="in0" type="xsd:string" />
>>>> </sequence>
>>>> </complexType>
>>>> </element>
>>>>- <element name="removeGroupResponse">
>>>>- <complexType>
>>>>- <sequence>
>>>> <element name="removeGroupReturn" type="xsd:int" />
>>>> </sequence>
>>>> </complexType>
>>>> </element>
>>>> </schema>
>>>> </wsdl:types>
>>>>- <wsdl:message name="createGroupWithMembersResponse">
>>>> <wsdl:part element="impl:createGroupWithMembersResponse"
>>>>name="parameters" />
>>>> </wsdl:message>
>>>>- <wsdl:message name="createGroupWithMembersRequest">
>>>> <wsdl:part element="impl:createGroupWithMembers" name="parameters" />
>>>> </wsdl:message>
>>>>- <wsdl:message name="removeMembersResponse">
>>>> <wsdl:part element="impl:removeMembersResponse" name="parameters" />
>>>> </wsdl:message>
>>>>- <wsdl:message name="removeMemberRequest">
>>>> <wsdl:part element="impl:removeMember" name="parameters" />
>>>> </wsdl:message>
>>>>- <wsdl:message name="removeMemberResponse">
>>>> <wsdl:part element="impl:removeMemberResponse" name="parameters" />
>>>> </wsdl:message>
>>>>- <wsdl:message name="getMembersResponse">
>>>> <wsdl:part element="impl:getMembersResponse" name="parameters" />
>>>> </wsdl:message>
>>>>- <wsdl:message name="addMembersResponse">
>>>> <wsdl:part element="impl:addMembersResponse" name="parameters" />
>>>> </wsdl:message>
>>>>- <wsdl:message name="removeGroupRequest">
>>>> <wsdl:part element="impl:removeGroup" name="parameters" />
>>>> </wsdl:message>
>>>>- <wsdl:message name="createGroupRequest">
>>>> <wsdl:part element="impl:createGroup" name="parameters" />
>>>> </wsdl:message>
>>>>- <wsdl:message name="addMemberResponse">
>>>> <wsdl:part element="impl:addMemberResponse" name="parameters" />
>>>> </wsdl:message>
>>>>- <wsdl:message name="addMemberRequest">
>>>> <wsdl:part element="impl:addMember" name="parameters" />
>>>> </wsdl:message>
>>>>- <wsdl:message name="createGroupResponse">
>>>> <wsdl:part element="impl:createGroupResponse" name="parameters" />
>>>> </wsdl:message>
>>>>- <wsdl:message name="getMembersRequest">
>>>> <wsdl:part element="impl:getMembers" name="parameters" />
>>>> </wsdl:message>
>>>>- <wsdl:message name="removeMembersRequest">
>>>> <wsdl:part element="impl:removeMembers" name="parameters" />
>>>> </wsdl:message>
>>>>- <wsdl:message name="removeGroupResponse">
>>>> <wsdl:part element="impl:removeGroupResponse" name="parameters" />
>>>> </wsdl:message>
>>>>- <wsdl:message name="addMembersRequest">
>>>> <wsdl:part element="impl:addMembers" name="parameters" />
>>>> </wsdl:message>
>>>>- <wsdl:portType name="GroupsService">
>>>>- <wsdl:operation name="createGroup">
>>>> <wsdl:input message="impl:createGroupRequest"
>>>>name="createGroupRequest" />
>>>> <wsdl:output message="impl:createGroupResponse"
>>>>name="createGroupResponse" />
>>>> </wsdl:operation>
>>>>- <wsdl:operation name="getMembers">
>>>> <wsdl:input message="impl:getMembersRequest" name="getMembersRequest" />
>>>> <wsdl:output message="impl:getMembersResponse"
>>>>name="getMembersResponse" />
>>>> </wsdl:operation>
>>>>- <wsdl:operation name="createGroupWithMembers">
>>>> <wsdl:input message="impl:createGroupWithMembersRequest"
>>>>name="createGroupWithMembersRequest" />
>>>> <wsdl:output message="impl:createGroupWithMembersResponse"
>>>>name="createGroupWithMembersResponse" />
>>>> </wsdl:operation>
>>>>- <wsdl:operation name="addMember">
>>>> <wsdl:input message="impl:addMemberRequest" name="addMemberRequest" />
>>>> <wsdl:output message="impl:addMemberResponse" name="addMemberResponse" />
>>>> </wsdl:operation>
>>>>- <wsdl:operation name="addMembers">
>>>> <wsdl:input message="impl:addMembersRequest" name="addMembersRequest" />
>>>> <wsdl:output message="impl:addMembersResponse"
>>>>name="addMembersResponse" />
>>>> </wsdl:operation>
>>>>- <wsdl:operation name="removeMember">
>>>> <wsdl:input message="impl:removeMemberRequest"
>>>>name="removeMemberRequest" />
>>>> <wsdl:output message="impl:removeMemberResponse"
>>>>name="removeMemberResponse" />
>>>> </wsdl:operation>
>>>>- <wsdl:operation name="removeMembers">
>>>> <wsdl:input message="impl:removeMembersRequest"
>>>>name="removeMembersRequest" />
>>>> <wsdl:output message="impl:removeMembersResponse"
>>>>name="removeMembersResponse" />
>>>> </wsdl:operation>
>>>>- <wsdl:operation name="removeGroup">
>>>> <wsdl:input message="impl:removeGroupRequest"
>>>>name="removeGroupRequest" />
>>>> <wsdl:output message="impl:removeGroupResponse"
>>>>name="removeGroupResponse" />
>>>> </wsdl:operation>
>>>> </wsdl:portType>
>>>>- <wsdl:binding name="GroupsServiceServiceSoapBinding"
>>>>type="impl:GroupsService">
>>>> <wsdlsoap:binding style="document"
>>>>transport="http://schemas.xmlsoap.org/soap/http" />
>>>>- <wsdl:operation name="createGroup">
>>>> <wsdlsoap:operation soapAction="" />
>>>>- <wsdl:input name="createGroupRequest">
>>>> <wsdlsoap:body use="literal" />
>>>> </wsdl:input>
>>>>- <wsdl:output name="createGroupResponse">
>>>> <wsdlsoap:body use="literal" />
>>>> </wsdl:output>
>>>> </wsdl:operation>
>>>>- <wsdl:operation name="getMembers">
>>>> <wsdlsoap:operation soapAction="" />
>>>>- <wsdl:input name="getMembersRequest">
>>>> <wsdlsoap:body use="literal" />
>>>> </wsdl:input>
>>>>- <wsdl:output name="getMembersResponse">
>>>> <wsdlsoap:body use="literal" />
>>>> </wsdl:output>
>>>> </wsdl:operation>
>>>>- <wsdl:operation name="createGroupWithMembers">
>>>> <wsdlsoap:operation soapAction="" />
>>>>- <wsdl:input name="createGroupWithMembersRequest">
>>>> <wsdlsoap:body use="literal" />
>>>> </wsdl:input>
>>>>- <wsdl:output name="createGroupWithMembersResponse">
>>>> <wsdlsoap:body use="literal" />
>>>> </wsdl:output>
>>>> </wsdl:operation>
>>>>- <wsdl:operation name="addMember">
>>>> <wsdlsoap:operation soapAction="" />
>>>>- <wsdl:input name="addMemberRequest">
>>>> <wsdlsoap:body use="literal" />
>>>> </wsdl:input>
>>>>- <wsdl:output name="addMemberResponse">
>>>> <wsdlsoap:body use="literal" />
>>>> </wsdl:output>
>>>> </wsdl:operation>
>>>>- <wsdl:operation name="addMembers">
>>>> <wsdlsoap:operation soapAction="" />
>>>>- <wsdl:input name="addMembersRequest">
>>>> <wsdlsoap:body use="literal" />
>>>> </wsdl:input>
>>>>- <wsdl:output name="addMembersResponse">
>>>> <wsdlsoap:body use="literal" />
>>>> </wsdl:output>
>>>> </wsdl:operation>
>>>>- <wsdl:operation name="removeMember">
>>>> <wsdlsoap:operation soapAction="" />
>>>>- <wsdl:input name="removeMemberRequest">
>>>> <wsdlsoap:body use="literal" />
>>>> </wsdl:input>
>>>>- <wsdl:output name="removeMemberResponse">
>>>> <wsdlsoap:body use="literal" />
>>>> </wsdl:output>
>>>> </wsdl:operation>
>>>>- <wsdl:operation name="removeMembers">
>>>> <wsdlsoap:operation soapAction="" />
>>>>- <wsdl:input name="removeMembersRequest">
>>>> <wsdlsoap:body use="literal" />
>>>> </wsdl:input>
>>>>- <wsdl:output name="removeMembersResponse">
>>>> <wsdlsoap:body use="literal" />
>>>> </wsdl:output>
>>>> </wsdl:operation>
>>>>- <wsdl:operation name="removeGroup">
>>>> <wsdlsoap:operation soapAction="" />
>>>>- <wsdl:input name="removeGroupRequest">
>>>> <wsdlsoap:body use="literal" />
>>>> </wsdl:input>
>>>>- <wsdl:output name="removeGroupResponse">
>>>> <wsdlsoap:body use="literal" />
>>>> </wsdl:output>
>>>> </wsdl:operation>
>>>> </wsdl:binding>
>>>>- <wsdl:service name="GroupsServiceService">
>>>>- <wsdl:port binding="impl:GroupsServiceServiceSoapBinding"
>>>>name="GroupsServiceService">
>>>> <wsdlsoap:address
>>>>location="http://localhost:8080/osg-dev/services/GroupsServiceService" />
>>>> </wsdl:port>
>>>> </wsdl:service>
>>>> </wsdl:definitions>
>>>>
> 
> 
> --
> Between the question and the answer lies free will

Re: problem with doc/literal...

Posted by "Nathaniel A. Johnson" <na...@indiana.edu>.
anne,

i assume you meant this question for me and not james.  i will attach my
client and server wsdd files so the message doesnt look so cluttered.

i built the service as a java project and now want to provide web
service access to it.  so i used java2wsdl ant task to generate the wsdl
like follows:

<axis-java2wsdl
  classname="edu.iu.uis.osg.services.GroupsService" n
  amespace="http://services.osg.uis.iu.edu/GroupsService"
  location="${wsdl.service.url}/GroupsServiceService"
  output="${src}/GroupsService.wsdl" porttypename="GroupsService"
  serviceelementname="GroupsServiceService" useinheritedmethods="true"
  typemappingversion="1.2" style="wrapped">
    <classpath refid="compiled.classpath" />
</axis-java2wsdl>

then i was using the JaxRpcPortProxyFactoryBean object provided by the
spring framework to do the marshalling... finally i just generated the
client from the wsdl with wsdl2java just to see if there was just
something wrong with the spring stuff (same failure)... the exception
below has the call stack with the wsdl2java generated stuff.

ok, about the response, i was wrong. right now, the client cant even
find the server.  if i chance back to rpc/encoded, it works right away.
 here is the exception...

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a
child element, which is NOT expected, in something it was trying to
deserialize.
 faultActor:
 faultNode:
 faultDetail:
	{http://xml.apache.org/axis/}hostname:bl-uits-naj

org.xml.sax.SAXException: SimpleDeserializer encountered a child
element, which is NOT expected, in something it was trying to deserialize.
	at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
	at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
	at
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
	at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
	at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
	at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
	at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
	at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
	at
org.apache.ws.axis.security.WSDoAllReceiver.invoke(WSDoAllReceiver.java:133)
	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.client.AxisClient.invoke(AxisClient.java:190)
	at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
	at org.apache.axis.client.Call.invoke(Call.java:2748)
	at org.apache.axis.client.Call.invoke(Call.java:2424)
	at org.apache.axis.client.Call.invoke(Call.java:2347)
	at org.apache.axis.client.Call.invoke(Call.java:1804)
	at
edu.iu.uis.osg.services.generated.GroupsServiceServiceSoapBindingStub.getMembers(GroupsServiceServiceSoapBindingStub.java:227)
	at
edu.iu.uis.osg.client.GroupsClientImpl.getMembers(GroupsClientImpl.java:50)
	at edu.iu.uis.osg.TestGroupsClient.main(TestGroupsClient.java:46)


well, any thoughts or advice would be great.  the wsdd for the client
and server are attached as well as the wsdl.  i appreciate you help.

thanks
nate



Anne Thomas Manes wrote:
> James,
> 
> When I ask where the fault occurs, what I'm really asking is who
> generates the fault -- the server or the client? You say there is no
> response? Then how does your client receive the exception?
> 
> Please provide us with the response message.
> 
> Maybe you can recount for us how you build the service and the client,
> and provide your WSDDs.
> 
> Thanks
> 
> Thanks,
> Anne
> 
> On 6/4/05, James Taylor <ta...@tcd.ie> wrote:
> 
>>Hey Nathaniel,
>>              would you mind posting me your log4J properties file as I'm trying
>>to set it up in axis. At the minute I have the below listing in C:\Program
>>Files\Apache\jakarta-tomcat-4.1.31\webapps\axis\WEB-INF\classes but there's no
>>log file in C:\Program Files\Apache\jakarta-tomcat-4.1.31\logs\
>>I also stuck a class static variable Logger logger =
>>Logger.getLogger(myclass.class);
>>               James.
>>
>># Log4j configuration file.
>># Set root logger level to DEBUG and its only appender to A.
>>log4j.rootCategory=DEBUG, A
>>
>># A is a DailyRollingFileAppender
>>log4j.appender.A=org.apache.log4j.DailyRollingFileAppender
>>log4j.appender.A.file=C:\Program
>>Files\Apache\jakarta-tomcat-4.1.31\logs\JamesAxis.log
>>log4j.appender.A.datePattern='.'yyyy-MM-dd
>>log4j.appender.A.append=true
>>log4j.appender.A.layout=org.apache.log4j.PatternLayout
>>log4j.appender.A.layout.ConversionPattern=%-5p %d{ISO8601} [%t] - %m%n
>>
>>
>>Quoting "Nathaniel A. Johnson" <na...@indiana.edu>:
>>
>>
>>>anne,
>>>
>>>here is a sample message and the full stack trace.  i have log4j turned
>>>on in debug mode and from that and the soapmonitor, right now it appears
>>>that when this request goes out, it blows up while in doc/literal mode.
>>> there is no response.  seems weird that it needs to deserialize before
>>>sending to the server, doesnt it?  because the client it blowing up, not
>>>the server.  anyway, here is a request message and the stack trace.
>>>thanks again for looking at this.
>>>
>>>ps: i left the digital signature in there, but turned off the
>>>encryption, so you can see the small soap body down at the bottom of the
>>>message.
>>>
>>>nate
>>>
>>>
>>><?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:Header>
>>><wsse:Security
>>>
>>
>>xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
>>
>>>soapenv:mustUnderstand="1">
>>><wsse:BinarySecurityToken
>>>
>>
>>xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
>>
>>EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"
>>
>>ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"
>>
>>wsu:Id="CertId-612575">MIIBnjCCAQcCBEKeIDgwDQYJKoZIhvcNAQEEBQAwFjEUMBIGA1UEAxMLeHhhcHBjbGllbnQwHhcN
>>
>>>MDUwNjAxMjA1MzEyWhcNMDUwODMwMjA1MzEyWjAWMRQwEgYDVQQDEwt4eGFwcGNsaWVudDCBnzAN
>>>BgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEApzheMPxZkjI8iIpPv08KIGI7hMWOzx47b2ym4VGH+b3N
>>>L90rT/3Eghll2RhRaJIAWuh/A3ZeVog6B4vdH6rSLWPpOrKsC+R4ar1dHqvCNYdtC5A2CWA4l9ni
>>>cLbFamviOKCxanbfFtCAvqwUJXdFDV0V7HgqKJRdErZlO1tl0FkCAwEAATANBgkqhkiG9w0BAQQF
>>>AAOBgQBgH/EID1mBxU2gMmuycfw/Gx41wALz7VwuOFWBWQdj2btnm2fM4GVmLk9BlijL3QSLb3b9
>>>GRboZJBkbUB91MfD6I0PZ5OyaeqP53sM1QX+7amWZ3Yzo7ZwViWCmFUXK4LZid/8Ue2mxB4mRKo+
>>>lwow5/kMTf7n1LnIXjMPTf6hMg==</wsse:BinarySecurityToken>
>>><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
>>><ds:SignedInfo>
>>><ds:CanonicalizationMethod
>>>
>>
>>Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:CanonicalizationMethod>
>>
>>><ds:SignatureMethod
>>>Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></ds:SignatureMethod>
>>><ds:Reference URI="#id-10486149">
>>><ds:Transforms>
>>><ds:Transform
>>>Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:Transform>
>>></ds:Transforms>
>>><ds:DigestMethod
>>>Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></ds:DigestMethod>
>>><ds:DigestValue>KiGD6r9lsMJErPKd4D3VIproaFE=</ds:DigestValue>
>>></ds:Reference>
>>></ds:SignedInfo>
>>><ds:SignatureValue>
>>>ZYtuKrljUs38ZIXRp0NPqmnNUtbgb23zM24GLMcXJKGH/op5Tz7nj3B0g6DhsXn2vwc5aWvfK2U3
>>>66ZS1T7OCKGx+z+QHwqwF2B+TepW743KrahqgnrdJ3c7DkODjFcr9I2E8A70+IJDXut8bHMJ09ys
>>>Pz/brQoqXusrI5IeFQQ=
>>></ds:SignatureValue>
>>><ds:KeyInfo Id="KeyId-28523022">
>>><wsse:SecurityTokenReference
>>>
>>
>>xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
>>
>>>wsu:Id="STRId-13782591"><wsse:Reference URI="#CertId-612575"
>>>
>>
>>ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"></wsse:Reference>
>>
>>></wsse:SecurityTokenReference>
>>></ds:KeyInfo>
>>></ds:Signature>
>>></wsse:Security>
>>></soapenv:Header>
>>><soapenv:Body
>>>
>>
>>xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
>>
>>>wsu:Id="id-10486149">
>>><getMembers xmlns="http://services.osg.uis.iu.edu/GroupsService">
>>><in0>bl-uits-onestart-admin</in0>
>>></getMembers>
>>></soapenv:Body>
>>></soapenv:Envelope>
>>>
>>>
>>>
>>>
>>>AxisFault
>>> faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>>> faultSubcode:
>>> faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a
>>>child element, which is NOT expected, in something it was trying to
>>>deserialize.
>>> faultActor:
>>> faultNode:
>>> faultDetail:
>>>      {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException:
>>>SimpleDeserializer encountered a child element, which is NOT expected,
>>>in something it was trying to deserialize.
>>>      at
>>>
>>
>>org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
>>
>>>      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:1140)
>>
>>>      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:148)
>>
>>>      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:453)
>>>      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:709)
>>>      at
>>>
>>
>>org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
>>
>>>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>>      at
>>>
>>
>>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
>>
>>>      at
>>>
>>
>>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>>
>>>      at
>>>
>>
>>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>>
>>>      at
>>>
>>
>>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>>
>>>      at
>>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>>      at
>>>
>>
>>org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
>>
>>>      at
>>>
>>
>>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>>
>>>      at
>>>
>>
>>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>>
>>>      at
>>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>>      at
>>>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>>>      at
>>>
>>
>>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>>
>>>      at
>>>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
>>>      at
>>>
>>
>>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>>
>>>      at
>>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>>      at
>>>
>>
>>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>
>>>      at
>>>
>>
>>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>>
>>>      at
>>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>>      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>>>      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>>>      at
>>>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
>>>      at
>>>
>>
>>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
>>
>>>      at
>>>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
>>>      at
>>>
>>
>>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
>>
>>>      at java.lang.Thread.run(Thread.java:534)
>>>
>>>      {http://xml.apache.org/axis/}hostname:bl-uits-naj
>>>
>>>org.xml.sax.SAXException: SimpleDeserializer encountered a child
>>>element, which is NOT expected, in something it was trying to deserialize.
>>>      at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
>>>      at
>>>org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:330)
>>>      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:453)
>>>      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:709)
>>>      at
>>>
>>
>>org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
>>
>>>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>>      at
>>>
>>
>>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
>>
>>>      at
>>>
>>
>>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>>
>>>      at
>>>
>>
>>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>>
>>>      at
>>>
>>
>>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>>
>>>      at
>>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>>      at
>>>
>>
>>org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
>>
>>>      at
>>>
>>
>>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>>
>>>      at
>>>
>>
>>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>>
>>>      at
>>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>>      at
>>>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>>>      at
>>>
>>
>>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>>
>>>      at
>>>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
>>>      at
>>>
>>
>>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>>
>>>      at
>>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>>      at
>>>
>>
>>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>
>>>      at
>>>
>>
>>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>>
>>>      at
>>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>>      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>>>      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>>>      at
>>>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
>>>      at
>>>
>>
>>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
>>
>>>      at
>>>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
>>>      at
>>>
>>
>>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
>>
>>>      at java.lang.Thread.run(Thread.java:534)
>>>Caused by: org.xml.sax.SAXException: SimpleDeserializer encountered a
>>>child element, which is NOT expected, in something it was trying to
>>>deserialize.
>>>      at
>>>
>>
>>org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
>>
>>>      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:1140)
>>
>>>      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:148)
>>
>>>      at
>>>org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
>>>      ... 33 more
>>>
>>>
>>>
>>>Anne Thomas Manes wrote:
>>>
>>>>Could you provide us with a sample of your errant SOAP messages?
>>>>Is the fault occuring on the client, server, or both?
>>>>
>>>>Anne
>>>>
>>>>(ps -- the WSDL looks just fine)
>>>>(I recommend that you compile your code with debug on so that
>>>>java2wsdl produces more reasonable parameter names.)
>>>>
>>>>On 6/4/05, Nathaniel A. Johnson <na...@indiana.edu> wrote:
>>>>
>>>>
>>>>>hi all,
>>>>>
>>>>>i have a java application and need to make it available via web
>>>>>services... so i'd like to use java2wsdl.  it works great if i use
>>>>>rpc/encoded (i even have it working with wss4j, signing and encrypting
>>>>>all communications), but doc/literal doesnt seem to play nicely.  the
>>>>>java interface only uses simple String objects and String arrays, so its
>>>>>a really simple interface (no complex objects or anything).  i get the
>>>>>following fault when a String array return type is processed.
>>>>>
>>>>>AxisFault
>>>>>faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>>>>>faultSubcode:
>>>>>faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a
>>>>>child element, which is NOT expected, in something it was trying to
>>>>>deserialize.
>>>>>
>>>>>i use the java2wsdl ant task, if that helps anyone think of any
>>>>>advice... here is the wsdl that it generates, but i really dont want to
>>>>>have to modify it by hand after each change to the java objects... but
>>>>>if thats what it comes down to so that it will work with other clients,
>>>>>i guess thats what i will have to do.
>>>>>
>>>>>thanks all!  heres the wsdl (sorry about the +/- signs... copied it from
>>>>>internet explorer)
>>>>>
>>>>>nate
>>>>>
>>>>>
>>>>><?xml version="1.0" encoding="UTF-8" ?>
>>>>>- <wsdl:definitions
>>>>>targetNamespace="http://services.osg.uis.iu.edu/GroupsService"
>>>>>xmlns:apachesoap="http://xml.apache.org/xml-soap"
>>>>>xmlns:impl="http://services.osg.uis.iu.edu/GroupsService"
>>>>>xmlns:intf="http://services.osg.uis.iu.edu/GroupsService"
>>>>>xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>>>>>xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
>>>>>xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>>>>>- <!--
>>>>>WSDL created by Apache Axis version: 1.2.1
>>>>>Built on Jun 03, 2005 (06:10:52 PDT)
>>>>>
>>>>> -->
>>>>>- <wsdl:types>
>>>>>- <schema elementFormDefault="qualified"
>>>>>targetNamespace="http://services.osg.uis.iu.edu/GroupsService"
>>>>>xmlns="http://www.w3.org/2001/XMLSchema">
>>>>>- <element name="createGroup">
>>>>>- <complexType>
>>>>>- <sequence>
>>>>> <element name="in0" type="xsd:string" />
>>>>> </sequence>
>>>>> </complexType>
>>>>> </element>
>>>>>- <element name="createGroupResponse">
>>>>>- <complexType>
>>>>>- <sequence>
>>>>> <element name="createGroupReturn" type="xsd:int" />
>>>>> </sequence>
>>>>> </complexType>
>>>>> </element>
>>>>>- <element name="getMembers">
>>>>>- <complexType>
>>>>>- <sequence>
>>>>> <element name="in0" type="xsd:string" />
>>>>> </sequence>
>>>>> </complexType>
>>>>> </element>
>>>>>- <element name="getMembersResponse">
>>>>>- <complexType>
>>>>>- <sequence>
>>>>> <element maxOccurs="unbounded" name="getMembersReturn"
>>>>>type="xsd:string" />
>>>>> </sequence>
>>>>> </complexType>
>>>>> </element>
>>>>>- <element name="createGroupWithMembers">
>>>>>- <complexType>
>>>>>- <sequence>
>>>>> <element name="in0" type="xsd:string" />
>>>>> <element maxOccurs="unbounded" name="in1" type="xsd:string" />
>>>>> </sequence>
>>>>> </complexType>
>>>>> </element>
>>>>>- <element name="createGroupWithMembersResponse">
>>>>>- <complexType>
>>>>>- <sequence>
>>>>> <element name="createGroupWithMembersReturn" type="xsd:int" />
>>>>> </sequence>
>>>>> </complexType>
>>>>> </element>
>>>>>- <element name="addMember">
>>>>>- <complexType>
>>>>>- <sequence>
>>>>> <element name="in0" type="xsd:string" />
>>>>> <element name="in1" type="xsd:string" />
>>>>> </sequence>
>>>>> </complexType>
>>>>> </element>
>>>>>- <element name="addMemberResponse">
>>>>>- <complexType>
>>>>>- <sequence>
>>>>> <element name="addMemberReturn" type="xsd:int" />
>>>>> </sequence>
>>>>> </complexType>
>>>>> </element>
>>>>>- <element name="addMembers">
>>>>>- <complexType>
>>>>>- <sequence>
>>>>> <element name="in0" type="xsd:string" />
>>>>> <element maxOccurs="unbounded" name="in1" type="xsd:string" />
>>>>> </sequence>
>>>>> </complexType>
>>>>> </element>
>>>>>- <element name="addMembersResponse">
>>>>>- <complexType>
>>>>>- <sequence>
>>>>> <element name="addMembersReturn" type="xsd:int" />
>>>>> </sequence>
>>>>> </complexType>
>>>>> </element>
>>>>>- <element name="removeMember">
>>>>>- <complexType>
>>>>>- <sequence>
>>>>> <element name="in0" type="xsd:string" />
>>>>> <element name="in1" type="xsd:string" />
>>>>> </sequence>
>>>>> </complexType>
>>>>> </element>
>>>>>- <element name="removeMemberResponse">
>>>>>- <complexType>
>>>>>- <sequence>
>>>>> <element name="removeMemberReturn" type="xsd:int" />
>>>>> </sequence>
>>>>> </complexType>
>>>>> </element>
>>>>>- <element name="removeMembers">
>>>>>- <complexType>
>>>>>- <sequence>
>>>>> <element name="in0" type="xsd:string" />
>>>>> <element maxOccurs="unbounded" name="in1" type="xsd:string" />
>>>>> </sequence>
>>>>> </complexType>
>>>>> </element>
>>>>>- <element name="removeMembersResponse">
>>>>>- <complexType>
>>>>>- <sequence>
>>>>> <element name="removeMembersReturn" type="xsd:int" />
>>>>> </sequence>
>>>>> </complexType>
>>>>> </element>
>>>>>- <element name="removeGroup">
>>>>>- <complexType>
>>>>>- <sequence>
>>>>> <element name="in0" type="xsd:string" />
>>>>> </sequence>
>>>>> </complexType>
>>>>> </element>
>>>>>- <element name="removeGroupResponse">
>>>>>- <complexType>
>>>>>- <sequence>
>>>>> <element name="removeGroupReturn" type="xsd:int" />
>>>>> </sequence>
>>>>> </complexType>
>>>>> </element>
>>>>> </schema>
>>>>> </wsdl:types>
>>>>>- <wsdl:message name="createGroupWithMembersResponse">
>>>>> <wsdl:part element="impl:createGroupWithMembersResponse"
>>>>>name="parameters" />
>>>>> </wsdl:message>
>>>>>- <wsdl:message name="createGroupWithMembersRequest">
>>>>> <wsdl:part element="impl:createGroupWithMembers" name="parameters" />
>>>>> </wsdl:message>
>>>>>- <wsdl:message name="removeMembersResponse">
>>>>> <wsdl:part element="impl:removeMembersResponse" name="parameters" />
>>>>> </wsdl:message>
>>>>>- <wsdl:message name="removeMemberRequest">
>>>>> <wsdl:part element="impl:removeMember" name="parameters" />
>>>>> </wsdl:message>
>>>>>- <wsdl:message name="removeMemberResponse">
>>>>> <wsdl:part element="impl:removeMemberResponse" name="parameters" />
>>>>> </wsdl:message>
>>>>>- <wsdl:message name="getMembersResponse">
>>>>> <wsdl:part element="impl:getMembersResponse" name="parameters" />
>>>>> </wsdl:message>
>>>>>- <wsdl:message name="addMembersResponse">
>>>>> <wsdl:part element="impl:addMembersResponse" name="parameters" />
>>>>> </wsdl:message>
>>>>>- <wsdl:message name="removeGroupRequest">
>>>>> <wsdl:part element="impl:removeGroup" name="parameters" />
>>>>> </wsdl:message>
>>>>>- <wsdl:message name="createGroupRequest">
>>>>> <wsdl:part element="impl:createGroup" name="parameters" />
>>>>> </wsdl:message>
>>>>>- <wsdl:message name="addMemberResponse">
>>>>> <wsdl:part element="impl:addMemberResponse" name="parameters" />
>>>>> </wsdl:message>
>>>>>- <wsdl:message name="addMemberRequest">
>>>>> <wsdl:part element="impl:addMember" name="parameters" />
>>>>> </wsdl:message>
>>>>>- <wsdl:message name="createGroupResponse">
>>>>> <wsdl:part element="impl:createGroupResponse" name="parameters" />
>>>>> </wsdl:message>
>>>>>- <wsdl:message name="getMembersRequest">
>>>>> <wsdl:part element="impl:getMembers" name="parameters" />
>>>>> </wsdl:message>
>>>>>- <wsdl:message name="removeMembersRequest">
>>>>> <wsdl:part element="impl:removeMembers" name="parameters" />
>>>>> </wsdl:message>
>>>>>- <wsdl:message name="removeGroupResponse">
>>>>> <wsdl:part element="impl:removeGroupResponse" name="parameters" />
>>>>> </wsdl:message>
>>>>>- <wsdl:message name="addMembersRequest">
>>>>> <wsdl:part element="impl:addMembers" name="parameters" />
>>>>> </wsdl:message>
>>>>>- <wsdl:portType name="GroupsService">
>>>>>- <wsdl:operation name="createGroup">
>>>>> <wsdl:input message="impl:createGroupRequest"
>>>>>name="createGroupRequest" />
>>>>> <wsdl:output message="impl:createGroupResponse"
>>>>>name="createGroupResponse" />
>>>>> </wsdl:operation>
>>>>>- <wsdl:operation name="getMembers">
>>>>> <wsdl:input message="impl:getMembersRequest" name="getMembersRequest" />
>>>>> <wsdl:output message="impl:getMembersResponse"
>>>>>name="getMembersResponse" />
>>>>> </wsdl:operation>
>>>>>- <wsdl:operation name="createGroupWithMembers">
>>>>> <wsdl:input message="impl:createGroupWithMembersRequest"
>>>>>name="createGroupWithMembersRequest" />
>>>>> <wsdl:output message="impl:createGroupWithMembersResponse"
>>>>>name="createGroupWithMembersResponse" />
>>>>> </wsdl:operation>
>>>>>- <wsdl:operation name="addMember">
>>>>> <wsdl:input message="impl:addMemberRequest" name="addMemberRequest" />
>>>>> <wsdl:output message="impl:addMemberResponse" name="addMemberResponse" />
>>>>> </wsdl:operation>
>>>>>- <wsdl:operation name="addMembers">
>>>>> <wsdl:input message="impl:addMembersRequest" name="addMembersRequest" />
>>>>> <wsdl:output message="impl:addMembersResponse"
>>>>>name="addMembersResponse" />
>>>>> </wsdl:operation>
>>>>>- <wsdl:operation name="removeMember">
>>>>> <wsdl:input message="impl:removeMemberRequest"
>>>>>name="removeMemberRequest" />
>>>>> <wsdl:output message="impl:removeMemberResponse"
>>>>>name="removeMemberResponse" />
>>>>> </wsdl:operation>
>>>>>- <wsdl:operation name="removeMembers">
>>>>> <wsdl:input message="impl:removeMembersRequest"
>>>>>name="removeMembersRequest" />
>>>>> <wsdl:output message="impl:removeMembersResponse"
>>>>>name="removeMembersResponse" />
>>>>> </wsdl:operation>
>>>>>- <wsdl:operation name="removeGroup">
>>>>> <wsdl:input message="impl:removeGroupRequest"
>>>>>name="removeGroupRequest" />
>>>>> <wsdl:output message="impl:removeGroupResponse"
>>>>>name="removeGroupResponse" />
>>>>> </wsdl:operation>
>>>>> </wsdl:portType>
>>>>>- <wsdl:binding name="GroupsServiceServiceSoapBinding"
>>>>>type="impl:GroupsService">
>>>>> <wsdlsoap:binding style="document"
>>>>>transport="http://schemas.xmlsoap.org/soap/http" />
>>>>>- <wsdl:operation name="createGroup">
>>>>> <wsdlsoap:operation soapAction="" />
>>>>>- <wsdl:input name="createGroupRequest">
>>>>> <wsdlsoap:body use="literal" />
>>>>> </wsdl:input>
>>>>>- <wsdl:output name="createGroupResponse">
>>>>> <wsdlsoap:body use="literal" />
>>>>> </wsdl:output>
>>>>> </wsdl:operation>
>>>>>- <wsdl:operation name="getMembers">
>>>>> <wsdlsoap:operation soapAction="" />
>>>>>- <wsdl:input name="getMembersRequest">
>>>>> <wsdlsoap:body use="literal" />
>>>>> </wsdl:input>
>>>>>- <wsdl:output name="getMembersResponse">
>>>>> <wsdlsoap:body use="literal" />
>>>>> </wsdl:output>
>>>>> </wsdl:operation>
>>>>>- <wsdl:operation name="createGroupWithMembers">
>>>>> <wsdlsoap:operation soapAction="" />
>>>>>- <wsdl:input name="createGroupWithMembersRequest">
>>>>> <wsdlsoap:body use="literal" />
>>>>> </wsdl:input>
>>>>>- <wsdl:output name="createGroupWithMembersResponse">
>>>>> <wsdlsoap:body use="literal" />
>>>>> </wsdl:output>
>>>>> </wsdl:operation>
>>>>>- <wsdl:operation name="addMember">
>>>>> <wsdlsoap:operation soapAction="" />
>>>>>- <wsdl:input name="addMemberRequest">
>>>>> <wsdlsoap:body use="literal" />
>>>>> </wsdl:input>
>>>>>- <wsdl:output name="addMemberResponse">
>>>>> <wsdlsoap:body use="literal" />
>>>>> </wsdl:output>
>>>>> </wsdl:operation>
>>>>>- <wsdl:operation name="addMembers">
>>>>> <wsdlsoap:operation soapAction="" />
>>>>>- <wsdl:input name="addMembersRequest">
>>>>> <wsdlsoap:body use="literal" />
>>>>> </wsdl:input>
>>>>>- <wsdl:output name="addMembersResponse">
>>>>> <wsdlsoap:body use="literal" />
>>>>> </wsdl:output>
>>>>> </wsdl:operation>
>>>>>- <wsdl:operation name="removeMember">
>>>>> <wsdlsoap:operation soapAction="" />
>>>>>- <wsdl:input name="removeMemberRequest">
>>>>> <wsdlsoap:body use="literal" />
>>>>> </wsdl:input>
>>>>>- <wsdl:output name="removeMemberResponse">
>>>>> <wsdlsoap:body use="literal" />
>>>>> </wsdl:output>
>>>>> </wsdl:operation>
>>>>>- <wsdl:operation name="removeMembers">
>>>>> <wsdlsoap:operation soapAction="" />
>>>>>- <wsdl:input name="removeMembersRequest">
>>>>> <wsdlsoap:body use="literal" />
>>>>> </wsdl:input>
>>>>>- <wsdl:output name="removeMembersResponse">
>>>>> <wsdlsoap:body use="literal" />
>>>>> </wsdl:output>
>>>>> </wsdl:operation>
>>>>>- <wsdl:operation name="removeGroup">
>>>>> <wsdlsoap:operation soapAction="" />
>>>>>- <wsdl:input name="removeGroupRequest">
>>>>> <wsdlsoap:body use="literal" />
>>>>> </wsdl:input>
>>>>>- <wsdl:output name="removeGroupResponse">
>>>>> <wsdlsoap:body use="literal" />
>>>>> </wsdl:output>
>>>>> </wsdl:operation>
>>>>> </wsdl:binding>
>>>>>- <wsdl:service name="GroupsServiceService">
>>>>>- <wsdl:port binding="impl:GroupsServiceServiceSoapBinding"
>>>>>name="GroupsServiceService">
>>>>> <wsdlsoap:address
>>>>>location="http://localhost:8080/osg-dev/services/GroupsServiceService" />
>>>>> </wsdl:port>
>>>>> </wsdl:service>
>>>>> </wsdl:definitions>
>>>>>
>>
>>--
>>Between the question and the answer lies free will
>>

Re: problem with doc/literal...

Posted by Anne Thomas Manes <at...@gmail.com>.
James,

When I ask where the fault occurs, what I'm really asking is who
generates the fault -- the server or the client? You say there is no
response? Then how does your client receive the exception?

Please provide us with the response message.

Maybe you can recount for us how you build the service and the client,
and provide your WSDDs.

Thanks

Thanks,
Anne

On 6/4/05, James Taylor <ta...@tcd.ie> wrote:
> Hey Nathaniel,
>               would you mind posting me your log4J properties file as I'm trying
> to set it up in axis. At the minute I have the below listing in C:\Program
> Files\Apache\jakarta-tomcat-4.1.31\webapps\axis\WEB-INF\classes but there's no
> log file in C:\Program Files\Apache\jakarta-tomcat-4.1.31\logs\
> I also stuck a class static variable Logger logger =
> Logger.getLogger(myclass.class);
>                James.
> 
> # Log4j configuration file.
> # Set root logger level to DEBUG and its only appender to A.
> log4j.rootCategory=DEBUG, A
> 
> # A is a DailyRollingFileAppender
> log4j.appender.A=org.apache.log4j.DailyRollingFileAppender
> log4j.appender.A.file=C:\Program
> Files\Apache\jakarta-tomcat-4.1.31\logs\JamesAxis.log
> log4j.appender.A.datePattern='.'yyyy-MM-dd
> log4j.appender.A.append=true
> log4j.appender.A.layout=org.apache.log4j.PatternLayout
> log4j.appender.A.layout.ConversionPattern=%-5p %d{ISO8601} [%t] - %m%n
> 
> 
> Quoting "Nathaniel A. Johnson" <na...@indiana.edu>:
> 
> > anne,
> >
> > here is a sample message and the full stack trace.  i have log4j turned
> > on in debug mode and from that and the soapmonitor, right now it appears
> > that when this request goes out, it blows up while in doc/literal mode.
> >  there is no response.  seems weird that it needs to deserialize before
> > sending to the server, doesnt it?  because the client it blowing up, not
> > the server.  anyway, here is a request message and the stack trace.
> > thanks again for looking at this.
> >
> > ps: i left the digital signature in there, but turned off the
> > encryption, so you can see the small soap body down at the bottom of the
> > message.
> >
> > nate
> >
> >
> > <?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:Header>
> > <wsse:Security
> >
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
> > soapenv:mustUnderstand="1">
> > <wsse:BinarySecurityToken
> >
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> >
> EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"
> >
> ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"
> >
> wsu:Id="CertId-612575">MIIBnjCCAQcCBEKeIDgwDQYJKoZIhvcNAQEEBQAwFjEUMBIGA1UEAxMLeHhhcHBjbGllbnQwHhcN
> > MDUwNjAxMjA1MzEyWhcNMDUwODMwMjA1MzEyWjAWMRQwEgYDVQQDEwt4eGFwcGNsaWVudDCBnzAN
> > BgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEApzheMPxZkjI8iIpPv08KIGI7hMWOzx47b2ym4VGH+b3N
> > L90rT/3Eghll2RhRaJIAWuh/A3ZeVog6B4vdH6rSLWPpOrKsC+R4ar1dHqvCNYdtC5A2CWA4l9ni
> > cLbFamviOKCxanbfFtCAvqwUJXdFDV0V7HgqKJRdErZlO1tl0FkCAwEAATANBgkqhkiG9w0BAQQF
> > AAOBgQBgH/EID1mBxU2gMmuycfw/Gx41wALz7VwuOFWBWQdj2btnm2fM4GVmLk9BlijL3QSLb3b9
> > GRboZJBkbUB91MfD6I0PZ5OyaeqP53sM1QX+7amWZ3Yzo7ZwViWCmFUXK4LZid/8Ue2mxB4mRKo+
> > lwow5/kMTf7n1LnIXjMPTf6hMg==</wsse:BinarySecurityToken>
> > <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
> > <ds:SignedInfo>
> > <ds:CanonicalizationMethod
> >
> Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:CanonicalizationMethod>
> > <ds:SignatureMethod
> > Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></ds:SignatureMethod>
> > <ds:Reference URI="#id-10486149">
> > <ds:Transforms>
> > <ds:Transform
> > Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:Transform>
> > </ds:Transforms>
> > <ds:DigestMethod
> > Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></ds:DigestMethod>
> > <ds:DigestValue>KiGD6r9lsMJErPKd4D3VIproaFE=</ds:DigestValue>
> > </ds:Reference>
> > </ds:SignedInfo>
> > <ds:SignatureValue>
> > ZYtuKrljUs38ZIXRp0NPqmnNUtbgb23zM24GLMcXJKGH/op5Tz7nj3B0g6DhsXn2vwc5aWvfK2U3
> > 66ZS1T7OCKGx+z+QHwqwF2B+TepW743KrahqgnrdJ3c7DkODjFcr9I2E8A70+IJDXut8bHMJ09ys
> > Pz/brQoqXusrI5IeFQQ=
> > </ds:SignatureValue>
> > <ds:KeyInfo Id="KeyId-28523022">
> > <wsse:SecurityTokenReference
> >
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> > wsu:Id="STRId-13782591"><wsse:Reference URI="#CertId-612575"
> >
> ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"></wsse:Reference>
> > </wsse:SecurityTokenReference>
> > </ds:KeyInfo>
> > </ds:Signature>
> > </wsse:Security>
> > </soapenv:Header>
> > <soapenv:Body
> >
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> > wsu:Id="id-10486149">
> > <getMembers xmlns="http://services.osg.uis.iu.edu/GroupsService">
> > <in0>bl-uits-onestart-admin</in0>
> > </getMembers>
> > </soapenv:Body>
> > </soapenv:Envelope>
> >
> >
> >
> >
> > AxisFault
> >  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> >  faultSubcode:
> >  faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a
> > child element, which is NOT expected, in something it was trying to
> > deserialize.
> >  faultActor:
> >  faultNode:
> >  faultDetail:
> >       {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException:
> > SimpleDeserializer encountered a child element, which is NOT expected,
> > in something it was trying to deserialize.
> >       at
> >
> org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
> >       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:1140)
> >       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:148)
> >       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:453)
> >       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:709)
> >       at
> >
> org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
> >       at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >       at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
> >       at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
> >       at
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
> >       at
> >
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> >       at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> >       at
> >
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
> >       at
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
> >       at
> >
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> >       at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> >       at
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
> >       at
> >
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> >       at
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
> >       at
> >
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
> >       at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> >       at
> >
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> >       at
> >
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> >       at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> >       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
> >       at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
> >       at
> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
> >       at
> >
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
> >       at
> > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
> >       at
> >
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
> >       at java.lang.Thread.run(Thread.java:534)
> >
> >       {http://xml.apache.org/axis/}hostname:bl-uits-naj
> >
> > org.xml.sax.SAXException: SimpleDeserializer encountered a child
> > element, which is NOT expected, in something it was trying to deserialize.
> >       at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
> >       at
> > org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:330)
> >       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:453)
> >       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:709)
> >       at
> >
> org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
> >       at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >       at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
> >       at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
> >       at
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
> >       at
> >
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> >       at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> >       at
> >
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
> >       at
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
> >       at
> >
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> >       at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> >       at
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
> >       at
> >
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> >       at
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
> >       at
> >
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
> >       at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> >       at
> >
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> >       at
> >
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> >       at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> >       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
> >       at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
> >       at
> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
> >       at
> >
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
> >       at
> > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
> >       at
> >
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
> >       at java.lang.Thread.run(Thread.java:534)
> > Caused by: org.xml.sax.SAXException: SimpleDeserializer encountered a
> > child element, which is NOT expected, in something it was trying to
> > deserialize.
> >       at
> >
> org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
> >       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:1140)
> >       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:148)
> >       at
> > org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
> >       ... 33 more
> >
> >
> >
> > Anne Thomas Manes wrote:
> > > Could you provide us with a sample of your errant SOAP messages?
> > > Is the fault occuring on the client, server, or both?
> > >
> > > Anne
> > >
> > > (ps -- the WSDL looks just fine)
> > > (I recommend that you compile your code with debug on so that
> > > java2wsdl produces more reasonable parameter names.)
> > >
> > > On 6/4/05, Nathaniel A. Johnson <na...@indiana.edu> wrote:
> > >
> > >>hi all,
> > >>
> > >>i have a java application and need to make it available via web
> > >>services... so i'd like to use java2wsdl.  it works great if i use
> > >>rpc/encoded (i even have it working with wss4j, signing and encrypting
> > >>all communications), but doc/literal doesnt seem to play nicely.  the
> > >>java interface only uses simple String objects and String arrays, so its
> > >>a really simple interface (no complex objects or anything).  i get the
> > >>following fault when a String array return type is processed.
> > >>
> > >>AxisFault
> > >> faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> > >> faultSubcode:
> > >> faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a
> > >>child element, which is NOT expected, in something it was trying to
> > >>deserialize.
> > >>
> > >>i use the java2wsdl ant task, if that helps anyone think of any
> > >>advice... here is the wsdl that it generates, but i really dont want to
> > >>have to modify it by hand after each change to the java objects... but
> > >>if thats what it comes down to so that it will work with other clients,
> > >>i guess thats what i will have to do.
> > >>
> > >>thanks all!  heres the wsdl (sorry about the +/- signs... copied it from
> > >>internet explorer)
> > >>
> > >>nate
> > >>
> > >>
> > >><?xml version="1.0" encoding="UTF-8" ?>
> > >>- <wsdl:definitions
> > >>targetNamespace="http://services.osg.uis.iu.edu/GroupsService"
> > >>xmlns:apachesoap="http://xml.apache.org/xml-soap"
> > >>xmlns:impl="http://services.osg.uis.iu.edu/GroupsService"
> > >>xmlns:intf="http://services.osg.uis.iu.edu/GroupsService"
> > >>xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> > >>xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> > >>xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> > >>- <!--
> > >>WSDL created by Apache Axis version: 1.2.1
> > >>Built on Jun 03, 2005 (06:10:52 PDT)
> > >>
> > >>  -->
> > >>- <wsdl:types>
> > >>- <schema elementFormDefault="qualified"
> > >>targetNamespace="http://services.osg.uis.iu.edu/GroupsService"
> > >>xmlns="http://www.w3.org/2001/XMLSchema">
> > >>- <element name="createGroup">
> > >>- <complexType>
> > >>- <sequence>
> > >>  <element name="in0" type="xsd:string" />
> > >>  </sequence>
> > >>  </complexType>
> > >>  </element>
> > >>- <element name="createGroupResponse">
> > >>- <complexType>
> > >>- <sequence>
> > >>  <element name="createGroupReturn" type="xsd:int" />
> > >>  </sequence>
> > >>  </complexType>
> > >>  </element>
> > >>- <element name="getMembers">
> > >>- <complexType>
> > >>- <sequence>
> > >>  <element name="in0" type="xsd:string" />
> > >>  </sequence>
> > >>  </complexType>
> > >>  </element>
> > >>- <element name="getMembersResponse">
> > >>- <complexType>
> > >>- <sequence>
> > >>  <element maxOccurs="unbounded" name="getMembersReturn"
> > >>type="xsd:string" />
> > >>  </sequence>
> > >>  </complexType>
> > >>  </element>
> > >>- <element name="createGroupWithMembers">
> > >>- <complexType>
> > >>- <sequence>
> > >>  <element name="in0" type="xsd:string" />
> > >>  <element maxOccurs="unbounded" name="in1" type="xsd:string" />
> > >>  </sequence>
> > >>  </complexType>
> > >>  </element>
> > >>- <element name="createGroupWithMembersResponse">
> > >>- <complexType>
> > >>- <sequence>
> > >>  <element name="createGroupWithMembersReturn" type="xsd:int" />
> > >>  </sequence>
> > >>  </complexType>
> > >>  </element>
> > >>- <element name="addMember">
> > >>- <complexType>
> > >>- <sequence>
> > >>  <element name="in0" type="xsd:string" />
> > >>  <element name="in1" type="xsd:string" />
> > >>  </sequence>
> > >>  </complexType>
> > >>  </element>
> > >>- <element name="addMemberResponse">
> > >>- <complexType>
> > >>- <sequence>
> > >>  <element name="addMemberReturn" type="xsd:int" />
> > >>  </sequence>
> > >>  </complexType>
> > >>  </element>
> > >>- <element name="addMembers">
> > >>- <complexType>
> > >>- <sequence>
> > >>  <element name="in0" type="xsd:string" />
> > >>  <element maxOccurs="unbounded" name="in1" type="xsd:string" />
> > >>  </sequence>
> > >>  </complexType>
> > >>  </element>
> > >>- <element name="addMembersResponse">
> > >>- <complexType>
> > >>- <sequence>
> > >>  <element name="addMembersReturn" type="xsd:int" />
> > >>  </sequence>
> > >>  </complexType>
> > >>  </element>
> > >>- <element name="removeMember">
> > >>- <complexType>
> > >>- <sequence>
> > >>  <element name="in0" type="xsd:string" />
> > >>  <element name="in1" type="xsd:string" />
> > >>  </sequence>
> > >>  </complexType>
> > >>  </element>
> > >>- <element name="removeMemberResponse">
> > >>- <complexType>
> > >>- <sequence>
> > >>  <element name="removeMemberReturn" type="xsd:int" />
> > >>  </sequence>
> > >>  </complexType>
> > >>  </element>
> > >>- <element name="removeMembers">
> > >>- <complexType>
> > >>- <sequence>
> > >>  <element name="in0" type="xsd:string" />
> > >>  <element maxOccurs="unbounded" name="in1" type="xsd:string" />
> > >>  </sequence>
> > >>  </complexType>
> > >>  </element>
> > >>- <element name="removeMembersResponse">
> > >>- <complexType>
> > >>- <sequence>
> > >>  <element name="removeMembersReturn" type="xsd:int" />
> > >>  </sequence>
> > >>  </complexType>
> > >>  </element>
> > >>- <element name="removeGroup">
> > >>- <complexType>
> > >>- <sequence>
> > >>  <element name="in0" type="xsd:string" />
> > >>  </sequence>
> > >>  </complexType>
> > >>  </element>
> > >>- <element name="removeGroupResponse">
> > >>- <complexType>
> > >>- <sequence>
> > >>  <element name="removeGroupReturn" type="xsd:int" />
> > >>  </sequence>
> > >>  </complexType>
> > >>  </element>
> > >>  </schema>
> > >>  </wsdl:types>
> > >>- <wsdl:message name="createGroupWithMembersResponse">
> > >>  <wsdl:part element="impl:createGroupWithMembersResponse"
> > >>name="parameters" />
> > >>  </wsdl:message>
> > >>- <wsdl:message name="createGroupWithMembersRequest">
> > >>  <wsdl:part element="impl:createGroupWithMembers" name="parameters" />
> > >>  </wsdl:message>
> > >>- <wsdl:message name="removeMembersResponse">
> > >>  <wsdl:part element="impl:removeMembersResponse" name="parameters" />
> > >>  </wsdl:message>
> > >>- <wsdl:message name="removeMemberRequest">
> > >>  <wsdl:part element="impl:removeMember" name="parameters" />
> > >>  </wsdl:message>
> > >>- <wsdl:message name="removeMemberResponse">
> > >>  <wsdl:part element="impl:removeMemberResponse" name="parameters" />
> > >>  </wsdl:message>
> > >>- <wsdl:message name="getMembersResponse">
> > >>  <wsdl:part element="impl:getMembersResponse" name="parameters" />
> > >>  </wsdl:message>
> > >>- <wsdl:message name="addMembersResponse">
> > >>  <wsdl:part element="impl:addMembersResponse" name="parameters" />
> > >>  </wsdl:message>
> > >>- <wsdl:message name="removeGroupRequest">
> > >>  <wsdl:part element="impl:removeGroup" name="parameters" />
> > >>  </wsdl:message>
> > >>- <wsdl:message name="createGroupRequest">
> > >>  <wsdl:part element="impl:createGroup" name="parameters" />
> > >>  </wsdl:message>
> > >>- <wsdl:message name="addMemberResponse">
> > >>  <wsdl:part element="impl:addMemberResponse" name="parameters" />
> > >>  </wsdl:message>
> > >>- <wsdl:message name="addMemberRequest">
> > >>  <wsdl:part element="impl:addMember" name="parameters" />
> > >>  </wsdl:message>
> > >>- <wsdl:message name="createGroupResponse">
> > >>  <wsdl:part element="impl:createGroupResponse" name="parameters" />
> > >>  </wsdl:message>
> > >>- <wsdl:message name="getMembersRequest">
> > >>  <wsdl:part element="impl:getMembers" name="parameters" />
> > >>  </wsdl:message>
> > >>- <wsdl:message name="removeMembersRequest">
> > >>  <wsdl:part element="impl:removeMembers" name="parameters" />
> > >>  </wsdl:message>
> > >>- <wsdl:message name="removeGroupResponse">
> > >>  <wsdl:part element="impl:removeGroupResponse" name="parameters" />
> > >>  </wsdl:message>
> > >>- <wsdl:message name="addMembersRequest">
> > >>  <wsdl:part element="impl:addMembers" name="parameters" />
> > >>  </wsdl:message>
> > >>- <wsdl:portType name="GroupsService">
> > >>- <wsdl:operation name="createGroup">
> > >>  <wsdl:input message="impl:createGroupRequest"
> > >>name="createGroupRequest" />
> > >>  <wsdl:output message="impl:createGroupResponse"
> > >>name="createGroupResponse" />
> > >>  </wsdl:operation>
> > >>- <wsdl:operation name="getMembers">
> > >>  <wsdl:input message="impl:getMembersRequest" name="getMembersRequest" />
> > >>  <wsdl:output message="impl:getMembersResponse"
> > >>name="getMembersResponse" />
> > >>  </wsdl:operation>
> > >>- <wsdl:operation name="createGroupWithMembers">
> > >>  <wsdl:input message="impl:createGroupWithMembersRequest"
> > >>name="createGroupWithMembersRequest" />
> > >>  <wsdl:output message="impl:createGroupWithMembersResponse"
> > >>name="createGroupWithMembersResponse" />
> > >>  </wsdl:operation>
> > >>- <wsdl:operation name="addMember">
> > >>  <wsdl:input message="impl:addMemberRequest" name="addMemberRequest" />
> > >>  <wsdl:output message="impl:addMemberResponse" name="addMemberResponse" />
> > >>  </wsdl:operation>
> > >>- <wsdl:operation name="addMembers">
> > >>  <wsdl:input message="impl:addMembersRequest" name="addMembersRequest" />
> > >>  <wsdl:output message="impl:addMembersResponse"
> > >>name="addMembersResponse" />
> > >>  </wsdl:operation>
> > >>- <wsdl:operation name="removeMember">
> > >>  <wsdl:input message="impl:removeMemberRequest"
> > >>name="removeMemberRequest" />
> > >>  <wsdl:output message="impl:removeMemberResponse"
> > >>name="removeMemberResponse" />
> > >>  </wsdl:operation>
> > >>- <wsdl:operation name="removeMembers">
> > >>  <wsdl:input message="impl:removeMembersRequest"
> > >>name="removeMembersRequest" />
> > >>  <wsdl:output message="impl:removeMembersResponse"
> > >>name="removeMembersResponse" />
> > >>  </wsdl:operation>
> > >>- <wsdl:operation name="removeGroup">
> > >>  <wsdl:input message="impl:removeGroupRequest"
> > >>name="removeGroupRequest" />
> > >>  <wsdl:output message="impl:removeGroupResponse"
> > >>name="removeGroupResponse" />
> > >>  </wsdl:operation>
> > >>  </wsdl:portType>
> > >>- <wsdl:binding name="GroupsServiceServiceSoapBinding"
> > >>type="impl:GroupsService">
> > >>  <wsdlsoap:binding style="document"
> > >>transport="http://schemas.xmlsoap.org/soap/http" />
> > >>- <wsdl:operation name="createGroup">
> > >>  <wsdlsoap:operation soapAction="" />
> > >>- <wsdl:input name="createGroupRequest">
> > >>  <wsdlsoap:body use="literal" />
> > >>  </wsdl:input>
> > >>- <wsdl:output name="createGroupResponse">
> > >>  <wsdlsoap:body use="literal" />
> > >>  </wsdl:output>
> > >>  </wsdl:operation>
> > >>- <wsdl:operation name="getMembers">
> > >>  <wsdlsoap:operation soapAction="" />
> > >>- <wsdl:input name="getMembersRequest">
> > >>  <wsdlsoap:body use="literal" />
> > >>  </wsdl:input>
> > >>- <wsdl:output name="getMembersResponse">
> > >>  <wsdlsoap:body use="literal" />
> > >>  </wsdl:output>
> > >>  </wsdl:operation>
> > >>- <wsdl:operation name="createGroupWithMembers">
> > >>  <wsdlsoap:operation soapAction="" />
> > >>- <wsdl:input name="createGroupWithMembersRequest">
> > >>  <wsdlsoap:body use="literal" />
> > >>  </wsdl:input>
> > >>- <wsdl:output name="createGroupWithMembersResponse">
> > >>  <wsdlsoap:body use="literal" />
> > >>  </wsdl:output>
> > >>  </wsdl:operation>
> > >>- <wsdl:operation name="addMember">
> > >>  <wsdlsoap:operation soapAction="" />
> > >>- <wsdl:input name="addMemberRequest">
> > >>  <wsdlsoap:body use="literal" />
> > >>  </wsdl:input>
> > >>- <wsdl:output name="addMemberResponse">
> > >>  <wsdlsoap:body use="literal" />
> > >>  </wsdl:output>
> > >>  </wsdl:operation>
> > >>- <wsdl:operation name="addMembers">
> > >>  <wsdlsoap:operation soapAction="" />
> > >>- <wsdl:input name="addMembersRequest">
> > >>  <wsdlsoap:body use="literal" />
> > >>  </wsdl:input>
> > >>- <wsdl:output name="addMembersResponse">
> > >>  <wsdlsoap:body use="literal" />
> > >>  </wsdl:output>
> > >>  </wsdl:operation>
> > >>- <wsdl:operation name="removeMember">
> > >>  <wsdlsoap:operation soapAction="" />
> > >>- <wsdl:input name="removeMemberRequest">
> > >>  <wsdlsoap:body use="literal" />
> > >>  </wsdl:input>
> > >>- <wsdl:output name="removeMemberResponse">
> > >>  <wsdlsoap:body use="literal" />
> > >>  </wsdl:output>
> > >>  </wsdl:operation>
> > >>- <wsdl:operation name="removeMembers">
> > >>  <wsdlsoap:operation soapAction="" />
> > >>- <wsdl:input name="removeMembersRequest">
> > >>  <wsdlsoap:body use="literal" />
> > >>  </wsdl:input>
> > >>- <wsdl:output name="removeMembersResponse">
> > >>  <wsdlsoap:body use="literal" />
> > >>  </wsdl:output>
> > >>  </wsdl:operation>
> > >>- <wsdl:operation name="removeGroup">
> > >>  <wsdlsoap:operation soapAction="" />
> > >>- <wsdl:input name="removeGroupRequest">
> > >>  <wsdlsoap:body use="literal" />
> > >>  </wsdl:input>
> > >>- <wsdl:output name="removeGroupResponse">
> > >>  <wsdlsoap:body use="literal" />
> > >>  </wsdl:output>
> > >>  </wsdl:operation>
> > >>  </wsdl:binding>
> > >>- <wsdl:service name="GroupsServiceService">
> > >>- <wsdl:port binding="impl:GroupsServiceServiceSoapBinding"
> > >>name="GroupsServiceService">
> > >>  <wsdlsoap:address
> > >>location="http://localhost:8080/osg-dev/services/GroupsServiceService" />
> > >>  </wsdl:port>
> > >>  </wsdl:service>
> > >>  </wsdl:definitions>
> > >>
> >
> 
> 
> --
> Between the question and the answer lies free will
>

Re: problem with doc/literal...

Posted by James Taylor <ta...@tcd.ie>.
Hey Nathaniel,
              would you mind posting me your log4J properties file as I'm trying
to set it up in axis. At the minute I have the below listing in C:\Program
Files\Apache\jakarta-tomcat-4.1.31\webapps\axis\WEB-INF\classes but there's no
log file in C:\Program Files\Apache\jakarta-tomcat-4.1.31\logs\
I also stuck a class static variable Logger logger =
Logger.getLogger(myclass.class);
               James.

# Log4j configuration file.
# Set root logger level to DEBUG and its only appender to A.
log4j.rootCategory=DEBUG, A

# A is a DailyRollingFileAppender
log4j.appender.A=org.apache.log4j.DailyRollingFileAppender
log4j.appender.A.file=C:\Program
Files\Apache\jakarta-tomcat-4.1.31\logs\JamesAxis.log
log4j.appender.A.datePattern='.'yyyy-MM-dd
log4j.appender.A.append=true
log4j.appender.A.layout=org.apache.log4j.PatternLayout
log4j.appender.A.layout.ConversionPattern=%-5p %d{ISO8601} [%t] - %m%n


Quoting "Nathaniel A. Johnson" <na...@indiana.edu>:

> anne,
>
> here is a sample message and the full stack trace.  i have log4j turned
> on in debug mode and from that and the soapmonitor, right now it appears
> that when this request goes out, it blows up while in doc/literal mode.
>  there is no response.  seems weird that it needs to deserialize before
> sending to the server, doesnt it?  because the client it blowing up, not
> the server.  anyway, here is a request message and the stack trace.
> thanks again for looking at this.
>
> ps: i left the digital signature in there, but turned off the
> encryption, so you can see the small soap body down at the bottom of the
> message.
>
> nate
>
>
> <?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:Header>
> <wsse:Security
>
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
> soapenv:mustUnderstand="1">
> <wsse:BinarySecurityToken
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
>
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"
>
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"
>
wsu:Id="CertId-612575">MIIBnjCCAQcCBEKeIDgwDQYJKoZIhvcNAQEEBQAwFjEUMBIGA1UEAxMLeHhhcHBjbGllbnQwHhcN
> MDUwNjAxMjA1MzEyWhcNMDUwODMwMjA1MzEyWjAWMRQwEgYDVQQDEwt4eGFwcGNsaWVudDCBnzAN
> BgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEApzheMPxZkjI8iIpPv08KIGI7hMWOzx47b2ym4VGH+b3N
> L90rT/3Eghll2RhRaJIAWuh/A3ZeVog6B4vdH6rSLWPpOrKsC+R4ar1dHqvCNYdtC5A2CWA4l9ni
> cLbFamviOKCxanbfFtCAvqwUJXdFDV0V7HgqKJRdErZlO1tl0FkCAwEAATANBgkqhkiG9w0BAQQF
> AAOBgQBgH/EID1mBxU2gMmuycfw/Gx41wALz7VwuOFWBWQdj2btnm2fM4GVmLk9BlijL3QSLb3b9
> GRboZJBkbUB91MfD6I0PZ5OyaeqP53sM1QX+7amWZ3Yzo7ZwViWCmFUXK4LZid/8Ue2mxB4mRKo+
> lwow5/kMTf7n1LnIXjMPTf6hMg==</wsse:BinarySecurityToken>
> <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
> <ds:SignedInfo>
> <ds:CanonicalizationMethod
>
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:CanonicalizationMethod>
> <ds:SignatureMethod
> Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></ds:SignatureMethod>
> <ds:Reference URI="#id-10486149">
> <ds:Transforms>
> <ds:Transform
> Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:Transform>
> </ds:Transforms>
> <ds:DigestMethod
> Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></ds:DigestMethod>
> <ds:DigestValue>KiGD6r9lsMJErPKd4D3VIproaFE=</ds:DigestValue>
> </ds:Reference>
> </ds:SignedInfo>
> <ds:SignatureValue>
> ZYtuKrljUs38ZIXRp0NPqmnNUtbgb23zM24GLMcXJKGH/op5Tz7nj3B0g6DhsXn2vwc5aWvfK2U3
> 66ZS1T7OCKGx+z+QHwqwF2B+TepW743KrahqgnrdJ3c7DkODjFcr9I2E8A70+IJDXut8bHMJ09ys
> Pz/brQoqXusrI5IeFQQ=
> </ds:SignatureValue>
> <ds:KeyInfo Id="KeyId-28523022">
> <wsse:SecurityTokenReference
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> wsu:Id="STRId-13782591"><wsse:Reference URI="#CertId-612575"
>
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"></wsse:Reference>
> </wsse:SecurityTokenReference>
> </ds:KeyInfo>
> </ds:Signature>
> </wsse:Security>
> </soapenv:Header>
> <soapenv:Body
>
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> wsu:Id="id-10486149">
> <getMembers xmlns="http://services.osg.uis.iu.edu/GroupsService">
> <in0>bl-uits-onestart-admin</in0>
> </getMembers>
> </soapenv:Body>
> </soapenv:Envelope>
>
>
>
>
> AxisFault
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>  faultSubcode:
>  faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a
> child element, which is NOT expected, in something it was trying to
> deserialize.
>  faultActor:
>  faultNode:
>  faultDetail:
> 	{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException:
> SimpleDeserializer encountered a child element, which is NOT expected,
> in something it was trying to deserialize.
> 	at
>
org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
> 	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:1140)
> 	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:148)
> 	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:453)
> 	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:709)
> 	at
>
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
> 	at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
> 	at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
> 	at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> 	at
>
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
> 	at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
> 	at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> 	at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
> 	at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 	at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
> 	at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> 	at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 	at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
> 	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
> 	at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
> 	at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
> 	at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
> 	at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
> 	at java.lang.Thread.run(Thread.java:534)
>
> 	{http://xml.apache.org/axis/}hostname:bl-uits-naj
>
> org.xml.sax.SAXException: SimpleDeserializer encountered a child
> element, which is NOT expected, in something it was trying to deserialize.
> 	at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
> 	at
> org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:330)
> 	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:453)
> 	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:709)
> 	at
>
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
> 	at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
> 	at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
> 	at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> 	at
>
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
> 	at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
> 	at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> 	at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
> 	at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 	at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
> 	at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> 	at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 	at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
> 	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
> 	at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
> 	at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
> 	at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
> 	at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
> 	at java.lang.Thread.run(Thread.java:534)
> Caused by: org.xml.sax.SAXException: SimpleDeserializer encountered a
> child element, which is NOT expected, in something it was trying to
> deserialize.
> 	at
>
org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
> 	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:1140)
> 	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:148)
> 	at
> org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
> 	... 33 more
>
>
>
> Anne Thomas Manes wrote:
> > Could you provide us with a sample of your errant SOAP messages?
> > Is the fault occuring on the client, server, or both?
> >
> > Anne
> >
> > (ps -- the WSDL looks just fine)
> > (I recommend that you compile your code with debug on so that
> > java2wsdl produces more reasonable parameter names.)
> >
> > On 6/4/05, Nathaniel A. Johnson <na...@indiana.edu> wrote:
> >
> >>hi all,
> >>
> >>i have a java application and need to make it available via web
> >>services... so i'd like to use java2wsdl.  it works great if i use
> >>rpc/encoded (i even have it working with wss4j, signing and encrypting
> >>all communications), but doc/literal doesnt seem to play nicely.  the
> >>java interface only uses simple String objects and String arrays, so its
> >>a really simple interface (no complex objects or anything).  i get the
> >>following fault when a String array return type is processed.
> >>
> >>AxisFault
> >> faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> >> faultSubcode:
> >> faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a
> >>child element, which is NOT expected, in something it was trying to
> >>deserialize.
> >>
> >>i use the java2wsdl ant task, if that helps anyone think of any
> >>advice... here is the wsdl that it generates, but i really dont want to
> >>have to modify it by hand after each change to the java objects... but
> >>if thats what it comes down to so that it will work with other clients,
> >>i guess thats what i will have to do.
> >>
> >>thanks all!  heres the wsdl (sorry about the +/- signs... copied it from
> >>internet explorer)
> >>
> >>nate
> >>
> >>
> >><?xml version="1.0" encoding="UTF-8" ?>
> >>- <wsdl:definitions
> >>targetNamespace="http://services.osg.uis.iu.edu/GroupsService"
> >>xmlns:apachesoap="http://xml.apache.org/xml-soap"
> >>xmlns:impl="http://services.osg.uis.iu.edu/GroupsService"
> >>xmlns:intf="http://services.osg.uis.iu.edu/GroupsService"
> >>xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> >>xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> >>xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> >>- <!--
> >>WSDL created by Apache Axis version: 1.2.1
> >>Built on Jun 03, 2005 (06:10:52 PDT)
> >>
> >>  -->
> >>- <wsdl:types>
> >>- <schema elementFormDefault="qualified"
> >>targetNamespace="http://services.osg.uis.iu.edu/GroupsService"
> >>xmlns="http://www.w3.org/2001/XMLSchema">
> >>- <element name="createGroup">
> >>- <complexType>
> >>- <sequence>
> >>  <element name="in0" type="xsd:string" />
> >>  </sequence>
> >>  </complexType>
> >>  </element>
> >>- <element name="createGroupResponse">
> >>- <complexType>
> >>- <sequence>
> >>  <element name="createGroupReturn" type="xsd:int" />
> >>  </sequence>
> >>  </complexType>
> >>  </element>
> >>- <element name="getMembers">
> >>- <complexType>
> >>- <sequence>
> >>  <element name="in0" type="xsd:string" />
> >>  </sequence>
> >>  </complexType>
> >>  </element>
> >>- <element name="getMembersResponse">
> >>- <complexType>
> >>- <sequence>
> >>  <element maxOccurs="unbounded" name="getMembersReturn"
> >>type="xsd:string" />
> >>  </sequence>
> >>  </complexType>
> >>  </element>
> >>- <element name="createGroupWithMembers">
> >>- <complexType>
> >>- <sequence>
> >>  <element name="in0" type="xsd:string" />
> >>  <element maxOccurs="unbounded" name="in1" type="xsd:string" />
> >>  </sequence>
> >>  </complexType>
> >>  </element>
> >>- <element name="createGroupWithMembersResponse">
> >>- <complexType>
> >>- <sequence>
> >>  <element name="createGroupWithMembersReturn" type="xsd:int" />
> >>  </sequence>
> >>  </complexType>
> >>  </element>
> >>- <element name="addMember">
> >>- <complexType>
> >>- <sequence>
> >>  <element name="in0" type="xsd:string" />
> >>  <element name="in1" type="xsd:string" />
> >>  </sequence>
> >>  </complexType>
> >>  </element>
> >>- <element name="addMemberResponse">
> >>- <complexType>
> >>- <sequence>
> >>  <element name="addMemberReturn" type="xsd:int" />
> >>  </sequence>
> >>  </complexType>
> >>  </element>
> >>- <element name="addMembers">
> >>- <complexType>
> >>- <sequence>
> >>  <element name="in0" type="xsd:string" />
> >>  <element maxOccurs="unbounded" name="in1" type="xsd:string" />
> >>  </sequence>
> >>  </complexType>
> >>  </element>
> >>- <element name="addMembersResponse">
> >>- <complexType>
> >>- <sequence>
> >>  <element name="addMembersReturn" type="xsd:int" />
> >>  </sequence>
> >>  </complexType>
> >>  </element>
> >>- <element name="removeMember">
> >>- <complexType>
> >>- <sequence>
> >>  <element name="in0" type="xsd:string" />
> >>  <element name="in1" type="xsd:string" />
> >>  </sequence>
> >>  </complexType>
> >>  </element>
> >>- <element name="removeMemberResponse">
> >>- <complexType>
> >>- <sequence>
> >>  <element name="removeMemberReturn" type="xsd:int" />
> >>  </sequence>
> >>  </complexType>
> >>  </element>
> >>- <element name="removeMembers">
> >>- <complexType>
> >>- <sequence>
> >>  <element name="in0" type="xsd:string" />
> >>  <element maxOccurs="unbounded" name="in1" type="xsd:string" />
> >>  </sequence>
> >>  </complexType>
> >>  </element>
> >>- <element name="removeMembersResponse">
> >>- <complexType>
> >>- <sequence>
> >>  <element name="removeMembersReturn" type="xsd:int" />
> >>  </sequence>
> >>  </complexType>
> >>  </element>
> >>- <element name="removeGroup">
> >>- <complexType>
> >>- <sequence>
> >>  <element name="in0" type="xsd:string" />
> >>  </sequence>
> >>  </complexType>
> >>  </element>
> >>- <element name="removeGroupResponse">
> >>- <complexType>
> >>- <sequence>
> >>  <element name="removeGroupReturn" type="xsd:int" />
> >>  </sequence>
> >>  </complexType>
> >>  </element>
> >>  </schema>
> >>  </wsdl:types>
> >>- <wsdl:message name="createGroupWithMembersResponse">
> >>  <wsdl:part element="impl:createGroupWithMembersResponse"
> >>name="parameters" />
> >>  </wsdl:message>
> >>- <wsdl:message name="createGroupWithMembersRequest">
> >>  <wsdl:part element="impl:createGroupWithMembers" name="parameters" />
> >>  </wsdl:message>
> >>- <wsdl:message name="removeMembersResponse">
> >>  <wsdl:part element="impl:removeMembersResponse" name="parameters" />
> >>  </wsdl:message>
> >>- <wsdl:message name="removeMemberRequest">
> >>  <wsdl:part element="impl:removeMember" name="parameters" />
> >>  </wsdl:message>
> >>- <wsdl:message name="removeMemberResponse">
> >>  <wsdl:part element="impl:removeMemberResponse" name="parameters" />
> >>  </wsdl:message>
> >>- <wsdl:message name="getMembersResponse">
> >>  <wsdl:part element="impl:getMembersResponse" name="parameters" />
> >>  </wsdl:message>
> >>- <wsdl:message name="addMembersResponse">
> >>  <wsdl:part element="impl:addMembersResponse" name="parameters" />
> >>  </wsdl:message>
> >>- <wsdl:message name="removeGroupRequest">
> >>  <wsdl:part element="impl:removeGroup" name="parameters" />
> >>  </wsdl:message>
> >>- <wsdl:message name="createGroupRequest">
> >>  <wsdl:part element="impl:createGroup" name="parameters" />
> >>  </wsdl:message>
> >>- <wsdl:message name="addMemberResponse">
> >>  <wsdl:part element="impl:addMemberResponse" name="parameters" />
> >>  </wsdl:message>
> >>- <wsdl:message name="addMemberRequest">
> >>  <wsdl:part element="impl:addMember" name="parameters" />
> >>  </wsdl:message>
> >>- <wsdl:message name="createGroupResponse">
> >>  <wsdl:part element="impl:createGroupResponse" name="parameters" />
> >>  </wsdl:message>
> >>- <wsdl:message name="getMembersRequest">
> >>  <wsdl:part element="impl:getMembers" name="parameters" />
> >>  </wsdl:message>
> >>- <wsdl:message name="removeMembersRequest">
> >>  <wsdl:part element="impl:removeMembers" name="parameters" />
> >>  </wsdl:message>
> >>- <wsdl:message name="removeGroupResponse">
> >>  <wsdl:part element="impl:removeGroupResponse" name="parameters" />
> >>  </wsdl:message>
> >>- <wsdl:message name="addMembersRequest">
> >>  <wsdl:part element="impl:addMembers" name="parameters" />
> >>  </wsdl:message>
> >>- <wsdl:portType name="GroupsService">
> >>- <wsdl:operation name="createGroup">
> >>  <wsdl:input message="impl:createGroupRequest"
> >>name="createGroupRequest" />
> >>  <wsdl:output message="impl:createGroupResponse"
> >>name="createGroupResponse" />
> >>  </wsdl:operation>
> >>- <wsdl:operation name="getMembers">
> >>  <wsdl:input message="impl:getMembersRequest" name="getMembersRequest" />
> >>  <wsdl:output message="impl:getMembersResponse"
> >>name="getMembersResponse" />
> >>  </wsdl:operation>
> >>- <wsdl:operation name="createGroupWithMembers">
> >>  <wsdl:input message="impl:createGroupWithMembersRequest"
> >>name="createGroupWithMembersRequest" />
> >>  <wsdl:output message="impl:createGroupWithMembersResponse"
> >>name="createGroupWithMembersResponse" />
> >>  </wsdl:operation>
> >>- <wsdl:operation name="addMember">
> >>  <wsdl:input message="impl:addMemberRequest" name="addMemberRequest" />
> >>  <wsdl:output message="impl:addMemberResponse" name="addMemberResponse" />
> >>  </wsdl:operation>
> >>- <wsdl:operation name="addMembers">
> >>  <wsdl:input message="impl:addMembersRequest" name="addMembersRequest" />
> >>  <wsdl:output message="impl:addMembersResponse"
> >>name="addMembersResponse" />
> >>  </wsdl:operation>
> >>- <wsdl:operation name="removeMember">
> >>  <wsdl:input message="impl:removeMemberRequest"
> >>name="removeMemberRequest" />
> >>  <wsdl:output message="impl:removeMemberResponse"
> >>name="removeMemberResponse" />
> >>  </wsdl:operation>
> >>- <wsdl:operation name="removeMembers">
> >>  <wsdl:input message="impl:removeMembersRequest"
> >>name="removeMembersRequest" />
> >>  <wsdl:output message="impl:removeMembersResponse"
> >>name="removeMembersResponse" />
> >>  </wsdl:operation>
> >>- <wsdl:operation name="removeGroup">
> >>  <wsdl:input message="impl:removeGroupRequest"
> >>name="removeGroupRequest" />
> >>  <wsdl:output message="impl:removeGroupResponse"
> >>name="removeGroupResponse" />
> >>  </wsdl:operation>
> >>  </wsdl:portType>
> >>- <wsdl:binding name="GroupsServiceServiceSoapBinding"
> >>type="impl:GroupsService">
> >>  <wsdlsoap:binding style="document"
> >>transport="http://schemas.xmlsoap.org/soap/http" />
> >>- <wsdl:operation name="createGroup">
> >>  <wsdlsoap:operation soapAction="" />
> >>- <wsdl:input name="createGroupRequest">
> >>  <wsdlsoap:body use="literal" />
> >>  </wsdl:input>
> >>- <wsdl:output name="createGroupResponse">
> >>  <wsdlsoap:body use="literal" />
> >>  </wsdl:output>
> >>  </wsdl:operation>
> >>- <wsdl:operation name="getMembers">
> >>  <wsdlsoap:operation soapAction="" />
> >>- <wsdl:input name="getMembersRequest">
> >>  <wsdlsoap:body use="literal" />
> >>  </wsdl:input>
> >>- <wsdl:output name="getMembersResponse">
> >>  <wsdlsoap:body use="literal" />
> >>  </wsdl:output>
> >>  </wsdl:operation>
> >>- <wsdl:operation name="createGroupWithMembers">
> >>  <wsdlsoap:operation soapAction="" />
> >>- <wsdl:input name="createGroupWithMembersRequest">
> >>  <wsdlsoap:body use="literal" />
> >>  </wsdl:input>
> >>- <wsdl:output name="createGroupWithMembersResponse">
> >>  <wsdlsoap:body use="literal" />
> >>  </wsdl:output>
> >>  </wsdl:operation>
> >>- <wsdl:operation name="addMember">
> >>  <wsdlsoap:operation soapAction="" />
> >>- <wsdl:input name="addMemberRequest">
> >>  <wsdlsoap:body use="literal" />
> >>  </wsdl:input>
> >>- <wsdl:output name="addMemberResponse">
> >>  <wsdlsoap:body use="literal" />
> >>  </wsdl:output>
> >>  </wsdl:operation>
> >>- <wsdl:operation name="addMembers">
> >>  <wsdlsoap:operation soapAction="" />
> >>- <wsdl:input name="addMembersRequest">
> >>  <wsdlsoap:body use="literal" />
> >>  </wsdl:input>
> >>- <wsdl:output name="addMembersResponse">
> >>  <wsdlsoap:body use="literal" />
> >>  </wsdl:output>
> >>  </wsdl:operation>
> >>- <wsdl:operation name="removeMember">
> >>  <wsdlsoap:operation soapAction="" />
> >>- <wsdl:input name="removeMemberRequest">
> >>  <wsdlsoap:body use="literal" />
> >>  </wsdl:input>
> >>- <wsdl:output name="removeMemberResponse">
> >>  <wsdlsoap:body use="literal" />
> >>  </wsdl:output>
> >>  </wsdl:operation>
> >>- <wsdl:operation name="removeMembers">
> >>  <wsdlsoap:operation soapAction="" />
> >>- <wsdl:input name="removeMembersRequest">
> >>  <wsdlsoap:body use="literal" />
> >>  </wsdl:input>
> >>- <wsdl:output name="removeMembersResponse">
> >>  <wsdlsoap:body use="literal" />
> >>  </wsdl:output>
> >>  </wsdl:operation>
> >>- <wsdl:operation name="removeGroup">
> >>  <wsdlsoap:operation soapAction="" />
> >>- <wsdl:input name="removeGroupRequest">
> >>  <wsdlsoap:body use="literal" />
> >>  </wsdl:input>
> >>- <wsdl:output name="removeGroupResponse">
> >>  <wsdlsoap:body use="literal" />
> >>  </wsdl:output>
> >>  </wsdl:operation>
> >>  </wsdl:binding>
> >>- <wsdl:service name="GroupsServiceService">
> >>- <wsdl:port binding="impl:GroupsServiceServiceSoapBinding"
> >>name="GroupsServiceService">
> >>  <wsdlsoap:address
> >>location="http://localhost:8080/osg-dev/services/GroupsServiceService" />
> >>  </wsdl:port>
> >>  </wsdl:service>
> >>  </wsdl:definitions>
> >>
>


--
Between the question and the answer lies free will

Re: document/literal wrapped... getting closer

Posted by "Nathaniel A. Johnson" <na...@indiana.edu>.
thanks anne!  i had a typo in my ant task and it must have defaulted
back to something i wasnt expecting.  its sending the right xml back as
a response now.  i'm getting a class cast without much to go on:

java.lang.ClassCastException
	at $Proxy0.getMembers(Unknown Source)
	at
edu.iu.uis.osg.client.GroupsClientImpl.getMembers(GroupsClientImpl.java:43)
	at edu.iu.uis.osg.TestGroupsClient.main(TestGroupsClient.java:48)

i can call the rest of the methods (the ones with int return values)

also, when trying to use wsdl2java, i get this error:
[axis-wsdl2java] org.xml.sax.SAXException: Fatal Error:
URI=http://localhost:8080/osg-dev/services Line=2: Illegal character at
end of document, &#x3c;.

i thought i saw a message about this earlier and i even tried the axix
1.2.1 code and get the same thing.  not sure if this is related to my
earlier problems, but will look into it

thanks for you help
nate

Anne Thomas Manes wrote:
> I see the problem. Your response is supposed to look like this:
> 
> <soapenv:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> wsu:Id="id-2183019">
> <getMembersResponse xmlns="http://services.osg.uis.iu.edu/GroupsService">
> <!-- Note no wrapper -->
> <getMembersReturn>jhopf</getMembersReturn>
> <getMembersReturn>thrclark</getMembersReturn>
> <getMembersReturn>jitrue</getMembersReturn>
> <getMembersReturn>bmcgough</getMembersReturn>
> <getMembersReturn>xqi</getMembersReturn>
> <getMembersReturn>songupta</getMembersReturn>
> <getMembersReturn>rkirkend</getMembersReturn>
> <getMembersReturn>pmckown</getMembersReturn>
> <getMembersReturn>temay</getMembersReturn>
> <getMembersReturn>natjohns</getMembersReturn>
> <getMembersReturn>jthomas</getMembersReturn>
> </getMembersResponse>
> </soapenv:Body>
> 
> but instead you have an extra <getMembersReturn> wrapper around your array:
> 
> <soapenv:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
> wsu:Id="id-2183019">
> <getMembersResponse xmlns="http://services.osg.uis.iu.edu/GroupsService">
> <getMembersReturn> <!-- This wrapper element doesn't belong-->
> <getMembersReturn>jhopf</getMembersReturn>
> <getMembersReturn>thrclark</getMembersReturn>
> <getMembersReturn>jitrue</getMembersReturn>
> <getMembersReturn>bmcgough</getMembersReturn>
> <getMembersReturn>xqi</getMembersReturn>
> <getMembersReturn>songupta</getMembersReturn>
> <getMembersReturn>rkirkend</getMembersReturn>
> <getMembersReturn>pmckown</getMembersReturn>
> <getMembersReturn>temay</getMembersReturn>
> <getMembersReturn>natjohns</getMembersReturn>
> <getMembersReturn>jthomas</getMembersReturn>
> </getMembersReturn>
> </getMembersResponse>
> </soapenv:Body>
> 
> Please log a bug report.
> 
> Anne
> 
> On 6/5/05, Nathaniel A. Johnson <na...@indiana.edu> wrote:
> 
>>hello everyone,
>>
>>this is a follow-up on the doc/literal posting/conversation with anne.
>>my client is now sending requests, and receiving responses from the
>>server.  the soap messages look good, but the client can't seem to
>>deserialize the responses from the server.  i also regenerated the wsdl
>>with pretty parameter names (to do that with the ant task, you just have
>>to supply the optional parameter implClass).  i have attached a file
>>that has a request, one with a response, and my pretty wsdl.
>>
>>if anyone has any idea for me, as to why doc/literal wrapped gives
>>deserialization errors at the client (not server), and rpc/encoded works
>>perfectly, i'd love to be enlightened.
>>
>>thanks!
>>nate
>>
>>here is the exception:
>>
>>(core.CollectionFactory              59  ) Using JDK 1.4 collections
>>(crypto.CryptoFactory                113 ) Using Crypto Engine
>>[org.apache.ws.security.components.crypto.Merlin]
>>(crypto.CryptoFactory                113 ) Using Crypto Engine
>>[org.apache.ws.security.components.crypto.Merlin]
>>(signature.Reference                 ?   ) Verification successful for
>>URI "#id-2183019"
>>(client.Call                         2450) Exception:
>>org.xml.sax.SAXException: SimpleDeserializer encountered a child
>>element, which is NOT expected, in something it was trying to deserialize.
>>        at
>>org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
>>        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:1140)
>>        at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
>>        at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
>>        at org.apache.axis.client.Call.invoke(Call.java:2448)
>>        at org.apache.axis.client.Call.invoke(Call.java:2347)
>>        at org.apache.axis.client.Call.invoke(Call.java:1804)
>>        at
>>org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.performJaxRpcCall(JaxRpcPortClientInterceptor.java:492)
>>        at
>>org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.invoke(JaxRpcPortClientInterceptor.java:451)
>>        at
>>org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
>>        at
>>org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
>>        at $Proxy0.getMembers(Unknown Source)
>>        at
>>edu.iu.uis.osg.client.GroupsClientImpl.getMembers(GroupsClientImpl.java:43)
>>        at edu.iu.uis.osg.TestGroupsClient.main(TestGroupsClient.java:46)
>>org.springframework.remoting.RemoteAccessException: Cannot access remote
>>service
>>[{http://services.osg.uis.iu.edu/GroupsService}GroupsServiceService];
>>nested exception is org.apache.axis.AxisFault: ; nested exception is:
>>        org.xml.sax.SAXException: SimpleDeserializer encountered a child
>>element, which is NOT expected, in something it was trying to deserialize.
>>AxisFault
>> faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>> faultSubcode:
>> faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a
>>child element, which is NOT expected, in something it was trying to
>>deserialize.
>> faultActor:
>> faultNode:
>> faultDetail:
>>        {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException:
>>SimpleDeserializer encountered a child element, which is NOT expected,
>>in something it was trying to deserialize.
>>        at
>>org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
>>        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:1140)
>>        at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
>>        at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
>>        at org.apache.axis.client.Call.invoke(Call.java:2448)
>>        at org.apache.axis.client.Call.invoke(Call.java:2347)
>>        at org.apache.axis.client.Call.invoke(Call.java:1804)
>>        at
>>org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.performJaxRpcCall(JaxRpcPortClientInterceptor.java:492)
>>        at
>>org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.invoke(JaxRpcPortClientInterceptor.java:451)
>>        at
>>org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
>>        at
>>org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
>>        at $Proxy0.getMembers(Unknown Source)
>>        at
>>edu.iu.uis.osg.client.GroupsClientImpl.getMembers(GroupsClientImpl.java:43)
>>        at edu.iu.uis.osg.TestGroupsClient.main(TestGroupsClient.java:46)
>>
>>        {http://xml.apache.org/axis/}hostname:bl-uits-naj
>>
>>org.xml.sax.SAXException: SimpleDeserializer encountered a child
>>element, which is NOT expected, in something it was trying to deserialize.
>>        at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
>>        at org.apache.axis.client.Call.invoke(Call.java:2451)
>>        at org.apache.axis.client.Call.invoke(Call.java:2347)
>>        at org.apache.axis.client.Call.invoke(Call.java:1804)
>>        at
>>org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.performJaxRpcCall(JaxRpcPortClientInterceptor.java:492)
>>        at
>>org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.invoke(JaxRpcPortClientInterceptor.java:451)
>>        at
>>org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
>>        at
>>org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
>>        at $Proxy0.getMembers(Unknown Source)
>>        at
>>edu.iu.uis.osg.client.GroupsClientImpl.getMembers(GroupsClientImpl.java:43)
>>        at edu.iu.uis.osg.TestGroupsClient.main(TestGroupsClient.java:46)
>>Caused by: org.xml.sax.SAXException: SimpleDeserializer encountered a
>>child element, which is NOT expected, in something it was trying to
>>deserialize.
>>        at
>>org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
>>        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:1140)
>>        at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
>>        at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
>>        at org.apache.axis.client.Call.invoke(Call.java:2448)
>>        ... 9 more
>>
>>
>>
>><?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:Header>
>><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soapenv:mustUnderstand="1">
>><wsse:BinarySecurityToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" wsu:Id="CertId-612575">
>>MIIBnjCCAQcCBEKeIDgwDQYJKoZIhvcNAQEEBQAwFjEUMBIGA1UEAxMLeHhhcHBjbGllbnQwHhcN
>>MDUwNjAxMjA1MzEyWhcNMDUwODMwMjA1MzEyWjAWMRQwEgYDVQQDEwt4eGFwcGNsaWVudDCBnzAN
>>BgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEApzheMPxZkjI8iIpPv08KIGI7hMWOzx47b2ym4VGH+b3N
>>L90rT/3Eghll2RhRaJIAWuh/A3ZeVog6B4vdH6rSLWPpOrKsC+R4ar1dHqvCNYdtC5A2CWA4l9ni
>>cLbFamviOKCxanbfFtCAvqwUJXdFDV0V7HgqKJRdErZlO1tl0FkCAwEAATANBgkqhkiG9w0BAQQF
>>AAOBgQBgH/EID1mBxU2gMmuycfw/Gx41wALz7VwuOFWBWQdj2btnm2fM4GVmLk9BlijL3QSLb3b9
>>GRboZJBkbUB91MfD6I0PZ5OyaeqP53sM1QX+7amWZ3Yzo7ZwViWCmFUXK4LZid/8Ue2mxB4mRKo+
>>lwow5/kMTf7n1LnIXjMPTf6hMg==
>></wsse:BinarySecurityToken><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
>><ds:SignedInfo>
>><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:CanonicalizationMethod>
>><ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></ds:SignatureMethod>
>><ds:Reference URI="#id-17777129">
>><ds:Transforms>
>><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:Transform>
>></ds:Transforms>
>><ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></ds:DigestMethod>
>><ds:DigestValue>8RNu7ptPVN2LtjEg89Dm8QF0YPg=</ds:DigestValue>
>></ds:Reference>
>></ds:SignedInfo>
>><ds:SignatureValue>
>>JP7ZSv85gX3oSBmH2sWq4Vb2OzKyCzVwuxJH5RDkfR+AYBwJV31l2Jk504QjZnT3LrEy5ITXXFRW
>>bL6Zj1Z3340Z9hOQvLDKulv5OiEy+m+o+5wQnT/30lDvjVhI7SicjQQ869hbHuRG4PV3soWaJSJq
>>/JOW9yBa+KgzIxf4t5w=
>></ds:SignatureValue>
>><ds:KeyInfo Id="KeyId-1744155">
>><wsse:SecurityTokenReference xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="STRId-28523022"><wsse:Reference URI="#CertId-612575" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"></wsse:Reference></wsse:SecurityTokenReference>
>></ds:KeyInfo>
>></ds:Signature>
>></wsse:Security>
>></soapenv:Header>
>><soapenv:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="id-17777129">
>><getMembers xmlns="http://services.osg.uis.iu.edu/GroupsService">
>><group>bl-uits-onestart-admin</group>
>></getMembers>
>></soapenv:Body>
>></soapenv:Envelope>
>>
>>
>><?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:Header>
>><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soapenv:mustUnderstand="1">
>><wsse:BinarySecurityToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" wsu:Id="CertId-1360796">
>>MIIBzjCCATcCBEKgt7EwDQYJKoZIhvcNAQEEBQAwLjEsMCoGA1UEAxMjT25lU3RhcnQgU2hhcmVk
>>IFNlcnZpY2VzIChEZXYvVGVzdCkwHhcNMDUwNjAzMjAwNDAxWhcNMDUwOTAxMjAwNDAxWjAuMSww
>>KgYDVQQDEyNPbmVTdGFydCBTaGFyZWQgU2VydmljZXMgKERldi9UZXN0KTCBnzANBgkqhkiG9w0B
>>AQEFAAOBjQAwgYkCgYEA0qMOjOtyNFEB2hABFUVEuN8whXkHZNRcumHEPBRtCw7WV7UEMNMPp+UG
>>PUKKu7czeFMgUujEk5EhlwkwtLqsC6LiHjedY4JAHkjguHKPkK4amrdlS+DlvKJw1LK+TMCIZSW3
>>T0XMQG+82ohIhK2YP3HKeCkxdndc3zdwg/t2RYsCAwEAATANBgkqhkiG9w0BAQQFAAOBgQAkZSMx
>>JvyGn/orAztBS6olTD22gmfJZMU7giHD5cZtbkXlO8a/bINznZT92bjKc7eQDASxL25LSn597gqp
>>MGv9k+Ff+VtBf1nlqjar4HlvvdrBeVMdCeKRchkFaXhoguXEMW51Jc0v5l1sjFvwEW1QTUVwejFw
>>kSPckpv5s+J8AA==
>></wsse:BinarySecurityToken>
>><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
>><ds:SignedInfo>
>><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:CanonicalizationMethod>
>><ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></ds:SignatureMethod>
>><ds:Reference URI="#id-2183019">
>><ds:Transforms>
>><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:Transform>
>></ds:Transforms>
>><ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></ds:DigestMethod>
>><ds:DigestValue>obwCs44EWxoZkfSHMJ+fBKSRGdg=</ds:DigestValue>
>></ds:Reference>
>></ds:SignedInfo>
>><ds:SignatureValue>
>>nswhKVmi48TjYqNEj0GOVMZ5B01ezQa9at8GxxbGVALMN9LRPzHrja0KPFVPG4ZUX1e6Co4Cb14+
>>UJYQxv3/L+3tx7i9UCbzilDbwRX2SlF3xNMs+DRNC88vmeWsvD5rwVokNUtZDRxbBxTN0I5RYmpM
>>Ua033BCP4HCtdkBfFN8=
>></ds:SignatureValue>
>><ds:KeyInfo Id="KeyId-9629061">
>><wsse:SecurityTokenReference xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="STRId-30149135"><wsse:Reference URI="#CertId-1360796" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"></wsse:Reference></wsse:SecurityTokenReference>
>></ds:KeyInfo>
>></ds:Signature>
>></wsse:Security>
>></soapenv:Header>
>><soapenv:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="id-2183019">
>><getMembersResponse xmlns="http://services.osg.uis.iu.edu/GroupsService">
>><getMembersReturn>
>><getMembersReturn>jhopf</getMembersReturn>
>><getMembersReturn>thrclark</getMembersReturn>
>><getMembersReturn>jitrue</getMembersReturn>
>><getMembersReturn>bmcgough</getMembersReturn>
>><getMembersReturn>xqi</getMembersReturn>
>><getMembersReturn>songupta</getMembersReturn>
>><getMembersReturn>rkirkend</getMembersReturn>
>><getMembersReturn>pmckown</getMembersReturn>
>><getMembersReturn>temay</getMembersReturn>
>><getMembersReturn>natjohns</getMembersReturn>
>><getMembersReturn>jthomas</getMembersReturn>
>></getMembersReturn>
>></getMembersResponse>
>></soapenv:Body>
>></soapenv:Envelope>
>>
>>
>>  <?xml version="1.0" encoding="UTF-8" ?>
>>  <wsdl:definitions targetNamespace="http://services.osg.uis.iu.edu/GroupsService" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://services.osg.uis.iu.edu/GroupsService" xmlns:intf="http://services.osg.uis.iu.edu/GroupsService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>>  <!--
>>  WSDL created by Apache Axis version: 1.2
>>  Built on May 03, 2005 (02:20:24 EDT)
>>  -->
>>  <wsdl:types>
>>  <schema elementFormDefault="qualified" targetNamespace="http://services.osg.uis.iu.edu/GroupsService" xmlns="http://www.w3.org/2001/XMLSchema">
>>  <element name="createGroup">
>>  <complexType>
>>  <sequence>
>>  <element name="group" type="xsd:string" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>  <element name="createGroupResponse">
>>  <complexType>
>>  <sequence>
>>  <element name="createGroupReturn" type="xsd:int" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>  <element name="getMembers">
>>  <complexType>
>>  <sequence>
>>  <element name="group" type="xsd:string" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>  <element name="getMembersResponse">
>>  <complexType>
>>  <sequence>
>>  <element maxOccurs="unbounded" name="getMembersReturn" type="xsd:string" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>  <element name="createGroupWithMembers">
>>  <complexType>
>>  <sequence>
>>  <element name="group" type="xsd:string" />
>>  <element maxOccurs="unbounded" name="members" type="xsd:string" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>  <element name="createGroupWithMembersResponse">
>>  <complexType>
>>  <sequence>
>>  <element name="createGroupWithMembersReturn" type="xsd:int" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>  <element name="addMember">
>>  <complexType>
>>  <sequence>
>>  <element name="group" type="xsd:string" />
>>  <element name="member" type="xsd:string" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>  <element name="addMemberResponse">
>>  <complexType>
>>  <sequence>
>>  <element name="addMemberReturn" type="xsd:int" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>  <element name="addMembers">
>>  <complexType>
>>  <sequence>
>>  <element name="group" type="xsd:string" />
>>  <element maxOccurs="unbounded" name="members" type="xsd:string" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>  <element name="addMembersResponse">
>>  <complexType>
>>  <sequence>
>>  <element name="addMembersReturn" type="xsd:int" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>  <element name="removeMember">
>>  <complexType>
>>  <sequence>
>>  <element name="group" type="xsd:string" />
>>  <element name="member" type="xsd:string" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>  <element name="removeMemberResponse">
>>  <complexType>
>>  <sequence>
>>  <element name="removeMemberReturn" type="xsd:int" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>  <element name="removeMembers">
>>  <complexType>
>>  <sequence>
>>  <element name="group" type="xsd:string" />
>>  <element maxOccurs="unbounded" name="members" type="xsd:string" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>  <element name="removeMembersResponse">
>>  <complexType>
>>  <sequence>
>>  <element name="removeMembersReturn" type="xsd:int" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>  <element name="removeGroup">
>>  <complexType>
>>  <sequence>
>>  <element name="group" type="xsd:string" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>  <element name="removeGroupResponse">
>>  <complexType>
>>  <sequence>
>>  <element name="removeGroupReturn" type="xsd:int" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>  </schema>
>>  </wsdl:types>
>>  <wsdl:message name="createGroupWithMembersResponse">
>>  <wsdl:part element="impl:createGroupWithMembersResponse" name="parameters" />
>>  </wsdl:message>
>>  <wsdl:message name="createGroupWithMembersRequest">
>>  <wsdl:part element="impl:createGroupWithMembers" name="parameters" />
>>  </wsdl:message>
>>  <wsdl:message name="removeMembersResponse">
>>  <wsdl:part element="impl:removeMembersResponse" name="parameters" />
>>  </wsdl:message>
>>  <wsdl:message name="removeMemberRequest">
>>  <wsdl:part element="impl:removeMember" name="parameters" />
>>  </wsdl:message>
>>  <wsdl:message name="removeMemberResponse">
>>  <wsdl:part element="impl:removeMemberResponse" name="parameters" />
>>  </wsdl:message>
>>  <wsdl:message name="getMembersResponse">
>>  <wsdl:part element="impl:getMembersResponse" name="parameters" />
>>  </wsdl:message>
>>  <wsdl:message name="addMembersResponse">
>>  <wsdl:part element="impl:addMembersResponse" name="parameters" />
>>  </wsdl:message>
>>  <wsdl:message name="removeGroupRequest">
>>  <wsdl:part element="impl:removeGroup" name="parameters" />
>>  </wsdl:message>
>>  <wsdl:message name="createGroupRequest">
>>  <wsdl:part element="impl:createGroup" name="parameters" />
>>  </wsdl:message>
>>  <wsdl:message name="addMemberResponse">
>>  <wsdl:part element="impl:addMemberResponse" name="parameters" />
>>  </wsdl:message>
>>  <wsdl:message name="addMemberRequest">
>>  <wsdl:part element="impl:addMember" name="parameters" />
>>  </wsdl:message>
>>  <wsdl:message name="createGroupResponse">
>>  <wsdl:part element="impl:createGroupResponse" name="parameters" />
>>  </wsdl:message>
>>  <wsdl:message name="getMembersRequest">
>>  <wsdl:part element="impl:getMembers" name="parameters" />
>>  </wsdl:message>
>>  <wsdl:message name="removeMembersRequest">
>>  <wsdl:part element="impl:removeMembers" name="parameters" />
>>  </wsdl:message>
>>  <wsdl:message name="removeGroupResponse">
>>  <wsdl:part element="impl:removeGroupResponse" name="parameters" />
>>  </wsdl:message>
>>  <wsdl:message name="addMembersRequest">
>>  <wsdl:part element="impl:addMembers" name="parameters" />
>>  </wsdl:message>
>>  <wsdl:portType name="GroupsService">
>>  <wsdl:operation name="createGroup">
>>  <wsdl:input message="impl:createGroupRequest" name="createGroupRequest" />
>>  <wsdl:output message="impl:createGroupResponse" name="createGroupResponse" />
>>  </wsdl:operation>
>>  <wsdl:operation name="getMembers">
>>  <wsdl:input message="impl:getMembersRequest" name="getMembersRequest" />
>>  <wsdl:output message="impl:getMembersResponse" name="getMembersResponse" />
>>  </wsdl:operation>
>>  <wsdl:operation name="createGroupWithMembers">
>>  <wsdl:input message="impl:createGroupWithMembersRequest" name="createGroupWithMembersRequest" />
>>  <wsdl:output message="impl:createGroupWithMembersResponse" name="createGroupWithMembersResponse" />
>>  </wsdl:operation>
>>  <wsdl:operation name="addMember">
>>  <wsdl:input message="impl:addMemberRequest" name="addMemberRequest" />
>>  <wsdl:output message="impl:addMemberResponse" name="addMemberResponse" />
>>  </wsdl:operation>
>>  <wsdl:operation name="addMembers">
>>  <wsdl:input message="impl:addMembersRequest" name="addMembersRequest" />
>>  <wsdl:output message="impl:addMembersResponse" name="addMembersResponse" />
>>  </wsdl:operation>
>>  <wsdl:operation name="removeMember">
>>  <wsdl:input message="impl:removeMemberRequest" name="removeMemberRequest" />
>>  <wsdl:output message="impl:removeMemberResponse" name="removeMemberResponse" />
>>  </wsdl:operation>
>>  <wsdl:operation name="removeMembers">
>>  <wsdl:input message="impl:removeMembersRequest" name="removeMembersRequest" />
>>  <wsdl:output message="impl:removeMembersResponse" name="removeMembersResponse" />
>>  </wsdl:operation>
>>  <wsdl:operation name="removeGroup">
>>  <wsdl:input message="impl:removeGroupRequest" name="removeGroupRequest" />
>>  <wsdl:output message="impl:removeGroupResponse" name="removeGroupResponse" />
>>  </wsdl:operation>
>>  </wsdl:portType>
>>  <wsdl:binding name="GroupsServiceServiceSoapBinding" type="impl:GroupsService">
>>  <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
>>  <wsdl:operation name="createGroup">
>>  <wsdlsoap:operation soapAction="" />
>>  <wsdl:input name="createGroupRequest">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:input>
>>  <wsdl:output name="createGroupResponse">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:output>
>>  </wsdl:operation>
>>  <wsdl:operation name="getMembers">
>>  <wsdlsoap:operation soapAction="" />
>>  <wsdl:input name="getMembersRequest">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:input>
>>  <wsdl:output name="getMembersResponse">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:output>
>>  </wsdl:operation>
>>  <wsdl:operation name="createGroupWithMembers">
>>  <wsdlsoap:operation soapAction="" />
>>  <wsdl:input name="createGroupWithMembersRequest">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:input>
>>  <wsdl:output name="createGroupWithMembersResponse">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:output>
>>  </wsdl:operation>
>>  <wsdl:operation name="addMember">
>>  <wsdlsoap:operation soapAction="" />
>>  <wsdl:input name="addMemberRequest">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:input>
>>  <wsdl:output name="addMemberResponse">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:output>
>>  </wsdl:operation>
>>  <wsdl:operation name="addMembers">
>>  <wsdlsoap:operation soapAction="" />
>>  <wsdl:input name="addMembersRequest">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:input>
>>  <wsdl:output name="addMembersResponse">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:output>
>>  </wsdl:operation>
>>  <wsdl:operation name="removeMember">
>>  <wsdlsoap:operation soapAction="" />
>>  <wsdl:input name="removeMemberRequest">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:input>
>>  <wsdl:output name="removeMemberResponse">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:output>
>>  </wsdl:operation>
>>  <wsdl:operation name="removeMembers">
>>  <wsdlsoap:operation soapAction="" />
>>  <wsdl:input name="removeMembersRequest">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:input>
>>  <wsdl:output name="removeMembersResponse">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:output>
>>  </wsdl:operation>
>>  <wsdl:operation name="removeGroup">
>>  <wsdlsoap:operation soapAction="" />
>>  <wsdl:input name="removeGroupRequest">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:input>
>>  <wsdl:output name="removeGroupResponse">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:output>
>>  </wsdl:operation>
>>  </wsdl:binding>
>>  <wsdl:service name="GroupsServiceService">
>>  <wsdl:port binding="impl:GroupsServiceServiceSoapBinding" name="GroupsServiceService">
>>  <wsdlsoap:address location="http://localhost:8080/osg-dev/services/GroupsServiceService" />
>>  </wsdl:port>
>>  </wsdl:service>
>>  </wsdl:definitions>
>>
>>
>>

Re: document/literal wrapped... getting closer

Posted by Anne Thomas Manes <at...@gmail.com>.
I see the problem. Your response is supposed to look like this:

<soapenv:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="id-2183019">
<getMembersResponse xmlns="http://services.osg.uis.iu.edu/GroupsService">
<!-- Note no wrapper -->
<getMembersReturn>jhopf</getMembersReturn>
<getMembersReturn>thrclark</getMembersReturn>
<getMembersReturn>jitrue</getMembersReturn>
<getMembersReturn>bmcgough</getMembersReturn>
<getMembersReturn>xqi</getMembersReturn>
<getMembersReturn>songupta</getMembersReturn>
<getMembersReturn>rkirkend</getMembersReturn>
<getMembersReturn>pmckown</getMembersReturn>
<getMembersReturn>temay</getMembersReturn>
<getMembersReturn>natjohns</getMembersReturn>
<getMembersReturn>jthomas</getMembersReturn>
</getMembersResponse>
</soapenv:Body>

but instead you have an extra <getMembersReturn> wrapper around your array:

<soapenv:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="id-2183019">
<getMembersResponse xmlns="http://services.osg.uis.iu.edu/GroupsService">
<getMembersReturn> <!-- This wrapper element doesn't belong-->
<getMembersReturn>jhopf</getMembersReturn>
<getMembersReturn>thrclark</getMembersReturn>
<getMembersReturn>jitrue</getMembersReturn>
<getMembersReturn>bmcgough</getMembersReturn>
<getMembersReturn>xqi</getMembersReturn>
<getMembersReturn>songupta</getMembersReturn>
<getMembersReturn>rkirkend</getMembersReturn>
<getMembersReturn>pmckown</getMembersReturn>
<getMembersReturn>temay</getMembersReturn>
<getMembersReturn>natjohns</getMembersReturn>
<getMembersReturn>jthomas</getMembersReturn>
</getMembersReturn>
</getMembersResponse>
</soapenv:Body>

Please log a bug report.

Anne

On 6/5/05, Nathaniel A. Johnson <na...@indiana.edu> wrote:
> hello everyone,
> 
> this is a follow-up on the doc/literal posting/conversation with anne.
> my client is now sending requests, and receiving responses from the
> server.  the soap messages look good, but the client can't seem to
> deserialize the responses from the server.  i also regenerated the wsdl
> with pretty parameter names (to do that with the ant task, you just have
> to supply the optional parameter implClass).  i have attached a file
> that has a request, one with a response, and my pretty wsdl.
> 
> if anyone has any idea for me, as to why doc/literal wrapped gives
> deserialization errors at the client (not server), and rpc/encoded works
> perfectly, i'd love to be enlightened.
> 
> thanks!
> nate
> 
> here is the exception:
> 
> (core.CollectionFactory              59  ) Using JDK 1.4 collections
> (crypto.CryptoFactory                113 ) Using Crypto Engine
> [org.apache.ws.security.components.crypto.Merlin]
> (crypto.CryptoFactory                113 ) Using Crypto Engine
> [org.apache.ws.security.components.crypto.Merlin]
> (signature.Reference                 ?   ) Verification successful for
> URI "#id-2183019"
> (client.Call                         2450) Exception:
> org.xml.sax.SAXException: SimpleDeserializer encountered a child
> element, which is NOT expected, in something it was trying to deserialize.
>         at
> org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
>         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:1140)
>         at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
>         at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
>         at org.apache.axis.client.Call.invoke(Call.java:2448)
>         at org.apache.axis.client.Call.invoke(Call.java:2347)
>         at org.apache.axis.client.Call.invoke(Call.java:1804)
>         at
> org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.performJaxRpcCall(JaxRpcPortClientInterceptor.java:492)
>         at
> org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.invoke(JaxRpcPortClientInterceptor.java:451)
>         at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
>         at
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
>         at $Proxy0.getMembers(Unknown Source)
>         at
> edu.iu.uis.osg.client.GroupsClientImpl.getMembers(GroupsClientImpl.java:43)
>         at edu.iu.uis.osg.TestGroupsClient.main(TestGroupsClient.java:46)
> org.springframework.remoting.RemoteAccessException: Cannot access remote
> service
> [{http://services.osg.uis.iu.edu/GroupsService}GroupsServiceService];
> nested exception is org.apache.axis.AxisFault: ; nested exception is:
>         org.xml.sax.SAXException: SimpleDeserializer encountered a child
> element, which is NOT expected, in something it was trying to deserialize.
> AxisFault
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>  faultSubcode:
>  faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a
> child element, which is NOT expected, in something it was trying to
> deserialize.
>  faultActor:
>  faultNode:
>  faultDetail:
>         {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException:
> SimpleDeserializer encountered a child element, which is NOT expected,
> in something it was trying to deserialize.
>         at
> org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
>         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:1140)
>         at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
>         at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
>         at org.apache.axis.client.Call.invoke(Call.java:2448)
>         at org.apache.axis.client.Call.invoke(Call.java:2347)
>         at org.apache.axis.client.Call.invoke(Call.java:1804)
>         at
> org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.performJaxRpcCall(JaxRpcPortClientInterceptor.java:492)
>         at
> org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.invoke(JaxRpcPortClientInterceptor.java:451)
>         at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
>         at
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
>         at $Proxy0.getMembers(Unknown Source)
>         at
> edu.iu.uis.osg.client.GroupsClientImpl.getMembers(GroupsClientImpl.java:43)
>         at edu.iu.uis.osg.TestGroupsClient.main(TestGroupsClient.java:46)
> 
>         {http://xml.apache.org/axis/}hostname:bl-uits-naj
> 
> org.xml.sax.SAXException: SimpleDeserializer encountered a child
> element, which is NOT expected, in something it was trying to deserialize.
>         at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
>         at org.apache.axis.client.Call.invoke(Call.java:2451)
>         at org.apache.axis.client.Call.invoke(Call.java:2347)
>         at org.apache.axis.client.Call.invoke(Call.java:1804)
>         at
> org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.performJaxRpcCall(JaxRpcPortClientInterceptor.java:492)
>         at
> org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.invoke(JaxRpcPortClientInterceptor.java:451)
>         at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
>         at
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
>         at $Proxy0.getMembers(Unknown Source)
>         at
> edu.iu.uis.osg.client.GroupsClientImpl.getMembers(GroupsClientImpl.java:43)
>         at edu.iu.uis.osg.TestGroupsClient.main(TestGroupsClient.java:46)
> Caused by: org.xml.sax.SAXException: SimpleDeserializer encountered a
> child element, which is NOT expected, in something it was trying to
> deserialize.
>         at
> org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
>         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:1140)
>         at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
>         at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
>         at org.apache.axis.client.Call.invoke(Call.java:2448)
>         ... 9 more
> 
> 
> 
> <?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:Header>
> <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soapenv:mustUnderstand="1">
> <wsse:BinarySecurityToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" wsu:Id="CertId-612575">
> MIIBnjCCAQcCBEKeIDgwDQYJKoZIhvcNAQEEBQAwFjEUMBIGA1UEAxMLeHhhcHBjbGllbnQwHhcN
> MDUwNjAxMjA1MzEyWhcNMDUwODMwMjA1MzEyWjAWMRQwEgYDVQQDEwt4eGFwcGNsaWVudDCBnzAN
> BgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEApzheMPxZkjI8iIpPv08KIGI7hMWOzx47b2ym4VGH+b3N
> L90rT/3Eghll2RhRaJIAWuh/A3ZeVog6B4vdH6rSLWPpOrKsC+R4ar1dHqvCNYdtC5A2CWA4l9ni
> cLbFamviOKCxanbfFtCAvqwUJXdFDV0V7HgqKJRdErZlO1tl0FkCAwEAATANBgkqhkiG9w0BAQQF
> AAOBgQBgH/EID1mBxU2gMmuycfw/Gx41wALz7VwuOFWBWQdj2btnm2fM4GVmLk9BlijL3QSLb3b9
> GRboZJBkbUB91MfD6I0PZ5OyaeqP53sM1QX+7amWZ3Yzo7ZwViWCmFUXK4LZid/8Ue2mxB4mRKo+
> lwow5/kMTf7n1LnIXjMPTf6hMg==
> </wsse:BinarySecurityToken><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
> <ds:SignedInfo>
> <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:CanonicalizationMethod>
> <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></ds:SignatureMethod>
> <ds:Reference URI="#id-17777129">
> <ds:Transforms>
> <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:Transform>
> </ds:Transforms>
> <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></ds:DigestMethod>
> <ds:DigestValue>8RNu7ptPVN2LtjEg89Dm8QF0YPg=</ds:DigestValue>
> </ds:Reference>
> </ds:SignedInfo>
> <ds:SignatureValue>
> JP7ZSv85gX3oSBmH2sWq4Vb2OzKyCzVwuxJH5RDkfR+AYBwJV31l2Jk504QjZnT3LrEy5ITXXFRW
> bL6Zj1Z3340Z9hOQvLDKulv5OiEy+m+o+5wQnT/30lDvjVhI7SicjQQ869hbHuRG4PV3soWaJSJq
> /JOW9yBa+KgzIxf4t5w=
> </ds:SignatureValue>
> <ds:KeyInfo Id="KeyId-1744155">
> <wsse:SecurityTokenReference xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="STRId-28523022"><wsse:Reference URI="#CertId-612575" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"></wsse:Reference></wsse:SecurityTokenReference>
> </ds:KeyInfo>
> </ds:Signature>
> </wsse:Security>
> </soapenv:Header>
> <soapenv:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="id-17777129">
> <getMembers xmlns="http://services.osg.uis.iu.edu/GroupsService">
> <group>bl-uits-onestart-admin</group>
> </getMembers>
> </soapenv:Body>
> </soapenv:Envelope>
> 
> 
> <?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:Header>
> <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soapenv:mustUnderstand="1">
> <wsse:BinarySecurityToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" wsu:Id="CertId-1360796">
> MIIBzjCCATcCBEKgt7EwDQYJKoZIhvcNAQEEBQAwLjEsMCoGA1UEAxMjT25lU3RhcnQgU2hhcmVk
> IFNlcnZpY2VzIChEZXYvVGVzdCkwHhcNMDUwNjAzMjAwNDAxWhcNMDUwOTAxMjAwNDAxWjAuMSww
> KgYDVQQDEyNPbmVTdGFydCBTaGFyZWQgU2VydmljZXMgKERldi9UZXN0KTCBnzANBgkqhkiG9w0B
> AQEFAAOBjQAwgYkCgYEA0qMOjOtyNFEB2hABFUVEuN8whXkHZNRcumHEPBRtCw7WV7UEMNMPp+UG
> PUKKu7czeFMgUujEk5EhlwkwtLqsC6LiHjedY4JAHkjguHKPkK4amrdlS+DlvKJw1LK+TMCIZSW3
> T0XMQG+82ohIhK2YP3HKeCkxdndc3zdwg/t2RYsCAwEAATANBgkqhkiG9w0BAQQFAAOBgQAkZSMx
> JvyGn/orAztBS6olTD22gmfJZMU7giHD5cZtbkXlO8a/bINznZT92bjKc7eQDASxL25LSn597gqp
> MGv9k+Ff+VtBf1nlqjar4HlvvdrBeVMdCeKRchkFaXhoguXEMW51Jc0v5l1sjFvwEW1QTUVwejFw
> kSPckpv5s+J8AA==
> </wsse:BinarySecurityToken>
> <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
> <ds:SignedInfo>
> <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:CanonicalizationMethod>
> <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></ds:SignatureMethod>
> <ds:Reference URI="#id-2183019">
> <ds:Transforms>
> <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:Transform>
> </ds:Transforms>
> <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></ds:DigestMethod>
> <ds:DigestValue>obwCs44EWxoZkfSHMJ+fBKSRGdg=</ds:DigestValue>
> </ds:Reference>
> </ds:SignedInfo>
> <ds:SignatureValue>
> nswhKVmi48TjYqNEj0GOVMZ5B01ezQa9at8GxxbGVALMN9LRPzHrja0KPFVPG4ZUX1e6Co4Cb14+
> UJYQxv3/L+3tx7i9UCbzilDbwRX2SlF3xNMs+DRNC88vmeWsvD5rwVokNUtZDRxbBxTN0I5RYmpM
> Ua033BCP4HCtdkBfFN8=
> </ds:SignatureValue>
> <ds:KeyInfo Id="KeyId-9629061">
> <wsse:SecurityTokenReference xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="STRId-30149135"><wsse:Reference URI="#CertId-1360796" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"></wsse:Reference></wsse:SecurityTokenReference>
> </ds:KeyInfo>
> </ds:Signature>
> </wsse:Security>
> </soapenv:Header>
> <soapenv:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="id-2183019">
> <getMembersResponse xmlns="http://services.osg.uis.iu.edu/GroupsService">
> <getMembersReturn>
> <getMembersReturn>jhopf</getMembersReturn>
> <getMembersReturn>thrclark</getMembersReturn>
> <getMembersReturn>jitrue</getMembersReturn>
> <getMembersReturn>bmcgough</getMembersReturn>
> <getMembersReturn>xqi</getMembersReturn>
> <getMembersReturn>songupta</getMembersReturn>
> <getMembersReturn>rkirkend</getMembersReturn>
> <getMembersReturn>pmckown</getMembersReturn>
> <getMembersReturn>temay</getMembersReturn>
> <getMembersReturn>natjohns</getMembersReturn>
> <getMembersReturn>jthomas</getMembersReturn>
> </getMembersReturn>
> </getMembersResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> 
> 
>   <?xml version="1.0" encoding="UTF-8" ?>
>   <wsdl:definitions targetNamespace="http://services.osg.uis.iu.edu/GroupsService" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://services.osg.uis.iu.edu/GroupsService" xmlns:intf="http://services.osg.uis.iu.edu/GroupsService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>   <!--
>   WSDL created by Apache Axis version: 1.2
>   Built on May 03, 2005 (02:20:24 EDT)
>   -->
>   <wsdl:types>
>   <schema elementFormDefault="qualified" targetNamespace="http://services.osg.uis.iu.edu/GroupsService" xmlns="http://www.w3.org/2001/XMLSchema">
>   <element name="createGroup">
>   <complexType>
>   <sequence>
>   <element name="group" type="xsd:string" />
>   </sequence>
>   </complexType>
>   </element>
>   <element name="createGroupResponse">
>   <complexType>
>   <sequence>
>   <element name="createGroupReturn" type="xsd:int" />
>   </sequence>
>   </complexType>
>   </element>
>   <element name="getMembers">
>   <complexType>
>   <sequence>
>   <element name="group" type="xsd:string" />
>   </sequence>
>   </complexType>
>   </element>
>   <element name="getMembersResponse">
>   <complexType>
>   <sequence>
>   <element maxOccurs="unbounded" name="getMembersReturn" type="xsd:string" />
>   </sequence>
>   </complexType>
>   </element>
>   <element name="createGroupWithMembers">
>   <complexType>
>   <sequence>
>   <element name="group" type="xsd:string" />
>   <element maxOccurs="unbounded" name="members" type="xsd:string" />
>   </sequence>
>   </complexType>
>   </element>
>   <element name="createGroupWithMembersResponse">
>   <complexType>
>   <sequence>
>   <element name="createGroupWithMembersReturn" type="xsd:int" />
>   </sequence>
>   </complexType>
>   </element>
>   <element name="addMember">
>   <complexType>
>   <sequence>
>   <element name="group" type="xsd:string" />
>   <element name="member" type="xsd:string" />
>   </sequence>
>   </complexType>
>   </element>
>   <element name="addMemberResponse">
>   <complexType>
>   <sequence>
>   <element name="addMemberReturn" type="xsd:int" />
>   </sequence>
>   </complexType>
>   </element>
>   <element name="addMembers">
>   <complexType>
>   <sequence>
>   <element name="group" type="xsd:string" />
>   <element maxOccurs="unbounded" name="members" type="xsd:string" />
>   </sequence>
>   </complexType>
>   </element>
>   <element name="addMembersResponse">
>   <complexType>
>   <sequence>
>   <element name="addMembersReturn" type="xsd:int" />
>   </sequence>
>   </complexType>
>   </element>
>   <element name="removeMember">
>   <complexType>
>   <sequence>
>   <element name="group" type="xsd:string" />
>   <element name="member" type="xsd:string" />
>   </sequence>
>   </complexType>
>   </element>
>   <element name="removeMemberResponse">
>   <complexType>
>   <sequence>
>   <element name="removeMemberReturn" type="xsd:int" />
>   </sequence>
>   </complexType>
>   </element>
>   <element name="removeMembers">
>   <complexType>
>   <sequence>
>   <element name="group" type="xsd:string" />
>   <element maxOccurs="unbounded" name="members" type="xsd:string" />
>   </sequence>
>   </complexType>
>   </element>
>   <element name="removeMembersResponse">
>   <complexType>
>   <sequence>
>   <element name="removeMembersReturn" type="xsd:int" />
>   </sequence>
>   </complexType>
>   </element>
>   <element name="removeGroup">
>   <complexType>
>   <sequence>
>   <element name="group" type="xsd:string" />
>   </sequence>
>   </complexType>
>   </element>
>   <element name="removeGroupResponse">
>   <complexType>
>   <sequence>
>   <element name="removeGroupReturn" type="xsd:int" />
>   </sequence>
>   </complexType>
>   </element>
>   </schema>
>   </wsdl:types>
>   <wsdl:message name="createGroupWithMembersResponse">
>   <wsdl:part element="impl:createGroupWithMembersResponse" name="parameters" />
>   </wsdl:message>
>   <wsdl:message name="createGroupWithMembersRequest">
>   <wsdl:part element="impl:createGroupWithMembers" name="parameters" />
>   </wsdl:message>
>   <wsdl:message name="removeMembersResponse">
>   <wsdl:part element="impl:removeMembersResponse" name="parameters" />
>   </wsdl:message>
>   <wsdl:message name="removeMemberRequest">
>   <wsdl:part element="impl:removeMember" name="parameters" />
>   </wsdl:message>
>   <wsdl:message name="removeMemberResponse">
>   <wsdl:part element="impl:removeMemberResponse" name="parameters" />
>   </wsdl:message>
>   <wsdl:message name="getMembersResponse">
>   <wsdl:part element="impl:getMembersResponse" name="parameters" />
>   </wsdl:message>
>   <wsdl:message name="addMembersResponse">
>   <wsdl:part element="impl:addMembersResponse" name="parameters" />
>   </wsdl:message>
>   <wsdl:message name="removeGroupRequest">
>   <wsdl:part element="impl:removeGroup" name="parameters" />
>   </wsdl:message>
>   <wsdl:message name="createGroupRequest">
>   <wsdl:part element="impl:createGroup" name="parameters" />
>   </wsdl:message>
>   <wsdl:message name="addMemberResponse">
>   <wsdl:part element="impl:addMemberResponse" name="parameters" />
>   </wsdl:message>
>   <wsdl:message name="addMemberRequest">
>   <wsdl:part element="impl:addMember" name="parameters" />
>   </wsdl:message>
>   <wsdl:message name="createGroupResponse">
>   <wsdl:part element="impl:createGroupResponse" name="parameters" />
>   </wsdl:message>
>   <wsdl:message name="getMembersRequest">
>   <wsdl:part element="impl:getMembers" name="parameters" />
>   </wsdl:message>
>   <wsdl:message name="removeMembersRequest">
>   <wsdl:part element="impl:removeMembers" name="parameters" />
>   </wsdl:message>
>   <wsdl:message name="removeGroupResponse">
>   <wsdl:part element="impl:removeGroupResponse" name="parameters" />
>   </wsdl:message>
>   <wsdl:message name="addMembersRequest">
>   <wsdl:part element="impl:addMembers" name="parameters" />
>   </wsdl:message>
>   <wsdl:portType name="GroupsService">
>   <wsdl:operation name="createGroup">
>   <wsdl:input message="impl:createGroupRequest" name="createGroupRequest" />
>   <wsdl:output message="impl:createGroupResponse" name="createGroupResponse" />
>   </wsdl:operation>
>   <wsdl:operation name="getMembers">
>   <wsdl:input message="impl:getMembersRequest" name="getMembersRequest" />
>   <wsdl:output message="impl:getMembersResponse" name="getMembersResponse" />
>   </wsdl:operation>
>   <wsdl:operation name="createGroupWithMembers">
>   <wsdl:input message="impl:createGroupWithMembersRequest" name="createGroupWithMembersRequest" />
>   <wsdl:output message="impl:createGroupWithMembersResponse" name="createGroupWithMembersResponse" />
>   </wsdl:operation>
>   <wsdl:operation name="addMember">
>   <wsdl:input message="impl:addMemberRequest" name="addMemberRequest" />
>   <wsdl:output message="impl:addMemberResponse" name="addMemberResponse" />
>   </wsdl:operation>
>   <wsdl:operation name="addMembers">
>   <wsdl:input message="impl:addMembersRequest" name="addMembersRequest" />
>   <wsdl:output message="impl:addMembersResponse" name="addMembersResponse" />
>   </wsdl:operation>
>   <wsdl:operation name="removeMember">
>   <wsdl:input message="impl:removeMemberRequest" name="removeMemberRequest" />
>   <wsdl:output message="impl:removeMemberResponse" name="removeMemberResponse" />
>   </wsdl:operation>
>   <wsdl:operation name="removeMembers">
>   <wsdl:input message="impl:removeMembersRequest" name="removeMembersRequest" />
>   <wsdl:output message="impl:removeMembersResponse" name="removeMembersResponse" />
>   </wsdl:operation>
>   <wsdl:operation name="removeGroup">
>   <wsdl:input message="impl:removeGroupRequest" name="removeGroupRequest" />
>   <wsdl:output message="impl:removeGroupResponse" name="removeGroupResponse" />
>   </wsdl:operation>
>   </wsdl:portType>
>   <wsdl:binding name="GroupsServiceServiceSoapBinding" type="impl:GroupsService">
>   <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
>   <wsdl:operation name="createGroup">
>   <wsdlsoap:operation soapAction="" />
>   <wsdl:input name="createGroupRequest">
>   <wsdlsoap:body use="literal" />
>   </wsdl:input>
>   <wsdl:output name="createGroupResponse">
>   <wsdlsoap:body use="literal" />
>   </wsdl:output>
>   </wsdl:operation>
>   <wsdl:operation name="getMembers">
>   <wsdlsoap:operation soapAction="" />
>   <wsdl:input name="getMembersRequest">
>   <wsdlsoap:body use="literal" />
>   </wsdl:input>
>   <wsdl:output name="getMembersResponse">
>   <wsdlsoap:body use="literal" />
>   </wsdl:output>
>   </wsdl:operation>
>   <wsdl:operation name="createGroupWithMembers">
>   <wsdlsoap:operation soapAction="" />
>   <wsdl:input name="createGroupWithMembersRequest">
>   <wsdlsoap:body use="literal" />
>   </wsdl:input>
>   <wsdl:output name="createGroupWithMembersResponse">
>   <wsdlsoap:body use="literal" />
>   </wsdl:output>
>   </wsdl:operation>
>   <wsdl:operation name="addMember">
>   <wsdlsoap:operation soapAction="" />
>   <wsdl:input name="addMemberRequest">
>   <wsdlsoap:body use="literal" />
>   </wsdl:input>
>   <wsdl:output name="addMemberResponse">
>   <wsdlsoap:body use="literal" />
>   </wsdl:output>
>   </wsdl:operation>
>   <wsdl:operation name="addMembers">
>   <wsdlsoap:operation soapAction="" />
>   <wsdl:input name="addMembersRequest">
>   <wsdlsoap:body use="literal" />
>   </wsdl:input>
>   <wsdl:output name="addMembersResponse">
>   <wsdlsoap:body use="literal" />
>   </wsdl:output>
>   </wsdl:operation>
>   <wsdl:operation name="removeMember">
>   <wsdlsoap:operation soapAction="" />
>   <wsdl:input name="removeMemberRequest">
>   <wsdlsoap:body use="literal" />
>   </wsdl:input>
>   <wsdl:output name="removeMemberResponse">
>   <wsdlsoap:body use="literal" />
>   </wsdl:output>
>   </wsdl:operation>
>   <wsdl:operation name="removeMembers">
>   <wsdlsoap:operation soapAction="" />
>   <wsdl:input name="removeMembersRequest">
>   <wsdlsoap:body use="literal" />
>   </wsdl:input>
>   <wsdl:output name="removeMembersResponse">
>   <wsdlsoap:body use="literal" />
>   </wsdl:output>
>   </wsdl:operation>
>   <wsdl:operation name="removeGroup">
>   <wsdlsoap:operation soapAction="" />
>   <wsdl:input name="removeGroupRequest">
>   <wsdlsoap:body use="literal" />
>   </wsdl:input>
>   <wsdl:output name="removeGroupResponse">
>   <wsdlsoap:body use="literal" />
>   </wsdl:output>
>   </wsdl:operation>
>   </wsdl:binding>
>   <wsdl:service name="GroupsServiceService">
>   <wsdl:port binding="impl:GroupsServiceServiceSoapBinding" name="GroupsServiceService">
>   <wsdlsoap:address location="http://localhost:8080/osg-dev/services/GroupsServiceService" />
>   </wsdl:port>
>   </wsdl:service>
>   </wsdl:definitions>
> 
> 
>

document/literal wrapped... getting closer

Posted by "Nathaniel A. Johnson" <na...@indiana.edu>.
hello everyone,

this is a follow-up on the doc/literal posting/conversation with anne.
my client is now sending requests, and receiving responses from the
server.  the soap messages look good, but the client can't seem to
deserialize the responses from the server.  i also regenerated the wsdl
with pretty parameter names (to do that with the ant task, you just have
to supply the optional parameter implClass).  i have attached a file
that has a request, one with a response, and my pretty wsdl.

if anyone has any idea for me, as to why doc/literal wrapped gives
deserialization errors at the client (not server), and rpc/encoded works
perfectly, i'd love to be enlightened.

thanks!
nate

here is the exception:

(core.CollectionFactory              59  ) Using JDK 1.4 collections
(crypto.CryptoFactory                113 ) Using Crypto Engine
[org.apache.ws.security.components.crypto.Merlin]
(crypto.CryptoFactory                113 ) Using Crypto Engine
[org.apache.ws.security.components.crypto.Merlin]
(signature.Reference                 ?   ) Verification successful for
URI "#id-2183019"
(client.Call                         2450) Exception:
org.xml.sax.SAXException: SimpleDeserializer encountered a child
element, which is NOT expected, in something it was trying to deserialize.
	at
org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
	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:1140)
	at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
	at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
	at org.apache.axis.client.Call.invoke(Call.java:2448)
	at org.apache.axis.client.Call.invoke(Call.java:2347)
	at org.apache.axis.client.Call.invoke(Call.java:1804)
	at
org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.performJaxRpcCall(JaxRpcPortClientInterceptor.java:492)
	at
org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.invoke(JaxRpcPortClientInterceptor.java:451)
	at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
	at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
	at $Proxy0.getMembers(Unknown Source)
	at
edu.iu.uis.osg.client.GroupsClientImpl.getMembers(GroupsClientImpl.java:43)
	at edu.iu.uis.osg.TestGroupsClient.main(TestGroupsClient.java:46)
org.springframework.remoting.RemoteAccessException: Cannot access remote
service
[{http://services.osg.uis.iu.edu/GroupsService}GroupsServiceService];
nested exception is org.apache.axis.AxisFault: ; nested exception is:
	org.xml.sax.SAXException: SimpleDeserializer encountered a child
element, which is NOT expected, in something it was trying to deserialize.
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a
child element, which is NOT expected, in something it was trying to
deserialize.
 faultActor:
 faultNode:
 faultDetail:
	{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException:
SimpleDeserializer encountered a child element, which is NOT expected,
in something it was trying to deserialize.
	at
org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
	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:1140)
	at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
	at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
	at org.apache.axis.client.Call.invoke(Call.java:2448)
	at org.apache.axis.client.Call.invoke(Call.java:2347)
	at org.apache.axis.client.Call.invoke(Call.java:1804)
	at
org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.performJaxRpcCall(JaxRpcPortClientInterceptor.java:492)
	at
org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.invoke(JaxRpcPortClientInterceptor.java:451)
	at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
	at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
	at $Proxy0.getMembers(Unknown Source)
	at
edu.iu.uis.osg.client.GroupsClientImpl.getMembers(GroupsClientImpl.java:43)
	at edu.iu.uis.osg.TestGroupsClient.main(TestGroupsClient.java:46)

	{http://xml.apache.org/axis/}hostname:bl-uits-naj

org.xml.sax.SAXException: SimpleDeserializer encountered a child
element, which is NOT expected, in something it was trying to deserialize.
	at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
	at org.apache.axis.client.Call.invoke(Call.java:2451)
	at org.apache.axis.client.Call.invoke(Call.java:2347)
	at org.apache.axis.client.Call.invoke(Call.java:1804)
	at
org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.performJaxRpcCall(JaxRpcPortClientInterceptor.java:492)
	at
org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.invoke(JaxRpcPortClientInterceptor.java:451)
	at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
	at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
	at $Proxy0.getMembers(Unknown Source)
	at
edu.iu.uis.osg.client.GroupsClientImpl.getMembers(GroupsClientImpl.java:43)
	at edu.iu.uis.osg.TestGroupsClient.main(TestGroupsClient.java:46)
Caused by: org.xml.sax.SAXException: SimpleDeserializer encountered a
child element, which is NOT expected, in something it was trying to
deserialize.
	at
org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
	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:1140)
	at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
	at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
	at org.apache.axis.client.Call.invoke(Call.java:2448)
	... 9 more


Re: problem with doc/literal...

Posted by "Nathaniel A. Johnson" <na...@indiana.edu>.
anne,

here is a sample message and the full stack trace.  i have log4j turned
on in debug mode and from that and the soapmonitor, right now it appears
that when this request goes out, it blows up while in doc/literal mode.
 there is no response.  seems weird that it needs to deserialize before
sending to the server, doesnt it?  because the client it blowing up, not
the server.  anyway, here is a request message and the stack trace.
thanks again for looking at this.

ps: i left the digital signature in there, but turned off the
encryption, so you can see the small soap body down at the bottom of the
message.

nate


<?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:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
soapenv:mustUnderstand="1">
<wsse:BinarySecurityToken
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"
wsu:Id="CertId-612575">MIIBnjCCAQcCBEKeIDgwDQYJKoZIhvcNAQEEBQAwFjEUMBIGA1UEAxMLeHhhcHBjbGllbnQwHhcN
MDUwNjAxMjA1MzEyWhcNMDUwODMwMjA1MzEyWjAWMRQwEgYDVQQDEwt4eGFwcGNsaWVudDCBnzAN
BgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEApzheMPxZkjI8iIpPv08KIGI7hMWOzx47b2ym4VGH+b3N
L90rT/3Eghll2RhRaJIAWuh/A3ZeVog6B4vdH6rSLWPpOrKsC+R4ar1dHqvCNYdtC5A2CWA4l9ni
cLbFamviOKCxanbfFtCAvqwUJXdFDV0V7HgqKJRdErZlO1tl0FkCAwEAATANBgkqhkiG9w0BAQQF
AAOBgQBgH/EID1mBxU2gMmuycfw/Gx41wALz7VwuOFWBWQdj2btnm2fM4GVmLk9BlijL3QSLb3b9
GRboZJBkbUB91MfD6I0PZ5OyaeqP53sM1QX+7amWZ3Yzo7ZwViWCmFUXK4LZid/8Ue2mxB4mRKo+
lwow5/kMTf7n1LnIXjMPTf6hMg==</wsse:BinarySecurityToken>
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:SignedInfo>
<ds:CanonicalizationMethod
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:CanonicalizationMethod>
<ds:SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></ds:SignatureMethod>
<ds:Reference URI="#id-10486149">
<ds:Transforms>
<ds:Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:Transform>
</ds:Transforms>
<ds:DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></ds:DigestMethod>
<ds:DigestValue>KiGD6r9lsMJErPKd4D3VIproaFE=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>
ZYtuKrljUs38ZIXRp0NPqmnNUtbgb23zM24GLMcXJKGH/op5Tz7nj3B0g6DhsXn2vwc5aWvfK2U3
66ZS1T7OCKGx+z+QHwqwF2B+TepW743KrahqgnrdJ3c7DkODjFcr9I2E8A70+IJDXut8bHMJ09ys
Pz/brQoqXusrI5IeFQQ=
</ds:SignatureValue>
<ds:KeyInfo Id="KeyId-28523022">
<wsse:SecurityTokenReference
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="STRId-13782591"><wsse:Reference URI="#CertId-612575"
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"></wsse:Reference>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
</ds:Signature>
</wsse:Security>
</soapenv:Header>
<soapenv:Body
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="id-10486149">
<getMembers xmlns="http://services.osg.uis.iu.edu/GroupsService">
<in0>bl-uits-onestart-admin</in0>
</getMembers>
</soapenv:Body>
</soapenv:Envelope>




AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a
child element, which is NOT expected, in something it was trying to
deserialize.
 faultActor:
 faultNode:
 faultDetail:
	{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException:
SimpleDeserializer encountered a child element, which is NOT expected,
in something it was trying to deserialize.
	at
org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
	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:1140)
	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:148)
	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:453)
	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:709)
	at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
	at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
	at java.lang.Thread.run(Thread.java:534)

	{http://xml.apache.org/axis/}hostname:bl-uits-naj

org.xml.sax.SAXException: SimpleDeserializer encountered a child
element, which is NOT expected, in something it was trying to deserialize.
	at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
	at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:330)
	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:453)
	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:709)
	at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
	at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
	at java.lang.Thread.run(Thread.java:534)
Caused by: org.xml.sax.SAXException: SimpleDeserializer encountered a
child element, which is NOT expected, in something it was trying to
deserialize.
	at
org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
	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:1140)
	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:148)
	at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
	... 33 more



Anne Thomas Manes wrote:
> Could you provide us with a sample of your errant SOAP messages?
> Is the fault occuring on the client, server, or both?
> 
> Anne
> 
> (ps -- the WSDL looks just fine)
> (I recommend that you compile your code with debug on so that
> java2wsdl produces more reasonable parameter names.)
> 
> On 6/4/05, Nathaniel A. Johnson <na...@indiana.edu> wrote:
> 
>>hi all,
>>
>>i have a java application and need to make it available via web
>>services... so i'd like to use java2wsdl.  it works great if i use
>>rpc/encoded (i even have it working with wss4j, signing and encrypting
>>all communications), but doc/literal doesnt seem to play nicely.  the
>>java interface only uses simple String objects and String arrays, so its
>>a really simple interface (no complex objects or anything).  i get the
>>following fault when a String array return type is processed.
>>
>>AxisFault
>> faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>> faultSubcode:
>> faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a
>>child element, which is NOT expected, in something it was trying to
>>deserialize.
>>
>>i use the java2wsdl ant task, if that helps anyone think of any
>>advice... here is the wsdl that it generates, but i really dont want to
>>have to modify it by hand after each change to the java objects... but
>>if thats what it comes down to so that it will work with other clients,
>>i guess thats what i will have to do.
>>
>>thanks all!  heres the wsdl (sorry about the +/- signs... copied it from
>>internet explorer)
>>
>>nate
>>
>>
>><?xml version="1.0" encoding="UTF-8" ?>
>>- <wsdl:definitions
>>targetNamespace="http://services.osg.uis.iu.edu/GroupsService"
>>xmlns:apachesoap="http://xml.apache.org/xml-soap"
>>xmlns:impl="http://services.osg.uis.iu.edu/GroupsService"
>>xmlns:intf="http://services.osg.uis.iu.edu/GroupsService"
>>xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>>xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
>>xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>>- <!--
>>WSDL created by Apache Axis version: 1.2.1
>>Built on Jun 03, 2005 (06:10:52 PDT)
>>
>>  -->
>>- <wsdl:types>
>>- <schema elementFormDefault="qualified"
>>targetNamespace="http://services.osg.uis.iu.edu/GroupsService"
>>xmlns="http://www.w3.org/2001/XMLSchema">
>>- <element name="createGroup">
>>- <complexType>
>>- <sequence>
>>  <element name="in0" type="xsd:string" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>- <element name="createGroupResponse">
>>- <complexType>
>>- <sequence>
>>  <element name="createGroupReturn" type="xsd:int" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>- <element name="getMembers">
>>- <complexType>
>>- <sequence>
>>  <element name="in0" type="xsd:string" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>- <element name="getMembersResponse">
>>- <complexType>
>>- <sequence>
>>  <element maxOccurs="unbounded" name="getMembersReturn"
>>type="xsd:string" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>- <element name="createGroupWithMembers">
>>- <complexType>
>>- <sequence>
>>  <element name="in0" type="xsd:string" />
>>  <element maxOccurs="unbounded" name="in1" type="xsd:string" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>- <element name="createGroupWithMembersResponse">
>>- <complexType>
>>- <sequence>
>>  <element name="createGroupWithMembersReturn" type="xsd:int" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>- <element name="addMember">
>>- <complexType>
>>- <sequence>
>>  <element name="in0" type="xsd:string" />
>>  <element name="in1" type="xsd:string" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>- <element name="addMemberResponse">
>>- <complexType>
>>- <sequence>
>>  <element name="addMemberReturn" type="xsd:int" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>- <element name="addMembers">
>>- <complexType>
>>- <sequence>
>>  <element name="in0" type="xsd:string" />
>>  <element maxOccurs="unbounded" name="in1" type="xsd:string" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>- <element name="addMembersResponse">
>>- <complexType>
>>- <sequence>
>>  <element name="addMembersReturn" type="xsd:int" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>- <element name="removeMember">
>>- <complexType>
>>- <sequence>
>>  <element name="in0" type="xsd:string" />
>>  <element name="in1" type="xsd:string" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>- <element name="removeMemberResponse">
>>- <complexType>
>>- <sequence>
>>  <element name="removeMemberReturn" type="xsd:int" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>- <element name="removeMembers">
>>- <complexType>
>>- <sequence>
>>  <element name="in0" type="xsd:string" />
>>  <element maxOccurs="unbounded" name="in1" type="xsd:string" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>- <element name="removeMembersResponse">
>>- <complexType>
>>- <sequence>
>>  <element name="removeMembersReturn" type="xsd:int" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>- <element name="removeGroup">
>>- <complexType>
>>- <sequence>
>>  <element name="in0" type="xsd:string" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>- <element name="removeGroupResponse">
>>- <complexType>
>>- <sequence>
>>  <element name="removeGroupReturn" type="xsd:int" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>  </schema>
>>  </wsdl:types>
>>- <wsdl:message name="createGroupWithMembersResponse">
>>  <wsdl:part element="impl:createGroupWithMembersResponse"
>>name="parameters" />
>>  </wsdl:message>
>>- <wsdl:message name="createGroupWithMembersRequest">
>>  <wsdl:part element="impl:createGroupWithMembers" name="parameters" />
>>  </wsdl:message>
>>- <wsdl:message name="removeMembersResponse">
>>  <wsdl:part element="impl:removeMembersResponse" name="parameters" />
>>  </wsdl:message>
>>- <wsdl:message name="removeMemberRequest">
>>  <wsdl:part element="impl:removeMember" name="parameters" />
>>  </wsdl:message>
>>- <wsdl:message name="removeMemberResponse">
>>  <wsdl:part element="impl:removeMemberResponse" name="parameters" />
>>  </wsdl:message>
>>- <wsdl:message name="getMembersResponse">
>>  <wsdl:part element="impl:getMembersResponse" name="parameters" />
>>  </wsdl:message>
>>- <wsdl:message name="addMembersResponse">
>>  <wsdl:part element="impl:addMembersResponse" name="parameters" />
>>  </wsdl:message>
>>- <wsdl:message name="removeGroupRequest">
>>  <wsdl:part element="impl:removeGroup" name="parameters" />
>>  </wsdl:message>
>>- <wsdl:message name="createGroupRequest">
>>  <wsdl:part element="impl:createGroup" name="parameters" />
>>  </wsdl:message>
>>- <wsdl:message name="addMemberResponse">
>>  <wsdl:part element="impl:addMemberResponse" name="parameters" />
>>  </wsdl:message>
>>- <wsdl:message name="addMemberRequest">
>>  <wsdl:part element="impl:addMember" name="parameters" />
>>  </wsdl:message>
>>- <wsdl:message name="createGroupResponse">
>>  <wsdl:part element="impl:createGroupResponse" name="parameters" />
>>  </wsdl:message>
>>- <wsdl:message name="getMembersRequest">
>>  <wsdl:part element="impl:getMembers" name="parameters" />
>>  </wsdl:message>
>>- <wsdl:message name="removeMembersRequest">
>>  <wsdl:part element="impl:removeMembers" name="parameters" />
>>  </wsdl:message>
>>- <wsdl:message name="removeGroupResponse">
>>  <wsdl:part element="impl:removeGroupResponse" name="parameters" />
>>  </wsdl:message>
>>- <wsdl:message name="addMembersRequest">
>>  <wsdl:part element="impl:addMembers" name="parameters" />
>>  </wsdl:message>
>>- <wsdl:portType name="GroupsService">
>>- <wsdl:operation name="createGroup">
>>  <wsdl:input message="impl:createGroupRequest"
>>name="createGroupRequest" />
>>  <wsdl:output message="impl:createGroupResponse"
>>name="createGroupResponse" />
>>  </wsdl:operation>
>>- <wsdl:operation name="getMembers">
>>  <wsdl:input message="impl:getMembersRequest" name="getMembersRequest" />
>>  <wsdl:output message="impl:getMembersResponse"
>>name="getMembersResponse" />
>>  </wsdl:operation>
>>- <wsdl:operation name="createGroupWithMembers">
>>  <wsdl:input message="impl:createGroupWithMembersRequest"
>>name="createGroupWithMembersRequest" />
>>  <wsdl:output message="impl:createGroupWithMembersResponse"
>>name="createGroupWithMembersResponse" />
>>  </wsdl:operation>
>>- <wsdl:operation name="addMember">
>>  <wsdl:input message="impl:addMemberRequest" name="addMemberRequest" />
>>  <wsdl:output message="impl:addMemberResponse" name="addMemberResponse" />
>>  </wsdl:operation>
>>- <wsdl:operation name="addMembers">
>>  <wsdl:input message="impl:addMembersRequest" name="addMembersRequest" />
>>  <wsdl:output message="impl:addMembersResponse"
>>name="addMembersResponse" />
>>  </wsdl:operation>
>>- <wsdl:operation name="removeMember">
>>  <wsdl:input message="impl:removeMemberRequest"
>>name="removeMemberRequest" />
>>  <wsdl:output message="impl:removeMemberResponse"
>>name="removeMemberResponse" />
>>  </wsdl:operation>
>>- <wsdl:operation name="removeMembers">
>>  <wsdl:input message="impl:removeMembersRequest"
>>name="removeMembersRequest" />
>>  <wsdl:output message="impl:removeMembersResponse"
>>name="removeMembersResponse" />
>>  </wsdl:operation>
>>- <wsdl:operation name="removeGroup">
>>  <wsdl:input message="impl:removeGroupRequest"
>>name="removeGroupRequest" />
>>  <wsdl:output message="impl:removeGroupResponse"
>>name="removeGroupResponse" />
>>  </wsdl:operation>
>>  </wsdl:portType>
>>- <wsdl:binding name="GroupsServiceServiceSoapBinding"
>>type="impl:GroupsService">
>>  <wsdlsoap:binding style="document"
>>transport="http://schemas.xmlsoap.org/soap/http" />
>>- <wsdl:operation name="createGroup">
>>  <wsdlsoap:operation soapAction="" />
>>- <wsdl:input name="createGroupRequest">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:input>
>>- <wsdl:output name="createGroupResponse">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:output>
>>  </wsdl:operation>
>>- <wsdl:operation name="getMembers">
>>  <wsdlsoap:operation soapAction="" />
>>- <wsdl:input name="getMembersRequest">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:input>
>>- <wsdl:output name="getMembersResponse">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:output>
>>  </wsdl:operation>
>>- <wsdl:operation name="createGroupWithMembers">
>>  <wsdlsoap:operation soapAction="" />
>>- <wsdl:input name="createGroupWithMembersRequest">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:input>
>>- <wsdl:output name="createGroupWithMembersResponse">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:output>
>>  </wsdl:operation>
>>- <wsdl:operation name="addMember">
>>  <wsdlsoap:operation soapAction="" />
>>- <wsdl:input name="addMemberRequest">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:input>
>>- <wsdl:output name="addMemberResponse">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:output>
>>  </wsdl:operation>
>>- <wsdl:operation name="addMembers">
>>  <wsdlsoap:operation soapAction="" />
>>- <wsdl:input name="addMembersRequest">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:input>
>>- <wsdl:output name="addMembersResponse">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:output>
>>  </wsdl:operation>
>>- <wsdl:operation name="removeMember">
>>  <wsdlsoap:operation soapAction="" />
>>- <wsdl:input name="removeMemberRequest">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:input>
>>- <wsdl:output name="removeMemberResponse">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:output>
>>  </wsdl:operation>
>>- <wsdl:operation name="removeMembers">
>>  <wsdlsoap:operation soapAction="" />
>>- <wsdl:input name="removeMembersRequest">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:input>
>>- <wsdl:output name="removeMembersResponse">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:output>
>>  </wsdl:operation>
>>- <wsdl:operation name="removeGroup">
>>  <wsdlsoap:operation soapAction="" />
>>- <wsdl:input name="removeGroupRequest">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:input>
>>- <wsdl:output name="removeGroupResponse">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:output>
>>  </wsdl:operation>
>>  </wsdl:binding>
>>- <wsdl:service name="GroupsServiceService">
>>- <wsdl:port binding="impl:GroupsServiceServiceSoapBinding"
>>name="GroupsServiceService">
>>  <wsdlsoap:address
>>location="http://localhost:8080/osg-dev/services/GroupsServiceService" />
>>  </wsdl:port>
>>  </wsdl:service>
>>  </wsdl:definitions>
>>

Re: problem with doc/literal...

Posted by "Nathaniel A. Johnson" <na...@indiana.edu>.
Anne Thomas Manes wrote:
> Could you provide us with a sample of your errant SOAP messages?
> Is the fault occuring on the client, server, or both?

it is only occurring on the client when trying to deserialize the String
array return type.  i can pass String arrays as parameters to the methods
just fine.  i can also call methods that return int values just fine...
it only dies when returning the String arrays (haven't tried returning
anything more complex).

about posting the soap messages here, would you like me to turn off the
signing and encrypting before posting them here, or does that matter?
they fail either way.  i'll turn the SoapMonitor back on and post them
here after i hear back from you.

> 
> Anne
> 
> (ps -- the WSDL looks just fine)
> (I recommend that you compile your code with debug on so that
> java2wsdl produces more reasonable parameter names.)
> 

good point... thanks for the advice.  is that all that needs to be done
since i use the ant java2wsdl task?  i remember reading something about
a -i flag, but didnt see that option for the ant task.

nate

> On 6/4/05, Nathaniel A. Johnson <na...@indiana.edu> wrote:
> 
>>hi all,
>>
>>i have a java application and need to make it available via web
>>services... so i'd like to use java2wsdl.  it works great if i use
>>rpc/encoded (i even have it working with wss4j, signing and encrypting
>>all communications), but doc/literal doesnt seem to play nicely.  the
>>java interface only uses simple String objects and String arrays, so its
>>a really simple interface (no complex objects or anything).  i get the
>>following fault when a String array return type is processed.
>>
>>AxisFault
>> faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>> faultSubcode:
>> faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a
>>child element, which is NOT expected, in something it was trying to
>>deserialize.
>>
>>i use the java2wsdl ant task, if that helps anyone think of any
>>advice... here is the wsdl that it generates, but i really dont want to
>>have to modify it by hand after each change to the java objects... but
>>if thats what it comes down to so that it will work with other clients,
>>i guess thats what i will have to do.
>>
>>thanks all!  heres the wsdl (sorry about the +/- signs... copied it from
>>internet explorer)
>>
>>nate
>>
>>
>><?xml version="1.0" encoding="UTF-8" ?>
>>- <wsdl:definitions
>>targetNamespace="http://services.osg.uis.iu.edu/GroupsService"
>>xmlns:apachesoap="http://xml.apache.org/xml-soap"
>>xmlns:impl="http://services.osg.uis.iu.edu/GroupsService"
>>xmlns:intf="http://services.osg.uis.iu.edu/GroupsService"
>>xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>>xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
>>xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>>- <!--
>>WSDL created by Apache Axis version: 1.2.1
>>Built on Jun 03, 2005 (06:10:52 PDT)
>>
>>  -->
>>- <wsdl:types>
>>- <schema elementFormDefault="qualified"
>>targetNamespace="http://services.osg.uis.iu.edu/GroupsService"
>>xmlns="http://www.w3.org/2001/XMLSchema">
>>- <element name="createGroup">
>>- <complexType>
>>- <sequence>
>>  <element name="in0" type="xsd:string" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>- <element name="createGroupResponse">
>>- <complexType>
>>- <sequence>
>>  <element name="createGroupReturn" type="xsd:int" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>- <element name="getMembers">
>>- <complexType>
>>- <sequence>
>>  <element name="in0" type="xsd:string" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>- <element name="getMembersResponse">
>>- <complexType>
>>- <sequence>
>>  <element maxOccurs="unbounded" name="getMembersReturn"
>>type="xsd:string" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>- <element name="createGroupWithMembers">
>>- <complexType>
>>- <sequence>
>>  <element name="in0" type="xsd:string" />
>>  <element maxOccurs="unbounded" name="in1" type="xsd:string" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>- <element name="createGroupWithMembersResponse">
>>- <complexType>
>>- <sequence>
>>  <element name="createGroupWithMembersReturn" type="xsd:int" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>- <element name="addMember">
>>- <complexType>
>>- <sequence>
>>  <element name="in0" type="xsd:string" />
>>  <element name="in1" type="xsd:string" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>- <element name="addMemberResponse">
>>- <complexType>
>>- <sequence>
>>  <element name="addMemberReturn" type="xsd:int" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>- <element name="addMembers">
>>- <complexType>
>>- <sequence>
>>  <element name="in0" type="xsd:string" />
>>  <element maxOccurs="unbounded" name="in1" type="xsd:string" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>- <element name="addMembersResponse">
>>- <complexType>
>>- <sequence>
>>  <element name="addMembersReturn" type="xsd:int" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>- <element name="removeMember">
>>- <complexType>
>>- <sequence>
>>  <element name="in0" type="xsd:string" />
>>  <element name="in1" type="xsd:string" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>- <element name="removeMemberResponse">
>>- <complexType>
>>- <sequence>
>>  <element name="removeMemberReturn" type="xsd:int" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>- <element name="removeMembers">
>>- <complexType>
>>- <sequence>
>>  <element name="in0" type="xsd:string" />
>>  <element maxOccurs="unbounded" name="in1" type="xsd:string" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>- <element name="removeMembersResponse">
>>- <complexType>
>>- <sequence>
>>  <element name="removeMembersReturn" type="xsd:int" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>- <element name="removeGroup">
>>- <complexType>
>>- <sequence>
>>  <element name="in0" type="xsd:string" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>- <element name="removeGroupResponse">
>>- <complexType>
>>- <sequence>
>>  <element name="removeGroupReturn" type="xsd:int" />
>>  </sequence>
>>  </complexType>
>>  </element>
>>  </schema>
>>  </wsdl:types>
>>- <wsdl:message name="createGroupWithMembersResponse">
>>  <wsdl:part element="impl:createGroupWithMembersResponse"
>>name="parameters" />
>>  </wsdl:message>
>>- <wsdl:message name="createGroupWithMembersRequest">
>>  <wsdl:part element="impl:createGroupWithMembers" name="parameters" />
>>  </wsdl:message>
>>- <wsdl:message name="removeMembersResponse">
>>  <wsdl:part element="impl:removeMembersResponse" name="parameters" />
>>  </wsdl:message>
>>- <wsdl:message name="removeMemberRequest">
>>  <wsdl:part element="impl:removeMember" name="parameters" />
>>  </wsdl:message>
>>- <wsdl:message name="removeMemberResponse">
>>  <wsdl:part element="impl:removeMemberResponse" name="parameters" />
>>  </wsdl:message>
>>- <wsdl:message name="getMembersResponse">
>>  <wsdl:part element="impl:getMembersResponse" name="parameters" />
>>  </wsdl:message>
>>- <wsdl:message name="addMembersResponse">
>>  <wsdl:part element="impl:addMembersResponse" name="parameters" />
>>  </wsdl:message>
>>- <wsdl:message name="removeGroupRequest">
>>  <wsdl:part element="impl:removeGroup" name="parameters" />
>>  </wsdl:message>
>>- <wsdl:message name="createGroupRequest">
>>  <wsdl:part element="impl:createGroup" name="parameters" />
>>  </wsdl:message>
>>- <wsdl:message name="addMemberResponse">
>>  <wsdl:part element="impl:addMemberResponse" name="parameters" />
>>  </wsdl:message>
>>- <wsdl:message name="addMemberRequest">
>>  <wsdl:part element="impl:addMember" name="parameters" />
>>  </wsdl:message>
>>- <wsdl:message name="createGroupResponse">
>>  <wsdl:part element="impl:createGroupResponse" name="parameters" />
>>  </wsdl:message>
>>- <wsdl:message name="getMembersRequest">
>>  <wsdl:part element="impl:getMembers" name="parameters" />
>>  </wsdl:message>
>>- <wsdl:message name="removeMembersRequest">
>>  <wsdl:part element="impl:removeMembers" name="parameters" />
>>  </wsdl:message>
>>- <wsdl:message name="removeGroupResponse">
>>  <wsdl:part element="impl:removeGroupResponse" name="parameters" />
>>  </wsdl:message>
>>- <wsdl:message name="addMembersRequest">
>>  <wsdl:part element="impl:addMembers" name="parameters" />
>>  </wsdl:message>
>>- <wsdl:portType name="GroupsService">
>>- <wsdl:operation name="createGroup">
>>  <wsdl:input message="impl:createGroupRequest"
>>name="createGroupRequest" />
>>  <wsdl:output message="impl:createGroupResponse"
>>name="createGroupResponse" />
>>  </wsdl:operation>
>>- <wsdl:operation name="getMembers">
>>  <wsdl:input message="impl:getMembersRequest" name="getMembersRequest" />
>>  <wsdl:output message="impl:getMembersResponse"
>>name="getMembersResponse" />
>>  </wsdl:operation>
>>- <wsdl:operation name="createGroupWithMembers">
>>  <wsdl:input message="impl:createGroupWithMembersRequest"
>>name="createGroupWithMembersRequest" />
>>  <wsdl:output message="impl:createGroupWithMembersResponse"
>>name="createGroupWithMembersResponse" />
>>  </wsdl:operation>
>>- <wsdl:operation name="addMember">
>>  <wsdl:input message="impl:addMemberRequest" name="addMemberRequest" />
>>  <wsdl:output message="impl:addMemberResponse" name="addMemberResponse" />
>>  </wsdl:operation>
>>- <wsdl:operation name="addMembers">
>>  <wsdl:input message="impl:addMembersRequest" name="addMembersRequest" />
>>  <wsdl:output message="impl:addMembersResponse"
>>name="addMembersResponse" />
>>  </wsdl:operation>
>>- <wsdl:operation name="removeMember">
>>  <wsdl:input message="impl:removeMemberRequest"
>>name="removeMemberRequest" />
>>  <wsdl:output message="impl:removeMemberResponse"
>>name="removeMemberResponse" />
>>  </wsdl:operation>
>>- <wsdl:operation name="removeMembers">
>>  <wsdl:input message="impl:removeMembersRequest"
>>name="removeMembersRequest" />
>>  <wsdl:output message="impl:removeMembersResponse"
>>name="removeMembersResponse" />
>>  </wsdl:operation>
>>- <wsdl:operation name="removeGroup">
>>  <wsdl:input message="impl:removeGroupRequest"
>>name="removeGroupRequest" />
>>  <wsdl:output message="impl:removeGroupResponse"
>>name="removeGroupResponse" />
>>  </wsdl:operation>
>>  </wsdl:portType>
>>- <wsdl:binding name="GroupsServiceServiceSoapBinding"
>>type="impl:GroupsService">
>>  <wsdlsoap:binding style="document"
>>transport="http://schemas.xmlsoap.org/soap/http" />
>>- <wsdl:operation name="createGroup">
>>  <wsdlsoap:operation soapAction="" />
>>- <wsdl:input name="createGroupRequest">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:input>
>>- <wsdl:output name="createGroupResponse">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:output>
>>  </wsdl:operation>
>>- <wsdl:operation name="getMembers">
>>  <wsdlsoap:operation soapAction="" />
>>- <wsdl:input name="getMembersRequest">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:input>
>>- <wsdl:output name="getMembersResponse">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:output>
>>  </wsdl:operation>
>>- <wsdl:operation name="createGroupWithMembers">
>>  <wsdlsoap:operation soapAction="" />
>>- <wsdl:input name="createGroupWithMembersRequest">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:input>
>>- <wsdl:output name="createGroupWithMembersResponse">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:output>
>>  </wsdl:operation>
>>- <wsdl:operation name="addMember">
>>  <wsdlsoap:operation soapAction="" />
>>- <wsdl:input name="addMemberRequest">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:input>
>>- <wsdl:output name="addMemberResponse">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:output>
>>  </wsdl:operation>
>>- <wsdl:operation name="addMembers">
>>  <wsdlsoap:operation soapAction="" />
>>- <wsdl:input name="addMembersRequest">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:input>
>>- <wsdl:output name="addMembersResponse">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:output>
>>  </wsdl:operation>
>>- <wsdl:operation name="removeMember">
>>  <wsdlsoap:operation soapAction="" />
>>- <wsdl:input name="removeMemberRequest">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:input>
>>- <wsdl:output name="removeMemberResponse">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:output>
>>  </wsdl:operation>
>>- <wsdl:operation name="removeMembers">
>>  <wsdlsoap:operation soapAction="" />
>>- <wsdl:input name="removeMembersRequest">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:input>
>>- <wsdl:output name="removeMembersResponse">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:output>
>>  </wsdl:operation>
>>- <wsdl:operation name="removeGroup">
>>  <wsdlsoap:operation soapAction="" />
>>- <wsdl:input name="removeGroupRequest">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:input>
>>- <wsdl:output name="removeGroupResponse">
>>  <wsdlsoap:body use="literal" />
>>  </wsdl:output>
>>  </wsdl:operation>
>>  </wsdl:binding>
>>- <wsdl:service name="GroupsServiceService">
>>- <wsdl:port binding="impl:GroupsServiceServiceSoapBinding"
>>name="GroupsServiceService">
>>  <wsdlsoap:address
>>location="http://localhost:8080/osg-dev/services/GroupsServiceService" />
>>  </wsdl:port>
>>  </wsdl:service>
>>  </wsdl:definitions>
>>

Re: problem with doc/literal...

Posted by Anne Thomas Manes <at...@gmail.com>.
Could you provide us with a sample of your errant SOAP messages?
Is the fault occuring on the client, server, or both?

Anne

(ps -- the WSDL looks just fine)
(I recommend that you compile your code with debug on so that
java2wsdl produces more reasonable parameter names.)

On 6/4/05, Nathaniel A. Johnson <na...@indiana.edu> wrote:
> hi all,
> 
> i have a java application and need to make it available via web
> services... so i'd like to use java2wsdl.  it works great if i use
> rpc/encoded (i even have it working with wss4j, signing and encrypting
> all communications), but doc/literal doesnt seem to play nicely.  the
> java interface only uses simple String objects and String arrays, so its
> a really simple interface (no complex objects or anything).  i get the
> following fault when a String array return type is processed.
> 
> AxisFault
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>  faultSubcode:
>  faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a
> child element, which is NOT expected, in something it was trying to
> deserialize.
> 
> i use the java2wsdl ant task, if that helps anyone think of any
> advice... here is the wsdl that it generates, but i really dont want to
> have to modify it by hand after each change to the java objects... but
> if thats what it comes down to so that it will work with other clients,
> i guess thats what i will have to do.
> 
> thanks all!  heres the wsdl (sorry about the +/- signs... copied it from
> internet explorer)
> 
> nate
> 
> 
> <?xml version="1.0" encoding="UTF-8" ?>
> - <wsdl:definitions
> targetNamespace="http://services.osg.uis.iu.edu/GroupsService"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:impl="http://services.osg.uis.iu.edu/GroupsService"
> xmlns:intf="http://services.osg.uis.iu.edu/GroupsService"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> - <!--
> WSDL created by Apache Axis version: 1.2.1
> Built on Jun 03, 2005 (06:10:52 PDT)
> 
>   -->
> - <wsdl:types>
> - <schema elementFormDefault="qualified"
> targetNamespace="http://services.osg.uis.iu.edu/GroupsService"
> xmlns="http://www.w3.org/2001/XMLSchema">
> - <element name="createGroup">
> - <complexType>
> - <sequence>
>   <element name="in0" type="xsd:string" />
>   </sequence>
>   </complexType>
>   </element>
> - <element name="createGroupResponse">
> - <complexType>
> - <sequence>
>   <element name="createGroupReturn" type="xsd:int" />
>   </sequence>
>   </complexType>
>   </element>
> - <element name="getMembers">
> - <complexType>
> - <sequence>
>   <element name="in0" type="xsd:string" />
>   </sequence>
>   </complexType>
>   </element>
> - <element name="getMembersResponse">
> - <complexType>
> - <sequence>
>   <element maxOccurs="unbounded" name="getMembersReturn"
> type="xsd:string" />
>   </sequence>
>   </complexType>
>   </element>
> - <element name="createGroupWithMembers">
> - <complexType>
> - <sequence>
>   <element name="in0" type="xsd:string" />
>   <element maxOccurs="unbounded" name="in1" type="xsd:string" />
>   </sequence>
>   </complexType>
>   </element>
> - <element name="createGroupWithMembersResponse">
> - <complexType>
> - <sequence>
>   <element name="createGroupWithMembersReturn" type="xsd:int" />
>   </sequence>
>   </complexType>
>   </element>
> - <element name="addMember">
> - <complexType>
> - <sequence>
>   <element name="in0" type="xsd:string" />
>   <element name="in1" type="xsd:string" />
>   </sequence>
>   </complexType>
>   </element>
> - <element name="addMemberResponse">
> - <complexType>
> - <sequence>
>   <element name="addMemberReturn" type="xsd:int" />
>   </sequence>
>   </complexType>
>   </element>
> - <element name="addMembers">
> - <complexType>
> - <sequence>
>   <element name="in0" type="xsd:string" />
>   <element maxOccurs="unbounded" name="in1" type="xsd:string" />
>   </sequence>
>   </complexType>
>   </element>
> - <element name="addMembersResponse">
> - <complexType>
> - <sequence>
>   <element name="addMembersReturn" type="xsd:int" />
>   </sequence>
>   </complexType>
>   </element>
> - <element name="removeMember">
> - <complexType>
> - <sequence>
>   <element name="in0" type="xsd:string" />
>   <element name="in1" type="xsd:string" />
>   </sequence>
>   </complexType>
>   </element>
> - <element name="removeMemberResponse">
> - <complexType>
> - <sequence>
>   <element name="removeMemberReturn" type="xsd:int" />
>   </sequence>
>   </complexType>
>   </element>
> - <element name="removeMembers">
> - <complexType>
> - <sequence>
>   <element name="in0" type="xsd:string" />
>   <element maxOccurs="unbounded" name="in1" type="xsd:string" />
>   </sequence>
>   </complexType>
>   </element>
> - <element name="removeMembersResponse">
> - <complexType>
> - <sequence>
>   <element name="removeMembersReturn" type="xsd:int" />
>   </sequence>
>   </complexType>
>   </element>
> - <element name="removeGroup">
> - <complexType>
> - <sequence>
>   <element name="in0" type="xsd:string" />
>   </sequence>
>   </complexType>
>   </element>
> - <element name="removeGroupResponse">
> - <complexType>
> - <sequence>
>   <element name="removeGroupReturn" type="xsd:int" />
>   </sequence>
>   </complexType>
>   </element>
>   </schema>
>   </wsdl:types>
> - <wsdl:message name="createGroupWithMembersResponse">
>   <wsdl:part element="impl:createGroupWithMembersResponse"
> name="parameters" />
>   </wsdl:message>
> - <wsdl:message name="createGroupWithMembersRequest">
>   <wsdl:part element="impl:createGroupWithMembers" name="parameters" />
>   </wsdl:message>
> - <wsdl:message name="removeMembersResponse">
>   <wsdl:part element="impl:removeMembersResponse" name="parameters" />
>   </wsdl:message>
> - <wsdl:message name="removeMemberRequest">
>   <wsdl:part element="impl:removeMember" name="parameters" />
>   </wsdl:message>
> - <wsdl:message name="removeMemberResponse">
>   <wsdl:part element="impl:removeMemberResponse" name="parameters" />
>   </wsdl:message>
> - <wsdl:message name="getMembersResponse">
>   <wsdl:part element="impl:getMembersResponse" name="parameters" />
>   </wsdl:message>
> - <wsdl:message name="addMembersResponse">
>   <wsdl:part element="impl:addMembersResponse" name="parameters" />
>   </wsdl:message>
> - <wsdl:message name="removeGroupRequest">
>   <wsdl:part element="impl:removeGroup" name="parameters" />
>   </wsdl:message>
> - <wsdl:message name="createGroupRequest">
>   <wsdl:part element="impl:createGroup" name="parameters" />
>   </wsdl:message>
> - <wsdl:message name="addMemberResponse">
>   <wsdl:part element="impl:addMemberResponse" name="parameters" />
>   </wsdl:message>
> - <wsdl:message name="addMemberRequest">
>   <wsdl:part element="impl:addMember" name="parameters" />
>   </wsdl:message>
> - <wsdl:message name="createGroupResponse">
>   <wsdl:part element="impl:createGroupResponse" name="parameters" />
>   </wsdl:message>
> - <wsdl:message name="getMembersRequest">
>   <wsdl:part element="impl:getMembers" name="parameters" />
>   </wsdl:message>
> - <wsdl:message name="removeMembersRequest">
>   <wsdl:part element="impl:removeMembers" name="parameters" />
>   </wsdl:message>
> - <wsdl:message name="removeGroupResponse">
>   <wsdl:part element="impl:removeGroupResponse" name="parameters" />
>   </wsdl:message>
> - <wsdl:message name="addMembersRequest">
>   <wsdl:part element="impl:addMembers" name="parameters" />
>   </wsdl:message>
> - <wsdl:portType name="GroupsService">
> - <wsdl:operation name="createGroup">
>   <wsdl:input message="impl:createGroupRequest"
> name="createGroupRequest" />
>   <wsdl:output message="impl:createGroupResponse"
> name="createGroupResponse" />
>   </wsdl:operation>
> - <wsdl:operation name="getMembers">
>   <wsdl:input message="impl:getMembersRequest" name="getMembersRequest" />
>   <wsdl:output message="impl:getMembersResponse"
> name="getMembersResponse" />
>   </wsdl:operation>
> - <wsdl:operation name="createGroupWithMembers">
>   <wsdl:input message="impl:createGroupWithMembersRequest"
> name="createGroupWithMembersRequest" />
>   <wsdl:output message="impl:createGroupWithMembersResponse"
> name="createGroupWithMembersResponse" />
>   </wsdl:operation>
> - <wsdl:operation name="addMember">
>   <wsdl:input message="impl:addMemberRequest" name="addMemberRequest" />
>   <wsdl:output message="impl:addMemberResponse" name="addMemberResponse" />
>   </wsdl:operation>
> - <wsdl:operation name="addMembers">
>   <wsdl:input message="impl:addMembersRequest" name="addMembersRequest" />
>   <wsdl:output message="impl:addMembersResponse"
> name="addMembersResponse" />
>   </wsdl:operation>
> - <wsdl:operation name="removeMember">
>   <wsdl:input message="impl:removeMemberRequest"
> name="removeMemberRequest" />
>   <wsdl:output message="impl:removeMemberResponse"
> name="removeMemberResponse" />
>   </wsdl:operation>
> - <wsdl:operation name="removeMembers">
>   <wsdl:input message="impl:removeMembersRequest"
> name="removeMembersRequest" />
>   <wsdl:output message="impl:removeMembersResponse"
> name="removeMembersResponse" />
>   </wsdl:operation>
> - <wsdl:operation name="removeGroup">
>   <wsdl:input message="impl:removeGroupRequest"
> name="removeGroupRequest" />
>   <wsdl:output message="impl:removeGroupResponse"
> name="removeGroupResponse" />
>   </wsdl:operation>
>   </wsdl:portType>
> - <wsdl:binding name="GroupsServiceServiceSoapBinding"
> type="impl:GroupsService">
>   <wsdlsoap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http" />
> - <wsdl:operation name="createGroup">
>   <wsdlsoap:operation soapAction="" />
> - <wsdl:input name="createGroupRequest">
>   <wsdlsoap:body use="literal" />
>   </wsdl:input>
> - <wsdl:output name="createGroupResponse">
>   <wsdlsoap:body use="literal" />
>   </wsdl:output>
>   </wsdl:operation>
> - <wsdl:operation name="getMembers">
>   <wsdlsoap:operation soapAction="" />
> - <wsdl:input name="getMembersRequest">
>   <wsdlsoap:body use="literal" />
>   </wsdl:input>
> - <wsdl:output name="getMembersResponse">
>   <wsdlsoap:body use="literal" />
>   </wsdl:output>
>   </wsdl:operation>
> - <wsdl:operation name="createGroupWithMembers">
>   <wsdlsoap:operation soapAction="" />
> - <wsdl:input name="createGroupWithMembersRequest">
>   <wsdlsoap:body use="literal" />
>   </wsdl:input>
> - <wsdl:output name="createGroupWithMembersResponse">
>   <wsdlsoap:body use="literal" />
>   </wsdl:output>
>   </wsdl:operation>
> - <wsdl:operation name="addMember">
>   <wsdlsoap:operation soapAction="" />
> - <wsdl:input name="addMemberRequest">
>   <wsdlsoap:body use="literal" />
>   </wsdl:input>
> - <wsdl:output name="addMemberResponse">
>   <wsdlsoap:body use="literal" />
>   </wsdl:output>
>   </wsdl:operation>
> - <wsdl:operation name="addMembers">
>   <wsdlsoap:operation soapAction="" />
> - <wsdl:input name="addMembersRequest">
>   <wsdlsoap:body use="literal" />
>   </wsdl:input>
> - <wsdl:output name="addMembersResponse">
>   <wsdlsoap:body use="literal" />
>   </wsdl:output>
>   </wsdl:operation>
> - <wsdl:operation name="removeMember">
>   <wsdlsoap:operation soapAction="" />
> - <wsdl:input name="removeMemberRequest">
>   <wsdlsoap:body use="literal" />
>   </wsdl:input>
> - <wsdl:output name="removeMemberResponse">
>   <wsdlsoap:body use="literal" />
>   </wsdl:output>
>   </wsdl:operation>
> - <wsdl:operation name="removeMembers">
>   <wsdlsoap:operation soapAction="" />
> - <wsdl:input name="removeMembersRequest">
>   <wsdlsoap:body use="literal" />
>   </wsdl:input>
> - <wsdl:output name="removeMembersResponse">
>   <wsdlsoap:body use="literal" />
>   </wsdl:output>
>   </wsdl:operation>
> - <wsdl:operation name="removeGroup">
>   <wsdlsoap:operation soapAction="" />
> - <wsdl:input name="removeGroupRequest">
>   <wsdlsoap:body use="literal" />
>   </wsdl:input>
> - <wsdl:output name="removeGroupResponse">
>   <wsdlsoap:body use="literal" />
>   </wsdl:output>
>   </wsdl:operation>
>   </wsdl:binding>
> - <wsdl:service name="GroupsServiceService">
> - <wsdl:port binding="impl:GroupsServiceServiceSoapBinding"
> name="GroupsServiceService">
>   <wsdlsoap:address
> location="http://localhost:8080/osg-dev/services/GroupsServiceService" />
>   </wsdl:port>
>   </wsdl:service>
>   </wsdl:definitions>
>