Forum Replies Created
-
AuthorPosts
-
Correction, check App_Data/Temp for the binding file (I was thinking of the WCF Consume Wizard).
1. Just to make sure, you did a right-click Browse from IIS?
2. Turn off “Friendly errors” in Internet Explorer
3. Check the Application Event Log
4. Make sure you did an import on the bindings for a receive port/receive location. The wizard will have built a binding file in the same project as the schemas.
5. Could be security settings.
Neal
July 28, 2008 at 3:44 AM in reply to: Must receive before sending a message whose messagetype corresponds to a requestresponse operation on an implemented port #20246This is caused by the compiler not being able to ascertain whether a message has been sent back to the receive/response port in the exception handler. If the original send response worked you cannot send another message (the error response/fault) to the request response port.
http://thearchhacker.blogspot.com/2004/08/multiple-activate-receives-and.html
http://www.traceofthought.net/PermaLink,guid,abdd6ca2-e964-437d-8bee-0188ec5b5afa.aspx
I prefer wrapping the original send in an atomic scope and checking !succeeded inside the exception handler
I am using Message Assignment shape and using xmlDocument object to modify contents of msg2
July 25, 2008 at 10:55 AM in reply to: Updating the TypedXmlDocument in BRE from a .NET Static Method (to add a new node) #20241Sorry – is there a clean way to paste C# code into my posts?
July 25, 2008 at 10:54 AM in reply to: Updating the TypedXmlDocument in BRE from a .NET Static Method (to add a new node) #20240I’m pretty sure what I need to do is update the TypedXmlDocument with my new xml without constructing a new TypedXmlDocument.
I proved that if you construct a new object, it won’t pass back with this code:
namespace
TestPassObjectCons
{
class Program
{
static void Main(string[] args)
{
employee objEmployee = new employee();
objEmployee.lastname =
“Walters”;
objEmployee.firstname = “Neal”;subs.mysub(objEmployee);
Console.WriteLine(“Result lastname=” + objEmployee.lastname);
Console.ReadLine();
}
}
public class employee
{
public string lastname;
public string firstname;
}
public class subs
{
public static void mysub(employee passEmp)
{
//passEmp.lastname = “Something else”; // (this sends back the changed value)
employee newEmployee = new employee();
newEmployee.lastname =
“Something else”;
newEmployee.firstname =
“John”;
passEmp = newEmployee; // this does not send back the changed value
return;
}
}
}are you doing this in a transformation/map or what code are you using?
I’m confirming that this code works fine:
public static void Execute(string policyName, TypedXmlDocument
txd)Policy
policy = new Policy(policyName);
object[] facts = new object[1];
facts[0] = txd;
policy.Execute(facts);
policy.Dispose();
}
I am not creating msg1. I am receiving it from a wcf service. I am only constructing msg2 and my construct shape also has only msg2 selected as “Messages Constructed”.
It looks as though it may be the P12 certificate that the BizTalk HTTP Adapter can’t handle (http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=3663850&SiteID=17); is it possible to try a different certificate to identify whether the P12 cert is the cause of the problem?
Nick.
Sidhu,
Are you creating both msg1 and msg2 in the same message construct shape? I would suggest that you create msg1 in one construct shape and then msg2 in another construct shape – messages are immutable (i.e. they can’t be changed) once they leave the Message Construct shape.
HTH, Nick.
HI NIck,
Thanks a lot the clarification and the help you are providing through out.I am trying to secur the msg at the transport level as the web service that the BTS Orch would cosume would be using HTTPS.And secondly please let me know if there are anyother options in logging the errors at the port level other than the Exception handling at the Orchestration level.Thanks in advance.
Cheers
Anon,
For the archiving, can I suggest that you take a look at my pipeline archiving component (http://www.codeplex.com/btsmsgarchcomp) which is designed for this very purpose; from the project blurb:
The
component introduces a powerful concept of user defined ‘macros’ to
help build archive paths which are unique to the message being
archived. Macros are replaced with message context-property values as a
message passes through the component. In previous versions, these
macros were hard-coded into the component, however this release
introduces the concept of a ‘Macro Definitions’ Xml configuration file,
which can be amended by the user allowing any out-of-the-box or custom
context property to be referenced in a macro.Writing of the
archive file is accomplished during the read-event of the FOE stream,
essentially spooling the archive file to disk (or network share) as the
stream is read by downstream components or the Messaging Agent itself.As for the prefixing of characters onto the header and detail records, I would suggest that you investigate using the VirtualStream stream in your pipreline component rather than the standard MemoryStream. The VirtualStream caches data in the stream in a MemoryStream until it reaches a threshold, over which the
data is overflowed to a secure location on disk. After the stream is
closed the disk file is automatically deleted. For more information see:- http://blogs.neudesic.com/blogs/enterprise_integration/archive/2006/12/27/1366.aspx
- http://technet.microsoft.com/en-us/library/microsoft.biztalk.streaming.virtualstream.aspx
Nick.
If you want exception handling in the consumed web-service or negative delivery capture (i.e. NACKs), you’ll need to put this through an orchestration.
As for the X.509 certificates, take a look at this BizTalk thread – http://www.eggheadcafe.com/software/aspnet/32473751/the-smime-message-may-no.aspx; if this isn’t what you’re after, come back with some further detail (i.e. are you tyring to secure at the message level or transport level).
Nick.
HI Nick,
I would definitely,but I have another couple of questions for you.First without Orchestration would I be able to handle exceptions in the said scenario of mine or would I be able to log the errors / exceptions?if so how and secondly I am sure that we should be able to attach a X509 certificate to the msg sent out (in my scenario to the web service that I am consuming).Any pointers???
Cheers
-
AuthorPosts