Thanks for the response Dino.
I am using Axis rc1.2 nightly build from Feb
8th.
I think you are right regarding desinging the
interfaces. Its better to work on WSDL and schema before working on java
code but I have all the java classes built. These are not new services. I have
all these services for long time and everything was working great until I moved
to doc/literal style. I was using rpc/encoded style before.
I looked at the WSDL generated by Axis and it
looked fine to me. May be somone can look at my WSDL and see where it is wrong.
Two elements that need to look at are:
<complexType name="ArrayOf_tns1_ContainerBean">
<sequence>
<element maxOccurs="unbounded"
minOccurs="0"
name="item"
type="tns1:ContainerBean" /> </sequence>
</complexType>
AND
<element name="getRootContainersResponse">
<complexType>
<sequence>
<element maxOccurs="unbounded"
name="item"
type="tns1:ContainerBean" /> </sequence> </complexType> </element>
Both have the right definitions for array of beans.
Looks like getRootContainerResponse defines namespace properly but not the ArrayOf_tns1_ContainerBean (look at the soap
response file).
Also, I am attaching the soap response. It looks
like the problem is due to the namespace of each array element.Namespaces are
defined properly for the top level elements array but for the
recursive elements, namespace is empty.
Any help is appreciated.
Thanks
Praveen
|
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <getRootContainersResponse xmlns="http://soap.session.ip.contextmedia.com"> <item xsi:type="ns1:ContainerBean" xmlns:ns1="http://soap.session.ip.contextmedia.com"> <ID>9C5B3C608B5D151B6F87E368CC8AF182</ID> <accessPermissions>7</accessPermissions> <accountID>7F1CB4C5C87072FA8D6C21133A642EAB</accountID> <childContainers> <item xmlns=""> <ID>163C42F9BC87CB1CEBC14C0A45820DED</ID> <accessPermissions>7</accessPermissions> <accountID>7F1CB4C5C87072FA8D6C21133A642EAB</accountID> <childContainers xsi:nil="true"/> <creationDate>2005-02-09T17:21:44.000Z</creationDate> <deliveryPermissions>0</deliveryPermissions> <description/> <lastModifiedDate>2005-02-09T17:21:44.000Z</lastModifiedDate> <name>test</name> <parentID>9C5B3C608B5D151B6F87E368CC8AF182</parentID> <type>4</type> <userID>8E89C8D2583DCB99812FC94FDE15AFE1</userID> </item> </childContainers> <creationDate>2005-01-27T21:21:33.000Z</creationDate> <deliveryPermissions>0</deliveryPermissions> <description/> <lastModifiedDate>2005-02-08T22:18:03.000Z</lastModifiedDate> <name>My Content</name> <parentID xsi:nil="true"/> <type>1</type> <userID>8E89C8D2583DCB99812FC94FDE15AFE1</userID> </item> <item xsi:type="ns3:ContainerBean" xmlns:ns3="http://soap.session.ip.contextmedia.com"> <ID>829E600249C07064F73569782FF801EC</ID> <accessPermissions>7</accessPermissions> <accountID>7F1CB4C5C87072FA8D6C21133A642EAB</accountID> <childContainers> <item xmlns=""> <ID>F142D17B950A2A70E0DF6E777B8D39D4</ID> <accessPermissions>7</accessPermissions> <accountID>7F1CB4C5C87072FA8D6C21133A642EAB</accountID> <childContainers/> <creationDate>2005-01-27T21:24:18.000Z</creationDate> <deliveryPermissions>0</deliveryPermissions> <description/> <lastModifiedDate>2005-01-27T21:24:18.000Z</lastModifiedDate> <name>2</name> <parentID>829E600249C07064F73569782FF801EC</parentID> <type>4</type> <userID xsi:nil="true"/> </item> </childContainers> <creationDate>2005-01-27T21:21:29.000Z</creationDate> <deliveryPermissions>0</deliveryPermissions> <description/> <lastModifiedDate>2005-01-27T21:38:41.000Z</lastModifiedDate> <name>Enterprise Library</name> <parentID xsi:nil="true"/> <type>1</type> <userID xsi:nil="true"/> </item> </getRootContainersResponse> </soapenv:Body> </soapenv:Envelope>
CMISOAPContainerService.wsdl
Description: Binary data