| Author |
Consuming a basic web service
|
|
| Vishal Somaiya 2005-07-14, 2:48 am |
| Hello,
I have created (or uncommented) the 'hello world' example in the
form of a web service. I am trying to consume it within an orchestration but
have ran into some difficulty.
I have set up a web reference, and attached the request/response to the
send/receive elements within the orchestration. I get the following error:
'use of unconstructed message -----'
Any help? anyone?
vish1979
| |
| Yossi Dahan 2005-07-14, 7:47 am |
| Which message are you sending as the request message to the web service?
You must construct the request message in a construct shape before sending
it.
Yossi Dahan
"Vishal Somaiya" <vsomaiya@bca-group.com> wrote in message
news:uAkiawEiFHA.3436@tk2msftngp13.phx.gbl...
> Hello,
>
> I have created (or uncommented) the 'hello world' example in the
> form of a web service. I am trying to consume it within an orchestration
> but
> have ran into some difficulty.
>
> I have set up a web reference, and attached the request/response to the
> send/receive elements within the orchestration. I get the following error:
>
> 'use of unconstructed message -----'
>
> Any help? anyone?
>
> vish1979
>
>
| |
| Vishal Somaiya 2005-07-14, 7:47 am |
| So how would you construct the message? (I'm fairly new to biztalk...)
"Yossi Dahan" <yossi.dahan@NOSPAMPLEASEsabratech.co.uk> wrote in message
news:eOhXVMFiFHA.2072@TK2MSFTNGP14.phx.gbl...
> Which message are you sending as the request message to the web service?
> You must construct the request message in a construct shape before sending
> it.
>
> Yossi Dahan
>
> "Vishal Somaiya" <vsomaiya@bca-group.com> wrote in message
> news:uAkiawEiFHA.3436@tk2msftngp13.phx.gbl...
the[vbcol=seagreen]
error:[vbcol=seagreen]
>
>
| |
| Yossi Dahan 2005-07-14, 7:47 am |
| Before sending the request message put a message construction shape.
through its properties set it to construct the request message.
in the message construct you can now have a few options to actually
construct the request message -
You can use a transform shape and a map to convert from any other message
you already have in the process
You can have a message assignment shape that will load a pre-defined xml
into the message
Or You may want to simply assign values to the elements in the request (if
your web service request is of simple type)
Which approach you will use really depends on your scenario. an example of
the second approach (not necessarily the recommended approach, as it is
hardcoded) is to have a variable of type XmlDocument (I'll call it XmlDoc)
if you did not select "use default constructor" you will need to create an
instance of it by calling the constructor.
you can then use the LoadXml method to pass in a string which is the xml
call to the web service.
the xml string can be hard coded or provided by a .net helper, possible
getting it from a configuration file.
The third approach is a simple assignment =
WebServiceRequetsMsg.SomeParameter = "SomeValue";
I hope this helps, if you have further questions keep posting them here.
Yossi Dahan
"Vishal Somaiya" <vsomaiya@bca-group.com> wrote in message
news:OXLaAfFiFHA.3316@TK2MSFTNGP14.phx.gbl...
> So how would you construct the message? (I'm fairly new to biztalk...)
>
>
> "Yossi Dahan" <yossi.dahan@NOSPAMPLEASEsabratech.co.uk> wrote in message
> news:eOhXVMFiFHA.2072@TK2MSFTNGP14.phx.gbl...
> the
> error:
>
>
|
|
|
|