// EPR is somewhat bogus.
EndpointReferenceType epr = new EndpointReferenceType( );
epr.setAddress( new AttributedURI( callback_url ) );
epr.setPortType( new AttributedQName( "nothing" ) );
ServiceNameType snt = new ServiceNameType( );
snt.setPortName( new NCName( "NotificationConsumer" ) );
snt.set_value( new QName( "TestNotifConsumer" ) );
epr.setServiceName( snt );
// Set a couple of reference properties, including a ResourceID.
MessageElement[] prop = new MessageElement[2];