473,394 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

XmlInclude not generating wsdl description when using SoapRpcMethod

I need to use XmlInclude to generate a description in the wsdl for a subtype for a given web method. I alos need to include the SoapRpcMethod directive and the use=literal attribute in order to conform to WS-I 1.1 for interop. When I do not include the [SoapRpcMethod... directive the XmlInclude works fine a generates the subclass definition in the WSDL, but when I add the SoapRpcMethod it seems to simply ignore it. Here are the code snippets:

This works fine:

[WebMethod(MessageName = "GetPerson")]
[XmlInclude(typeof(Employee))]
public Person GetPerson(int ID) {
Manager manager = new Manager();
return manager.GetPerson(ID);
}

But when I add the SoapRpcMethod, it does not generate the "Employee" class and the client fails because it cannot desserialize Employee.

[WebMethod(MessageName = "GetPerson")]
[SoapRpcMethod(
Action = "http://localhost/GetPerson",
RequestNamespace = "http://localhost/Request",
RequestElementName = "GetPerson",
ResponseNamespace = "http://localhost/Response",
ResponseElementName = "GetPersonResponse",
Use = System.Web.Services.Description.SoapBindingUse.Lit eral)]

[XmlInclude(typeof(Employee))]
public Person GetPerson(int ID) {
Manager manager = new Manager();
return manager.GetPerson(ID);
}

Any ideas would be appreciated...thanks!
Sep 22 '06 #1
0 1826

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

Similar topics

0
by: olafmol | last post by:
Hello, i have a problem using a .NET WSDL Webservice from PHP. Using both the NuSOAP lib for PHP4, and the build-in SOAP lib for PHP5 it seems that the SOAP client cannot pass a variable amount...
1
by: Mullin Yu | last post by:
i just know that i can write the struct at c#, and then asp.net will automatically generate the wsdl, but there're some limitations e.g. can't write the soap header, can't show all the structures...
5
by: Mike Logan | last post by:
I used WSDL.exe to generate a client side web proxy for a web service, called the web service, got the results but an array returned by the web service is not in the results. However if I use...
0
by: goteti | last post by:
Hello, I have a method with these attributes: public GetCardsResponse GetCards(GetCardsRequest getCardsRequest) {
1
by: louis_la_brocante | last post by:
Dear all, I am having trouble generating a client proxy for a webservice whose methods return a "complex" type. The type is complex in that it is a class whose members are a mix of primitive...
1
by: deja | last post by:
hi, i have 2 web services each with some of the same types but also each with their own xmlincludes to include types specific to them. I want to share the types that are common so I used wsdl...
0
by: kamran65536 | last post by:
Hi, I've implemented a SchemaImporterExtension so I can ignore or change the behaviour of the XmlSerializer used by wsdl.exe. I successfully did that :) but the problem is the types which has...
1
by: kikisan | last post by:
I am developing a windows service which utilizes the following classes: interface IPersistable; abstract class PersistableObject : IPersistable;
0
by: =?Utf-8?B?S2FydW5ha2Fy?= | last post by:
Hi Everyone, I have reached a dead end in trying to solve the following problem. I have been given this wsdl that is already in operation in production systems throughtout the world (its part...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...
0
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...
0
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...

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.