473,461 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

WSDL without qualified namespace

Hi,
need some help with creating a WSDL file. I will try to summarize the
problem like this:

I need to create a wsdl that accepts a response that has no namespace-
prefix in the first line in the body, like this:
"...<soap:Body><UpdateCustomerDetailsResponse xmlns="AMI">..."

I have tried setting the schema-element like <s:schema
elementFormDefault="unqualified" targetNamespace="AMI"and since this
is the "root" of the response, I can not see anothter place I can
change since the "root" element does not accept the form-attribute
when it is defined, for example like this: <s:element
name="UpdateCustomerDetailsResponse" form="unqualified"(which
appears to be not accepted).

The strange thing is that this line <s:schema
elementFormDefault="unqualified" targetNamespace="AMI"works with a
message that looks like
"...<soap:Body><AMI:UpdateCustomerDetailsRespo nse xmlns:AMI="AMI">..."
which to me seems to be contradictionary to how it is supposed to be
used.

I realize this is a complex problem to solve with just this
information but are there any common patterns or solutions to work
with when working with unqualified namespaces?

The problem appears in Biztalk when the message is received with the
error message: "The XLANG/s message has no part at index '0'. The
total number of parts found in the message is '0'. If you expect a
multipart message, check that the pipeline supports multipart messages
such as MIME.". I guess this is because no message is delivered to
Biztalk after the soap-adpater connection.

Thanks in advance!
Axel
Jun 27 '08 #1
3 4968
Hi Axel,
need some help with creating a WSDL file. I will try to summarize the
problem like this:

I need to create a wsdl that accepts a response that has no namespace-
prefix in the first line in the body, like this:
"...<soap:Body><UpdateCustomerDetailsResponse xmlns="AMI">..."

I have tried setting the schema-element like <s:schema
elementFormDefault="unqualified" targetNamespace="AMI"and since this
is the "root" of the response, I can not see anothter place I can
change since the "root" element does not accept the form-attribute
when it is defined, for example like this: <s:element
name="UpdateCustomerDetailsResponse" form="unqualified"(which
appears to be not accepted).
That's correct. XSD mandates that all root elements *must* be qualified if
the schema has a targetNamespace (form and elementFormDefault only apply to
non-root elements).

If I had to guess, I'd say you'd need to break your schema in two: One with
a targetNamespace that defines the inner elements, and one without a
targetNamespace that defines the <UpdateCustomerDetailsResponse/root
element and imports the first schema.
--
Tomas Restrepo
http://www.devdeo.com/
http://www.winterdom.com/weblog/

Jun 27 '08 #2
Hi Tomas, thanks for a quick answer!

Actually, I have tried making the WSDL as I think you mean, one WSDL with
two schemas in it, but with no difference (still does not work).

I am guessing the top-tag "<wsdl:definitions..." which has a
targetNamespace="AMI" attribute also plays a part in this, but I don't think
I can remove that one since the targetnamespace is used at other places in
the WSDL.

I have also tried separating the response message to a separate WSDL but
with no luck, is that possible at all?

would appreciate some other suggestions...
Thanks/Axel

Tomas Restrepo [MVP]" wrote:
Hi Axel,
need some help with creating a WSDL file. I will try to summarize the
problem like this:

I need to create a wsdl that accepts a response that has no namespace-
prefix in the first line in the body, like this:
"...<soap:Body><UpdateCustomerDetailsResponse xmlns="AMI">..."

I have tried setting the schema-element like <s:schema
elementFormDefault="unqualified" targetNamespace="AMI"and since this
is the "root" of the response, I can not see anothter place I can
change since the "root" element does not accept the form-attribute
when it is defined, for example like this: <s:element
name="UpdateCustomerDetailsResponse" form="unqualified"(which
appears to be not accepted).

That's correct. XSD mandates that all root elements *must* be qualified if
the schema has a targetNamespace (form and elementFormDefault only apply to
non-root elements).

If I had to guess, I'd say you'd need to break your schema in two: One with
a targetNamespace that defines the inner elements, and one without a
targetNamespace that defines the <UpdateCustomerDetailsResponse/root
element and imports the first schema.
--
Tomas Restrepo
http://www.devdeo.com/
http://www.winterdom.com/weblog/

Jun 30 '08 #3
Axel,
Hi Tomas, thanks for a quick answer!

Actually, I have tried making the WSDL as I think you mean, one WSDL with
two schemas in it, but with no difference (still does not work).
I was talking about separate schemas, not the WSDL (You can actually import
multiple external XSD files into a WSDL if you want, as well).
I am guessing the top-tag "<wsdl:definitions..." which has a
targetNamespace="AMI" attribute also plays a part in this, but I don't
think
I can remove that one since the targetnamespace is used at other places in
the WSDL.
Nope, that's the namespace for the definitions in the WSDL itself, not the
types in it (i.e. messages, portTypes, Services and so on). It doesn't
affect the namespaces used by the XML elements themselves at all.
--
Tomas Restrepo
http://www.devdeo.com/
http://www.winterdom.com/weblog/

Jun 30 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: trexim | last post by:
Hi, I am trying to create a Web Reference for CSTA using the URL http://www.ecma-international.org/standards/ecma-348/csta-wsdl/csta-wsdl-all-operations.wsdl Visual .Net complains that: "...
1
by: Thomas | last post by:
Hi, I have written a Web Service using Axis C++ Server and a .Net Windows client. I considered every interoperability issue between Axis and .Net( Doc/Literal ...) The .Net Windows client can...
5
by: Jeff | last post by:
We are using .Net and the wsdl Utility to generate proxies to consume web services built using the BEA toolset. The data architects on the BEA side create XML schemas with various entities in...
5
by: CindyRob | last post by:
Using .NET framework 1.1 SP1, .NET framework SDK 1.1 SP1, Visual Studio .NET 2003, hotfixes 892202 and 823639. I create a proxy class using wsdl.exe, and in the serialized XML request, I see...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.