MrDave's (David Yack) WebLog

Dont forget to set your name spaces on web services!

Make rsure when you create your new webservice that you set the name space on it using the name space attribute on the class

[WebService(Namespace=http://your url here)]

If you don't change it before you publish it you will use http://tempuri.org

The problem with that is if you want to change it latter it is much harder.  Now you have clients that are depedent on it and if you do change it and don't change your client you will get the following erorr:

System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://tempuri.org/Login.

Keep that in mind next time you build a web service!

Comments

M_Dec said:

Hi,

I'm getting the following error:

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="schemas.xmlsoap.org/.../" xmlns:xsi="www.w3.org/.../XMLSchema-instance" xmlns:xsd="www.w3.org/.../faultcode><faultstring>System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: .

Can you please let me know how to fix this?

# September 24, 2008 11:58 PM

Rengenx said:

Пощелкал по рекламе. спасибо за пост

# February 15, 2010 2:18 PM

PasserBy said:

Cool post you got here. I'd like to read a bit more about this matter. The only thing your blog misses is a few pictures of some gadgets.

Kate Trider

<a href="www.jammer-store.com/">cell signal jammer</a>

# July 9, 2010 6:44 AM

indian escort north west said:

It is certainly interesting for me to read the post. Thank author for it. I like such topics and anything connected to this matter. I definitely want to read a bit more soon.

Nickolas Trider

# July 21, 2010 3:21 AM

female escort service said:

Rather cool site to spend some time on reading it at least for me. The only question I have, why haven't you you add it to social bookmarking sites? It can bring rather big traffic here.

# July 24, 2010 4:08 AM

latinas escorts said:

I would like to read more soon. By the way, pretty good design you have here, but don’t you think design should be changed from time to time?

Olivia Andersen

# July 30, 2010 5:54 PM

Sara Flouee said:

It is rather interesting for me to read this blog. Thank author for it. I like such topics and everything that is connected to them. I definitely want to read a bit more soon. BTW, rather good design you have at this site, but how about changing it once in a few months?

Sara Flouee

<a href="http://www.baccaratgirls.com">escort in London</a>

# August 3, 2010 2:56 PM

Avril Simpson said:

It is certainly interesting for me to read this article. Thanx for it. I like such themes and everything that is connected to this matter. I would like to read a bit more soon.

Avril Simpson

<a href="irelandescortdirectory.com/.../kildare-escorts">escorts in kildare</a>

# October 3, 2010 1:08 AM

generic said:

Pretty section of content. I just stumbled upon your site and in accession capital to assert that I acquire in fact enjoyed account your blog posts. Anyway I will be subscribing to your feeds and even I achievement you access consistently rapidly.

# March 26, 2011 1:12 AM

saro said:

Hi,

I have read the article. We have the same problem when the third party vendor uses our web services and call the URL. It works fine locally.

Our namespace is something like: 81.xx.xx.xx/dbrpcservice.asmx

when they call they are calling the above URL using jsp code and end up with the same error.

Can you throw some light on this.

thanks.

# April 13, 2011 12:13 PM

Name (required)* said:

Comments (required)*

# August 17, 2011 5:29 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)