I'm trying to use Direct Binding to call a WCF web service. In other
words,
in my orchestration, I specify a request/response logical ****t, and set it
to
direct binding.
I used the "Add generated items" in order to have it build the
Service1.BindingInfo.xml, which I im****ted into my application in BT Admin
Console. I then added a Filter to the this ****t so it would pick up the
only
the proper messages.
In my orchestration, I want to pass the data using a schema. I build a
multipart message type, to wrap my schema. The web service was built using
a
class derived from my schema (built with the XSD utility).
I used to do something this with SOAP/Web Services, but have not yet
got
it to work with WCF. To get it to work with SOAP, I had to build a proxy,
and specify the .NET assembly name on the third tab of the SOAP
configuration
(the tab is labeled web service, then use specify the assembly name.) I
cannot find any corresponding item for the WCF service.
Event Type: Error
Event Source: XLANG/s
Event Category: None
Event ID: 10034
Date: 3/10/2008
Time: 11:51:39 AM
User: N/A
Computer: Dev-XP-BZWRK-01
Description:
Uncaught exception (see the 'inner exception' below) has suspended an
instance of service
'TMAC.BizTalk.ESB.DemoWCFDirBind.orchDemo1(0544b58e-8801-97b5-208d-b3de44c99dfa)'.
The service instance will remain suspended until administratively resumed
or
terminated.
If resumed the instance will continue from its last persisted state and
may
re-throw the same unexpected exception.
InstanceId: 8cbe3b11-6145-4c11-a3ba-8692758c47a5
Shape name:
ShapeId:
Exception thrown from: segment -1, progress -1
Inner exception: An error occurred while processing the message, refer to
the details section for more information
Message ID: {BAE6B633-CC5F-4759-BA46-FC4406FF5A13}
Instance ID: {D76C0FE3-1839-4704-A8AB-C64521849860}
Error Description: System.ServiceModel.Security.MessageSecurityException:
An
unsecured or incorrectly secured fault was received from the other party.
See
the inner FaultException for the fault code and detail. --->
System.ServiceModel.FaultException: The message could not be processed
because the action '<BtsActionMapping
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Operation Name="WebServiceSimulator"
Action="http://tempuri.org/IService1/WebServiceSimulator"
/>
</BtsActionMapping>' is invalid or unrecognized.
--- End of inner exception stack trace ---
Server stack trace:
at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult
result)
at
System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult
result)
at System.ServiceModel.Channels.ServiceChannel.EndCall(String action,
Object[] outs, IAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.EndRequest(IAsyncResult
result)
Exception rethrown at [0]:
at
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)
at System.ServiceModel.Channels.IRequestChannel.EndRequest(IAsyncResult
result)
at
Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.RequestCallback(IAsyncResult
result)
Exception type: XlangSoapException
Source: Microsoft.XLANGs.BizTalk.Engine
Target Site: Void VerifyTrans****t(Microsoft.XLANGs.Core.Envelope, Int32,
Microsoft.XLANGs.Core.Context)
The following is a stack trace that identifies the location where the
exception occured
at
Microsoft.BizTalk.XLANGs.BTXEngine.BTX****tBase.VerifyTrans****t(Envelope
env,
Int32 operationId, Context ctx)
at Microsoft.XLANGs.Core.Subscription.Receive(Segment s, Context ctx,
Envelope& env, Boolean topOnly)
at Microsoft.XLANGs.Core.****tBase.GetMessageId(Subscription
subscription,
Segment currentSegment, Context cxt, Envelope& env, CachedObject location)
at TMAC.BizTalk.ESB.DemoWCFDirBind.orchDemo1.segment1(StopConditions
stopOn)
at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s,
StopConditions stopCond, Exception& exp)
Thanks in advance,
Neal Walters
http://Biztalk-Training.com


|