Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to call a Web Service that takes no input

177 views
Skip to first unread message

Prash

unread,
Apr 25, 2006, 6:09:33 PM4/25/06
to
I have a web service that takes no input. How do I call it? Here is the SOAP
input that it requires.

<soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<tns:GetAllCustomers />
</soap:Body>

When I add it as a web reference in BizTalk, it appears as a Multi Part
Message type with nothing inside it. I defined a message WSRequest which
points to this.

So I have a few questions
1. In my orchestration, I have a Send shape whose message type is WSRequest.
But I don't know how to create an instance of that message. Do I even have
to create an instance?

2. How do I start the orchestration? I believe that an orchestration must
have a Receive shape with Active property set to true. But I have nothing to
send to this orchestration.

One way would be to create a dummy input and send to Receive shape. Is that
a good practice?

Thanks.

P

Matt Milner

unread,
Apr 25, 2006, 9:33:48 PM4/25/06
to
You should just need a simple message construction shape with the type of
your web service message specified. This will construct your message for
you.

Yes, you need something to trigger the orchestration which usually means a
message being received. Unless this orchestration will be called by other
orchestrations, in which case you can define parameters for it.

Matt


"Prash" <Pr...@msn.com> wrote in message
news:OQmNORLa...@TK2MSFTNGP02.phx.gbl...

SaravananBiz

unread,
Apr 27, 2006, 9:04:02 AM4/27/06
to
To add to Matt's comments
Web messages are multi part messages.Biztalk insists that multi part
messages are initialized before they can be used in the orchestration. This
rule is relaxed only for Web message types. A web service method with no
parameter doesn't have a part and it need not be initialised. So we need to
have an empty Construct Message Shape with the WS req message being
constructed in the shape.
0 new messages