|
Home > Archive > BizTalk Server Orchestration > December 2004 > Failed to add a Web Reference.
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 |
Failed to add a Web Reference.
|
|
|
| I am trying to add a Web Reference to a BizTalk project. I open the
Web Reference dialog, navigate to the Service's URL, find the WSDL and
click Add Reference. A dialog then comes up titled WebReference and
displaying "Failed to add a Web Reference." There is no additional
error info that I can find.
The web service is built in J2EE and I can add a reference to it in a
..NET WinForms project. I created a brand new Biztalk project and got
the same results, so my project is not corrupted. The methods return
an array of structures and I'm wondering if that is what is tripping up
Visual Studio. The signature of one of the methods is-
public MyProject.ValidationService.XmlTagError[] validate (
System.String lineOfBusiness , System.String asOf , System.String
xmlData , System.Boolean useStrictSyntax , System.Boolean
allowUnknownOuterTags )
XmlTag Error is a simple structure with three string properties - the
definition is in the WSDL and shows up properly when importing to the
WinForms project.
Is this too complicated a signature for BizTalk to import?
Biff Gaut
Gaithersburg, MD
| |
| Jon Flanders 2004-12-21, 8:47 pm |
| Xlangs (the language that BizTalk is using to create the proxy class)
doesn't support arrays. So it is the return value that is causing the
trouble.
So you have two options:
1) Create a .NET component to call the webservice.
2) Use the HTTP Adapter and send the correct XML body via it.
HTH
--
Jon Flanders
http://staff.develop.com/jfland/
"Biff" <biff_gaut@hotmail.com> wrote in message
news:1103676117.625449.185810@f14g2000cwb.googlegroups.com...
> I am trying to add a Web Reference to a BizTalk project. I open the
> Web Reference dialog, navigate to the Service's URL, find the WSDL and
> click Add Reference. A dialog then comes up titled WebReference and
> displaying "Failed to add a Web Reference." There is no additional
> error info that I can find.
>
> The web service is built in J2EE and I can add a reference to it in a
> .NET WinForms project. I created a brand new Biztalk project and got
> the same results, so my project is not corrupted. The methods return
> an array of structures and I'm wondering if that is what is tripping up
> Visual Studio. The signature of one of the methods is-
>
> public MyProject.ValidationService.XmlTagError[] validate (
> System.String lineOfBusiness , System.String asOf , System.String
> xmlData , System.Boolean useStrictSyntax , System.Boolean
> allowUnknownOuterTags )
>
> XmlTag Error is a simple structure with three string properties - the
> definition is in the WSDL and shows up properly when importing to the
> WinForms project.
>
> Is this too complicated a signature for BizTalk to import?
> Biff Gaut
> Gaithersburg, MD
>
| |
|
| Thanks for the quick reply. I will make accomodations.
Biff
|
|
|
|
|