HighTechTalks DotNet Forums  

Server did not recognize the value of HTTP Header SOAPAction

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss Server did not recognize the value of HTTP Header SOAPAction in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
=?Utf-8?B?Q2hyaXN0aWFuIEhhdmVs?=
 
Posts: n/a

Default Server did not recognize the value of HTTP Header SOAPAction - 07-23-2007 , 09:00 AM






Hi,

I try with the following Java code to call a .NET Webservice method:


String endpoint = lblURL.getText();

Service service = new Service();

Call call = null;
try {
call = (Call)service.createCall();
} catch (ServiceException e) {
e.printStackTrace();
}

try {
call.setTargetEndpointAddress( new URL(endpoint));
} catch (MalformedURLException e) {
e.printStackTrace(); }
call.setOperationName("Dial");

call.addParameter("Number",
org.apache.axis.Constants.XSD_STRING,
javax.xml.rpc.ParameterMode.IN);

try {
String ret = (String)call.invoke(new Object[] {"173"});
ret = ret;
} catch (RemoteException e) {
e.printStackTrace();
}

By the invoke-method-call I receive a exception with the errordescription:
"Server did not recognize the value of HTTP Header SOAPAction"
What I do wrong?
Christian

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.