juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ks...@apache.org
Subject svn commit: r1454484 - /juddi/trunk/juddi-examples/simple-publish/src/main/java/org/apache/juddi/example/publish/SimplePublish.java
Date Fri, 08 Mar 2013 18:22:06 GMT
Author: kstam
Date: Fri Mar  8 18:22:06 2013
New Revision: 1454484

URL: http://svn.apache.org/r1454484
Log:
JUDDI-540, Fixing the jUDDI distro. 

add registering a bindingTemplate to the example

Modified:
    juddi/trunk/juddi-examples/simple-publish/src/main/java/org/apache/juddi/example/publish/SimplePublish.java

Modified: juddi/trunk/juddi-examples/simple-publish/src/main/java/org/apache/juddi/example/publish/SimplePublish.java
URL: http://svn.apache.org/viewvc/juddi/trunk/juddi-examples/simple-publish/src/main/java/org/apache/juddi/example/publish/SimplePublish.java?rev=1454484&r1=1454483&r2=1454484&view=diff
==============================================================================
--- juddi/trunk/juddi-examples/simple-publish/src/main/java/org/apache/juddi/example/publish/SimplePublish.java
(original)
+++ juddi/trunk/juddi-examples/simple-publish/src/main/java/org/apache/juddi/example/publish/SimplePublish.java
Fri Mar  8 18:22:06 2013
@@ -102,7 +102,16 @@ public class SimplePublish {
 			Name myServName = new Name();
 			myServName.setValue("My Service");
 			myService.getName().add(myServName);
+			
 			// Add binding templates, etc...
+			BindingTemplate myBindingTemplate = new BindingTemplate();
+			AccessPoint accessPoint = new AccessPoint();
+			accessPoint.setUseType(AccessPointType.WSDL_DEPLOYMENT.toString());
+			accessPoint.setValue("http://example.org/services/myservice?wsdl");
+			myBindingTemplate.setAccessPoint(accessPoint);
+			BindingTemplates myBindingTemplates = new BindingTemplates();
+			myBindingTemplates.getBindingTemplate().add(myBindingTemplate);
+			myService.setBindingTemplates(myBindingTemplates);
 			
 			// Adding the service to the "save" structure, using our publisher's authentication info
and saving away.
 			SaveService ss = new SaveService();
@@ -112,7 +121,9 @@ public class SimplePublish {
 			String myServKey = sd.getBusinessService().get(0).getServiceKey();
 			System.out.println("myService key:  " + myServKey);
 			
-			// Now you have a publisher saved who in turn published a business and service via the
jUDDI API!
+			// Now you have a publisher saved who in turn published a business and service via 
+			// the jUDDI API!
+			
 		} 
 		catch (Exception e) {
 			e.printStackTrace();



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@juddi.apache.org
For additional commands, e-mail: commits-help@juddi.apache.org


Mime
View raw message