472,993 Members | 2,384 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,993 software developers and data experts.

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 4905
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...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.