What that line -
"ResultMessage(WebserviceConsumer.PropertySchema.Result) = 1;"
does is assigning a value to a context property of the result message.
it does not, however, create any message, as it does not set any content.
what you need is to assign something to the body of the message.
I'm assuming your public ****t is a request-response ****t, and that it has
two message types assigned (one for the request, one for the response)
You have already indicated the request message type has the value you
require to pass to the called web service. you did not indicate what the
response looks like.
It is is an Int, set the Int32 type (or any other type) as the response
message type.
the, in your response assignment shape you should be able to set
ResultMessage.<response part> = 1;
I'm not what is the use of your context property - if you still need it
you
can live it there (but it would not be delivered by the SOAP adapter as
part
of the response)
HTH
--
Yossi Dahan
MVP BizTalk Server
http://www.sabratech.co.uk/blogs/yossidahan
"Bas" wrote:
> Hi,
>
> I am new to Biztalk and am trying to build an orchestration that
> comsumes a simple webservice (i.e. only simple types). The
> orchestration itself is to be exposed as a webservice, too.
> To accomplish this, I have created a public ****t that is connected to
> Receive shape.
> The Receive shape is connected to a ConstructMessage/MessageAssign
> Shape that converts
> the input message into a format that the simple webservice
> understands. It does the conversion by using
> the Expression <targetMessage>.<field> = <sourceMessage>.<field>
> A Send then sends off the message and a Receive shape receives the
> resulting message.
> So far, so good (I think, correct me if I'm wrong please).
>
> Now I want to convert the resulting message to a message that the
> orchestration (which is exposed as a webservice itself) should return
> to its caller. To accomplish this I have inserted another
> ConstructMessage/MessageAssignment shape. As expression I have added
> the line
> ResultMessage(WebserviceConsumer.PropertySchema.Result) = 1; as a
> dummy filler.
> But the compiler is complaining: 'use of unconstructed message
> 'ResultMessage' and ''ResultMessage': message has not been initialized
> in construct statement'.
> In a tutorial that does about the same I've seen a Transform shape
> before the MessageAssignment. But because I am using a simple
> webservice, there is no generated xsd for it hence I cannot create a
> mapping.
>
> I have searched and tried many things but none seem to work.
> Help is appreciated!
>
> Thanks in advance,
> Bas
>


|