community-content

Forum Replies Created

Viewing 15 posts - 3,886 through 3,900 (of 9,648 total)
  • Author
    Posts
  • in reply to: FILE.ReceivedFileName and EDI #20631

    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,

    Did 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.

    in reply to: Dynamic delimiters #20628

     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 Netherlands

    By the way: I’ll be back tomorrow (time difference and I have to go somewhere now)

     

    hi,

    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.

     

    in reply to: Consuming webservice in biztalk #20624

    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.

    in reply to: AS2 Orchestration #20622

    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.

    in reply to: Error with fetching data from CRM 3.0 Adapter in Biztalk 2006 #20620

    Hi

     have you ever resolve this problem?

    Lots of times a “connection was closed” error means that an exception occurred in the service you were calling.  Does the service log exceptions?

    in reply to: C# question – xmlDoc.Write – preserving line breaks? #20618
    in reply to: SOAP message #20617

    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;

    in reply to: C# question – xmlDoc.Write – preserving line breaks? #20615

     

    Yea, but I’m creating 200 to 1000 files using a test data generator.  I would like all of them to be pre-formatted.

    Neal

    in reply to: SOAP message #20614

    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?

    in reply to: Inserting / Reading binary data with the SQL adapter? #20613

     hi, 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

    in reply to: C# question – xmlDoc.Write – preserving line breaks? #20612

    Hi 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).

    in reply to: Exception while sending message thru WCF-BasicHTTP adapter #20610

    I 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.

Viewing 15 posts - 3,886 through 3,900 (of 9,648 total)