I have created a service, XmlEcho, which takes a String and outputs the same String. I am running the service in axis2 running within an out-of-the-box local JBoss server. A simple Java client using the axis2 client jar(s) runs perfectly. However, a simple C# client created by using the "WebReference" facility within Visual Studio 2005 to gets a null response object. I have already tried adding <parameter name="dotNetSoapEncFix" value="true"/> to my system.xml based on a thread from earlier this week. Does anyone have any advice regarding how to get C# and Visual Studio working with Axis2?
The xml of the response looks like this: =============================================================== <?xml version='1.0' encoding='utf-8'?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header/> <soapenv:Body> <result:return xmlns:result="http://hdayservice.result.com" xmlns:tns="http://org.apache.axis2/"> <result:value>Foobar</result:value> </result:return> </soapenv:Body> </soapenv:Envelope> =============================================================== And, here is the wsdl that Axis2 produces: =============================================================== <wsdl:definitions xmlns:ns1="http://org.apache.axis2/xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://org.apache.axis2/" targetNamespace="http://org.apache.axis2/"><wsdl:types><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://org.apache.axis2/xsd" targetNamespace="http://org.apache.axis2/xsd" elementFormDefault="unqualified" attributeFormDefault="unqualified"> <xs:element name="mainRequest"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" type="xs:string" name="args" maxOccurs="unbounded" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="echoStringRequest"> <xs:complexType> <xs:sequence> <xs:element type="xs:anyType" name="in" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="echoStringResponse"> <xs:complexType> <xs:sequence> <xs:element type="xs:anyType" name="return" /> </xs:sequence> </xs:complexType> </xs:element> </xs:schema></wsdl:types><wsdl:message name="echoStringRequestMessage"><wsdl:part name="part1" element="ns1:echoStringRequest" /></wsdl:message><wsdl:message name="mainRequestMessage"><wsdl:part name="part1" element="ns1:mainRequest" /></wsdl:message><wsdl:message name="echoStringResponseMessage"><wsdl:part name="part1" element="ns1:echoStringResponse" /></wsdl:message><wsdl:portType name="XmlEchoPort"><wsdl:operation name="main"><wsdl:input message="tns:mainRequestMessage" /></wsdl:operation><wsdl:operation name="echoString"><wsdl:input message="tns:echoStringRequestMessage" /><wsdl:output message="tns:echoStringResponseMessage" /></wsdl:operation></wsdl:portType><wsdl:binding name="XmlEchoBinding" type="tns:XmlEchoPort"><soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="main"><soap:operation soapAction="main" style="document" /><wsdl:input><soap:body use="literal" namespace="http://www.org.apache.axis2" /></wsdl:input></wsdl:operation><wsdl:operation name="echoString"><soap:operation soapAction="echoString" style="document" /><wsdl:input><soap:body use="literal" namespace="http://www.org.apache.axis2" /></wsdl:input><wsdl:output><soap:body use="literal" namespace="http://www.org.apache.axis2" /></wsdl:output></wsdl:operation></wsdl:binding><wsdl:service name="XmlEcho"><wsdl:port name="XmlEchoPortType0" binding="tns:XmlEchoBinding"><soap:address location="http://localhost:8080/axis2/services/XmlEcho" /></wsdl:port></wsdl:service></wsdl:definitions> =============================================================== ********************************************************************** This e-mail contains privileged attorney-client communications and/or confidential information, and is only for the use by the intended recipient. Receipt by an unintended recipient does not constitute a waiver of any applicable privilege. Reading, disclosure, discussion, dissemination, distribution or copying of this information by anyone other than the intended recipient or his or her employees or agents is strictly prohibited. If you have received this communication in error, please immediately notify us and delete the original material from your computer. Sempra Energy Trading Corp. (SET) is not the same company as SDG&E or SoCalGas, the utilities owned by SET's parent company. SET is not regulated by the California Public Utilities Commission and you do not have to buy SET's products and services to continue to receive quality regulated service from the utilities. **********************************************************************