473,395 Members | 1,577 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,395 software developers and data experts.

Urgent Help on Protocols.SoapException

Dear all,

I'm having problem with C# Web Services, in the Web Services it suppose to
call another Web Services to return XmlNode to current Web Services. Below is
the sample code :-

WServices.WServices WSObj = new WServices.WServices();
WSObj.Credentials = System.Net.CredentialCache.DefaultCredentials;
XmlNode objNode = WSObj.GetCustomerByID(CustomerID); --> Catch Exception

But after it GetCustomerByID it return errors as below :-

"System.Web.Services.Protocols.SoapException: Server did not recognize the
value of HTTP Header SOAPAction...at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall) at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[] parameters)"

I have added
"[SoapDocumentService(RoutingStyle=SoapServiceRoutin gStyle.RequestElement)]"
but it still return the same errors.

Help Needed urgently.

Thanks in advance.
Nov 23 '05 #1
1 3419
Hi,

I don't think the porblem in this case is that you use element or action
style dispatching. My guess is that the other side simply sees a malformed
http request. A reason for this could very well be that you are using default
credentials for authenticating. Normally that's fine, but in this case (as
you are running in a pipeline worker process) you'll pick up some weird
credentials:

a) if all your stuff is default and you run on IIS 6, you'll go out as
NetworkService, which may not have rights on the other box;
b) if all your stuff is default and you run on IIS 5, you'll go out as
aspnet user, which is a local account and won't have rights on the other box;
c) if you configured <identity impersonation='true' /> then you're on an
impersonation token which (barring delegation) will have no rights on the
other machine (null session) ..

Can you set the credentials to explicit credentials (like new
NetworkCredentials(username, pwd, domain)) to test if this is the problem ?
Do you really need to send in credentials at all ? If the remote server does
anonymous access, there's no need to ...

HTH,

-- Henkk
"Mae Lim" wrote:
Dear all,

I'm having problem with C# Web Services, in the Web Services it suppose to
call another Web Services to return XmlNode to current Web Services. Below is
the sample code :-

WServices.WServices WSObj = new WServices.WServices();
WSObj.Credentials = System.Net.CredentialCache.DefaultCredentials;
XmlNode objNode = WSObj.GetCustomerByID(CustomerID); --> Catch Exception

But after it GetCustomerByID it return errors as below :-

"System.Web.Services.Protocols.SoapException: Server did not recognize the
value of HTTP Header SOAPAction...at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall) at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[] parameters)"

I have added
"[SoapDocumentService(RoutingStyle=SoapServiceRoutin gStyle.RequestElement)]"
but it still return the same errors.

Help Needed urgently.

Thanks in advance.

Nov 23 '05 #2

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

Similar topics

16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
0
by: Matt Wood | last post by:
Hi, I have written a Web Service for a customer which expects a SOAP message with Document/Literal encoding, and uses RoutingStyle=SoapServiceRoutingStyle.RequestElement to route the SOAP body...
3
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : ...
0
by: Papp György | last post by:
Hi I have created a webservice with c# inVisual Studio 2003 by the ASP Web Service template. Then I created a client application to test the web service and the following error occurs : An...
1
by: Florencio Laso | last post by:
Hola to all: We have created a service web that works perfectly while is invoked in the localhost of the machine of development or from the IE of the servant where we have published it....
5
by: =?Utf-8?B?a3Jpcw==?= | last post by:
Hi all, How to handle exceptions of webservices? I have a wsdl file which contains the exception classes. when i am adding that wsdl file in my asp application I am unable to view those...
3
by: weird0 | last post by:
This is the exception that I get when i create a webserivce obj and call. The error comes on the webmethod call, when it opens a connection to the db. How do I fix it? What is the solution to...
0
by: sara77 | last post by:
I have a web service that receives an xml Node and xpath and should send back the matching node. My code works fine, the only problem is when the matching node is an XmlAttribute then it throws the...
0
by: Vijyeta | last post by:
hi Guys, I am using MediaBin as an asset repository. when I am trying to update the asset metadata, I am getting the following exception : System.Web.Services.Protocols.SoapException: Server...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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...
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...

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.