Hi,

don't know if this helps, but the following works for me.



[server]

window xp, tomcat 4.1.30, axis 1_2RC1, I converted the 

samples/userguide/example5 to wrapped web service. I attached

the wsdl if you want it.



[client]

windows 2003, .NET 1.1, I created a client and was able to 

call my java web service. I attached my c sharp code if you need

it. 



In my case, I'm sending user defined type to my web service. I

think in your case you are retrieving a user defined type from

your java web service to your .net client. 



-dwong









 --- On Fri 10/08, Dan Ciarniello < [EMAIL PROTECTED] > wrote:

From: Dan Ciarniello [mailto: [EMAIL PROTECTED]

To: [EMAIL PROTECTED]

Date: Fri, 08 Oct 2004 15:25:37 -0700

Subject: Yet another .NET problem



I've created a web service in Axis 1.1 but, as with so many others, I'm <br>having 
problems with .NET.  .NET is able to parse the (auto-generated) <br>WSDL from Axis and 
send valid requests to the service.  The problem is <br>that while the .NET client 
gets back the data from the service, it <br>doesn't properly initialize it's objects 
with the return data.  For example:<br><br>oUser = oWse.getUser ("userid");<br>        
               string sResponse 
=<br>oWse.ResponseSoapContext.Envelope.Context.Envelope.Body.InnerText;<br><br>Gets a 
user object from the server.  The content of sResponse is the <br>user object data 
from the SOAP response (stripped of XML) but the data <br>isn't being written to the 
oUser object.<br><br>Does anyone have any idea what the problem might be? 
<br><br>Thanks,<br>Dan.<br><br>Attachment: dciarniello.vcf  (0.30KB)<br>

_______________________________________________

//------------------------------------------------------------------------------

// <autogenerated>

//     This code was generated by a tool.

//     Runtime Version: 1.1.4322.2032

//

//     Changes to this file may cause incorrect behavior and will be lost if 

//     the code is regenerated.

// </autogenerated>

//------------------------------------------------------------------------------



// 

// This source code was auto-generated by wsdl, Version=1.1.4322.2032.

// 

using System.Diagnostics;

using System.Xml.Serialization;

using System;

using System.Web.Services.Protocols;

using System.ComponentModel;

using System.Web.Services;





/// <remarks/>

[System.Diagnostics.DebuggerStepThroughAttribute()]

[System.ComponentModel.DesignerCategoryAttribute("code")]

[System.Web.Services.WebServiceBindingAttribute(Name="BeanServiceSoapBinding", 
Namespace="urn:Example5")]

public class BeanServiceService : System.Web.Services.Protocols.SoapHttpClientProtocol 
{

    

    /// <remarks/>

    public BeanServiceService() {

        this.Url = "http://localhost:8080/axis/services/BeanService";;

    }

    

    /// <remarks/>

    [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", 
RequestNamespace="urn:Example5", ResponseNamespace="urn:Example5", 
Use=System.Web.Services.Description.SoapBindingUse.Literal, 
ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]

    [return: System.Xml.Serialization.XmlElementAttribute("processOrderReturn")]

    public string processOrder(Order in0) {

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

                    in0});

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

    }

    

    /// <remarks/>

    public System.IAsyncResult BeginprocessOrder(Order in0, System.AsyncCallback 
callback, object asyncState) {

        return this.BeginInvoke("processOrder", new object[] {

                    in0}, callback, asyncState);

    }

    

    /// <remarks/>

    public string EndprocessOrder(System.IAsyncResult asyncResult) {

        object[] results = this.EndInvoke(asyncResult);

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

    }

}



/// <remarks/>

[System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:Example5")]

public class Order {

    

    /// <remarks/>

    [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]

    public string customerName;

    

    /// <remarks/>

    [System.Xml.Serialization.XmlArrayAttribute(IsNullable=true)]

    [System.Xml.Serialization.XmlArrayItemAttribute("item", IsNullable=false)]

    public string[] itemCodes;

    

    /// <remarks/>

    [System.Xml.Serialization.XmlArrayAttribute(IsNullable=true)]

    [System.Xml.Serialization.XmlArrayItemAttribute("item", IsNullable=false)]

    public int[] quantities;

    

    /// <remarks/>

    [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]

    public string shippingAddress;

}


Attachment: example5.wsdl
Description: Binary data

Reply via email to