Forum Replies Created
-
AuthorPosts
-
Try this: deploy the property schema to BizTalk, restart Visual Studio. Does the property show up now?
1. Don’t use a partner orchestration port here. Instead, select “Routing will be determined by filter expressions.” Then you could creat a property schema with a context property named Vendor, and set the value of the context property before sending the message to the port. Then you can create a send port for each vendor (assuming there are not too many) and configure a filter expression on each send port. For example, you could have one send port with filter: Vendor = ‘VendorX’, and another send port with filter: Vendor = ‘VendorY’.
2. It depends. If you have a very small number of vendors ( maybe around 5 or less), then direct binding would be a good choice because you only have to create a few send ports. If you have many vendors, then dynamic binding is a better choice because you can use a single send port for all of them.
You do have another option: role links. Role links can get cumbersome though, so you would probably be happier with direct binding or dynamic send ports.
No, you don’t need a schema for the request (if you were using the mapping method you would, but it sounds like you’re using the XmlDocument method).
For example, assume your web service takes 2 parameters named param1 and param2. You would create two string variables in orchestration view and call them strParam1 and strParam2. Then you would assign to them using xpath(). Then you would build them into the XML string you are loading. Your code would look something like this:
strParam1 = xpath(Request, “//*[local-name()=’param1′]”);
strParam2 = xpath(Request, “//*[local-name()=’param2′]”);
WebRequestXml = new System.Xml.XmlDocument();
WebRequestXml.LoadXml(“<WebMethodName xmlns=’http://www.tempuri.org’><param1>” + strParam1 + “</param1><param2>” + strParam2 + “</param2></WebMethodName>”);
To get the web request XML format right, you should generate an instance of the _tempuri schema. Use the generated schema as a template for the XML string that you load in the LoadXml method.
So, If I understood correctly, I should have some schema for the Request.
In my case, I don’t have a seperate schema for the request. I get a whole Soapmessage as a XML document and I am doing Xpath queries(as discussed in our old posts) to retieve some values and then send them to the webmethod.
The schema that _tempuri produces is diffrent from what I get from the XMLDocument
You don’t need the dot. Your code would probably look like this:
msgOut = xmlDocMessage;
You only need a dot if you are sending a mulitpart message. The message you are sending to the service is a single XML file, so you don’t need a dot.
I have checked out the link that you sent me. In all of the four options that you suggested, I am not sure how any of them would work for me.
You suggested this code.. msgOut.MsgPart1 = xmlDocMessage; in one of your responses.
But when I do that .(dot) nothing come up for me.
Any other way to send parameter values to Webmethod?
Check out this thread for some options for initializing a message in BizTalk: http://www.biztalkgurus.com/forums/t/10556.aspx.
Hi Russell,
Thanks for the reply. I tried to follow the msdn link that you provided but ran into problems while choosing the MEX endpoint in the consume WCF Service wizard so I am not able to go forward with this sample. Error as below.
A name was started with an invalid character. Error processing resource ‘http://localhost/BasicHttpWcfServiceConsuming/Orde…
So, I am trying with my project now. I added my .asmx using the WCF Consume Service wizard. It generated _tempyuri_org.xsd file which contains the request and response fot the webmethod.
so, I created message_1 of type request.. so far good.
Now, in my Message Assignment, I tried Message_1. .. nothing come up.. hoping to set parameters here.. What should I do now..
Alternatively for step 5, you could select WS-MEX instead of WSDL, and enter the URL to the WSDL (http://hostname/service.asmx?wsdl). That will save you the steps of downloading the file locally. Here is a detailed walkthrough: http://msdn.microsoft.com/en-us/library/bb246019.aspx
You need to generate a schema to send to the web service. The schema will contain all of the parameters, so you just need to declare a message of that type and fill in the parameters. Then send the message to the service. Check out the walkthrough link I posted above. It has more details.
September 23, 2008 at 6:37 AM in reply to: Namespace on Source Message in Map from Combined Schemas #20802If the BizTalk mapper shows ns1 as a prefix on the inbound schema for MessagePart_1 then s1 will end up being the namespace prefix on the inbound message. Not sure why the n gets dropped, but the outbound message ends up using the ns* prefix.
Hope that helps.
‘Resources’ view in the BizTalk administrator (see below). In here is a list of all of the assemblies that you have deployed and are using in BizTalk. If look at the Destination Location column you might notice a hard-coded path (although not always the case).
This is the path the BizTalk Administrator uses for the destination of resources on the BizTalk box where you are going to install the application.
1. Use a web browser to view the wsdl file of asmx service e.g. http://hostname/service.asmx?wsdl
2. Save this wsdl file and any imported xsd files into a local directory.Instead of steps 1 and 2 you can use svcutil.exe /t:metadata http://hostname/service.asmx?wsdl
3. Within VS2005, Project -> Add -> Add Generated Items…
4. Consume WCF Service -> Add -> Next
5. Select Metadata files(WSDL and XSD) -> Next
6. Add all the wsdl and xsd files -> Next
I am trying to use the WCF adapter. So I am changing my orchestration now.
I have to send certain input parmeters to the webmethod. How can I do that using WCF.
I tried WCFRequest.parameters.. does let me add stuff.Hello Bizltalkers!!
I know that post is quite old… but I’m facing some similar problem using Biztalk 2006 (newbie guy!).
Using (as an example) the XML previouslly posted, I should loop inside it in order to choose the destination system (webservice, Oracle, SQL, all kind of systems you could imagine!). So, I got something like this:
<Orders>
<Order>
<Type>1</Type>
</Order>(…)
<Order>
<Type>6</Type>
</Order></Orders>
So for example…. when I got the Type 1 it goes to Oracle, 6 goes to WebService.
How can I accomplish that using Orchestration?
Nice week for all of you!! And many many tks!
-
AuthorPosts