473,387 Members | 1,510 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

how to add default namespace to wsdl

..NET does not generate defaut namespace ?

<?xml version="1.0" encoding="utf-8" ?>
<wsdl:definitions
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://www.spirit.sk/HelloWS"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
targetNamespace="http://www.spirit.sk/HelloWS"

xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
xmlns="http://www.spirit.sk/HelloWS" is missing why ?

mike
May 4 '06 #1
7 3191
But the default namespace (if you mean the namespace without a prefix)
isn't used in the WSDL - so why would it generate a namespace for
nothing?

Josh
http://www.thejoyofcode.com/

May 5 '06 #2
Web Service Tester App
http://download.microsoft.com/downlo...N-US/Microsoft
Web Service Tester.msi

ends with the
Namespace prefix 'default' is not defined.
error

mike

"Josh Twist" <jo********@gmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
But the default namespace (if you mean the namespace without a prefix)
isn't used in the WSDL - so why would it generate a namespace for
nothing?

Josh
http://www.thejoyofcode.com/

May 5 '06 #3
Hello,

We'd like our application to pass Web Services and the .NET Framework
component of Microsoft Platform Test for ISV Solutions. There is a test
procedure defined that the exposed web service must be validated with
Microsoft Web Service Tester App.
The tester app ends immediately with the "Namespace prefix 'default' is not
defined" error message when running against our Web service (ASP.NET
application programmed with MS Visual Studio .NET 2003). How can we get rid
of the error mexsage ?

Lubo

"Josh Twist" <jo********@gmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
But the default namespace (if you mean the namespace without a prefix)
isn't used in the WSDL - so why would it generate a namespace for
nothing?

Josh
http://www.thejoyofcode.com/

May 5 '06 #4
Interesting - I've never used that particular tool.

Does anything in your WSDL use the default namespace?

Sorry I'm not being much help here... but you could try another WSDL
validator. There are a couple out there on the web.

Josh
http://www.thejoyofcode.com/

May 5 '06 #5
ASP.NET produces wsdl document,
there is always namespace xmlns:tns which acts as default name space,
but the tool seems needs one more pure xmlns.
The solution could be replace .asmx?wsdl document with manually created wsdl
as in the post from jjouett 13.04.2006.
But there was no answer.

mike
"Josh Twist" <jo********@gmail.com> wrote in message
news:11**********************@j73g2000cwa.googlegr oups.com...
Interesting - I've never used that particular tool.

Does anything in your WSDL use the default namespace?

Sorry I'm not being much help here... but you could try another WSDL
validator. There are a couple out there on the web.

Josh
http://www.thejoyofcode.com/

May 5 '06 #6
To pass the test
let the web service send manually produced wsdl
which will has
xmlns="http://schemas.xmlsoap.org/wsdl/"
added to the definitions element

manually send wsdl

protected void Application_BeginRequest(Object sender, EventArgs e)

{

string myUrl = Request.RawUrl;

myUrl = myUrl.ToUpper();

int myIndx = myUrl.IndexOf("WSDL");

if(myIndx > -1)

{

Response.WriteFile("MyWebService.wsdl");

Response.End();

}

}


mike
"Miso" <va****@spirit.sk> wrote in message
news:OY**************@TK2MSFTNGP04.phx.gbl...
ASP.NET produces wsdl document,
there is always namespace xmlns:tns which acts as default name space,
but the tool seems needs one more pure xmlns.
The solution could be replace .asmx?wsdl document with manually created
wsdl
as in the post from jjouett 13.04.2006.
But there was no answer.

mike
"Josh Twist" <jo********@gmail.com> wrote in message
news:11**********************@j73g2000cwa.googlegr oups.com...
Interesting - I've never used that particular tool.

Does anything in your WSDL use the default namespace?

Sorry I'm not being much help here... but you could try another WSDL
validator. There are a couple out there on the web.

Josh
http://www.thejoyofcode.com/


May 10 '06 #7
Hi Miso

Is this ur complete WSDL or can u give me the whole WSDL?

"Miso" wrote:
..NET does not generate defaut namespace ?

<?xml version="1.0" encoding="utf-8" ?>
<wsdl:definitions
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://www.spirit.sk/HelloWS"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
targetNamespace="http://www.spirit.sk/HelloWS"

xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
xmlns="http://www.spirit.sk/HelloWS" is missing why ?

mike

May 18 '06 #8

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

Similar topics

2
by: Rick | last post by:
I have an XML document that is generated from Infopath, I need to change the value of a namespace that is defined in a node in the form: <xsf:xDocumentClass "xmlns:my=valuehere">. when i navigate...
4
by: jb | last post by:
I have discovered that when the WSDL is auto-generated in .NET (i.e. http://.../MyService.asmx?WSDL): * Prior to SP1, it generated xmlns:s0="http://mynamespace/" in <wsdl:definitions>, and then...
2
by: Pathogenix | last post by:
Greetings, I'm trying to fix a web service client which has been implemented in a dailywtf worthy manner. I've decided to rip all the old code out and start again from the proxy generated by...
0
by: ryan | last post by:
I've been tasked with consuming a Perl web service that was written by a person in a different department of my company. The problem is it's the guy's first attempt at web services and he doesn't...
7
by: Michael Peters | last post by:
I wish to change/set the namespace for a header in my web service. I have found the following code and it does not appear to work and my assumption is because I am using RPC encoding... ...
0
by: Steven Bolard | last post by:
Hello, I am trying to port my .net 1.1 application to 2.0. I am using vs2005. I am trying to get my webservices to run and although i can compile them and and get wsdl and service descriptions...
0
by: robert | last post by:
Hi all, I'm having a hard time resolving a namespace issue in my wsdl. Here's an element that explains my question, with the full wsdl below: <definitions name="MaragatoService"...
1
by: Dheepu Kumar1 | last post by:
We are using WSDL in soapclient to access the java web service.The soapclient request is not formed as required by the service. Namespace is not included in one ComplexType element(<GSTBTReq>) in...
7
by: beachdog | last post by:
I'm using Visual Studio 2005/C# to build a web client. The web server is something I've written in a different framework, which does not support generating wsdl, so I have hand-built a wsdl file,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.