AuthInfo authInfo = new AuthInfo();
authInfo.setValue("6f157513-844e-4a95-a856-d257e6ba9726");
OverviewDoc overDoc = new OverviewDoc();
overDoc.setOverviewURL("http://www.juddi.org/service.html");
overDoc.addDescription(new Description("over-doc Descr"));
overDoc.addDescription(new Description("over-doc Descr Two","en"));
InstanceDetails instDetails = new InstanceDetails();
instDetails.addDescription(new Description("Description1"));
instDetails.addDescription(new Description("Description2","it"));
instDetails.setInstanceParms("inst-det parameters");
instDetails.setOverviewDoc(overDoc);
TModelInstanceInfo tModInstInfo = new TModelInstanceInfo();
tModInstInfo.setTModelKey("uuid:ae0f9fd4-287f-40c9-be91-df47a7c72fd9");
tModInstInfo.addDescription(new Description("tMod-Inst-Info"));
tModInstInfo.addDescription(new Description("tMod-Inst-Info too","es"));
tModInstInfo.setInstanceDetails(instDetails);
TModelInstanceDetails tModInstDet = new TModelInstanceDetails();
tModInstDet.addTModelInstanceInfo(tModInstInfo);
BindingTemplate binding = new BindingTemplate();
binding.setBindingKey("c9613c3c-fe55-4f34-a3da-b3167afbca4a");
binding.setServiceKey("997a55bc-563d-4c04-8a94-781604870d31");
binding.addDescription(new Description("whatever"));
binding.addDescription(new Description("whatever too","fr"));
binding.setHostingRedirector(new HostingRedirector("92658289-0bd7-443c-8948-0bb4460b44c0"));
binding.setAccessPoint(new AccessPoint(AccessPoint.HTTP,"http://www.juddi.org/service.wsdl"));
binding.setTModelInstanceDetails(tModInstDet);
BindingTemplates bindings = new BindingTemplates();
bindings.addBindingTemplate(binding);
CategoryBag catBag = new CategoryBag();
catBag.addKeyedReference(new KeyedReference("keyName","keyValue"));
catBag.addKeyedReference(new KeyedReference("uuid:dfddb58c-4853-4a71-865c-f84509017cc7","keyName2","keyValue2"));
BusinessService service = new BusinessService();
service.setServiceKey("fe8af00d-3a2c-4e05-b7ca-95a1259aad4f");
service.setBusinessKey("b8cc7266-9eed-4675-b621-34697f252a77");
service.setBindingTemplates(bindings);
service.setCategoryBag(catBag);
service.addName(new Name("serviceNm"));
service.addName(new Name("serviceNm2","en"));
service.addDescription(new Description("service whatever"));
service.addDescription(new Description("service whatever too","it"));
SaveService object = new SaveService();
object.setAuthInfo(authInfo);
object.addBusinessService(service);
object.addBusinessService(service);