A WSDL file generated by TIBCO BusinessConnect SOAP protocol, when imported into Microsoft Visual Studio, throws "missing element attribute" error.

A WSDL file generated by TIBCO BusinessConnect SOAP protocol, when imported into Microsoft Visual Studio, throws "missing element attribute" error.

book

Article ID: KB0089717

calendar_today

Updated On:

Products Versions
TIBCO BusinessConnect SOAP Protocol -
Not Applicable -

Description

Resolution:


Symptoms:
=========
Here is the error thrown when trying to import:

[...]
Unable to import binding 'Service1Soap_Service1Soap' from namespace 'http://tempuri.org/'. Unable to import operation 'HelloWorld'. Part 'head' from message 'Service1Soap_Service1Soap_HelloWorld_requestHeader' in namespace 'http://tempuri.org/' is missing the element attribute. The element attribute is required for headers when Use=Literal.
[...]


Root cause:
===========
Microsoft Visual Studio requires a schema for the Header definition.


Resolutions:
=========
- Using the BC configuration GUI, make sure you have defined the Header Root Element Name and uploaded the proper schema;
- Generate the WSDL file
- Import the WSDL into M. Visual Studio

Issue/Introduction

A WSDL file generated by TIBCO BusinessConnect SOAP protocol, when imported into Microsoft Visual Studio, throws "missing element attribute" error.