workflow foundation 4 - Using Standard WF activities to access a web service - how to set 'expected namespace'? -
i attempting connect .net 1.0 web service using standard activities in wf 4.0.
i using sendandreceivereplyfactory
- send portion seems working - receivereplyforsend
reason expecting tempuri.org namespace response rather www.thermo.com/informatics/xmlns/limswebservice namespace. instruct me on how can cause activity expect correct ns.
thanks in advance help.
all best,
dj
error message:
workflow console: starting workflow... send done workflow 3fdc4d67-dcac-4092-b34b-9c347acdfe22 terminated. exception: system.servicemodel.communicationexception error in deserializing body of reply message operation 'process'. operationformatter encountered invalid message body. expected find node type 'element' name 'processresponse' , namespace 'http://tempuri.org/'. found node type 'element' name 'processresponse' , namespace 'http://www.thermo.com/informatics/xmlns/limswebservice' workflow console: workflow completed
the answer specify namespace in servicecontractname property of 'send' activity using following syntax '{http://someserver.org/test/}fileservice ' in case '{http://www.thermo.com/informatics/xmlns/limswebservice}limssoap' . syntax sensitive trailing slash little trial , error needed. many contributors wf4 - how consume external web service? answer.
Comments
Post a Comment