Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 38672 invoked from network); 1 Mar 2005 11:01:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Mar 2005 11:01:13 -0000 Received: (qmail 64274 invoked by uid 500); 1 Mar 2005 11:01:10 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 64231 invoked by uid 500); 1 Mar 2005 11:01:09 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 64211 invoked by uid 99); 1 Mar 2005 11:01:09 -0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=WEIRD_PORT X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Mar 2005 03:01:07 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (8.12.11/8.12.11) with ESMTP id j21B14tM010599 for ; Tue, 1 Mar 2005 12:01:04 +0100 Message-ID: <2005150252.1109674864089.JavaMail.jira@ajax.apache.org> Date: Tue, 1 Mar 2005 12:01:04 +0100 (CET) From: "Aedemar Cooke (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Created: (AXIS-1834) ?wsdl and Enums Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ?wsdl and Enums --------------- Key: AXIS-1834 URL: http://issues.apache.org/jira/browse/AXIS-1834 Project: Axis Type: Bug Components: WSDL processing Versions: 1.2RC2 Environment: Axis service deployed to websphere server WebSphere Platform 5.0 [BASE 5.0.0 s0245.03] Host Operating System is Windows 2000, version 5.0 Java version = J2RE 1.3.1 IBM Windows 32 build cn131-20021107 (JIT enabled: jitc) Microsoft Development Environment 2003 Microsoft .NET Framework 1.1 Microsoft Visual C# .NET 69586-335-0000007-18998 Reporter: Aedemar Cooke The .NET web reference created from the WSDL (1) produced by appending ?wsdl to my Axis 1.2RC2 service name is incorrect and different to the web reference created from the WSDL (2) generated by org.apache.axis.wsdl.Java2WSDL. The only difference between the WSDL is how custom SimpleTypes (e.g., FinancialStatus in my WSDL) are represented: (1) They have a base type of soapenc:string where xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/ (2) They have a base type of xsd:string where xmlns:xsd=http://www.w3.org/2001/XMLSchema The generated .NET webreference from (1) defines the SimpleType as a string The generated .NET webreference from (2) defines the SimpleType as an Enum The steps I have followed from pre Axis1.1 to deploy my service are 1. Create interface and implementation classes 2. Use org.apache.axis.wsdl.Java2WSDL to generate the WSDL 3. Use org.apache.axis.wsdl.WSDL2Java to generate the deploy.wsdd 4. deploy using org.apache.axis.client.AdminService -http://localhost:9080/InquiryWeb/services/AdminService deploy.wsdd 5. The .NET client code is generated by adding a web reference to http://localhost:9080/InquiryWeb/services/Inquiry?wsdl I did not experience this problem with Axis 1.1. The wsdl and associated c# files are pasted in below: (1) WSDL (2) WSDL (1) c# //------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version: 1.1.4322.573 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ // // This source code was auto-generated by Microsoft.VSDesigner, Version 1.1.4322.573. // namespace Transactions.dynamic { using System.Diagnostics; using System.Xml.Serialization; using System; using System.Web.Services.Protocols; using System.ComponentModel; using System.Web.Services; /// [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Web.Services.WebServiceBindingAttribute(Name="InquirySoapBinding", Namespace="urn:Inquiry")] public class InquiryService : System.Web.Services.Protocols.SoapHttpClientProtocol { /// public InquiryService() { this.Url = "http://localhost:9080/InquiryWeb/services/ChannelIsland/Inquiry"; } /// [System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace="urn:Inquiry", ResponseNamespace="urn:Inquiry")] [return: System.Xml.Serialization.SoapElementAttribute("getCustomerReturn")] public CustomerSummaryDTO getCustomer(BankIdentifier aCustomerIdentifier) { object[] results = this.Invoke("getCustomer", new object[] { aCustomerIdentifier}); return ((CustomerSummaryDTO)(results[0])); } /// public System.IAsyncResult BegingetCustomer(BankIdentifier aCustomerIdentifier, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("getCustomer", new object[] { aCustomerIdentifier}, callback, asyncState); } /// public CustomerSummaryDTO EndgetCustomer(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((CustomerSummaryDTO)(results[0])); } } /// [System.Xml.Serialization.SoapTypeAttribute("BankIdentifier", "http://util.gpb.rbc.com")] public class BankIdentifier { /// public int bank; /// public int transit; /// public string key; /// public int number; } /// [System.Xml.Serialization.SoapTypeAttribute("CustomerSummaryDTO", "http://customer.util.gpb.rbc.com")] public class CustomerSummaryDTO { /// public string shortName; /// public string currency; /// public bool isRestrained; /// public string status; /// public bool hasWarnings; /// public BankIdentifier id; } } (2) c# //------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version: 1.1.4322.573 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ // // This source code was auto-generated by Microsoft.VSDesigner, Version 1.1.4322.573. // namespace Transactions.static { using System.Diagnostics; using System.Xml.Serialization; using System; using System.Web.Services.Protocols; using System.ComponentModel; using System.Web.Services; /// [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Web.Services.WebServiceBindingAttribute(Name="InquirySoapBinding", Namespace="urn:Inquiry")] public class InquiryService : System.Web.Services.Protocols.SoapHttpClientProtocol { /// public InquiryService() { this.Url = "http://localhost:9080/InquiryWeb/services/Inquiry"; } /// [System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace="urn:Inquiry", ResponseNamespace="urn:Inquiry")] [return: System.Xml.Serialization.SoapElementAttribute("getCustomerReturn")] public CustomerSummaryDTO getCustomer(BankIdentifier aCustomerIdentifier) { object[] results = this.Invoke("getCustomer", new object[] { aCustomerIdentifier}); return ((CustomerSummaryDTO)(results[0])); } /// public System.IAsyncResult BegingetCustomer(BankIdentifier aCustomerIdentifier, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("getCustomer", new object[] { aCustomerIdentifier}, callback, asyncState); } /// public CustomerSummaryDTO EndgetCustomer(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((CustomerSummaryDTO)(results[0])); } } /// [System.Xml.Serialization.SoapTypeAttribute("BankIdentifier", "http://util.gpb.rbc.com")] public class BankIdentifier { /// public int bank; /// public int transit; /// public string key; /// public int number; } /// [System.Xml.Serialization.SoapTypeAttribute("CustomerSummaryDTO", "http://customer.util.gpb.rbc.com")] public class CustomerSummaryDTO { /// public string shortName; /// public string currency; /// public bool isRestrained; /// public FinancialStatus status; /// public bool hasWarnings; /// public BankIdentifier id; } /// [System.Xml.Serialization.SoapTypeAttribute("FinancialStatus", "http://customer.util.gpb.rbc.com")] public enum FinancialStatus { /// Loss, /// Doubtful, /// Substandard, /// SpecialMention, /// Watchlist, /// Bankrupt, /// Chapter11, /// Restraint, /// Regular, } } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira