find_relatedBusinesses causes an invalid content SOAP fault
-----------------------------------------------------------

                 Key: JUDDI-392
                 URL: https://issues.apache.org/jira/browse/JUDDI-392
             Project: jUDDI
          Issue Type: Bug
          Components: core
    Affects Versions: 3.0.1
         Environment: Tomcat 6.0.10, PostgreSQL 8.4
            Reporter: Jason Brown
            Assignee: Kurt T Stam


When attempting a find_relatedBusinesses call when publisherAssertions exist, a 
SOAP fault indicating an Invalid Content is returned.

INPUTS:

The following businesses are saved:

<save_business xmlns="urn:uddi-org:api_v3"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
      <businessEntity businessKey="uddi:assertiontest:01">
        <name>uddi:assertiontest:01</name>
    </businessEntity>
</save_business>

<save_business xmlns="urn:uddi-org:api_v3"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
      <businessEntity businessKey="uddi:assertiontest:02">
        <name>uddi:assertiontest:02</name>
    </businessEntity>
</save_business>

The following add_publisherAssertions is performed:

<add_publisherAssertions xmlns="urn:uddi-org:api_v3"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
     <publisherAssertion>
        <fromKey>uddi:assertiontest:01</fromKey>
        <toKey>uddi:assertiontest:02</toKey>
        <keyedReference tModelKey="uddi:uddi.org:relationships" 
keyName="Assertion Test" keyValue="parent-child"/>
    </publisherAssertion>
</add_publisherAssertions>      

The following find_relatedBusinesses is attempted (fails with SOAP fault below):

<find_relatedBusinesses xmlns="urn:uddi-org:api_v3"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
    <businessKey>uddi:assertiontest:01</businessKey>
</find_relatedBusinesses>

The following SOAP fault is returned:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
        <soap:Body>
                <soap:Fault>
                        <faultcode>soap:Server</faultcode>
                                <faultstring>Marshalling Error: 
cvc-complex-type.2.4.a: Invalid content was found starting with element 
'relatedBusinessInfos'. One of '{"urn:uddi-org:api_v3":businessKey}' is 
expected.
                                </faultstring>
                </soap:Fault>
        </soap:Body>
</soap:Envelope>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to