Click here to Skip to main content
15,885,546 members
Articles / Programming Languages / Java / Java SE

Using C#, Java Webservices and JMS together

,
Rate me:
Please Sign up or sign in to vote.
3.80/5 (10 votes)
31 Mar 2006CPOL2 min read 128K   2.4K   57  
Bridging the gap between Java and C#, JMS specific message have been send to C# client using web services.
//------------------------------------------------------------------------------
// <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 Microsoft.VSDesigner, Version 1.1.4322.2032.
// 
namespace Dotnetclient.localhost {
    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="ReceiverWebServiceSoapBinding", Namespace="http://localhost:8080/testwebservices/services/ReceiverWebService")]
    public class ReceiverWebServiceService : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        /// <remarks/>
        public ReceiverWebServiceService() {
            this.Url = "http://localhost:8080/testwebservices/services/ReceiverWebService";
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace="http://testwebservices", ResponseNamespace="http://localhost:8080/testwebservices/services/ReceiverWebService")]
        [return: System.Xml.Serialization.SoapElementAttribute("getJMSChatPublisherReturn")]
        public string getJMSChatPublisher() {
            object[] results = this.Invoke("getJMSChatPublisher", new object[0]);
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BegingetJMSChatPublisher(System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("getJMSChatPublisher", new object[0], callback, asyncState);
        }
        
        /// <remarks/>
        public string EndgetJMSChatPublisher(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((string)(results[0]));
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
Pakistan Pakistan
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Written By
Architect Catalisse
Pakistan Pakistan
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions