The Profile View
Sending SOAP messages is a lot easier if you specify a profile when you
create the MessageFactory object that will spawn the message. The
profile tells the MessageFactory to generate SOAP messages that comply
with a specific message format standard, such as ebXML.
You can find out what profiles your messaging provider supports by
opening a connection to the messaging provider, like this...
ctx = newInitialContext();
ProviderConnectionFactory pcf =
(ProviderConnectionFactory)ctx.lookup("MessagingProviderName");
ProviderConnection pc = pcf.createConnection();
...and then extracting the ProviderMetaData object from that and taking
an array of profiles from the ProviderMetaData, like this...
ProviderMetaData pmd = pc.getMetaData();
String[] supportedProfiles = pmd.getSupportedProfiles();
String desiredProfile = null;
You can then examine the array elements one at a time until you find one
that matches the specification you want:
for (int i=0; i
desiredProfile = supportedProfiles[i];
break;
}
}
Once you've done that, you can proceed to create a SOAP message based on
the messaginf profile you got from your search. You'd do that like this:
MessageFactory mf = pc.createMessageFactory(desiredProfile);
EbXMLMessageImpl ebxmlMsg = (EbXMLMessageImpl)mf.createMessage();
» posted by ITworld staff
ITworld
Symantec Backup Exec 12 and Backup Exec System Recovery 8 deliver industry leading Windows data protection and system recovery. Download this whitepaper to find out the top reasons to upgrade and how to get continuous data protection and complete system recovery.
Data and system loss — from a hard drive failure, malicious attack, natural disaster, or simple human error — can happen anytime. Don’t leave your business vulnerable. Make sure you have a secure recovery strategy in place. Symantec's latest backup and system recovery technology can efficiently restore critical applications, individual emails and documents and even restore your entire system in minutes in the event of a loss.
Businesses face a growing challenge to ensure that the IT environment is properly protected. Backup Exec 12 integrates with other applications in the Symantec family of products, to complement your current data protection strategy, keep your data securely backed up and make it recoverable when you need it most.







