Petals-se-Component est un JBI component utilisé avec Petals.
Exemple de code pour envoyer une requête et pour récupérer une réponse:
{code}URL url = new URL("http://localhost:8084/petals/services/ComponentInformationServiceEndpointService?wsdl");
ComponentInformationService comInfoService = new ComponentInformationService(url);
ComponentInformation comInfo = comInfoService.getComponentInformationServiceEndpoint();
//send request
GetWsdlRequest getWsdlRequest = new GetWsdlRequest();
getWsdlRequest.setService("{" + serviceNamespace + "}" + serviceName);
//receive response
GetWsdlResponse wsdl = comInfo.getWsdl(getWsdlRequest);
{code}
Exemple de code pour envoyer une requête et pour récupérer une réponse:
{code}URL url = new URL("http://localhost:8084/petals/services/ComponentInformationServiceEndpointService?wsdl");
ComponentInformationService comInfoService = new ComponentInformationService(url);
ComponentInformation comInfo = comInfoService.getComponentInformationServiceEndpoint();
//send request
GetWsdlRequest getWsdlRequest = new GetWsdlRequest();
getWsdlRequest.setService("{" + serviceNamespace + "}" + serviceName);
//receive response
GetWsdlResponse wsdl = comInfo.getWsdl(getWsdlRequest);
{code}