Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 70156 invoked from network); 18 Apr 2006 00:24:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Apr 2006 00:24:23 -0000 Received: (qmail 68594 invoked by uid 500); 18 Apr 2006 00:24:15 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 68572 invoked by uid 500); 18 Apr 2006 00:24:14 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 68561 invoked by uid 99); 18 Apr 2006 00:24:14 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Apr 2006 17:24:14 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of atmanes@gmail.com designates 66.249.92.174 as permitted sender) Received: from [66.249.92.174] (HELO uproxy.gmail.com) (66.249.92.174) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Apr 2006 17:24:12 -0700 Received: by uproxy.gmail.com with SMTP id m2so459158uge for ; Mon, 17 Apr 2006 17:23:51 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=btafyMh4jam1qwbvwpWVNEKJaVPUFB5qpE/Lpz8iH+vHKnKo3Ba6TrLTgsOlR59lY2yXg5+zxMyK9lXJfoSU1SSm0IwayJQ93oUmyrI5JdtxToy18+u6EPAFXu8I2j/QqZAqlumLq/XYK3Og/7YFPyGDobJ2CLjoeTHx0RPxXSA= Received: by 10.78.33.17 with SMTP id g17mr2663hug; Mon, 17 Apr 2006 17:23:50 -0700 (PDT) Received: by 10.78.44.12 with HTTP; Mon, 17 Apr 2006 17:23:50 -0700 (PDT) Message-ID: Date: Mon, 17 Apr 2006 20:23:50 -0400 From: "Anne Thomas Manes" To: axis-user@ws.apache.org Subject: Re: problem with C# client of axis2 service In-Reply-To: <0819B43367D93E4FB638B231A03EDA96B69B6A@STMAIL6.SEMPRATRADING.COM> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_7275_32210768.1145319830778" References: <0819B43367D93E4FB638B231A03EDA96B69B6A@STMAIL6.SEMPRATRADING.COM> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_7275_32210768.1145319830778 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline First -- the issue ap= plies only to Axis1 using rpc/encoded. Second, your response message doesn't correspond with your WSDL. Your WSDL is telling .NET to expect a response message like this: [anyType content] How is it that you produced the response message that you did? Anne On 4/17/06, Bennett, Derek wrote: > > 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 > > 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: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > "> > > > xmlns:tns=3D"http://org.apache.axis2/"> > Foobar > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > And, here is the wsdl that Axis2 produces: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > http://www.w3.org/2001/XMLSchema" xmlns:soap=3D" > http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl=3D" > http://schemas.xmlsoap.org/wsdl/" xmlns:tns=3D"http://org.apache.axis2/" > targetNamespace=3D"http://org.apache.axis2/"> xmlns:xs=3D"http://www.w3.org/2001/XMLSchema" xmlns:ns1=3D" > http://org.apache.axis2/xsd" targetNamespace=3D"http://org.apache.axis2/x= sd" > elementFormDefault=3D"unqualified" attributeFormDefault=3D"unqualified"> > > > > maxOccurs=3D"unbounded" /> > > > > > > > > > > > > > > > > > > name=3D"echoStringRequestMessage"> element=3D"ns1:echoStringRequest" /> name=3D"mainRequestMessage"> /> name=3D"part1" element=3D"ns1:echoStringResponse" > /> name=3D"main"> /> message=3D"tns:echoStringRequestMessage" /> message=3D"tns:echoStringResponseMessage" > /> type=3D"tns:XmlEchoPort"> http://schemas.xmlsoap.org/soap/http" style=3D"document" /> name=3D"main"> /> http://www.org.apache.axis2" > /> name=3D"echoString"> /> http://www.org.apache.axis2" /> use=3D"literal" namespace=3D"http://www.org.apache.axis2" > /> name=3D"XmlEcho"> binding=3D"tns:XmlEchoBinding"> http://localhost:8080/axis2/services/XmlEcho" > /> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > > ********************************************************************** > This e-mail contains privileged attorney-client communications and/or > confidential information, and is only for the use by the intended recipie= nt. > Receipt by an unintended recipient does not constitute a waiver of any > applicable privilege. > > Reading, disclosure, discussion, dissemination, distribution or copying o= f > this information by anyone other than the intended recipient or his or he= r > employees or agents is strictly prohibited. If you have received this > communication in error, please immediately notify us and delete the origi= nal > 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 regula= ted > by the California Public Utilities Commission and you do not have to buy > SET's products and services to continue to receive quality regulated serv= ice > from the utilities. > ********************************************************************** > ------=_Part_7275_32210768.1145319830778 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline First -- the <parameter name=3D"dotNetSoapEncFix" value=3D&quo= t;true"/> issue applies only to Axis1 using rpc/encoded.

Se= cond, your response message doesn't correspond with your WSDL. Your WSDL is= telling .NET to expect a response message like this:

<?xml version=3D'1.0' encoding=3D'utf-8'?>
<soapenv:Env= elope
    xmlns:soapenv=3D" http://schemas.xmlsoap.org/soap/envelope/">
   &l= t;soapenv:Header/>
   <soapenv:Body>
  =     <ns1:echoStringResponse xmlns:ns1=3D" http://org.apache.axis2/xsd">
        &= lt;return>
           [anyType content= ]
        </retur= n>
     </ns1:echoStringResponse>
 = ;  </soapenv:Body>
</soapenv:Envelope>

How is it that you produced the respon= se message that you did?

Anne

On 4/17/06, Bennett, Derek < dbennett@sempratrading.com> wrote:
I have created a service, XmlEcho, which tak= es a String and outputs the same String.
I am running the service in axis2 running within an out-of-the-box loca= l JBoss server.
A simple Java client using the axis2 client jar(s) runs = perfectly.
However, a simple C# client created by using the "WebRef= erence" facility within Visual Studio 2005 to gets a null response obj= ect. I have already tried adding
<parameter name=3D"dotNetSoapEncFix" value=3D"true&qu= ot;/>
to my system.xml based on a thread from earlier this week.
D= oes anyone have any advice regarding how to get C# and Visual Studio workin= g with Axis2?

The xml of the response looks like this:
=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D
<?xml version=3D'1.0' encoding=3D'utf-8'?>
&= lt;soapenv:Envelope xmlns:soapenv=3D" http://schemas.xmlsoap.org/soap/envelope/">
  &nbs= p; <soapenv:Header/>
    <soapenv:Body= >
        <result:return x= mlns:result=3D"http://hdayse= rvice.result.com " xmlns:tns=3D"http://or= g.apache.axis2/">
       =      <result:value>Foobar</result:value&g= t;
        </result:return>= ;
    </soapenv:Body>
</soapenv:Envelope>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
And, here is the wsdl that Axis2 produces:
=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D
<wsdl:definitions xmlns:ns1=3D" http://org.apache.axis2/xsd&quo= t; xmlns:xs=3D"http://www= .w3.org/2001/XMLSchema" xmlns:soap=3D" http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl=3D"http://schemas.xmlsoap.org/wsdl/&= quot; xmlns:tns=3D"http://org.apa= che.axis2/ " targetNamespace=3D"htt= p://org.apache.axis2/"><wsdl:types><xs:schema xmlns:xs= =3D"http://www.w3.org/200= 1/XMLSchema " xmlns:ns1=3D"http:/= /org.apache.axis2/xsd" targetNamespace=3D"http://org.apache.axis2/xsd" elementFormDefau= lt=3D"unqualified" attributeFormDefault=3D"unqualified"= >
<xs:element name=3D"mainRequest">
<xs:complexType= >
<xs:sequence>
<xs:element minOccurs=3D"0" typ= e=3D"xs:string" name=3D"args" maxOccurs=3D"unbound= ed" />
</xs:sequence>
</xs:complexType>
</xs:element><= br><xs:element name=3D"echoStringRequest">
<xs:comple= xType>
<xs:sequence>
<xs:element type=3D"xs:anyType&= quot; name=3D"in" />
</xs:sequence>
</xs:complexType>
</xs:element><= br><xs:element name=3D"echoStringResponse">
<xs:compl= exType>
<xs:sequence>
<xs:element type=3D"xs:anyType= " name=3D"return" />
</xs:sequence>
</xs:complexType>
</xs:element><= br></xs:schema></wsdl:types><wsdl:message name=3D"echoS= tringRequestMessage"><wsdl:part name=3D"part1" element= =3D"ns1:echoStringRequest" /></wsdl:message><wsdl:mes= sage name=3D"mainRequestMessage"><wsdl:part name=3D"pa= rt1" element=3D"ns1:mainRequest" /></wsdl:message>&= lt;wsdl:message name=3D"echoStringResponseMessage"><wsdl:pa= rt name=3D"part1" element=3D"ns1:echoStringResponse" /&= gt;</wsdl:message><wsdl:portType name=3D"XmlEchoPort">= ;<wsdl:operation name=3D"main"><wsdl:input message=3D&qu= ot;tns:mainRequestMessage" /></wsdl:operation><wsdl:operat= ion name=3D"echoString"><wsdl:input message=3D"tns:ech= oStringRequestMessage" /><wsdl:output message=3D"tns:echoSt= ringResponseMessage" /></wsdl:operation></wsdl:portType>= ;<wsdl:binding name=3D"XmlEchoBinding" type=3D"tns:XmlEch= oPort"><soap:binding transport=3D" http://schemas.xmlsoap.org= /soap/http" style=3D"document" /><wsdl:operation n= ame=3D"main"><soap:operation soapAction=3D"main" = style=3D"document" /><wsdl:input><soap:body use=3D&qu= ot;literal" namespace=3D" http://www.org.apache.axis2&quo= t; /></wsdl:input></wsdl:operation><wsdl:operation name= =3D"echoString"><soap:operation soapAction=3D"echoStri= ng" style=3D"document" /><wsdl:input><soap:body = use=3D"literal" namespace=3D" http://www.org.apache.axis2&quo= t; /></wsdl:input><wsdl:output><soap:body use=3D"lit= eral" namespace=3D"http:/= /www.org.apache.axis2 " /></wsdl:output></wsdl:operation></wsdl:bindin= g><wsdl:service name=3D"XmlEcho"><wsdl:port name=3D&q= uot;XmlEchoPortType0" binding=3D"tns:XmlEchoBinding"><= soap:address location=3D" http://localhost:8= 080/axis2/services/XmlEcho" /></wsdl:port></wsdl:servi= ce></wsdl:definitions>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D



***********************************************************= ***********
This e-mail contains privileged attorney-client communicatio= ns 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 cop= ying 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 dele= te the original material from your computer.

Sempra Energy Trading Corp. (SET) is not the same company as SDG&am= p;E or SoCalGas, the utilities owned by SET's parent company.  SE= T 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.
**********************************************************************<= br>

------=_Part_7275_32210768.1145319830778--