axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anne Thomas Manes" <atma...@gmail.com>
Subject Re: problem with C# client of axis2 service
Date Wed, 19 Apr 2006 12:50:23 GMT
Perhaps someone more familiar with the raw XML receiver can explain why
Axis2 is generating a bogus WSDL file for you.

On 4/18/06, Bennett, Derek <dbennett@sempratrading.com> wrote:
>
> The WSDL is that which was produced by axis2 when I make the following
> request:
> http://localhost:8080/axis2/services/XmlEcho?wsdl
> I shall attach my sources so that you can replicate my results.
> The XmlEchoClient works just fine even with the bad WSDL.
> The .Net client (using "WebReference" objects generated by Visual Studio
> 2005) seems to be less tolerent of the WSDL vs actual message mismatch.
> Any diagnostic help you could provide would be most helpful.
> Thanks,
> Derek Bennett
> Derek@TheBennetts.org
>
> -----Original Message-----
> *From:* Anne Thomas Manes [mailto:atmanes@gmail.com]
> *Sent:* Monday, April 17, 2006 8:24 PM
> *To:* axis-user@ws.apache.org
> *Subject:* Re: problem with C# client of axis2 service
>
> First -- the <parameter name="dotNetSoapEncFix" value="true"/> issue
> applies 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:
>
> <?xml version='1.0' encoding='utf-8'?>
> <soapenv:Envelope
>     xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/">
>    <soapenv:Header/>
>    <soapenv:Body>
>       <ns1:echoStringResponse xmlns:ns1=" http://org.apache.axis2/xsd">
>         <return>
>            [anyType content]
>         </return>
>      </ns1:echoStringResponse>
>    </soapenv:Body>
> </soapenv:Envelope>
>
> How is it that you produced the response message that you did?
>
> Anne
>
> On 4/17/06, Bennett, Derek < dbennett@sempratrading.com> 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
> > <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.
> > **********************************************************************
> >
>
>
> **********************************************************************
> 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.
> **********************************************************************
>
>
>

Mime
View raw message