I was actually looking for answer and you've given that to me.
"Steven Cheng[MSFT]" <stcheng@online.microsoft.com> wrote in message
news:JlIX0me6HHA.5608@TK2MSFTNGHUB02.phx.gbl...
> Thanks for the reply,
>
> So based on your further description, I know that the java webservice
> actually expect a webservice SOAP message which contains an XML fragment
> (which is not escaped) as part of the SOAP body itself. I'm afraid this
> doesn't quite conform to XML webservice standard. Because for any method's
> data(parameters or return value) ,if it contains particular charaters, it
> should be escaped. For example, the SOAP body xml document is used to
> represent a request message of a method call, however, if your parameters
> data is a XML fragment and not escaped, how can we know which part of the
> xml document is the method body and which part are parameters data?
>
> Therefore, for the scenario here, I think it would be better to manually
> post the XML soap message through some network components such as
> HttpWebRequest as it can let you freely control the underlying tranfered
> message data. How do you think?
>
> Sincerely,
>
> Steven Cheng
>
> Microsoft MSDN Online Support Lead
>
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
> --------------------
>>From: "KBSTours" <kbstours@kbstours.com>
>
>>Hi Steven,
>>
>>The webservice (not the native .NET webservice) which is written in Java
> is
>>expecting the string in XML format without being escaped. Its not my
>>service, I am just trying to consume it.
>>So how can I customize it in the proxy class?
>>
>>What are the basics? Are there any samples or guides?
>>
>>--
>>
>>
>>CTO
>>
www.kbstours.com >>"Steven Cheng[MSFT]" <stcheng@online.microsoft.com> wrote in message
>>news:X%23gO%23$F6HHA.4200@TK2MSFTNGHUB02.phx.gbl...
>>> Thanks for John's input.
>>>
>>> Hello SevDer,
>>>
>>> I agree that the problem should be quite specific to the service and its
>>> requirement on the SOAP message format. Would you provide some further
>>> information on the service(such as the format and structure of the SOAP
>>> message it expects from client). Normally, for any string value inside
> XML
>>> document(include SOAP envelope), it have to escape those special
>>> characters
>>> so as to ensure the validity of the document. If the customzation
>>> requests
>>> for your scenario does be reasonable, we may look for some ways to
>>> customize the client proxy class.
>>>
>>> Please feel free to post here if there is anything we've missed.
>>>
>>> Sincerely,
>>>
>>> Steven Cheng
>>>
>>> Microsoft MSDN Online Support Lead
>>>
>>>
>>>
>>> ==================================================
>>>
>>> Get notification to my posts through email? Please refer to
>>>
>
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif >>> ications.
>>>
>>>
>>>
>>> Note: The MSDN Managed Newsgroup support offering is for non-urgent
> issues
>>> where an initial response from the community or a Microsoft Support
>>> Engineer within 1 business day is acceptable. Please note that each
> follow
>>> up response may take approximately 2 business days as the support
>>> professional working with you may need further investigation to reach
>>> the
>>> most efficient resolution. The offering is not appropriate for
>>> situations
>>> that require urgent, real-time or phone-based interactions or complex
>>> project analysis and dump analysis issues. Issues of this nature are
>>> best
>>> handled working with a dedicated Microsoft Support Engineer by
>>> contacting
>>> Microsoft Customer Support Services (CSS) at
>>>
http://msdn.microsoft.com/subscriptions/support/default.aspx. >>>
>>> ==================================================
>>>
>>>
>>> This posting is provided "AS IS" with no warranties, and confers no
>>> rights.
>>>
>>>
>>>
>>> --------------------
>>>>From: "John Saunders [MVP]" <john.saunders at trizetto.com>
>>>>References: <7B84F435-B90B-40F7-8DF8-77C419164289@microsoft.com>
>>> <OiPtxRA6HHA.4584@TK2MSFTNGP03.phx.gbl>
>>> <7267F6E2-FD37-4E29-84F2-55937C3B6D13@microsoft.com>
>>>>Subject: Re: Preventing Escapes in Post
>>>>Date: Sun, 26 Aug 2007 21:14:58 -0400
>>>>Lines: 58
>>>>Organization: The TriZetto Group, Inc.
>>>>MIME-Version: 1.0
>>>>Content-Type: text/plain;
>>>> format=flowed;
>>>> charset="iso-8859-1";
>>>> reply-type=response
>>>>Content-Transfer-Encoding: 7bit
>>>>X-Priority: 3
>>>>X-MSMail-Priority: Normal
>>>>X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
>>>>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
>>>>Message-ID: <O0UuveE6HHA.1148@TK2MSFTNGP05.phx.gbl>
>>>>Newsgroups: microsoft.public.dotnet.framework.aspnet.webservices
>>>>NNTP-Posting-Host: pool-71-184-5-216.bstnma.east.verizon.net
>>>>71.184.5.216
>>>>Path: TK2MSFTNGHUB02.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSFTNGP05.phx.gbl
>>>>Xref: TK2MSFTNGHUB02.phx.gbl
>>> microsoft.public.dotnet.framework.aspnet.webservices:1413
>>>>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
>>>>
>>>>"SevDer" <sevder@newsgroup.nospam> wrote in message
>>>>news:7267F6E2-FD37-4E29-84F2-55937C3B6D13@microsoft.com...
>>>>> Hello John,
>>>>>
>>>>> Thanks for the reply.
>>>>>
>>>>> I think you should check this again. I've learned that .NET actually
>>>>> escapes the inner XML to prevent bad XML forming on some cases. And as
>>> far
>>>>> as I learned this is the behavior of .NET not the way that I use.
>>>>> Additionally the otherway around problem is there too. For your
>>> webservice
>>>>> to work with other applications, you will need to escape all received
>>>>> inner XMLs as they (like Java) send it as nonescaped form.
>>>>>
>>>>> Also I added as web reference and I am trying to make the webreference
>>> to
>>>>> work not any other way. If I cannot make this working, then I will
>>>>> have
>>> to
>>>>> POST using regular HTTP Post and not use wsdl reference.
>>>>>
>>>>> And their WSDL defined method calls does not accept structured objects
>>> but
>>>>> simple and generic object which actually is simple XML.
>>>>>
>>>>> The bottom line is, I am just trying to learn if there is a way for
> NET
>>>>> to not to escape my request XML while sending over!
>>>>
>>>>I promise you that, as a general rule, .NET doesn't prevent people from
>>>>using XML by escaping it. You are clearly using it in a way that other
>>>>developers do not use it - they are succeeding and you are failing.
>>>>
>>>>Please post some code showing us how you are using XML. Among other
>>> things,