C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 15th, 2003, 11:48 AM
vmahesh vmahesh is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 1 vmahesh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
How to control the SOAP message in the C# server code ?

I have a question regarding Soap Response.

My C# Web Services Server code looks like this

[WebMethod]
public XmlDocument NodePing(string strXml)
{
code parses the string and responds to Client.
}

In the SOAP Response, I am seeing the following SOAP message.

<?xml version="1.0" encoding="utf-8"?><soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><NodePingResponse
xmlns="http://localhost/NetworkNode"><NodePingResult><tns:PingResponse
xmlns:tns="http://www.neien.rg/schema/v1.0/cdx.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
soapenv:encodingStyle="http://schema.xmlsoap.org/soap/encoding/"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<return type="xsd:string" xmlns="">Ready</return>
</tns:PingResponse></NodePingResult>
</NodePingResponse></soap:Body></soap:Envelope>

My requirement is, I should somehow not to send <NodePingResponse> and <NodePingResult>
tags in the SOAP Body. I should control this on
the Server code itself.

Can anyone answer this please ?

Thanks,
Mahesh

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > How to control the SOAP message in the C# server code ?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway