axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fan, Jan-fon" <>
Subject RE: Soap request to Microsoft .NET web services
Date Thu, 15 May 2008 18:54:10 GMT
Hi Steven, Samisa,

Per Samisa's suggest, I added:


ns1 = axiom_namespace_create(env,
"", "ns1");

echo_om_ele = axiom_element_create(env, NULL, "HelloWorld", ns1,


but the return is still the same - the name part is missing. The soap
message becomes:











Steven, I need to specifically specify what is my soap action by using:

axutil_string_t *soap_action = NULL;

soap_action = axutil_string_create(env,

axis2_options_set_soap_action(options, env, soap_action);


So the http header that I send out becomes:

POST /webservices/mmd.asmx HTTP/1.1

User-Agent: Axis2/C

SOAPAction: ""

Content-Length: 309

Content-Type: text/xml;charset=UTF-8



I can get the result from the server, when I print out the result of
axis2_svc_client_send_receive, it shows:

lt>Hello World  </HelloWorldResult></HelloWorldResponse>



I don't know how to make the HelloWorld name space matched.






From: Steven Zhang [] 
Sent: Thursday, May 15, 2008 11:29 AM
To: Apache AXIS C User List
Subject: Re: Soap request to Microsoft .NET web services


1. The namespace of HelloWorld must match, otherwise the service can't
locate the method.

2. The "soap" and "soapenv" is not an issue when their namespace are the

3. I wander you can get result. I always receive failure because
SoapAction is not specified in the HTTP header. I have to fix it in


You might use Ethereal to get the TCP data by IE and your client,
compare them to find what's different.




	----- Original Message ----- 

	From: Fan, Jan-fon <>  

	To: Apache AXIS C User List <>
; Apache AXIS C Developers List <>  

	Sent: Thursday, May 15, 2008 11:13 AM

	Subject: Soap request to Microsoft .NET web services



	I created a simple "hello world" web services by using Microsoft
.NET. User specifies the first name and last name, this service just
returns "Hello World first_name last_name" to the user.

	The soap request defined for this web services is:












	I use Axis2C client API trying to consume this web services, but
the service just returns me "Hello World", the name part is missing.

	I use a sniffer program to check what is the request that I send
to server and find out it is:














	I am wonder if this problem is caused by the name space
<HelloWorld>, it does not contain

	Another thing is that the starting tag, they are different: soap
vs soapenv.


	Can someone help me please.




View raw message