473,809 Members | 2,719 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is it possible to have a web service name in localized string?

Is it possible to have a web service name in localized string. Let's say, can
I have a web service developed in C# having class name in Japanese?
I am trying to build a web service as follows

namespace Test2
{
/// <summary>
/// Summary description for Service1.
/// </summary>
public class ã‚» : System.Web.Serv ices.WebService
{
public ã‚»()
{
//CODEGEN: This call is required by the ASP.NET Web Services Designer
InitializeCompo nent();
}

#region Component Designer generated code

//Required by the Web Services Designer
private IContainer components = null;

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeCompo nent()
{
}

/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if(disposing && components != null)
{
components.Disp ose();
}
base.Dispose(di sposing);
}

#endregion

// WEB SERVICE EXAMPLE
// The HelloWorld() example service returns the string Hello World
// To build, uncomment the following lines then save and build the project
// To test this web service, press F5

[WebMethod]
public string HelloWorld()
{
return "Hello World";
}
}
}
So, if you notice, I have a class name as "ã‚»" which is some japanese
character.
When I try to run this application, I get the parsing error in my .asmx file
for classname in webservice directive.

Pl. let me know if it is possible. and if yes, how can I dploy such a web
service?

--
Regards
-Ajit
Nov 23 '05 #1
2 1700
I don't think it is possible, nor would it be a good thing. The name of your
class will be used for the URL of your service, and URL don't like localized
characters (they are changed into %XX escaped sequences, where XX is in
hexa). I guess you will have to name your service "se" (your character is a
"se" in katakana, right ?)

Regards

François

"Ajit" wrote:
Is it possible to have a web service name in localized string. Let's say, can
I have a web service developed in C# having class name in Japanese?
I am trying to build a web service as follows

namespace Test2
{
/// <summary>
/// Summary description for Service1.
/// </summary>
public class ã‚» : System.Web.Serv ices.WebService
{
public ã‚»()
{
//CODEGEN: This call is required by the ASP.NET Web Services Designer
InitializeCompo nent();
}

#region Component Designer generated code

//Required by the Web Services Designer
private IContainer components = null;

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeCompo nent()
{
}

/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if(disposing && components != null)
{
components.Disp ose();
}
base.Dispose(di sposing);
}

#endregion

// WEB SERVICE EXAMPLE
// The HelloWorld() example service returns the string Hello World
// To build, uncomment the following lines then save and build the project
// To test this web service, press F5

[WebMethod]
public string HelloWorld()
{
return "Hello World";
}
}
}
So, if you notice, I have a class name as "ã‚»" which is some japanese
character.
When I try to run this application, I get the parsing error in my .asmx file
for classname in webservice directive.

Pl. let me know if it is possible. and if yes, how can I dploy such a web
service?

--
Regards
-Ajit

Nov 23 '05 #2
Thanks for the response and sorry for the late reply.:)
I am not sure about the character which I used, whether it is in katakana or
in something else, as I don't understand japanese. I just copied it from one
of the japanese web site and put it in my program to do certain testing.

Probably you are right as non-ascii characters get replaced by %XX escaped
sequences.

But when I developed a web service with web service name in japanese it
works fine.

I have another issue to resolve though. I have a web service with one of the
method's name is in Japanese.
Let's say "HelloWorld プ "

when I use IE directly to send the message to this web service, it shows to
me that it's SOAPAction is
SOAPAction: "http://tempuri.org/HelloWorld%E3%8 3%97"

but when I open the WSDL file for the same, I am getting SOAPAction for this
operation as "http://tempuri.org/HelloWorldプ"
So why does IE shows me SOAPAction in escaped sequence while WSDL file shows
me the japanese characters directly in SOAPAction?
--
Regards
-Ajit
"François Lemaire" wrote:
I don't think it is possible, nor would it be a good thing. The name of your
class will be used for the URL of your service, and URL don't like localized
characters (they are changed into %XX escaped sequences, where XX is in
hexa). I guess you will have to name your service "se" (your character is a
"se" in katakana, right ?)

Regards

François

"Ajit" wrote:
Is it possible to have a web service name in localized string. Let's say, can
I have a web service developed in C# having class name in Japanese?
I am trying to build a web service as follows

namespace Test2
{
/// <summary>
/// Summary description for Service1.
/// </summary>
public class ã‚» : System.Web.Serv ices.WebService
{
public ã‚»()
{
//CODEGEN: This call is required by the ASP.NET Web Services Designer
InitializeCompo nent();
}

#region Component Designer generated code

//Required by the Web Services Designer
private IContainer components = null;

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeCompo nent()
{
}

/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if(disposing && components != null)
{
components.Disp ose();
}
base.Dispose(di sposing);
}

#endregion

// WEB SERVICE EXAMPLE
// The HelloWorld() example service returns the string Hello World
// To build, uncomment the following lines then save and build the project
// To test this web service, press F5

[WebMethod]
public string HelloWorld()
{
return "Hello World";
}
}
}
So, if you notice, I have a class name as "ã‚»" which is some japanese
character.
When I try to run this application, I get the parsing error in my .asmx file
for classname in webservice directive.

Pl. let me know if it is possible. and if yes, how can I dploy such a web
service?

--
Regards
-Ajit

Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
32089
by: burdeen | last post by:
I've been trying to return an array with PHP5 soap. Is this not supported? or am i doing it wrong? Seems to return on the last element in the array. In my WSDL i've defined my return type as a complex type: <s:complexContent><s:restriction base="SOAP-ENC:Array"><s:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:string"/></s:complexContent> Actual Output :
15
3340
by: Viviana Vc | last post by:
How can I programatically do the equivalent of the following: cacls "C:\Program Files\test" /T /G Everyone:f ? Thanks, Viv
9
7033
by: Hardy Wang | last post by:
Hi all: I read an article from http://www.c-sharpcorner.com/Code/2003/Sept/InstallingWinServiceProgrammatically.asp about how to install a windows service programmatically. Based ont the code sample, it provides the feature to install service under LocalSystem account. What I need is to install service under some other certian account. By further studying the code, and MSDN...
0
2507
by: umhlali | last post by:
I get the following exception when my VB.NET app calls a Java web service that returns an array of objects. The same call works for a single object though. So looks like there is no problem serializing the object but there seems to be a problem serializing an array of objects. Any help will be appreciated "Cannot assign object of type System.Object to an object of type ElectronicWallet.C2PTest.PaymentItem." :...
1
1250
by: GeorgeB | last post by:
I use HOW TO: Send Raw Data to a Printer by Using Visual Basic .NET <URL:http://support.microsoft.com/?scid=kb;EN-US;322090> to send text to a dotmatrix printer. I cannot print localized text using this method. The printer prints correctly the localized string when i am sending it from the command prompt usind the copy con to prn. Any ideas on how to print localized text with the above method?
1
2115
by: Chukkalove | last post by:
I originally created several "copy" resource reader classes which worked great individually, but after I converted them into an parent class with children they no longer find the resources. Each project contains its own reader class and resource .resx file from where a string or image is read. Can someone tell me what I need to do to get them to work please. I attach code. Im not sure if it's because the derived classes are in...
2
1708
by: Chicken15 | last post by:
Hi Group. First of all I'm sorry for asking (maybe) such easy questions. But I'm quite stuck now and couldn't come up with a solution by using my C# book or googling. So it would be nice if someone could help me out. Now first of all I want to describe the setting in a simpler (I'm using Visual Studio 2005): Form: One comboBox (dropdown list) and 2 buttons. Classes: Class1 with a function do() which plainly returns a string.
3
6098
by: Jeremy Chapman | last post by:
I've writtin a very simple web service in axis which returns an array of classes. I consume it in a .net app. When receiving the response, my .net app generates an error "Cannot assign object of type System.Object to an object of type PersonWS.WorkGroupData.". I've included the wsdl of the consumed axis web service, the request/responses of the web service by the .net app and the exception and stack trace. Hoping someone can tell me...
6
5228
by: =?Utf-8?B?THVib21pcg==?= | last post by:
Hi, I would like to ask how can I with C# find out the service name on non-English Windows OS. Thanks, Lubomir
0
10376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10383
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10120
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9200
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7661
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5688
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.