Forum Replies Created
-
AuthorPosts
-
Rich,
I agree with you on Option 1, however it would be possible to deploy a different version of the assembly to the GAC and then have your BTS apps reference that new assembly through Assembly Redirection in the btsntsvc.config file. You would need to ensure that your interface remains consistant however.
Option 2 seems the most sensible given that you can update the web-service without affecting the rest of you integration layer, however bear in mind the latency going over the network introduces and as you rightly pointed out, you are exposing business-logic and implementing SOA where it isn’t really needed.
Option 3 also seems sensible, given that the deployed BRE policies can be accessed by your entire BTS tier and C# codebase if necessary. You get versioning ‘out-of the-box’, but bear in mind that the latest policy version takes precedence. Furthermore, ‘non-techies’ can update the business rules if necessary.
In my opinion, I would stay away from option 2 as it introduces too many additional overheads, so its a toss up between options 1 & 3 – if you want non-techies to update and deploy your business rules go with BRE, otherwise go with assemblies and redirection.
On a final note, be thankful you’re in an organisation where there is healthy debate, I’m currently over-ruled by C# developers who want to throw out BizTalk and do everything as Windows Services. Sigh.
HTH, Nick.
Daniel,
On the basis of their web-site I would probably stay clear of the component, however looking around the web there doesn’t appear to be that many open-source C# implementations of OpenPGP and rolling your own looks like a bit of a challenge!
I would suggest trying their component out for a while and see whether you like it – stick a couple of large messages through it and see what performance problems you have, if any.I’d also recommend asking them how they implement their PGP routines – have they written then from scratch, or are they wrapping around GnuPrivacyGuard (as in http://www.codeproject.com/KB/security/gnupgdotnet.aspx), are they using a third party library such as Bouncy Castle (http://www.bouncycastle.org/csharp/index.html), or are they using an off the shelf commercial component?
On a slightly different note, this question has pricked my interest and I may look at developing a suite of pipeline components (possibly using the Bouncy Castle framework) for PGP to add to my Archive Component.
Let me knowhow you get on.
Rgds, Nick.
August 28, 2008 at 7:24 AM in reply to: Call a webservice with an “object” parameter from orchestration #20524Oh, for the options I posted, I was talking about extracting XML from the web service response received via the WCF adapter. Option 3 is a useful technique for getting web service responses, but not possible when receiving data from a file adapter. However, options 1 & 2 are applicable with the file adapter.
August 28, 2008 at 6:14 AM in reply to: Call a webservice with an “object” parameter from orchestration #20523Hi Russell,
Options 1 and 2 are definately interesting. But I don’t think option 3 is. The message that comes in to the orchestration comes in via the FILE adapter.
I’m not sure if i’ve picked the best solution for this problem but what I’m doing is that I recunstruct the message in a receive pipeline to a multiprt message just as described in my first post. I then need to map this recontructed message to the web service request in my orchestration.
I’m now trying to call a orchestration facade (external .NET assembly) to pull the body parts out form the incoming message and map them to the web service request message.
Sure thing i’ll return with an update:-)
Thanks a lot for your posts!!!
//Ershad
August 28, 2008 at 5:40 AM in reply to: Call a webservice with an “object” parameter from orchestration #20522Hi Ershad,
You have a couple of options:
1. In the map, use a Mass Copy functoid to copy the any node into another XML document.
2. Use the xpath() function to pull out the XML you want. Example:
jobXmlMessage = xpath(wsResponse, “/*[local-name()=’ImportJobPC_XML’]/*[local-name()=’vJobXML’]”);
That would need to go in a message asignment shape.
3. Configure the WCF adapter to auto extract this XML for you. On the Messages tab of the adapter config, you can enter an XPath expression to run on the web service response. You could just put in the XPath above, and then in your orchestration you would receive just the vJobXML. Cool huh?
I don’t know if that XPath is right, so you will need to test. Here is the best XPath testing tool I have found: http://www.biztalkgurus.com/blogs/biztalksyn/archive/2007/11/25/dansharp-xmlviewer.aspx
Let me know how it goes!
August 28, 2008 at 12:45 AM in reply to: Call a webservice with an “object” parameter from orchestration #20520August 28, 2008 at 12:28 AM in reply to: Call a webservice with an “object” parameter from orchestration #20519Hi Russell,
I got the add web reference to work with the WCF schema generation wizard. The schema generated for the web service request looks as followed:
<xs:schema . . .>
<xs:element name=“ImportJobPC_XML“>
<xs:complexType>
<xs:sequence>
<xs:element minOccurs=“0“ maxOccurs=“1“ name=“vReturn“ />
<xs:element minOccurs=“0“ maxOccurs=“1“ name=“vJobXML“ />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
I need to set the vRetur element and vJobXML in my orchestration and pass it to the web service. Currently this is implemented with VB6 code calling the web service. In the VB6 code the vReturn parameter is set to a string value and the vJobXml is an xml passed as string.
I want to achieve the same thing in BizTalk.
What I get into BizTalk is an XML-document which corresponds to the vJobXML and the vReturn element is just a constant string.
I’ve tried to create a map in my orchestration but mapping over element of type string to an anyType element doesn’t seem to work.
I appreciate any suggestions?
Regards,
//Ershad
yes its a 2 way send and receive port. Web service is not calling biz talk, web service is doing some task at its own.
Hi,
You can initialize a correlation set on a web port just like you would on any other send port. In the orchestration designer, create a correlation type, then create a correlation set of that type. Next, on the web service send port open the properties, in the “Initializes correlation sets” field, select the correlation set you just created.
What do you need to correlated? It’s not the response on a 2 way send port is it? You don’t need correlation for that. You would need correlation if you are using a fire & forget model where the web service opens a separate connection to BizTalk later and pushes the response back.
Hi Hermann,
Here are a few ways you could initialize the message:
1. With a map. This is a good technique if you need to pull data from another message, but doesn’t make that much sense if you are just hardcoding values.
2. With a helper class. Use XSD.exe to generate a class to represent the schema. Then write a helper class to instantate and return the class representing your schema. Call the helper class from a message assignment and assign the output to your return message. This is the “right” way to do it in my opinion, although it is kind of a pain to set up.
3. Use XmlDocument.LoadXml to initialize the message. You need to create an extra message of type XmlDocument. Then in the message assignment:
xmlDocMessage = new System.Xml.XmlDocument();
xmlDocMessage.LoadXml(“<Out><ErrorCode>4711</ErrorCode></Out>”);
msgOut.MsgPart1 = xmlDocMessage;
This method is very quick and effective, but it makes you feel kind of dirty 🙂
4. There is some easy way to do it using the “xpath()” function, but I don’t remember how. Maybe someone can fill us in!
I’m just guessing, but I bet the SOAP adapter uses NTLM by default, and that it will use the account that the host instance is running under. Does that account have access to the web service?
Hi Sharon,
May I know how did you solve the 405 error? Thanks
I have run the SSIS package BAM_AN_[viewName], but I think this is only necessary to get the aggregations updated.
If the BAM Portal source code was available, we could see what populates the Related Documents list.
Do you need to run the SSIS packages?
Rob,
Can you mark ruselw’s reply as the answer?
Cheers, Nick.
-
AuthorPosts