wood burning stoves 2.0*
The moose likes Web Services and the fly likes Unable to publish to IBM test UDDI registry server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Unable to publish to IBM test UDDI registry server" Watch "Unable to publish to IBM test UDDI registry server" New topic

Unable to publish to IBM test UDDI registry server

Mike Chang

Joined: Apr 21, 2004
Posts: 1
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 http://www.w3.org/2001/XMLSchema-instance 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.net.PasswordAuthentication;
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)exceptions.next();
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 ]
It is sorta covered in the JavaRanch Style Guide.
subject: Unable to publish to IBM test UDDI registry server