Skip to main content

WSDL generated by Orbix idl compiler cannot be used in MS SDK 7.0 C# environment

  • May 17, 2013
  • 0 replies
  • 0 views

Summary This article clarifies under which circumstances a WSDL file generated by the Orbix idl compiler is causing issues when used in the MS SDK 7.0 C# environment.
Article Number 37456
Environment Orbix 6.3.x Windows Operating Systems MS SDK 7.0 C# environment (Visual Studio 2008)
Question/Problem Description WSDL generated by Orbix idl compiler cannot be used in MS SDK 7.0 C# environment.

Problems running the Microsoft wsdl.exe tool on a WSDL file generated with the Orbix tools (idl, wsdltosoap, wsdltoservice, wsdltoroute)
Clarifying Information wsdl.exe is a Microsoft utility used to generate code for xml web service clients and xml web services using ASP.NET from WSDL contract files and XSD schemas.

The Orbix IDL compiler can be used to generate WSDL files from IDL files in order to expose CORBA interfaces through Web Services SOAP interfaces.

The Orbix wsdltosoap, wsdltoservice, wsdltoroute utilities are used to add SOAP bindings, SOAP services and routing instructions to a WSDL.
Error Message Microsoft (R) Web Services Description Language Utility [Microsoft (R) .NET Framework, Version 2.0.50727.1432] Copyright (C) Microsoft Corporation. All rights reserved. Warning: This web reference does not conform to WS-I Basic Profile v1.1. R2028, R2029: A DESCRIPTION using the WSDL namespace and the WSDL SOAP binding namespace MUST be valid according to the XML Schemas found at http://sc hemas.xmlsoap.org/wsdl/2003-02-11.xsd and http://schemas.xmlsoap.org/wsdl/soap/2003-02-11.xsd. - Warning: The element 'definitions' in namespace 'http://schemas.xmlsoap.org/wsdl/' has invalid child element 'typeMapping' in namespace 'http://s chemas.iona.com/bindings/corba'. List of possible elements expected: 'import, types, message, portType, binding, service' in namespace 'http://schemas .xmlsoap.org/wsdl/'. Line 6900, position 6. For more details on the WS-I Basic Profile v1.1, see the specification at http://www.ws-i.org/Profiles/BasicProfile-1.1.html. Error: Unable to import binding 'MySOAPBinding' from namespace 'http://schemas.iona.com/idl/MyService.idl'. - Unable to import operation 'TestOperation'. - The datatype 'http://www.w3.org/2005/08/addressing:EndpointReferenceType' is missing. If you would like more help, please type "wsdl /?".
Defect/Enhancement Number
Cause If the WSDL contains routing elements used to map incoming SOAP calls to IIOP requests on the server the warning below is caused by the typeMapping element in the WSDL.

Warning: The element 'definitions' in namespace 'http://schemas.xmlsoap.org/wsdl/' has invalid child element 'typeMapping' in namespace 'http://s
chemas.iona.com/bindings/corba'. List of possible elements expected: 'import, types, message, portType, binding, service' in namespace 'http://schemas
.xmlsoap.org/wsdl/'. Line 6900, position 6.

If the WSDL contains WS-Addressing references the error below is caused if the ws-addr.xsd has not been provided to the wsdl.exe utility:

Error: Unable to import binding 'MySOAPBinding' from namespace 'http://schemas.iona.com/idl/MyService.idl'.
  - Unable to import operation 'TestOperation'.
  - The datatype 'http://www.w3.org/2005/08/addressing:EndpointReferenceType' is missing.
Resolution The WSDL interface for the client side does not need to contain the routing and typeMapping element. Removing these element from the WSDL resolves the warning messages.

Additionally ensure the ws-addr.xsd is passed to the wsdl.exe utility, this resolves the error.
Workaround
Notes
Attachment
Created date: 28 January 2013
Last Modified: 12 February 2013
Last Published: 28 January 2013
First Published date: 28 January 2013

#Orbix
#KnowledgeDocs