I am a newbie to TN, I am trying to go through WmTnSamples.
The first sample I study is wm.tn.samples.addaddress:addAnAddress
Here are some questions:
- After creating a new parnter using ‘Profile Assistant’ in TN console, how can I get the partner ID for wm.tn.profile:getProfileSummary?
- Where to set username and password for partner to login to TN? Or anyone can send document to TN?
- There are two places to create partner in TN console, one is ‘Trading Partners’>>’New Trading Partner’, another is ‘Tools’>>’Profile Assistant’, what are the differences?
By the way, another way of getting the partnerID, would be to invoke wm.tn.profile:getInternalID. If you already know the partner that you’re looking for and you know at least of one the partner’s external IDs (for example, DUNS), you can use that service by setting id to the external ID you already know (ex. the DUNS number) and idTypeDesc to the type of ID (ex. “DUNS”). Refer to the TN Built-In Services Reference Guide for more details.
Thanks a lot for your prompt reply.
After creating a partner in TN, why can’t I find this user in the TNPartners group?
And I can’t find the user anywhere in the ‘Users and Groups’.
Once you create partner in TN, a dialog box should pop saying:
A user account was created on the Integration Server for <partner>.
Are you seeing this message? If so, then you should be able to:
- Login to the Administrator console
- Scroll down until you can see the “Security” section on the left
- Click on “Users and Groups” (the “Users and Groups” page loads on the right.)
- Click on the “Select User” drop-down menu
- Scroll until you find the user <required>. By default this user belongs to the Everybody and TNPartners group.
By the way, what version of IS and TN are your running? The instructions above are based on version 6.1.
I created a new partner, set the partner type to ‘webMethods for partners’ instead of ‘webMethods for Trading Networks’, now, I can find it in ‘TN Partners’.
“I created a new partner, set the partner type to ‘webMethods for partners’ instead of ‘webMethods for Trading Networks’, now, I can find it in ‘TN Partners’.”
It’s good that you can now see the profile’s user account in the appropriate group, but it isn’t there due to setting the partner type. The partner type isn’t used for anything at all.
The user account that is created uses the value that is specified for the required external ID type. The default required external ID type is DUNS. So if you create a profile and specify a DUNS ID of “abcd” a user account named “abcd” will be created.
Hi Rob & Percio,
Thanks a lot for your replies.
I have other questions; I created a user ‘Developer01’ in the administrator console and added this user to the Developer group. Then, I logged in to Developer as this user.
- It seems that I can post xml documents to TN through ï¿½wm.tn:receiveï¿½ in Developer through ï¿½Developer01’, why?
- If every user with the developer permission can post documents to TN, when should we use the user/password created in TN?
- What are the differences between ï¿½wm.tn.doc.xml:routeXmlï¿½ and ï¿½wm.tn:receiveï¿½? It seems that ï¿½wm.tn.doc.xml:routeXmlï¿½ does not check the identity of the sender, does it mean we can bypass the security check by using ï¿½wm.tn.doc.xml:routeXmlï¿½?
The user accounts created by TN are meant to be used by the Trading Partners themselves. The idea is that if you want to be able to receive documents from your Trading Partners over the internet, but you don’t just anyone out there to be able to submit documents to your system, then you create a TN profile for your partner, provide the username and password to them, and have them use that username and password every time they send you a document. As you have already discovered, wm.tn:receive will then authenticate the username and password they sent against the existing user accounts. The username and password can be embedded in the HTTP header, or if posting the document interactively, the user will be prompted via a dialog box.
Many people, however, choose to make their partners’ lives easier and simply open up their system without requiring user authentication. One way to do this is to create a service with an Anonymous Execute ACL which invokes routeXml. You need to understand, however, that a malicious user could then very easily perform a DoS attack on your system by flooding TN with documents, so be careful with this approach.
Thanks for your prompt help!
I logged in to Developer as a user which doesn’t belong to ‘TN Partners’ group, I also can post document to TN using ‘wm.tn:receive’, why?
And, what are the steps to receive the document in flow services?
“And, what are the steps to receive the document in flow services?”
That’s a bit deeper than what we can go into here. Go through the TN docs and samples. The docs are quite good at explaining how to set things up.
Everything is fine now. Thanks a lot for your precious time!