"Unable to import binding" error

Posted on 2011-02-11
Last Modified: 2013-11-18
I need help solving an error using wsdl.exe under Visual Studio 2008. The wsdl and xsd files are from a Java implementation and are in production use with that Java code.

The error I'm getting is:
Error: Unable to import binding 'UserAccountServiceHttpBinding' from namespace ''.
  - Unable to import operation 'authenticate'.
  - The element '' is missing.

However, an element entry does exist for authenticateRequest in the xsd file.

Any suggestions would be greatly appreciated.

What I hope is relevant code is below. (Apologies in advance - I cannot post the entire wsdl file because it's NDA. So I'll post what I can.)

top of xsd file
<?xml version="1.0" encoding="utf-8" ?>
<schema xmlns:tns=""
	<import schemaLocation="common_api_1.0.xsd"
		namespace="" />
	<import schemaLocation="common_1.0.xsd"
		namespace="" />
	<import schemaLocation="useraccount_service_1.0.xsd"
		namespace="" />
	<!--service api defination-->
	<element name="token" type="common:OID" />
	<element name="authenticateRequest" type="tns:AuthenticateRequest" />
	<element name="authenticateResponse" type="tns:AuthenticateResponse" />
	<element name="impersonateRequest" type="string" />
	<element name="impersonateResponse" type="string" />
	<element name="validateTokenRequest" type="tns:ValidateTokenRequest" />
	<element name="validateTokenResponse" type="tns:ValidateTokenResponse" />

Open in new window

excerpt from wsdl file

	<wsdl:message name="authenticateRequest">
		<wsdl:part name="authenticateRequest" element="api:authenticateRequest" />
	<wsdl:message name="authenticateResponse">
		<wsdl:part name="authenticateResponse" element="api:authenticateResponse" />


	<wsdl:portType name="UserAccountServicePortType">
		<wsdl:operation name="authenticate">
				This API is used ...
			<wsdl:input name="authenticateRequest" message="tns:AuthenticateRequest">
			<wsdl:output name="authenticateResponse" message="tns:AuthenticateResponse">
			<wsdl:fault name="serviceFaultInfoException" message="tns:serviceFaultInfoException">

Open in new window

Question by:JimBeveridge
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 20

Expert Comment

ID: 34896346
I would assume that there is an element authenticateRequest but it is in the wrong namespace.

Accepted Solution

JimBeveridge earned 0 total points
ID: 34953422
Problem was caused by nested xsd files silently failing to load/validate.

Author Closing Comment

ID: 34990803
Found my own answer to the problem.

Featured Post

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question