Groups | Blog | Home
all groups > dotnet web services > july 2006 >

dotnet web services : Proxy generated by VS 2005 from Java web service WSDL has camel case class and property names


Jon Miller
7/17/2006 5:29:56 PM
Hi,

I created a web service using Java/JAX-WS. I'm able to consume this web
service using VS 2005 and .NET without a problem. However, the class and
property names that were generated for the proxy are in camel case. i.e. the
first letter is lower case rather than upper case. Does anyone know how to
correct this (short of manually renaming them myself)?

Jon

olrt
7/18/2006 1:54:17 AM

Jon Miller a =E9crit :

[quoted text, click to view]
Do you mean that the names are differently spelled by the proxy than
those in the WebService ??
Jon Miller
7/18/2006 11:39:30 AM
No, the names are spelled correctly. The case just doesn't match the
conventions used in .NET (see
http://msdn2.microsoft.com/en-us/library/ms229043.aspx). Everything,
including names of classes are in camel case instead of Pascal case. It's
this way because this is how it is in the XML schema that JAX-WS generated.
What I'm hoping for is a flag that you use to tell it to upper case the
first letter of class, property, and method names... It's not a big deal,
but, I was wanting to create a web service in both .NET and Java and be able
to switch between the two easily for testing purposes.

Jon

[quoted text, click to view]

Jon Miller a écrit :

[quoted text, click to view]
Do you mean that the names are differently spelled by the proxy than
those in the WebService ??

AddThis Social Bookmark Button