axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stan Jordan" <>
Subject Re: Problems calling Axis service from .NET C# client
Date Fri, 29 Mar 2002 15:47:41 GMT
Send me the entire wsdl file, and I can prolly help.  Or send me the URL, if you have deployed
your service to the web.
  ----- Original Message ----- 
  From: Peter A. Kozma 
  Sent: Friday, March 29, 2002 6:49 AM
  Subject: Problems calling Axis service from .NET C# client

I have a web services method running on Axis (beta 1) that looks like: XcutPlay1Response login
(String id, String pw);
The return type is complex (see WSDL below). Calling from an Axis client works fine. When
invoked from .NET, I get an empty response object back (string = null, int = 0, bool = false)
and no errors. I look at the actual SOAP messages and everything going up and down looks good
(see response message below). My service is getting invoked. Calling Axis from .NET works
with methods that do not involve complex types.
Anyone have any ideas?
*** start response message 
  Content-Type:text/xml; charset=utf-8


  <?xml version="1.0" encoding="utf-8"?>

  <SOAP-ENV:Envelope xmlns:SOAP-ENV="" xmlns:xsd=""


      <ns1:loginResponse SOAP-ENV:encodingStyle=""

        <loginResult href="#id0" />


      <multiRef id="id0" SOAP-ENC:root="0" xsi:type="ns2:XcutResponse" xmlns:SOAP-ENC=""

        <ns2:ReturnCode xsi:type="xsd:int">0</ns2:ReturnCode>

        <ns2:ReturnStatus xsi:type="xsd:boolean">true</ns2:ReturnStatus>

        <ns2:ReturnString xsi:type="xsd:string">Logged in!</ns2:ReturnString>



*** end response message
*** start WSDL

    <schema targetNamespace="" xmlns="">

     <complexType name="XcutPlay1Response">


       <element name="ReturnCode" type="xsd:int"/>

       <element name="ReturnString" nillable="true" type="xsd:string"/>

       <element name="ReturnStatus" type="xsd:boolean"/>



     <element name="XcutPlay1Response" nillable="true" type="tns1:XcutPlay1Response"/>




     <wsdl:message name="loginResponse">


        <wsdl:part name="return" type="tns1:XcutPlay1Response"/>




        <wsdl:operation name="login" parameterOrder="in0 in1">


           <wsdl:input message="intf:loginRequest"/>


           <wsdl:output message="intf:loginResponse"/>




*** end WSDL
*** start C#
      /// <remarks/>

      [System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace="",

      [return: System.Xml.Serialization.SoapElementAttribute("return")]

      public XcutResponse login(string in0, string in1) {

          object[] results = this.Invoke("login", new object[] {



          return ((XcutResponse)(results[0]));





  /// <remarks/>

  [System.Xml.Serialization.SoapTypeAttribute("XcutResponse", "")]

  public class XcutResponse {


      /// <remarks/>

      public int ReturnCode;


      /// <remarks/>

      public string ReturnString;


      /// <remarks/>

      public bool ReturnStatus;



*** end C#


View raw message