axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tarun Kumar" <tar...@hotmail.com>
Subject Re: Axis2 and .NET
Date Fri, 13 Oct 2006 18:08:17 GMT
Ajith,

Here is what I have for the WSDL.

+ <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns:axis2="http://ws.apache.org/axis2" 
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" 
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" 
xmlns:ns0="http://services.com/xsd" 
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" 
xmlns:ns1="http://org.apache.axis2/xsd" 
xmlns:xs="http://www.w3.org/2001/XMLSchema" 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
targetNamespace="http://ws.apache.org/axis2">
- <wsdl:types>
- <xs:schema xmlns:ns="http://services.com/xsd" 
targetNamespace="http://services.com/xsd" elementFormDefault="unqualified" 
attributeFormDefault="unqualified">
- <xs:element name="Login">
- <xs:complexType>
- <xs:sequence>
  <xs:element type="xs:string" name="user" />
  <xs:element type="xs:string" name="password" />
  </xs:sequence>
  </xs:complexType>
  </xs:element>
- <xs:element name="LoginResponse">
- <xs:complexType>
- <xs:sequence>
  <xs:element type="xs:boolean" name="return" />
  </xs:sequence>
  </xs:complexType>
  </xs:element>
- <xs:element name="Logout">
  <xs:complexType />
  </xs:element>
- <xs:element name="LogoutResponse">
- <xs:complexType>
- <xs:sequence>
  <xs:element type="xs:boolean" name="return" />
  </xs:sequence>
  </xs:complexType>
  </xs:element>
  </xs:schema>
  </wsdl:types>
- <wsdl:message name="LoginMessage">
  <wsdl:part element="ns0:Login" name="part1" />
  </wsdl:message>
- <wsdl:message name="LoginResponse">
  <wsdl:part element="ns0:LoginResponse" name="part1" />
  </wsdl:message>
- <wsdl:message name="LogoutMessage">
  <wsdl:part element="ns0:Logout" name="part1" />
  </wsdl:message>
- <wsdl:message name="LogoutResponse">
  <wsdl:part element="ns0:LogoutResponse" name="part1" />
  </wsdl:message>
- <wsdl:portType name="MyServicePortType">
- <wsdl:operation name="Login">
  <wsdl:input message="axis2:LoginMessage" />
  <wsdl:output message="axis2:LoginResponse" />
  </wsdl:operation>
- <wsdl:operation name="Logout">
  <wsdl:input message="axis2:LogoutMessage" />
  <wsdl:output message="axis2:LogoutResponse" />
  </wsdl:operation>
  </wsdl:portType>
- <wsdl:binding type="axis2:MyServicePortType" 
name="MyServiceSOAP11Binding">
  <soap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="Login">
  <soap:operation style="document" soapAction="urn:Login" />
- <wsdl:input>
  <soap:body namespace="http://ws.apache.org/axis2" use="literal" />
  </wsdl:input>
- <wsdl:output>
  <soap:body namespace="http://ws.apache.org/axis2" use="literal" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="Logout">
  <soap:operation style="document" soapAction="urn:Logout" />
- <wsdl:input>
  <soap:body namespace="http://ws.apache.org/axis2" use="literal" />
  </wsdl:input>
- <wsdl:output>
  <soap:body namespace="http://ws.apache.org/axis2" use="literal" />
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:binding type="axis2:MyServicePortType" 
name="MyServiceSOAP12Binding">
  <soap12:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="Login">
  <soap12:operation style="document" soapAction="urn:Login" />
- <wsdl:input>
  <soap12:body namespace="http://ws.apache.org/axis2" use="literal" />
  </wsdl:input>
- <wsdl:output>
  <soap12:body namespace="http://ws.apache.org/axis2" use="literal" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="Logout">
  <soap12:operation style="document" soapAction="urn:Logout" />
- <wsdl:input>
  <soap12:body namespace="http://ws.apache.org/axis2" use="literal" />
  </wsdl:input>
- <wsdl:output>
  <soap12:body namespace="http://ws.apache.org/axis2" use="literal" />
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:binding type="axis2:MyServicePortType" name="MyServiceHttpBinding">
  <http:binding verb="POST" />
- <wsdl:operation name="Login">
  <http:operation location="Login" />
- <wsdl:input>
  <mime:content type="text/xml" />
  </wsdl:input>
- <wsdl:output>
  <mime:content type="text/xml" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="Logout">
  <http:operation location="Logout" />
- <wsdl:input>
  <mime:content type="text/xml" />
  </wsdl:input>
- <wsdl:output>
  <mime:content type="text/xml" />
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:service name="MyService">
- <wsdl:port binding="axis2:MyServiceSOAP11Binding" 
name="MyServiceSOAP11port0">
  <soap:address location="http://sphinx:8086/axis2/services/MyService" />
  </wsdl:port>
- <wsdl:port binding="axis2:MyServiceSOAP12Binding" 
name="MyServiceSOAP12port0">
  <soap12:address location="http://sphinx:8086/axis2/services/MyService" />
  </wsdl:port>
- <wsdl:port binding="axis2:MyServiceHttpBinding" name="MyServiceHttpport0">
  <http:address location="http://sphinx:8086/axis2/rest/MyService" />
  </wsdl:port>
  </wsdl:service>
  </wsdl:definitions>

Thanks,
Tarun





>From: "Ajith Ranabahu" <ajith.ranabahu@gmail.com>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: Axis2 and .NET
>Date: Fri, 13 Oct 2006 13:29:33 -0400
>
>Hi,
>My guess is it has to do with the style of the WSDL. Can you attach
>the WSDL generated by Axis2 ?
>
>Ajith
>
>On 10/13/06, Tarun Kumar <tarunk@hotmail.com> wrote:
>>I have a axis2 service with a method like this
>>
>>public boolean Login(String user, String password) {} and a corresponding
>>RPCMessageReceiver for it.
>>
>>When I import the WSDL into .NET, it translates to
>>
>>Login(Login)
>>
>>with the Login object as {String user String password}
>>
>>Any clue why the two parameters are being converted to a object or what I
>>can do to change that.
>>
>>_________________________________________________________________
>>Get today's hot entertainment gossip  
>>http://movies.msn.com/movies/hotgossip
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
>
>--
>Ajith Ranabahu
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>

_________________________________________________________________
Add fun gadgets and colorful themes to express yourself on Windows Live 
Spaces   
http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://www.get.live.com/spaces/features


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message