Hi,
I am working on a link between 2 financial systems. I now have to send to from system A to system B with a SOAP call.
I made a sample xml and tested it with SOAP UI and it works fine:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:Afas.Profit.Services"> <soapenv:Header/> <soapenv:Body> <ns0:Execute xmlns:ns0="urn:Afas.Profit.Services"> <ns0:environmentId>Environment_B</ns0:environmentId> <ns0:userId>ConnectorUsers</ns0:userId> <ns0:password>TEST</ns0:password> <ns0:connectorType>KnSubject</ns0:connectorType> <ns0:connectorVersion>1</ns0:connectorVersion> <ns0:dataXml> <![CDATA[<KnSubject><Element SbId="3"><Fields Action="insert"><StId>36</StId><Ds>Check</Ds><SbTx>Requestdate: 2015-01-29T00:00:00 Result: true Consultatienummer: 123</SbTx></Fields><Objects><KnSubjectLink><Element SbId="3"><Fields Action="insert"><ToBC>true</ToBC><BcId>001859</BcId></Fields></Element></KnSubjectLink></Objects></Element></KnSubject>]]></ns0:dataXml> </ns0:Execute> </soapenv:Body> </soapenv:Envelope>
But I cant get it to work with BizTalk. I keep receiving the following error:
System.ServiceModel.FaultException: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>Server did not recognize the value of HTTP Header SOAPAction: <BtsActionMapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Operation Name="Execute" Action="urn:Afas.Profit.Services/Execute" /> </BtsActionMapping>.</faultstring><detail /></soap:Fault></soap:Body></soap:Envelope> at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.RequestCallback(IAsyncResult result)
The SOAP action header is imported from the imported binding and looks like:
<BtsActionMapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Operation Name="Execute" Action="urn:Afas.Profit.Services/Execute" /> </BtsActionMapping>What can I do to make this work?