Forum Replies Created
-
AuthorPosts
-
June 14, 2010 at 7:00 PM in reply to: Add Web Reference from remote web service – Error "Failed to add a Web Reference." #24960
Hi Daniel, the external company was kind enough to modify the Web Service class name to not have white spaces. By doing this BizTalk added the Web Reference successfully. Thank you for you help. best regards, Rob
You can see the solution here: http://miguelaup.zzl.org/como-enviar-usando-ssl3-con-biztalk-2009
June 14, 2010 at 9:30 AM in reply to: How to get Query Notification for events in the BizTalkMgmtDb? #24956Hi MP,
Here are some suggestions that you might want to consider:
1. A BizTalkGurus blog on SQL scripts (that can get you started on):
2. A blog on developing custom tools for BizTalk:
3. Have you looked into BizTalkFactory PowerShell Provider for you administrative needs? Here’s a link to the main page on CodePlex:
http://psbiztalk.codeplex.com/
I hope these resources are helpful to you,
Daniel.
OK. I understood what you mean.
The answer to this is that I am absolutely sure that different ports receive different XMLs.There is no XML that could be used to more than one send port.
and this happens because on every send port the filters are like:
1. PromotedFields.FormName = “XX” AND
2. PromotedFields.StateCode = “Received” AND
3. PromotedFields.Version = “1.0”.June 12, 2010 at 12:00 AM in reply to: Add Web Reference from remote web service – Error "Failed to add a Web Reference." #24953Hi Daniel,
miss read your previous reply. The option you provided will be the way I go if the external company cannot modify the class name in the HTML.
Thanks again,
Rob
June 11, 2010 at 11:57 PM in reply to: Add Web Reference from remote web service – Error "Failed to add a Web Reference." #24952After some testing I’m sure that it’s failing when trying to generate the reference.map and .ocx. BizTalk create the ports with the class name. Below is the HTML source of the page.
<p class=”heading1″>Estaronline – iSAMS Integration</p><br>
Where as my test I created the site as
<p class=”heading1″>integration</p><br>
By doing this BizTalk is able to generate the required items.
i want to prove my theory before advising the external company, but for the life of me I cannot work out how to modify the class name in the HTML.
Your previous suggestion I tried a couple of days ago with no success. I added a local web service which was almost a replica of external web service except the class name. I added it successfully. Then when I changed the URL to point to the external location, it updated the WSDL and cisco files and then failed to update the .map and .ocx. I then tried manually to modify via editor and I got nine errors on rebuild relating to the class name i used.
Thanks,
Rob
Hi – about subscriptions
I thought about something like
1. Send port filters:
Message type = x or
Incoming portName = In
2/ SendPort filters:
MessageType = Y or
Incoming portName = In
In both cases your different messages will proceed to both ports (twice). Therefore sometimes when subscription is different – but some of conditions are same for different types of messages.
Hi.
Do you use SQL adapter or WCF-SQL?
For creating message which is sent to SQL as request – I generate an instance of schema – of a request, and do next steps:
define some XML document variable. xDocument.LoadXml(your generated instance);
msgSqlRequest = xDocument;
msgSqlRequest (*) = some incoming messages for setting context(*);
Send this msgSqlRequest through your defined port to SQL, and get response. If your stored procedures has no incoming parameters – it will be an empty (without parameters) XML, else you should put some parameters in XML fields.
Also – it’s a bit different while you want to use polling – when your orchestration started on some changed data in SQL Server tables.
Hi,
Check to see if this BizTalkGurus blog points you in the right direction to resolve your issue:
Best,
Daniel.
June 11, 2010 at 9:40 AM in reply to: The Messaging Engine failed to initialize the tracking interceptor. #24947What was your problem back then?
We have the same thing happening when there is a problem with DB connectivity.
When the engine has no more free TCP/IP dynamic ports this can happen.
June 11, 2010 at 9:07 AM in reply to: Add Web Reference from remote web service – Error "Failed to add a Web Reference." #24946Hi Rob,
It sounds like there’s a problem with generating a web reference in a BizTalk project from a web service that has white spaces in its URL. I haven’t come across this one, and I assume that the external company is not likely to modify that web service to remove the white spaces, am I correct?
Here’s a workaround that I would suggest: create an internal .NET web service (ASMX) to consume that external web service, and expose that internal web service in your BizTalk project. How does that sound?
Daniel.
Hi Nengsih,
You can use a variation of the BizTalk pattern known as Content-based Router to implement what you want. Here’s an MSDN sample of that pattern:
http://msdn.microsoft.com/en-us/library/aa561358.aspx
To accomodate your scenario where you are expected to drop any one of 10 different input messages, just make your activatable receive port to be of generic type (i.e. System.XML.XmlDocument).
Make sure that all of your 10 different message types have an identifiable element (or attribute) that you can query in the Orchestration (using XPath) to determine the message type (and final recipient of your transformed message).
Then, in your orchestration, declare 10 messages corresponding to the 10 different schemas, create a Decide shape with 10 branches, and the flow will be determined by the message type. In each branch, you can assign the generic input message to the corresponding message (for that type of message) in an Expression shape, then do any further processing from there (call .NET remoting service, do a mapping, etc.)
Hope this helps,
Daniel.
June 11, 2010 at 12:25 AM in reply to: Add Web Reference from remote web service – Error "Failed to add a Web Reference." #24944Hi Daniel,
all the blogs about Web reference failed doesn’t seem to relate to the problem I’m having. I have a theory but don’t know how to test.
The external company I’m hitting has white spaces in the asp page name
in my testing I create a web service the display name on the web is that of the web service class. As it is a class it does not let me put white spaces in the name. i’ve noticed that BizTalk create it’s ports using this name when the web reference is added.
for the life of me I cannot see how I get the form name to be different to the .net web service class name. If someone can instruct me on how to show a different name I can test my theory.
Thanks,
Rob
June 10, 2010 at 9:02 PM in reply to: Add Web Reference from remote web service – Error "Failed to add a Web Reference." #24942Hi Rob,
Since you are using BizTalk Server 2006, check the WSDL of that web service to make sure whether or not your problem is related to this MS KB article:
http://kbalertz.com/948089/cannot-consume-service-BizTalk-Server-service-references-another.aspx
Best,
Daniel.
June 10, 2010 at 8:16 PM in reply to: Add Web Reference from remote web service – Error "Failed to add a Web Reference." #24941Hi Daniel,
I can confirm that firewall rules are set up OK. As I can hit the site and call the web service and receive a response via a c# application that the remote company sent me. I also can add internal web services successfully. The two blogs you sent me did not assist. I’m wondering if VS.Net needs other ports opened apart from HTTP.
Below is the web service I’m trying to hit. I’ve replaced host, company names with x’s It looks good to me so I don’t understand why it want add.
POST /global/data/xxxx_integration.asmx HTTP/1.1 Host: xxxxxxx.xxxxx.net Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://www.xxxxxxxxx.com/webservices/xxxxx_Integration" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <xxxx_Integration xmlns="http://www.xxxxxxxxx.com/webservices/"> <sMethodName>string</sMethodName> <sUserName>string</sUserName> <sPassWord>string</sPassWord> <sXmlInput>string</sXmlInput> </xxxx_Integration> </soap:Body> </soap:Envelope>
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <xxxxx_IntegrationResponse xmlns="http://www.xxxxxxxxx.com/webservices/"> <xxxxx_IntegrationResult>xml</xxxxx_IntegrationResult> </xxxxx_IntegrationResponse> </soap:Body> </soap:Envelope>
thanks, Rob
-
AuthorPosts