Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Unable to publish to IBM test UDDI registry server  RSS feed

Mike Chang
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello there!
Got some problem using JAXR API to save an organization to IBM test UDDI
registry. The code is copied from Richard's book, J2EE Web Service.
And I have created an account and connection is ok using JAXR API.
The error message is as follows. Please help.

[java] **** BulkResponse Exceptions ****
[java] javax.xml.registry.SaveException: JAXR.UDDI.126: UDDI DispositionRep
ort: Error Code = E_fatalError; Error Message = E_fatalError (10500) Serious tec
hnical error has occurred while processing the request. cvc-type.3.1.1: [attribu
tes] of element 'name' must be empty, excepting those whose [namespace name] is
identical to and whose [local name] is
one of type, nil, schemaLocation or noNamespaceSchemaLocation.; Error Number =
[java] at com.sun.xml.registry.uddi.UDDIMapper.results2BulkResponse(Unk
nown Source)
[java] at com.sun.xml.registry.uddi.ResponseTransformer.transformRespon
se(Unknown Source)
[java] at com.sun.xml.registry.uddi.ResponseTransformer.transformRespon
se(Unknown Source)
[java] at com.sun.xml.registry.uddi.Processor.invokeMethod(Unknown Sour
[java] at com.sun.xml.registry.uddi.Processor.processResponseJAXB(Unkno
wn Source)
[java] at com.sun.xml.registry.uddi.Processor.processRequestJAXB(Unknow
n Source)
[java] at com.sun.xml.registry.uddi.UDDIMapper.saveOrganizations(Unknow
n Source)
[java] at com.sun.xml.registry.uddi.BusinessLifeCycleManagerImpl.saveOr
ganizations(Unknown Source)
[java] at Example1.main(Unknown Source)
[java] **************************************
The code listing:
import javax.xml.registry.ConnectionFactory;
import javax.xml.registry.Connection;
import javax.xml.registry.RegistryService;
import javax.xml.registry.BusinessLifeCycleManager;
import javax.xml.registry.infomodel.Organization;
import javax.xml.registry.infomodel.InternationalString;
import javax.xml.registry.JAXRException;
import javax.xml.registry.JAXRResponse;
import javax.xml.registry.BulkResponse;
import java.util.Properties;
import java.util.Set;
import java.util.HashSet;
import java.util.Iterator;
public class Example1 {

public static void main(String[] args) throws JAXRException {

String userName = "myusername";
String password = "mypassword";

Connection connection = connectToRegistry(userName, password);

RegistryService registry = connection.getRegistryService();
BusinessLifeCycleManager lifeCycleMngr = registry.getBusinessLifeCycleManager();

String companyName = new String("MyCompany");

Organization myOrganization = lifeCycleMngr.createOrganization(companyName);

Set organizationSet = new HashSet();

BulkResponse response = lifeCycleMngr.saveOrganizations(organizationSet);



public static void doExceptions(BulkResponse response) throws JAXRException {

if(response.getStatus() == JAXRResponse.STATUS_SUCCESS) {
System.out.println("\nProgram Complete: No problems reported!");
else {
Iterator exceptions = response.getExceptions().iterator();
while(exceptions.hasNext()) {
Exception je = (Exception);
System.out.println("\n**** BulkResponse Exceptions ****\n\n");

public static Connection connectToRegistry(String userName, String password) throws JAXRException {

ConnectionFactory factory = ConnectionFactory.newInstance();

Properties props = new Properties();

Connection connection = factory.createConnection();

PasswordAuthentication credential = new PasswordAuthentication(userName, password.toCharArray());
Set credentials = new HashSet();

return connection;
[ April 27, 2004: Message edited by: Mike Chang ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!