You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@juddi.apache.org by "Wang, Ming-Fang" <Mi...@fnf.com> on 2005/02/22 22:16:23 UTC

Using JAXR to access JUDDI problem

Hi,

 

I am brand new on web service. I have just run the happyjuddi.jsp and
everything is cool. Then I started writing some code with JAXR (Sun
Micro provider). When I tried to save organization, I got a long list of
error information. It starts with the following. I tried to search
Google and found some other people also got the same situation. I wonder
if any solution has been found, or at least what is the cause of this.

 

     [java] javax.xml.registry.JAXRException:
javax.xml.bind.UnmarshalException

     [java]  - with linked exception:

     [java] [org.xml.sax.SAXParseException: unexpected root element
(uri:"", loc

al:"Fault"). Expected elements are
<{urn:uddi-org:api_v2}relatedBusinessInfo>,<{

urn:uddi-org:api_v2}email>,<{urn:uddi-org:api_v2}authInfo>,<{urn:uddi-or
g:api_v2

}publisherAssertions>,<{urn:uddi-org:api_v2}save_business>,<{urn:uddi-or
g:api_v2

}instanceDetails>,<{urn:uddi-org:api_v2}instanceParms>,<{urn:uddi-org:ap
i_v2}get

_serviceDetail>,<{urn:uddi-org:api_v2}find_binding>,<{urn:uddi-org:api_v
2}errInf

o>,<{urn:uddi-org:api_v2}tModelDetail>,<{urn:uddi-org:api_v2}validate_va
lues>,<{

urn:uddi-org:api_v2}serviceDetail>,<{urn:uddi-org:api_v2}findQualifiers>
,<{urn:u

 

Here is a section of code that caused the problem.

 

            RegistryService rs=connection.getRegistryService();

            BusinessLifeCycleManager
blcm=rs.getBusinessLifeCycleManager();

            InternationalString
is=blcm.createInternationalString(Locale.US, "FNF");

            Organization myOrg=blcm.createOrganization(is);

            Set orgs=new HashSet();

            orgs.add(myOrg);

            BulkResponse resp=blcm.saveOrganizations(orgs);

 

Thanks.

 

-Ming

 

 


RE: Using JAXR to access JUDDI problem

Posted by Steve Viens <st...@viens.net>.
Ming, 
 
It looks to be an XML Schema validation error while parsing the response
from jUDDI.  Is the following  (from your other post) the response that
Suns JAXR provider is having trouble parsing?
 
<?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>

        <Fault>

            <faultstring>

                ORA-01401: inserted value too large for column

            </faultstring>

        </Fault>

    </soapenv:Body>

</soapenv:Envelope>

 

Can you reply to the list with the entire exception?

 
Steve

-----Original Message-----
From: Wang, Ming-Fang [mailto:Ming-Fang.Wang@fnf.com] 
Sent: Tuesday, February 22, 2005 4:16 PM
To: juddi-user@ws.apache.org
Subject: Using JAXR to access JUDDI problem



Hi,

 

I am brand new on web service. I have just run the happyjuddi.jsp and
everything is cool. Then I started writing some code with JAXR (Sun
Micro provider). When I tried to save organization, I got a long list of
error information. It starts with the following. I tried to search
Google and found some other people also got the same situation. I wonder
if any solution has been found, or at least what is the cause of this.

 

     [java] javax.xml.registry.JAXRException:
javax.xml.bind.UnmarshalException

     [java]  - with linked exception:

     [java] [org.xml.sax.SAXParseException: unexpected root element
(uri:"", loc

al:"Fault"). Expected elements are
<{urn:uddi-org:api_v2}relatedBusinessInfo>,<{

urn:uddi-org:api_v2}email>,<{urn:uddi-org:api_v2}authInfo>,<{urn:uddi-or
g:api_v2

}publisherAssertions>,<{urn:uddi-org:api_v2}save_business>,<{urn:uddi-or
g:api_v2

}instanceDetails>,<{urn:uddi-org:api_v2}instanceParms>,<{urn:uddi-org:ap
i_v2}get

_serviceDetail>,<{urn:uddi-org:api_v2}find_binding>,<{urn:uddi-org:api_v
2}errInf

o>,<{urn:uddi-org:api_v2}tModelDetail>,<{urn:uddi-org:api_v2}validate_va
lues>,<{

urn:uddi-org:api_v2}serviceDetail>,<{urn:uddi-org:api_v2}findQualifiers>
,<{urn:u

 

Here is a section of code that caused the problem.

 

            RegistryService rs=connection.getRegistryService();

            BusinessLifeCycleManager
blcm=rs.getBusinessLifeCycleManager();

            InternationalString
is=blcm.createInternationalString(Locale.US, "FNF");

            Organization myOrg=blcm.createOrganization(is);

            Set orgs=new HashSet();

            orgs.add(myOrg);

            BulkResponse resp=blcm.saveOrganizations(orgs);

 

Thanks.

 

-Ming