Forum Replies Created
-
AuthorPosts
-
Greg,
Are you using the file adapter to receive the files? FILE.ReceivedFileName is a file adapter specific context property, so the file adapter is required to set it. I don’t think this functionality has changed between R1 and R2.
Regards,
September 8, 2008 at 7:38 AM in reply to: Error :The Messaging Engine failed while executing the inbound map for the message coming from source while using custom functoid #20629Did you copy the functoid DLL to the functoids folder (C:\Program Files\Microsoft BizTalk Server 2006\Developer Tools\Mapper Extensions)? Other things you can try are:
- Reference the custom functoid project from the map project (not sure if this is needed, but it shouldn’t hurt)
- Make sure the functoid is in the toolbox
- Restart things (VS, BizTalk host instance, BizTalk admin console, Windows)
Installing the functoid is a lot of pain and suffering, huh? It doesn’t get much installing it on other servers either. I always try to avoid custom functoids when possible. A scripting functoid that calls an external assembly is usually a good alternative.Little update:
I copied one schema (of six) so the other delimiter can be used, but it took me quite some work. (Now I know how to do it, the other five won’t take me as long of course, but still it’s time consuming.)
I had to copy the schema itself and adjust its delimiter and its namespace (I decided to put ‘_Semi’ [for semi-colon] behind both the schema name and the namespace), the send pipeline (althought I’m not sure if that was really needed, I’ll check tomorrow), the orchestration ports and port types and of course I had to put in some logic (“Use semi-colon or default schema?”).
It works, but I got the feeling this can be done easier. If there’s no (simple) way to dynamically change the delimiter, than maybe there is a simpler way of doing what I did.
Any suggestions are appreciated.
– Ruud
The NetherlandsBy the way: I’ll be back tomorrow (time difference and I have to go somewhere now)
September 7, 2008 at 11:42 PM in reply to: Error :The Messaging Engine failed while executing the inbound map for the message coming from source while using custom functoid #20625hi,
i tried by debugging the xsl it is generating the error
Cannot find the script or external object that implements prefix ‘http://schemas.microsoft.com/BizTalk/2003/ScriptNS0’.
but the custom dll is present in the GAC, i even tried re-deploying the assembly.
Hi,
If you navigate to http://XX:XX:XXX:XX:18001/webservice1/requestadapter.asmx?wsdl in a web browser, can you view the WSDL file? If so, then you know you have access to the WSDL file, so it probably is an issue with Visual Studio. If not, you need to talk to the web service owner and either fix the WSDL access or get a copy of the WSDL file. Also, you should try using the WCF-BasicHttp adapter instead of using a web reference. It is much more flexible than the SOAP adapter, with many more configuration options, and is generally less problematic than using web references. Here is a walkthrough: http://msdn.microsoft.com/en-us/library/bb246019.aspx.
I’ve never done any EDI work, but I have used correlation quite a bit. I don’t think the BTS.MessageID will work for correlation because it is different for every message. You need to pick a field that is the same in the outgoing and incoming messages.
September 6, 2008 at 9:59 AM in reply to: Error with fetching data from CRM 3.0 Adapter in Biztalk 2006 #20620Hi
have you ever resolve this problem?
September 6, 2008 at 6:35 AM in reply to: WCF/BizTalk 2006/R2 – The Connection was closed unexpectedly #20619Lots of times a “connection was closed” error means that an exception occurred in the service you were calling. Does the service log exceptions?
September 6, 2008 at 6:25 AM in reply to: C# question – xmlDoc.Write – preserving line breaks? #20618OK, well in that case check out this post: http://blogs.msdn.com/erikaehrli/archive/2005/11/16/IndentXMLFilesandDocuments.aspx.
Sure, you can use XPath without a schema. Here’s how it works:
1. To extract a string of data out of the message, you could create an orchestration string variable called strData.
2. Add an expression shape to the orchestration.
3. Inside the expression shape, set the value of strData by calling the xpath() function. Ex:
strData = xpath(soapMsg, “string(//*[local-name()=”Data”])”);
The first parameter is the message to query. The second parameter is the actual XPath query. Here is a good article on the xpath() function: http://geekswithblogs.net/sthomas/archive/2004/10/25/13269.aspx. Since you have schemas for the header and body, you may want to pull the header and body out of the SOAP message at the beginning of the orchestration, and then work directly with the header and body messages. Then you could define distinguished fields in the schemas. Distinguished fields allow you to access the data in a cleaner fashion. Ex:
strData = bodyMessage.Data;
September 5, 2008 at 2:14 PM in reply to: C# question – xmlDoc.Write – preserving line breaks? #20615Yea, but I’m creating 200 to 1000 files using a test data generator. I would like all of them to be pre-formatted.
Neal
There is no XSD defined for this soap message, still can I do Xpath queries?
But I do I have XSD’s defined seperately for the Header and the Body.
Actually I am not sure how it will work, An example orchestration on the web?
September 5, 2008 at 1:26 PM in reply to: Inserting / Reading binary data with the SQL adapter? #20613hi, I know this was a long time ago but do you remember how you ended up doing the binary insert? I need to do the same for images. I’m using the SQL Adapter in BizTalk server 2006 to call the insert stored procedure. Thanks! Evie
September 5, 2008 at 11:45 AM in reply to: C# question – xmlDoc.Write – preserving line breaks? #20612Hi Neal,
It sounds like you just want to apply a nice pretty formatting (line breaks, indentions) to an XML document? If so, all you need to do is open the XML file in Visual Studio, and select Edit -> Advanced -> Format Document. If you want a more lightweight XML editor, you should try Notepad++: http://notepad-plus.sourceforge.net/uk/site.htm. You need to download the editor and the XML Tools plugin. Once you install the XML tools plugin, you can apply XML formatting just like you can in Visual Studio: Just open the XML file, then select Plugins -> XML Tools -> Pretty Print (XML only – with line breaks).
September 5, 2008 at 7:43 AM in reply to: Exception while sending message thru WCF-BasicHTTP adapter #20610I don’t think a password change would affect WCF, but it could affect BizTalk and SQL Server. What accounts are BizTalk and SQL Server running under? If they are under your account, you need to update the passwords for those services in the services console as well.
-
AuthorPosts