BizTalk Server General - Web Reference Problem

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > December 2005 > Web Reference Problem





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 Web Reference Problem
Samuel L

2005-12-06, 7:48 am

Hi!

I have exposed an orchestration as a web service and it seems to work fine...
It is very simple, it just receives and sends a message of a schema type
like this:
<root>
<name>ett</name>
</root>

It works fine to add a web reference to this WS in BizTalk.
But when I set the maxOccurences property of the name-node to unbounded,
something gets really messed. After re-deploying and re-publishing, I cannot
add a web reference to this WS...

The WS is found by the wizard, but when trying to add it an error message
appears: "Failed to add a web reference". Additionally nothing in eventlog.

Why?

Thanks for all comments and ideas!


Tomas Restrepo \(MVP\)

2005-12-06, 5:54 pm

Samuel,

> I have exposed an orchestration as a web service and it seems to work
> fine...
> It is very simple, it just receives and sends a message of a schema type
> like this:
> <root>
> <name>ett</name>
> </root>
>
> It works fine to add a web reference to this WS in BizTalk.
> But when I set the maxOccurences property of the name-node to unbounded,
> something gets really messed. After re-deploying and re-publishing, I
> cannot
> add a web reference to this WS...
>
> The WS is found by the wizard, but when trying to add it an error message
> appears: "Failed to add a web reference". Additionally nothing in
> eventlog.
>
> Why?


BizTalk 2004 doesn't support array parameters in webservices directly in the
SOAP adapter (see
http://msdn.microsoft.com/library/d...abc4dd1d1fa.asp),
though they are supported in 2006.

My guess is that because of the way orchestrations are exposed as WS, you're
seeing this.

Two options come to mind:
- Don't directly call the webservice from biztalk, but wrap it in a .NET
component you call from the orchestration from an expression shape.
- Use the WSE adapter to do the calling, which I understand supports it.

Are you exposing the webservice and consuming it from the same biztalk
group, or are this separate biztalk groups entirely? Because if it is the
first case, then a much better option would really to avoid the webservice
at all and just use direct binding, instead.


--
Tomas Restrepo
tomasr@mvps.org
http://www.winterdom.com/


Samuel L

2005-12-06, 5:54 pm

Thanks for your reply Tomas!

> BizTalk 2004 doesn't support array parameters in webservices

Ok, so the soap representation of the unbounded record is an array, or?

> - Use the WSE adapter to do the calling, which I understand supports it.

Seems like a nice solution... Where can I find it?

> Are you exposing the webservice and consuming it from the same biztalk
> group, or are this separate biztalk groups entirely?

Currently I'm consuming it from the same BizTalk group, but that's just for
development purposes. I want to be able to make a reference to any web
service from my orchestration.

Thanks again!

Tomas Restrepo \(MVP\)

2005-12-06, 8:49 pm

Hi Samuel,

> Seems like a nice solution... Where can I find it?


It can be downloaded from the MS website:
http://www.microsoft.com/biztalk/ev...2_overview.mspx

> Currently I'm consuming it from the same BizTalk group, but that's just
> for
> development purposes. I want to be able to make a reference to any web
> service from my orchestration.


Ohh, of course, I understand. I merely asked because I've seen other people
using it for really group-local only escenarios in ways which are very
inneficient considering how nice direct binding is


--
Tomas Restrepo
tomasr@mvps.org
http://www.winterdom.com/


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com