Hi gang
I hope someone here knows the answer.
I have a simple SCVersionRequest web service. VS2010 c# using net 2. The
service returns SCVersionRequestResponse with a value but I want it to
return SCVersionResponse. Anyone know where I can change the VS default
names to have my own? Or at least the return name.
TIA
AL
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/004b01cf1b56$70e0ecc0$52a2c640$@com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
On 27 January 2014 11:53, Allen <profox@gatwicksoftware.com> wrote:
> Hi gang
> I hope someone here knows the answer.
> I have a simple SCVersionRequest web service. VS2010 c# using net 2. The
> service returns SCVersionRequestResponse with a value but I want it to
> return SCVersionResponse. Anyone know where I can change the VS default
> names to have my own? Or at least the return name.
I've been fighting with web services all last week!
Not sure if this is useful in your case but a very handy tool is Fiddler:
http://www.telerik.com/fiddler
Run this and you can see exactly what xml is being requested and returned.
Something that wasted days for me is that when generating the classes
from the wsdl/xsd files (I have 100s), they *must* be hosted on a web
server, not saved locally.
--
Paul
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/CADwx0+LewoKgoDtk_Sxb_bXFjb-MqQyDa8yX4A97EOM31EUH_A@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
I got given the wsdl for another identical service. Along with xsd files.
But it seems not relevant. It is said that a wsdl file can be used but I had
no success. You are supposed to be able to convert a wsdl to a class file.
Will see what fiddler comes up with.
Thanks
Al
-----Original Message-----
I've been fighting with web services all last week!
Not sure if this is useful in your case but a very handy tool is Fiddler:
http://www.telerik.com/fiddler
Run this and you can see exactly what xml is being requested and returned.
Something that wasted days for me is that when generating the classes from
the wsdl/xsd files (I have 100s), they *must* be hosted on a web server, not
saved locally.
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/004c01cf1b59$c0eeaba0$42cc02e0$@com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Well all that did was to confirm the service is sending with Response tagged
on the end of the request. Soapui is another prog useful for this. However
what I need to know if how to change the return name that VS puts in.
Al
-----Original Message-----
I got given the wsdl for another identical service. Along with xsd files.
But it seems not relevant. It is said that a wsdl file can be used but I had
no success. You are supposed to be able to convert a wsdl to a class file.
Will see what fiddler comes up with.
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/004d01cf1b5e$ce446ba0$6acd42e0$@com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
The response is what you have to submit back to them usually in a Get
request for more data.
On Mon, Jan 27, 2014 at 5:53 AM, Allen <profox@gatwicksoftware.com> wrote:
> Hi gang
> I hope someone here knows the answer.
> I have a simple SCVersionRequest web service. VS2010 c# using net 2. The
> service returns SCVersionRequestResponse with a value but I want it to
> return SCVersionResponse. Anyone know where I can change the VS default
> names to have my own? Or at least the return name.
> TIA
> AL
>
>
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/CAJidMY+T+2KX0kp=ppiABmkfnbdWWCx3r8HPr0aJwZVUvnof9Q@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Hi Steve
I have a webservice.
[WebMethod]
Public string SCVersionRequest(string parameter) {
Return "Version 1";
}
The caller is expecting <SCVersionResponse>Version 1</SCVersionResponse>
I am sending
<SCVersionRequestResponse>Version 1</SCVersionRequestResponse>
This seems to be done by VS as there seems to be nowhere to tell it to drop
the Request and replace it with Response.
So is there somewhere to change the response tag. I assume the WSDL is not
the place to do so.
Al
-----Original Message-----
From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Stephen
Russell
Sent: 27 January 2014 13:57
To: profoxtech@leafe.com
Subject: Re: [NF] web service response name
The response is what you have to submit back to them usually in a Get
request for more data.
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/004e01cf1b62$a212a6b0$e637f410$@com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
I have a vague recollection that you would extend the [WebMethod] attribute and possibly change the method name dropping "Request".
Allen <profox@gatwicksoftware.com> wrote:
>Hi Steve
>I have a webservice.
>
>[WebMethod]
>Public string SCVersionRequest(string parameter) {
> Return "Version 1";
>}
>
>The caller is expecting <SCVersionResponse>Version
>1</SCVersionResponse>
>
>I am sending
> <SCVersionRequestResponse>Version 1</SCVersionRequestResponse>
>This seems to be done by VS as there seems to be nowhere to tell it to
>drop
>the Request and replace it with Response.
>So is there somewhere to change the response tag. I assume the WSDL is
>not
>the place to do so.
>Al
>
>
--
Tracy
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/becbe096-ea50-4084-96c3-a814e92825f3@email.android.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.