Search in sources :

Example 1 with ServiceMetadataPublisherServiceForParticipantType

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);
}
Also used : SMPAdvancedServiceForParticipantType(com.helger.peppol.smlclient.bdmsl.SMPAdvancedServiceForParticipantType) ServiceMetadataPublisherServiceForParticipantType(com.helger.peppol.smlclient.bdmsl.ServiceMetadataPublisherServiceForParticipantType) SimpleParticipantIdentifier(com.helger.peppolid.simple.participant.SimpleParticipantIdentifier)

Aggregations

SMPAdvancedServiceForParticipantType (com.helger.peppol.smlclient.bdmsl.SMPAdvancedServiceForParticipantType)1 ServiceMetadataPublisherServiceForParticipantType (com.helger.peppol.smlclient.bdmsl.ServiceMetadataPublisherServiceForParticipantType)1 SimpleParticipantIdentifier (com.helger.peppolid.simple.participant.SimpleParticipantIdentifier)1