60 likes | 72 Views
Explore various Discovery protocols for PSI deployment, including SLPv2, SSDP, DNS-SD, LDAP, UDDI, with examples and client-side usage guidance.
E N D
Discovery Strategy The strategy will not mandate any particular Discovery protocol, however, it will suggest Discovery protocols to use. Current thinking in the external group is to use: 0) Pre-configuration 1) SLPv2 - requires no infrastructure and can filter on attributes 2) SSDP - good in a Microsoft environment, may need other protocols such as UPnP to learn about attributes. No DNS required 3) DNS-SD - requires infrastructure, better in heterogeneous environments. No DNS server if multi-cast DNS is used. ----- Registries 4) LDAP? 5) UDDI - Believe this is both under deployed and does not give us what we need. Also it is OK if a particular implementation uses a different strategy when it has knowledge of how PSI will be deployed. PSI Overview
WSDL Return Example Start with an http get to: http://<hostname>:3700/psi ** The hostname Is Discovered Using Existing Discovery Protocols Client Host HTTP Get on http://<hostname>:3700/psi Returns Interface - WSDL XML Document for QueryEndPointsInterface Print Service Query EndPointsInterface Optionally QuerySupportedInterfaces(): string[] Returns an Array of InterfaceIdentifiers InterfaceIdentifier.xsd: Name, Version, Data Model, Secure QueryInterface (interfaceIdentifier : String) : lang.String Returns Interface - WSDL XML Document for requested interface. PSI Overview ** IANA. Internet Assigned Numbers Authority – Request Pending
HTTP URL Return Example Start with an http get to: http://<hostname>:3700/psi ** The hostname Is Discovered Using Existing Discovery Protocols Client Host HTTP Get on http://<hostname>:3700/psi Returns HTTP URL EndPoint for the QueryEndPointsInterface Print Service Query EndPointsInterface Optionally QuerySupportedInterfaces(): string[] Returns an Array of InterfaceIdentifiers InterfaceIdentifier.xsd: Name, Version, Data Model, Secure QueryInterfaceEndPoint (interfaceIdentifier : String) : lang.String Returns HTTP URL EndPoint for the requested interface PSI Overview ** IANA. Internet Assigned Numbers Authority – Request Pending
HTTP URL Return Example Obtaining the WSDL from the HTTP URL EndPoint Client Host HTTP Get URL EndPoint with ?WSDL appended Returns Interface - WSDL XML Document for QueryEndPointsInterface Print Service Query EndPointsInterface Optionally QuerySupportedInterfaces(): string[] Returns an Array of InterfaceIdentifiers InterfaceIdentifier.xsd: Name, Version, Data Model, Secure QueryInterfaceEndPoint (interfaceIdentifier : String) : lang.String Returns HTTP URL EndPoint for the requested interface HTTP Get URL EndPoint with ?WSDL appended Returns Interface - WSDL XML Document for the requested interface PSI Overview ** IANA. Internet Assigned Numbers Authority – Request Pending
HTTP URL Client Side Usage What does the client do with the return from the HTTP Get? Client Host HTTP Get on http://<hostname>:3700/psi Returns HTTP URL EndPoint for the QueryEndPointsInterface // Make a service JobControlInterfaceService jcService = new JobControlInterfaceServiceLocator(); // Now use the service to get a stub which implements the SDI. JobControlInterface jc =jcService.getOrgPwgPsiJobControlInterface(new java.net.URL( "http://localhost:8080/axis/services/org.pwg.psi.JobControlInterface")); PSI Overview ** IANA. Internet Assigned Numbers Authority – Request Pending