getNonce() – a C# routine to generate the Nonce code for WS-Security

I created this code to generate a unique Nonce code. This relates back to this post about BizTalk calling a webservice with Basic Authenticiation. Message Assignment is prior blog was updated to call C# business component: <pre> xmlDocSoapHeader.LoadXml(    "<headers>" +    "<wsse:Security mustUnderstand=\"1\" xmlns:wsse=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\" xmlns:wsu=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\">" +    "<wsse:UsernameToken wsu:Id=\"UsernameToken-E4E3CB1F68472DCF2914369675811859\">" +      "  <wsse:Username>" + strServiceBenchUserID […]

Where does message text in the BizTalk Terminate statement go?

Have you been looking for how to find the string text specified in the BizTalk Terminate Shape?  I hadn’t used this shape in a long long time, and had to check it out again this week.  This blog show you you where the Terminate Shape text goes. After your orchestration has hit a Terminate statement, […]

How to change date format in EDI segment GS (GS04)

In testing, my trading partner told me they were expecting 20150818 (date with century) in the following bold field. GS^SH^BTS-SENDER^RECEIVE-APP^150818^1212^2^T^00401~ The GS indicates this is the “GS Segment”, the fields are numbered GS01, GS02, GS03, GS04 etc… based on the separator character, which in this case is the Shift-6 carrot symbol. In BizTalk, this field […]

Exporting and Importing EDI Parties in BizTalk

Exporting and importing EDI Parties in BizTalk has a few challenges.  How do you migrate just one or two parties and agreements?  As BizTalk developers, we typically have to move bindings around 2 to 4 times, such as developer machine to DEV or TEST environment, then to UAT (User Acceptance Testing) or QA (Quality Assurnace) […]

BizTalk Error: EdiSend does not belong to the same application.. or its references

Sample of error: This was happening when I was exporting and importing bindings from a developer machine to our QA (Quality Assurance) environment. Looking back, the problem seems obvious, but it I lost over an hour chasing it down. So on my developer machine, I had a project reference from the application project to the […]

BizTalk EDI “Leading or trailing space found”

How to solve this Error <pre> A message sent to adapter "FILE" on send port "sp_856_EDI_Out_FILE" with URI "e:\Messages\MyApp\Process\856EDI_Temp\%SourceFileName%" is suspended. Error details: Unable to read the stream produced by the pipeline. Details: Error: 1 (Field level error)   SegmentID: N4   Position in TS: 9   Data Element ID: N401   Position in Segment: 1   Data Value:   6: […]

ContractFilter mismatch at the EndpointDispatcher in BizTalk

    a:ActionNotSupported   The message with Action '&lt;BtsActionMapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;   &lt;Operation Name="Method1" Action="http://tempuri.org/Ib2b/Method1" /&gt;   &lt;Operation Name="Method2" Action="http://tempuri.org/Ib2b/Method2" /&gt;   &lt;…' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and […]

Identifier “abc” does not exist in ‘global_NS.Appname”; are you missing an assembly reference?

I got this error today in a BizTalk orchestration: “Identifier “abc” does not exist in ‘global_NS.AppName”; are you missing an assembly reference?” Basically, the auto-complete (Intellisense) wasn’t giving my .BizTalkComponents namespace after I typed in “AppName.”. So I typed it in anyway, and pressed CNTL-Space-Bar, and that’s when the error occured. I had typed in […]

BizTalk – Basic Authentication with SOAP 1.1 Web Service

This blog explains how to pass userid/password using Basic Authentication to a SOAP 1.1 web service. It took me about 2 1/2 days of trying different things to get it working. SOAP-UI was working, and I couldn’t get any of the Basic-HTTP, WS-HTTP, or WCF-Custom SendPorts to work, even after creating a “behaviorEnhancement” plug-in. Since […]

Cannot Connect to Target Schema in BizTalk Map

What do you when you cannot connect an element on the left to one on the right in a Biztalk map?  Today, I had a case where I was trying to update a map created by another developer.  I thought the values on the right side were missing, but later I noticed they had a […]