You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by Jeremi Thebeau <j....@xceptance.de> on 2009/07/13 10:45:52 UTC

Serviceless Business causes Error

Hi all,

when I register a business without registering any services under it, 
find_business returns a fault.

Save_Business (inbound message):

Soap Message:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header />
    <soap:Body>
        <businessDetail xmlns="urn:uddi-org:api_v3" 
xmlns:ns10="urn:uddi-org:vs_v3" 
xmlns:ns2="http://www.w3.org/2000/09/xmldsig#" 
xmlns:ns3="urn:uddi-org:sub_v3" xmlns:ns4="urn:uddi-org:subr_v3" 
xmlns:ns5="urn:uddi-org:repl_v3" xmlns:ns6="urn:uddi-org:custody_v3" 
xmlns:ns7="urn:uddi-org:vscache_v3" xmlns:ns8="urn:uddi-org:policy_v3" 
xmlns:ns9="urn:uddi-org:policy_v3_instanceParms">
            <businessEntity 
businessKey="uddi:juddi.apache.org:3b99dc3c-ac76-4e83-bbb5-a7eb7f1bde03">
                <name xml:lang="en">
                    Xceptance - Sample Business
                </name>
            </businessEntity>
        </businessDetail>
    </soap:Body>
</soap:Envelope>

Find_Business (outbound message):

Soap Message:
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    <S:Body>
        <find_business maxRows="5" xmlns="urn:uddi-org:api_v3" 
xmlns:ns10="urn:uddi-org:policy_v3_instanceParms" 
xmlns:ns2="urn:uddi-org:custody_v3" xmlns:ns3="urn:uddi-org:repl_v3" 
xmlns:ns4="http://www.w3.org/2000/09/xmldsig#" 
xmlns:ns5="urn:uddi-org:sub_v3" xmlns:ns6="urn:uddi-org:subr_v3" 
xmlns:ns7="urn:uddi-org:vscache_v3" xmlns:ns8="urn:uddi-org:policy_v3" 
xmlns:ns9="urn:uddi-org:vs_v3">
            <authInfo>
                authtoken:23f3ffae-2169-4066-b46f-3cecba87f5f2
            </authInfo>
            <findQualifiers>
                <findQualifier>
                    sortByNameDesc
                </findQualifier>
                <findQualifier>
                    approximateMatch
                </findQualifier>
            </findQualifiers>
            <name xml:lang="en">
                %
            </name>
        </find_business>
    </S:Body>
</S:Envelope>

Find_Business (inbound message):

Soap Message:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header />
    <soap:Body>
        <soap:Fault>
            <faultcode>
                soap:Server
            </faultcode>
            <faultstring>
                Marshalling Error: cvc-complex-type.2.4.b: The content 
of element 'serviceInfos' is not complete. One of 
'{"urn:uddi-org:api_v3":serviceInfo}' is expected.
            </faultstring>
        </soap:Fault>
    </soap:Body>
</soap:Envelope>

This also prevents me from seeing the businesses that have registered 
services. However, If I then register a service under the new business, 
the same find_business query works fine.

Find_Business (inbound message):

Soap Message:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header />
    <soap:Body>
        <businessList xmlns="urn:uddi-org:api_v3" 
xmlns:ns10="urn:uddi-org:vs_v3" 
xmlns:ns2="http://www.w3.org/2000/09/xmldsig#" 
xmlns:ns3="urn:uddi-org:sub_v3" xmlns:ns4="urn:uddi-org:subr_v3" 
xmlns:ns5="urn:uddi-org:repl_v3" xmlns:ns6="urn:uddi-org:custody_v3" 
xmlns:ns7="urn:uddi-org:vscache_v3" xmlns:ns8="urn:uddi-org:policy_v3" 
xmlns:ns9="urn:uddi-org:policy_v3_instanceParms">
            <listDescription>
                <includeCount>
                    2
                </includeCount>
                <actualCount>
                    2
                </actualCount>
                <listHead>
                    1
                </listHead>
            </listDescription>
            <businessInfos>
                <businessInfo 
businessKey="uddi:juddi.apache.org:3b99dc3c-ac76-4e83-bbb5-a7eb7f1bde03">
                    <name xml:lang="en">
                        Xceptance - Sample Business
                    </name>
                    <serviceInfos>
                        <serviceInfo 
businessKey="uddi:juddi.apache.org:3b99dc3c-ac76-4e83-bbb5-a7eb7f1bde03" 
serviceKey="uddi:juddi.apache.org:f5455ea9-5c21-40ce-b0a1-9dc9b1dcbd6a">
                            <name xml:lang="en">
                                Xceptance XLT UDDI - Sample Service
                            </name>
                        </serviceInfo>
                    </serviceInfos>
                </businessInfo>
                <businessInfo 
businessKey="uddi:juddi.apache.org:2a18dfed-1aae-4451-84e6-e84a84698734">
                    <name xml:lang="en">
                        An Apache jUDDI Node
                    </name>
                    <description xml:lang="en">
                        This is a UDDI v3 registry node as implemented 
by Apache jUDDI.
                    </description>
                    <serviceInfos>
                        <serviceInfo 
businessKey="uddi:juddi.apache.org:2a18dfed-1aae-4451-84e6-e84a84698734" 
serviceKey="uddi:juddi.apache.org:32706335-4a21-4e67-a824-a2f10d24c32b">
                            <name xml:lang="en">
                                UDDI Publish Service
                            </name>
                        </serviceInfo>
                        <serviceInfo 
businessKey="uddi:juddi.apache.org:2a18dfed-1aae-4451-84e6-e84a84698734" 
serviceKey="uddi:juddi.apache.org:38d8e9e1-b5a6-4d9a-8064-623b2fbeff9b">
                            <name xml:lang="en">
                                UDDI Custody and Ownership Transfer Service
                            </name>
                        </serviceInfo>
                        <serviceInfo 
businessKey="uddi:juddi.apache.org:2a18dfed-1aae-4451-84e6-e84a84698734" 
serviceKey="uddi:juddi.apache.org:3c166879-be40-4df1-81ac-a4513803b018">
                            <name xml:lang="en">
                                UDDI Subscription Service
                            </name>
                        </serviceInfo>
                        <serviceInfo 
businessKey="uddi:juddi.apache.org:2a18dfed-1aae-4451-84e6-e84a84698734" 
serviceKey="uddi:juddi.apache.org:45c6fe9a-1a7d-4557-a415-2aa1f1d347a1">
                            <name xml:lang="en">
                                UDDI Subscription Listener Service
                            </name>
                        </serviceInfo>
                        <serviceInfo 
businessKey="uddi:juddi.apache.org:2a18dfed-1aae-4451-84e6-e84a84698734" 
serviceKey="uddi:juddi.apache.org:77004ccd-4a7c-46bd-9ebd-a45eb164b8f6">
                            <name xml:lang="en">
                                UDDI Inquiry Service
                            </name>
                        </serviceInfo>
                        <serviceInfo 
businessKey="uddi:juddi.apache.org:2a18dfed-1aae-4451-84e6-e84a84698734" 
serviceKey="uddi:juddi.apache.org:fb79ad83-06a3-450c-899a-1ce6daffcb3c">
                            <name xml:lang="en">
                                UDDI Security Service
                            </name>
                        </serviceInfo>
                    </serviceInfos>
                </businessInfo>
            </businessInfos>
        </businessList>
    </soap:Body>
</soap:Envelope>

Note: Furthermore, once a second business is registered (with or without 
services), I can no longer see the "An Apache jUDDI Node" business or 
anything else in the UDDIBrowser Portlet.

Details:
I'm running the juddi-portal-bundle-3.0.0.beta package downloadable from 
the website on Vista SP1.

Jeremi Thebeau