You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by "Kurt T Stam (JIRA)" <ju...@ws.apache.org> on 2010/09/23 20:49:39 UTC
[jira] Updated: (JUDDI-414) When performing a
find_relatedBusinesses query using a or a SOAP fault is
returned with a validation exception.
[ https://issues.apache.org/jira/browse/JUDDI-414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kurt T Stam updated JUDDI-414:
------------------------------
Fix Version/s: 3.0.4
> When performing a find_relatedBusinesses query using a <fromKey> or <toKey> a SOAP fault is returned with a validation exception.
> ---------------------------------------------------------------------------------------------------------------------------------
>
> Key: JUDDI-414
> URL: https://issues.apache.org/jira/browse/JUDDI-414
> Project: jUDDI
> Issue Type: Bug
> Components: core
> Affects Versions: 3.0.3
> Environment: Apache Tomcat 6.0.29, PostgreSQL 8.4
> Reporter: Jason Brown
> Assignee: Kurt T Stam
> Fix For: 3.0.4
>
>
> When performing a find_relatedBusinesses query using a <fromKey> or <toKey> a SOAP fault is returned with a validation exception. The message is missing the businessKey element which appears below the listDescription.
> INPUTS:
> save the following businesses:
> <businessEntity businessKey="uddi:businesstest:01">
> <name>businesstest:01</name>
> </businessEntity>
> <businessEntity businessKey="uddi:businesstest:02">
> <name>businesstest:02</name>
> </businessEntity>
> save the following publisherAssertion:
> <add_publisherAssertions xmlns="urn:uddi-org:api_v3">
> <publisherAssertion>
> <fromKey>uddi:businesstest:01</fromKey>
> <toKey>uddi:businesstest:02</toKey>
> <keyedReference tModelKey="uddi:uddi.org:relationships" keyName="assertionTesting01" keyValue="parent-child"/>
> </publisherAssertion>
> </add_publisherAssertions>
> perform the following queries
> <find_relatedBusinesses xmlns="urn:uddi-org:api_v3">
> <fromKey>uddi:businesstest:01</fromKey>
> </find_relatedBusinesses>
> <find_relatedBusinesses xmlns="urn:uddi-org:api_v3">
> <toKey>uddi:businesstest:02</toKey>
> </find_relatedBusinesses>
> When performing either of these queries a 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>
> The following message is an example of what is returned, the schema expects a businessKey where the comments currently are, but there is not one there:
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <relatedBusinessesList xmlns="urn:uddi-org:api_v3" xmlns:ns2="http://www.w3.org/2000/09/xmldsig#">
> <listDescription>
> <includeCount>1</includeCount>
> <actualCount>1</actualCount>
> <listHead>1</listHead>
> </listDescription>
> <!-- businessKey>uddi:business:key:goes:here</businessKey-->
> <relatedBusinessInfos>
> <relatedBusinessInfo>
> <businessKey>uddi:businesstest:02</businessKey>
> <name>uddi:businesstest:02</name>
> <sharedRelationships direction="toKey">
> <keyedReference keyValue="parent-child" keyName="assertionTesting_02"
> tModelKey="uddi:uddi.org:relationships"/>
> </sharedRelationships>
> </relatedBusinessInfo>
> </relatedBusinessInfos>
> </relatedBusinessesList>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.