473,386 Members | 1,644 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,386 software developers and data experts.

Conversion from WSE2 to WSE3 makes response class disappear

I have a web service originally written to use soap.tcp transport in WSE2
that now uses http transport under WSE3. The WSE2 method looked like

[SoapDocumentMethod(ParameterStyle=SoapParameterSty le.Bare)]
[SoapMethod(someUri)]
public IndividualLookupResponse IndividualLookup( IndividualLookupRequest
request )

The WSE3 method looks like

[SoapDocumentMethod(ParameterStyle = SoapParameterStyle.Bare)]
[WebMethod(MessageName = "IndividualLookup")]
public IndividualLookupResponse IndividualLookup(IndividualLookupRequest
request)

The response class contains a single property which is in turn an array of
other objects:

[Serializable]
[XmlRoot(ElementName="IndividualLookupResponse")]
public class IndividualLookupResponse
{
....

[XmlElement(ElementName="Individual", Type=typeof(IndividualLookupData))]
public IndividualLookupData[] Individual
{
get { ...

Under WSE2 the caller would do something along the lines of

IndividualLookupResponse response = proxy.IndividualLookup(request);

This fails now. Looking at the generated proxy, the WSE2 proxy contains:

[SoapMethod(someUri)]
public IndividualLookupResponse IndividualLookup( IndividualLookupRequest
request )
{
return (IndividualLookupResponse)base.SendRequestResponse (
"IndividualLookup", request).GetBodyObject(
typeof(IndividualLookupResponse),
SoapServiceAttribute.TargetNamespace);
}

The WSE proxy method looks like:

[Microsoft.Web.Services3.Messaging.SoapMethodAttrib ute(someUri)]
[return:
System.Xml.Serialization.XmlArrayAttribute("Indivi dualLookupResponse",
Namespace=someNamespace, IsNullable=true)]
[return: System.Xml.Serialization.XmlArrayItemAttribute("In dividual",
IsNullable=false)]
public IndividualLookupData[] IndividualLookup(IndividualLookupRequest
IndividualLookupRequest)
{
Microsoft.Web.Services3.SoapEnvelope results = base.SendRequestResponse(
"IndividualLookup", IndividualLookupRequest);
return ((IndividualLookupData[])(results.GetBodyObject(
typeof(IndividualLookupData[]),
this.SoapServiceAttribute.TargetNamespace)));
}

My question is, why is there no IndividualLookupResponse defined in the
proxy? It looks like the fact that the response contains a single property
causes it to be stripped and only the contents returned. Removing the
SoapParameterStyle.Bare attribute makes no difference in the output.


Nov 9 '06 #1
0 1314

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

Similar topics

0
by: JMZ | last post by:
We have a web service that is called directly from clients via an IE hosted Windows control. We issue our own certificates and use them as part of the authentication process as well as in WSE2....
0
by: Stu | last post by:
I x-posted this in the enhancements group as well, looking for some help: Need help with a CAS issue with WSE3. Enable an asp.net2 webapp to use WSE3. Create a new webservice in the app via...
0
by: Tony Girgenti | last post by:
Hello. I'm trying to migrate a VS2003.NET(VB), ASP.NET 1.1, .NET Framework 1.1, WSE 2.0 SP3, IIS 5.1 Web Application to VS2005(VB), ASP.NET 2.0, .Net Framwwork 2.0, WSE 3.0, Web Application. ...
1
by: Ollie Riches | last post by:
Hi, I am recieving an exception when adding support for MTOM to a web config file that is using WSE3.0 to talk to a web service. when the following section is added: <messaging> <mtom...
0
by: Gauls | last post by:
Hi I am new with web service security Here is what i want to achieve I want to use UsernameToken for Securing Usename and Password and later for ever call to the webservice i want to use the...
0
by: jcvoon | last post by:
Hi all: The application is a WinForm application which will invoke the Web Services host in the same development machine, the WSE policy is setup properly and it is configure to use...
1
by: Ben | last post by:
Hi, i'm trying to implement WSE3 to secure a web service via Kerberos. i used the example at: C:\Program Files\Microsoft WSE\v3.0\Samples\CS \QuickStart\Security\WSSecurityKerberos\Code ...
0
by: =?Utf-8?B?UGV0ZXIgR2lsbGhhbQ==?= | last post by:
I have created a Web services using WSE3 which seems OK and works fine, created the client using "wsewsdl3.exe soap.tcp://ServerName/tcpRTSServerservice /out:proxy.cs /n:Namespace /type:webClient"...
7
by: chickendavis | last post by:
Hi folks, I have what seems like a fairly straight forward question which im sure has a simple answer as well..but i can't seem to find it. I'm using the Microsoft .NET WSE2 library in order to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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:
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...
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
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...

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.