AnsweredAssumed Answered

RepositoryService Soap Call - Fail to Resolve Noderef

Question asked by cfox on Apr 20, 2011
I am attempting to get the Orbeon Afresco Interface to work.  But it fails on the path variable. Orbeon is trying to store a document into alfresco at the path:  /app:company_home/cm:requisitions. The software processes the path to //app_x003a_company_home/cm_x003a_requisitions.   Is this correct?  Here is the error:

<ns1:RepositoryFault xmlns:ns1="http://www.alfresco.org/ws/service/repository/1.0"><ns1:errorCode>0</ns1:errorCode><ns1:message>java.lang.IllegalStateException: Failed to resolve to a single NodeRef with parameters (store=workspace:SpacesStore uuid=null path=//app_x003a_company_home/cm_x003a_requisitions), found 0 nodes.</ns1:message></ns1:RepositoryFault>

Here is the SOAP call it makes:
<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xxi="http://orbeon.org/oxf/xml/xinclude" xmlns:alf-auth="http://www.alfresco.org/ws/service/authentication/1.0" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:alf-cml="http://www.alfresco.org/ws/cml/1.0" xmlns:saxon="http://saxon.sf.net/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:secext="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:alf-content="http://www.alfresco.org/ws/service/content/1.0" xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:exforms="http://www.exforms.org/exf/1-0" xmlns:sql="http://orbeon.org/oxf/xml/sql" xmlns:utility="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:pipeline="java:org.orbeon.oxf.processor.pipeline.PipelineFunctionLibrary" xmlns:fr="http://orbeon.org/oxf/xml/form-runner" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Header>
            <Security xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
                <Timestamp xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" utility:Id="">
                    <utility:Created>2011-04-20T11:30:23.869-04:00</utility:Created>
                    <utility:Expires>2011-04-20T11:35:23.869-04:00</utility:Expires>
                </Timestamp>
                <UsernameToken>
                    <Username>admin</Username>
                    <Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">TICKET_b0666b42c1ba838b31029ef3e7fd686642a23fe2</Password>
                </UsernameToken>
            </Security>
        </soap:Header>
            <!– Headers are copied here –>
            <soap:Body>
                <update xmlns="http://www.alfresco.org/ws/service/content/1.0">
                    <statements>
                        <create xmlns="http://www.alfresco.org/ws/cml/1.0">
                            <id>1</id>
                            <parent>
                                <store>
                                    <scheme>workspace</scheme>
                                    <address>SpacesStore</address>
                                </store>
                                <!– This is filled-out when the instance is submitted –>
                                <path>//app_x003a_company_home/cm_x003a_requisitions</path>
                                <associationType>{http://www.alfresco.org/model/content/1.0}contains</associationType>
                                <!– This is filled-out when the instance is submitted –>
                                <childName>{http://www.alfresco.org/model/content/1.0}Contact_x0020__x0028__x0023_9399aae11508602b5ad49d48710e6be2_x0029_.pdf</childName>
                            </parent>
                            <type>{http://www.alfresco.org/model/content/1.0}content</type>
                            <property>
                                <name>{http://www.alfresco.org/model/content/1.0}name</name>
                                <isMultiValue>false</isMultiValue>
                                <value>Contact (#9399aae11508602b5ad49d48710e6be2).pdf</value>
                            </property>
                            <property>
                                <name>{http://www.alfresco.org/model/content/1.0}title</name>
                                <isMultiValue>false</isMultiValue>
                                <value>Contact</value>
                            </property>
                            <property>
                                <name>{http://www.alfresco.org/model/content/1.0}description</name>
                                <isMultiValue>false</isMultiValue>
                                <value>The Contact form is a simple form designed with Form Builder. It can be entirely created in about 10 minutes as shown in the Form Builder screencast.</value>
                            </property>
                        </create>
                    </statements>
                </update>
            </soap:Body>
        </soap:Envelope>

Outcomes