Re: Dynamic SOAP Ports

Home Page Forums BizTalk 2004 – BizTalk 2010 Dynamic SOAP Ports Re: Dynamic SOAP Ports

#18950

Hi, 

I finally managed to get a dynamic send to a SOAP web service working. For what it’s worth here are my findings:

1) I created a simple web service and then generated a proxy class using wsdl.exe. I then added the proxy to its own project and built this as a strong named assembly, deployed to the GAC.

2) I didn’t need to use a soap:// prefix on the URI. Simply setting the Microsoft.XLANGs.BaseTypes.TransportType property on the send port to “SOAP” did the job of directing the request to the SOAP adapter.

3) The request would fail if I did not populate the SOAP.TypeName property. This should be set to the Namespace.Class of the proxy.

4) The SOAP.AssemblyName property should be set to the Namespace.Class, Assembly, Version, Culture, PublicKeyToken. e.g.
msgSendRequest(SOAP.AssemblyName) = “BtsTest.CalcWebServiceProxy.CalcService,CalcWebServiceProxy, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b713f1108bae3109”;

5) The Operation on the dynamic Send Port needs to use the same name as the WebMethod being called.

6) The method signature of the WebMethod should be public XmlNode MyMethod(XmlNode Message)

I’ve described what worked for me a little more formally on my blog. Hope this helps.