SoapException invalid SOAPAction

M

Markus Broy

Hi,

I am trying to call a webmethod on a web server from an onther server. Doing
this I get the following exception (German):

System.Web.Services.Protocols.SoapException: Die Anforderung kann ohne
gültigen action-Parameter nicht behandelt werden. Geben Sie eine gültige
SOAPAction an.
at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClient
Message message, WebResponse response, Stream responseStream, Boolean
asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)

Translated (not exactly the english message but the meaning): The request
cannot be executed without a valid action parameter.

If I call the same webmethod from another program installed on the web
server everything works fine.

Any ideas?

Thank you in advance.

Markus Broy
 
S

sacrelegious

You're missing the SOAPAction in the http header. The SOAPAction tells
the server which method in the service to call..

try this...
[objName].setRequestHeader "SOAPAction", "[the actual value]"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top