Thanks for this
help , it's getting compiled now
But problem remains the same , where do i specify , object and method name since error i get . Pls help C:\janesh\practice\soapebxml\csharp>proxy4 Hello World using C#! in constructor begin soapRead System.ArgumentException: engine.concat() is not a valid method name. at System.Web.Services.Protocols.SoapClientProtocol.WriteRequest(String metho dName, Object[] parameters) at System.Web.Services.Protocols.SoapClientProtocol.Invoke(String methodName, Object[] parameters) at Dude.MainApp2.soapRead(String queue) caught exceptionhttp://janesh:7001/soap/servlet/rpcrouter after method call namespace Dude
{// Allow easy reference System namespace classes using System; using System.Xml.Serialization; using System.Web.Services.Protocols; using System.Web.Services; // This "class" exists only to house entry-point class MainApp2 : SoapClientProtocol { public MainApp2()
{
Console.WriteLine("in constructor"); this.Url = "http://janesh:7001/soap/servlet/rpcrouter"; } [System.Web.Services.Protocols.SoapMethodAttribute(RequestNamespace="swifta" , ResponseElementName="soapReadResult")] public void soapRead(String queue) { String[] s= { "err","wer" }; Console.WriteLine("begin soapRead"); try { this.Url = "http://janesh:7001/soap/servlet/rpcrouter"; object[] result = this.Invoke("engine.concat()" , s ); Console.WriteLine("in soapSend" + result[0]); } catch(Exception ex) { Console.WriteLine(ex.ToString()); Console.WriteLine("caught exception" + this.Url); } } } class MainApp {
// Static method "Main" is application's entry
point
public static void Main() { // Write text to the console Console.WriteLine("Hello World using C#!"); // (new MainApp2()).soapSend(); MainApp2 app2 = new MainApp2(); app2.soapRead("testqueue@router1"); Console.WriteLine("after method call"); } } } Thanks
Janesh Kumar Vasudeva ASAP Sols Pvt Ltd B-3 Sector -4 Noida Ph. No. 91-4443211/3212/3213 ----- Original Message ----- From: "HariNam Singh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 9:42 PM Subject: RE: C# and Apache SOAP interoperability... - response vs result > This seems to be rather a group about Apache SOAP, then C# only questions. > > But, I ran into the same thing. You have to specify, the dlls that contain > the namespaces that you are using: > csc HelloProxy3.cs HelloGUI.cs /r:System.Web.Services.dll > /r:System.Xml.dll > /r:System.Xml.Serialization.dll /r:System.dll /r:System.WinForms.dll > /r:Microsof > t.Win32.Interop.dll /r:System.Drawing.dll > > Because this is cumbersome, I made makefiles for it. Here is the content of > my makefile: > C:\Documents and Settings\hsingh\mine>cat makefile > all: HelloGUI.exe > HelloGUI.exe: > csc HelloProxy3.cs HelloGUI.cs /r:System.Web.Services.dll > /r:System.Xml.dll > /r:System.Xml.Serialization.dll /r:System.dll /r:System.WinForms.dll > /r:Microsof > t.Win32.Interop.dll /r:System.Drawing.dll > > > It is invoked by running MS's nmake program in that directory. > > > -----Original Message----- > From: Janesh Vasudeva [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 05, 2001 11:47 PM > To: [EMAIL PROTECTED] > Subject: Fw: C# and Apache SOAP interoperability... - response vs result > > > I have attached file also > I amnew to c# , and just second program > > When i compile my c# program , i get folllowing > > C:\janesh\practice\soapebxml\csharp>csc Proxy4.cs > Microsoft (R) Visual C# Compiler Version 7.00.9030 [CLR version > 1.00.2204.21] > Copyright (C) Microsoft Corp 2000. All rights reserved. > > Proxy4.cs(5,15): error CS0234: The type or namespace name 'Xml' does not > exist i > n the class or namespace 'System' > Proxy4.cs(6,15): error CS0234: The type or namespace name 'Web' does not > exist i > n the class or namespace 'System' > Proxy4.cs(7,15): error CS0234: The type or namespace name 'Web' does not > exist i > n the class or namespace 'System' > Proxy4.cs(11,19): error CS0234: The type or namespace name > 'SoapClientProtocol' > does not exist in the class or namespace 'Dude' > Proxy4.cs(19,10): error CS0234: The type or namespace name 'Web' does not > exist > in the class or namespace 'System' > > Janesh Kumar Vasudeva > ASAP Sols Pvt Ltd > B-3 Sector -4 Noida > Ph. No. 91-4443211/3212/3213 > > |
- Anyone implemented c# soap client with java server Janesh Vasudeva
- Janesh Vasudeva