Posts Tagged ‘orchestration published as webservice : how to add a namespace prefix in the webmethod’

Logical ReceivePort Operation Name as an extra XML element:Publishing Orchestration as a Service

April 24, 2012 Leave a comment

Issue :

While Publishing an Orchestration as a service using WebServices wizard, the xml input expected by the generated service operation is wrapped within an extra xml element, which is the name of the logical receive port of the published orchestration

    <Operation_1 xmlns=”hhtp://MyTestNameSpace”>

Cause :

The Orchestration that is published as a service creates 2 types of subscriptions behind the scenes(logically a single subscription as they are seperated by an OR).

1.For the requests coming from the generated SOAP receive port,  the subsciption is as follows. == {47E7FAA7-D285-4C69-A591-510F8074AEEC} And == Operation_1

2.The second subscription is based on regular messagetypes which are not from the SOAP transport types. {47E7FAA7-D285-4C69-A591-510F8074AEEC} And http://OrchFiltertest.In#Root And != SOAP

 So when a message arrives  through the SOAP recieve  port, an extra xml  element that matches the name of the logical recieve port is added in order to match the subscription.This extra element header will be automatically ripped off by the engine when it hands over the message to the orchestration


No manual action is required in this scenario and it is a built in behavior. The message will reach the orchestration as it has to.