Forum Replies Created
-
AuthorPosts
-
September 21, 2008 at 12:36 PM in reply to: Problem in promoting fields of an Unbounded Record #20792
Hello again…. now not as Anonymous but still facing the problem of not knowing how to loop into multiple values inside an orchestration.
Tks for help!
September 21, 2008 at 11:10 AM in reply to: Problem in promoting fields of an Unbounded Record #20791Hello guys!!
I`m facing the same problem within my project. How to loop into the orchestration?
Cheers!
Daniel Santana
September 20, 2008 at 7:33 PM in reply to: SQL Adapter – returning only the first response….not returning all responses #20790I am facing some problem using same scenario, It is very fine with
orchestration to use LOOP shape and call stored procedure every time,
If my Request packet has three CustomerID it will returns me three
XML files in my FILE location on send port. It’s cool and no issue…
[:)]But when i am trying to put all three XML responses from Stored
Procedure into one XML and pass it to send port then I am encountered
with no of problems.please help me …. thanks in advance
Cheers 🙂
Abhishek Doyle
No, you don’t have to change your ASMX service to WCF to get this to work. I would, however, recommend using the WCF-BasicHttp adapter to access the ASMX service and headers. The adapter is built on WCF, but it can actually talk to any kind of service that speaks SOAP (including ASMX). Plus the WCF adapters are way easier to use than the SOAP adapter.
So let’s assume that you defined a SOAP header on your service and named it MyHeader. Now, you want to set the value of that service when you consume the service from BizTalk. To do so, you would just set the value of the WCF.OutboundCustomHeaders context property on your outgoing message to the service. For example, you would need to put this code in a message assignment shape:
OutboundMessage(WCF.OutboundCustomHeaders) = “<MyHeader>Foo</MyHeader>”;
The WCF adapter will automatically see the context property and jam the headers into the outbound SOAP envelope.
So do I have change my .asmx to WCF Service to get the header thing work?
What I want to achieve is ..I want to encapsulate the custom header that I have created in my web service and the return of my webmethod as content into a soapenvelope and then send this soapenvelope back.
I do not wnat to create a custom header inside Biztalk, I want to consume already defined custom header of my webservice inside Biztalk
Here is a walkthrough on consuming a service with the WCF-BasicHttp adapter:
http://msdn.microsoft.com/en-us/library/bb246019.aspx
To send custom SOAP headers to the service, you just need to set the value of the WCF.OutboundSoapHeaders context property. See the WCF link that Richard posted above for more info on how to do that.
I would go the WCF adapter route regardless of whether the service platform is WCF. The WCF adapters totally rock. If the service is built on WCF, use the WCF-WSHttp adapter (or the WCF-NetTcp adapter for faster performance if everything is behind the firewall). If the service is basic SOAP, use the WCF-BasicHttp adapter.
I am not using WCF Service. Its an asmx. I think you are pointing me in the right direction but I didn’t really understand it. The link shows a wsdl file, but not how to access the soap header defined in my asmx. Or am I missing something?
Is this a WCF service? If not, consuming SOAP headers in ASMX (or basic SOAP services) is explained a bit here … http://msdn.microsoft.com/en-us/library/ms946937.aspx.
It’s not as clean with the WCF adapters (http://msdn.microsoft.com/en-us/library/bb246026.aspx)
Well, i’m migrating some projects from Biztalk 2002 to Biztal 2006 and i find some dificulties that weren’t on BT2002. I solved the problem by upgrading the control version of the assembly… Basic stuff, i guess…
Thanks anyway,
Gustavo
I am trying to extract data from distinguished fields.
Actually I want to validate the Header part with the header schema and Body part with the Content schema that are defined seperately for the Soap Message.
Then I want to get the data out of the messages using distinguihsed fields.
September 19, 2008 at 3:11 AM in reply to: Exception of type System.OutOfMemoryException was thrown #20776I had the same problem today and a few weeks ago. Narrowed it down to some issue with the WMI scripts not working as they should. I restarted the Windows Management Instrumentation service seemed to fix the issue.
Nick Hermans (Software Develoepr, Bournemouth UK)
yes exactly i am using file adapter that drop files. I am using a loop to pick new messages for same orchestration and a parrallel shape that has a delay for 1 minute for the case when all messages are picked and no more are left.
What are you extracting with distinguished fields? Is it data from your message, or are you trying to use the distinguished fields to extract the messages from the SOAP envelope? Distinguished fields are just canned xpath statements, so they can come up empty if you use them on an invalid message. Make sure your message is valid by writing it out to a file, and then validating it against your schema. If it is valid, then maybe it’s a problem with the fields themselves. Try un-distinguishing the fields and then re-distinguishing them.
Thank you so much for your prompt replies, Russell.
I am actually writing the messages to EventLog, my xpath queries are returning good data. But when I attempt to achieve the same by distinguished fields .. then no data.
If you don’t mind, would you let me know the steps once gain to do this.. I think I miss something..
-
AuthorPosts