473,765 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# generated proxy method different than original Java service method

3 New Member
Hi,

I have a Java service that has the following method signature:

Expand|Select|Wrap|Line Numbers
  1.        @WebMethod(operationName = "getContactList")
  2.         public MyListClass getContactList(@WebParam(name = "myList") MyListClass myList) throws IllegalArgumentException {
  3.                 return myList;
  4.         }
  5.  
  6. public class MyListClass implements Serializable{
  7. List<ContactOD> innerList;
  8.  
  9.     public List<ContactOD> getInnerList() {
  10.         if(innerList == null){
  11.             innerList = new ArrayList<ContactOD>();
  12.         }
  13.         return innerList;
  14.     }
  15.  
  16.     public void setInnerList(List<ContactOD> innerList) {
  17.         this.innerList = innerList;
  18.     }
  19.  
  20. }
  21.  
When i generate the proxy in C# for this Java service, i get the method signature like this:

Expand|Select|Wrap|Line Numbers
  1.   public ContactOD[]  getContactList(ContactOD[] myList)
I see nowhere in my generated proxy MyListClass that wraps this List<ContactOD> .

What do i need to do to the java web service or to the C# generation of proxy so i can see in the proxy class the method like this:

Expand|Select|Wrap|Line Numbers
  1. public MyListClass getContactList(MyListClass myList)
Thank you so much, Adriana
Dec 3 '09 #1
0 1498

Sign in to post your reply or Sign up for a free account.

Similar topics

3
5766
by: MIGUEL | last post by:
Hi all, I'm quite lost with how adding web references to a project creates proxy classes. I've developed a web service with two classes inside and that contains three references to three DLLs. After building it up, I've deployed it on the web server. From my Windows application, I then add a web reference to that web service.
1
1430
by: alexttp | last post by:
Introduction: Assume having a MyApp.MyClass class bearing both data (say, DataSets) and functionality (proprietary methods). A WebService exposes this class via some GetMyClass WebMethod. A WSDL-generated proxy class (localhost.MyClass) on the client side, naturally, has only the data of the original class "mirrored" (well, that's reasonable, since the WebServices are there to provide data objects...). Now, to the question.
4
2011
by: Fabio | last post by:
An ASP.NET 2.0 web site contains a web form and a web service. The web form consumes the web service. There is a Book class in the App_Code folder. The web service exposes a method that returns a Book object. The consumer includes a method that require a Book parameter. However the Book generated proxy class conflicts with the Book class in the App_Code folder. Please, consider the following code. I bet there is an easy way to solve this,...
2
2037
by: Jon Miller | last post by:
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
3
5402
by: Arpan | last post by:
Web Services make use of proxy classes whose methods & properties are accessed in exactly the same way as how a normal class' methods & properties are accessed. So what for does ASP.NET generate proxy classes (using WSDL) which consume more hard disk space & resources? For e.g. consider the following code which exists in a user-defined class file: Imports System Imports System.Data
2
3928
by: =?Utf-8?B?c21pdGhrbDQy?= | last post by:
I'm just now beginning to experiment with WCF, and I've run into an odd hiccup right at the beginning. I presume it's just something I'm doing wrong, but I can't figure it out. I've created a simple "Hello World" service, hosted in a console app, and if I call that service via a ChannelFactory<generated proxy, life is good: using (ChannelFactory<IHelloWorldhelloFactory = new ChannelFactory<IHelloWorld>("MyClient")) {
2
2513
by: Peter | last post by:
Firstly let me be very clear about this, I do not want to create a web service proxy nor do I want to do anything with web services. Basically, I have a shrink wrapped desktop application which downloads data from a web site. Unfortunately the application has a fixed timeout and the web server regularly exceeds this, causing the application to shut the connection and subsequently not receive any data. The desktop application also uploads...
5
5471
by: =?Utf-8?B?TWFyaw==?= | last post by:
I'm researching what is the best way to create a generic WCF proxy wrapper that has the following requirements: 1. Remove the System.ServiceModel config section requirement for clients. We have our own configuration management that follows our application lifecycle (development/system test/production). Also, most of the proxies we build are for the middle-tier layer. 2. Create a wrapper to follow WCF Client best practices (proxy.close...
1
2081
by: adrya1984 | last post by:
Hi, I have a Java service that has the following method signature: @WebMethod(operationName = "getContactList") public MyListClass getContactList(@WebParam(name = "myList") MyListClass myList) throws IllegalArgumentException { return myList; } public class MyListClass implements Serializable{
0
9399
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10161
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10007
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
9955
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
8831
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...
0
6649
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();...
1
3924
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.