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 Jake Goulding <go...@vivisimo.com> on 2006/09/28 23:34:58 UTC
[axis2] Unexpected subelement
After getting around the NTLM issues I had earlier, I've hit this error:
java.lang.RuntimeException: Unexpected subelement Lists
at
com.vivisimo.connector.sharepoint.ListsStub.fromOM(ListsStub.java:16602)
at
com.vivisimo.connector.sharepoint.ListsStub.GetListCollection(ListsStub.java:672)
at Test.main(Test.java:24)
A bit of mailing list poking directed me to check that my response and
WSDL matched up. I've attached the response SOAP and the WSDL.
I believe the relevant bits to be as shown below (snipped short):
Am I doing something wrong with my stub code?
WSDL==
<s:element name="GetListCollectionResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="GetListCollectionResult">
<s:complexType mixed="true">
<s:sequence>
<s:any />
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
==WSDL
SOAP RESPONSE==
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>
<soap:Body>
<GetListCollectionResponse
xmlns="http://schemas.microsoft.com/sharepoint/soap/"
>
<GetListCollectionResult>
<Lists>
<List xmlns="" DocTemplateUrl=""
DefaultViewUrl="/Lists/Announcements/AllItems.aspx"
ID="{1B4877CE-A7E1-4C41-98A2-D8071DD752BA}" Title="Announcements"
Description="Use the Announcements list to post messages on
the home page of your site."
ImageUrl="/_layouts/images/itann.gif"
Name="{1B4877CE-A7E1-4C41-98A2-D8071DD752BA}" BaseType="0"
ServerTemplate="104"
Created="20060627 23:05:43" Modified="20060627 23:05:42"
LastDeleted="20060627 23:05:43" Version="0" Direction="none"
ThumbnailSize=""
WebImageWidth="" WebImageHeight="" Flags="16781312" ItemCount="1"
AnonymousPermMask="" RootFolder="" ReadSecurity="1"
WriteSecurity="1" Author="1"
EventSinkAssembly="" EventSinkClass="" EventSinkData=""
EmailInsertsFolder=""
AllowDeletion="True" AllowMultiResponses="False"
EnableAttachments="True"
EnableModeration="False" EnableVersioning="False" Hidden="False"
MultipleDataList="False" Ordered="False" ShowUser="True"
/>
==SOAP RESPONSE
--
JAKE GOULDING
Software Engineer
goulding@vivisimo.com
Vivísimo [Search Done Right]
1710 Murray Avenue
Pittsburgh, PA 15217 USA
tel: +1.412.422.2499 x105
fax: +1.412.422.2495
vivisimo.com clusty.com
Re: [axis2] Unexpected subelement
Posted by Davanum Srinivas <da...@gmail.com>.
please log a bug and upload your wsdl and soap response.
-- dims
On 9/28/06, Jake Goulding <go...@vivisimo.com> wrote:
> After getting around the NTLM issues I had earlier, I've hit this error:
>
> java.lang.RuntimeException: Unexpected subelement Lists
> at
> com.vivisimo.connector.sharepoint.ListsStub.fromOM(ListsStub.java:16602)
> at
> com.vivisimo.connector.sharepoint.ListsStub.GetListCollection(ListsStub.java:672)
> at Test.main(Test.java:24)
>
> A bit of mailing list poking directed me to check that my response and
> WSDL matched up. I've attached the response SOAP and the WSDL.
>
> I believe the relevant bits to be as shown below (snipped short):
>
> Am I doing something wrong with my stub code?
>
> WSDL==
> <s:element name="GetListCollectionResponse">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" maxOccurs="1"
> name="GetListCollectionResult">
> <s:complexType mixed="true">
> <s:sequence>
> <s:any />
> </s:sequence>
> </s:complexType>
> </s:element>
> </s:sequence>
> </s:complexType>
> </s:element>
> ==WSDL
>
> SOAP RESPONSE==
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> >
> <soap:Body>
> <GetListCollectionResponse
> xmlns="http://schemas.microsoft.com/sharepoint/soap/"
> >
> <GetListCollectionResult>
> <Lists>
> <List xmlns="" DocTemplateUrl=""
> DefaultViewUrl="/Lists/Announcements/AllItems.aspx"
> ID="{1B4877CE-A7E1-4C41-98A2-D8071DD752BA}" Title="Announcements"
> Description="Use the Announcements list to post messages on
> the home page of your site."
> ImageUrl="/_layouts/images/itann.gif"
> Name="{1B4877CE-A7E1-4C41-98A2-D8071DD752BA}" BaseType="0"
> ServerTemplate="104"
> Created="20060627 23:05:43" Modified="20060627 23:05:42"
> LastDeleted="20060627 23:05:43" Version="0" Direction="none"
> ThumbnailSize=""
> WebImageWidth="" WebImageHeight="" Flags="16781312" ItemCount="1"
> AnonymousPermMask="" RootFolder="" ReadSecurity="1"
> WriteSecurity="1" Author="1"
> EventSinkAssembly="" EventSinkClass="" EventSinkData=""
> EmailInsertsFolder=""
> AllowDeletion="True" AllowMultiResponses="False"
> EnableAttachments="True"
> EnableModeration="False" EnableVersioning="False" Hidden="False"
> MultipleDataList="False" Ordered="False" ShowUser="True"
> />
> ==SOAP RESPONSE
>
> --
>
> JAKE GOULDING
> Software Engineer
> goulding@vivisimo.com
>
> Vivísimo [Search Done Right]
> 1710 Murray Avenue
> Pittsburgh, PA 15217 USA
> tel: +1.412.422.2499 x105
> fax: +1.412.422.2495
> vivisimo.com clusty.com
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org