use of com.helger.peppol.smlclient.bdmsl.ServiceMetadataPublisherServiceForParticipantType in project peppol-commons by phax.
the class BDMSLClient method createParticipantIdentifier.
public void createParticipantIdentifier(@Nonnull @Nonempty final String sSMPID, @Nonnull final IParticipantIdentifier aParticipantID, @Nonnull @Nonempty final String sServiceName) throws BadRequestFault, InternalErrorFault, NotFoundFault, UnauthorizedFault {
ValueEnforcer.notEmpty(sSMPID, "SMPID");
ValueEnforcer.notNull(aParticipantID, "ParticipantID");
ValueEnforcer.notEmpty(sServiceName, "ServiceName");
if (LOGGER.isDebugEnabled())
LOGGER.debug("createParticipantIdentifier (" + sSMPID + ", " + aParticipantID + ", " + sServiceName + ")");
final SMPAdvancedServiceForParticipantType aBody = new SMPAdvancedServiceForParticipantType();
final ServiceMetadataPublisherServiceForParticipantType aSMP = new ServiceMetadataPublisherServiceForParticipantType();
aSMP.setServiceMetadataPublisherID(sSMPID);
// Explicit constructor call is needed here!
aSMP.setParticipantIdentifier(new SimpleParticipantIdentifier(aParticipantID));
aBody.setCreateParticipantIdentifier(aSMP);
aBody.setServiceName(sServiceName);
createWSPort().createParticipantIdentifier(aBody);
}
Aggregations