BizTalk Server Orchestration - How to call WebMethod without input parameters

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > December 2005 > How to call WebMethod without input parameters





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to call WebMethod without input parameters
miksh

2005-12-08, 8:49 pm

Let's say we have a WebService with
[WebMethod]
public MyDataType MyMethod()
{
......
}

To make request of this method I need to send a message of
MyMethod.request type. But how does it look like? How to construst
it?

Marian Drumea

2005-12-09, 7:51 am

The message schema will come with the rest of the metadata created when
you add the Web Services reference to the BizTalk project. Then, you
can right click the schema in the project and Generate Instance if you
want to see the exact XML.

Cheers,

Marian
http://www.MarianDrumea.com/BizTalk

miksh

2005-12-12, 5:59 pm

This is correct for any non-empty in/out messages. In my case the only
output message schema is generated and nothing for input one because
it does not exist.
Any ideas?

Greg Forsythe

2005-12-12, 5:59 pm

When you add a web reference, both a request and response message type are
create, even if the request is empty.
You need to declare a message of type webservice_request.
Add a Construct Message shape to your orchestration, specifying your
webservice_request message. The Construct Message will not contain any other
shapes.
Then add a send and receive shape for your web service, the send shape
message is the webservice_request message.


Greg


"miksh" <miksh@rogers-dot-com.no-spam.invalid> wrote in message
news:UJudndy5jJSjKQDeRVn_vA@giganews.com...
> This is correct for any non-empty in/out messages. In my case the only
> output message schema is generated and nothing for input one because
> it does not exist.
> Any ideas?
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com