Hi Adam,

I have not had your exact error but I found that using the WSDLs found
at http://localhost:8080/fedora/wsdl?api=API-A and
http://localhost:8080/fedora/wsdl?api=API-M work much more consistently
with Java (JAX-WS and Axis) than those at
http://localhost:8080/fedora/services/access?wsdl and
http://localhost:8080/fedora/services/management?wsdl. I have a feeling
that it is because the latter set are generated by Axis on the Fedora
side, but I have no idea why some parts fail. if anyone can explain the
exact nature of the discrepancy it would be greatly appreciated. 

~Matt

On Thu, 2009-10-15 at 08:53 -0700, Adam Cooney wrote:

> Hi,
> 
> I'm having an issue getting an ObjectProfile using the API-A web service 
> on Fedora vers 3.2.1. I'm calling the method 
> getObjectProfile(GetObjectProfile file). I've got the WSDL using 
> (http://localhost:8080/fedora/services/access?wsdl), however when I call 
> the method getObjectProfile I get back a SOAP message that does not 
> comply with the WSDL. I've created the client stub using Axis2.
> Below is the SOAP message containing the response.
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope 
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
> <soapenv:Body>
>     <getObjectProfileResponse 
> xmlns="http://www.fedora.info/definitions/1/0/types/";>
>         <objectProfile xmlns="">
>             <pid>namespace:root</pid>
>             <objLabel>Rootnode</objLabel>
>             
> <objModels><model>info:fedora/fedora-system:FedoraObject-3.0</model></objModels>
>             <objCreateDate>2009-10-15T10:30:32.376Z</objCreateDate>
>             <objLastModDate>2009-10-15T10:30:32.376Z</objLastModDate>
>             
> <objDissIndexViewURL>http://localhost:8080/fedora/get/namespace:root/fedora-system:3/viewMethodIndex</objDissIndexViewURL>
>             
> <objItemIndexViewURL>http://localhost:8080/fedora/get/namespace:root/fedora-system:3/viewItemIndex</objItemIndexViewURL>
>         </objectProfile>
>     </getObjectProfileResponse>
> </soapenv:Body>
> </soapenv:Envelope>"
> 
> Exception from Axis2: org.apache.axis2.AxisFault: 
> org.apache.axis2.databinding.ADBException: Unexpected subelement model
> 
> The WSDL says the objModels should contain: impl:ArrayOf_xsd_string and 
> not a model.
> 
> Thank you in advance
> 
> Adam
> 
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Fedora-commons-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

-- 
Matt Cordial
Digital Library Software Engineer
Arizona State University Library
480-965-9094
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to