Hello.

 

I am new in web services, i am trying to run this example

 

http://www.osmosislatina.com/axis/webserviceswsdl.htm

 

but is not working, could some one try it and tell me if runs in your tomcat?

 

thanks


De: Bennett, Derek [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 20 de abril de 2006 17:02
Para: axis-user@ws.apache.org
Asunto: RE: problem with C# client of axis2 service

 

I think that there is actually a problem with Axis2. Using the attached WSDL file I sent the 2 messages and received 2 responses, one from each client type (see attached message transcript). As you can see, the responses have identical meta-data. Regarding what Ms. Manes said before (below), about how the reponse message *should* look, think that Axis2 is sending incorrectly formatted responses for the given WSDL.

-----Original Message-----
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 19, 2006 8:50 AM
To: axis-user@ws.apache.org
Subject: Re: problem with C# client of axis2 service

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 < [EMAIL PROTECTED]> wrote:

The WSDL is that which was produced by axis2 when I make the following request:

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

-----Original Message-----
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]]
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 < [EMAIL PROTECTED]> 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.

**********************************************************************




 

 
 
 
**********************************************************************
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.
**********************************************************************

Correo analizado I

Reply via email to