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

Getting raw XML from web service

Hello,

I have some web services which return quite large XML documents. I want to
invoke the services and retrieve the raw XML in order to persist it through
an XML database. I don't want to create a bunch of meaningless proxy classes.

It seems like this should be quite simple; I would appreciate some pointers!

Thanks,

Simon
Nov 23 '05 #1
4 3266

SoapExtension, will give you the flexibilty to get to the raw soap
messages,
http://msdn.microsoft.com/library/de...classtopic.asp

regards
erymuzuan mustapa

Simon wrote:
Hello,

I have some web services which return quite large XML documents. I want to
invoke the services and retrieve the raw XML in order to persist it through
an XML database. I don't want to create a bunch of meaningless proxy classes.

It seems like this should be quite simple; I would appreciate some pointers!

Thanks,

Simon

Nov 23 '05 #2

SoapExtension, will give you the flexibilty to get to the raw soap
messages,
http://msdn.microsoft.com/library/de...classtopic.asp

regards
erymuzuan mustapa

Simon wrote:
Hello,

I have some web services which return quite large XML documents. I want to
invoke the services and retrieve the raw XML in order to persist it through
an XML database. I don't want to create a bunch of meaningless proxy classes.

It seems like this should be quite simple; I would appreciate some pointers!

Thanks,

Simon

Nov 23 '05 #3
DC
Hey Simon,
another way is to just morph the WSDL so that rather than retrieving a
strongly typed complexType, you are receiving just XmlElement.

This is sort of related:
http://msdn.microsoft.com/library/en...ce04162003.asp

But in your case, you are building clients. So what you want to do is
change the existing WSDL so that the response element is an xsd:any.
Replace this:
<s:element name="MethodResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="whatever"
type="ns1:CustomComplexType" />
</s:sequence>
</s:complexType>
</s:element>

....with something like this:

<s:element name="MethodResponse">
<s:complexType>
<s:sequence>
<s:any minOccurs="0" maxOccurs="1" />
</s:sequence>
</s:complexType>
</s:element>

Then, generate the client-side proxies from this generic-ized WSDL. Your
client-side proxy will get a System.Xml.XmlElement for each webmethod
invocation. This element contains the raw XML response.
-Dino
dinoch // microsoft.com
"erymuzuan" <er*******@yahoo.com> wrote in message
news:42**************@yahoo.com...

SoapExtension, will give you the flexibilty to get to the raw soap
messages,
http://msdn.microsoft.com/library/de...classtopic.asp

regards
erymuzuan mustapa

Simon wrote:
Hello,

I have some web services which return quite large XML documents. I want
to invoke the services and retrieve the raw XML in order to persist it
through an XML database. I don't want to create a bunch of meaningless
proxy classes.

It seems like this should be quite simple; I would appreciate some
pointers!

Thanks,

Simon

Nov 23 '05 #4
DC
Hey Simon,
another way is to just morph the WSDL so that rather than retrieving a
strongly typed complexType, you are receiving just XmlElement.

This is sort of related:
http://msdn.microsoft.com/library/en...ce04162003.asp

But in your case, you are building clients. So what you want to do is
change the existing WSDL so that the response element is an xsd:any.
Replace this:
<s:element name="MethodResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="whatever"
type="ns1:CustomComplexType" />
</s:sequence>
</s:complexType>
</s:element>

....with something like this:

<s:element name="MethodResponse">
<s:complexType>
<s:sequence>
<s:any minOccurs="0" maxOccurs="1" />
</s:sequence>
</s:complexType>
</s:element>

Then, generate the client-side proxies from this generic-ized WSDL. Your
client-side proxy will get a System.Xml.XmlElement for each webmethod
invocation. This element contains the raw XML response.
-Dino
dinoch // microsoft.com
"erymuzuan" <er*******@yahoo.com> wrote in message
news:42**************@yahoo.com...

SoapExtension, will give you the flexibilty to get to the raw soap
messages,
http://msdn.microsoft.com/library/de...classtopic.asp

regards
erymuzuan mustapa

Simon wrote:
Hello,

I have some web services which return quite large XML documents. I want
to invoke the services and retrieve the raw XML in order to persist it
through an XML database. I don't want to create a bunch of meaningless
proxy classes.

It seems like this should be quite simple; I would appreciate some
pointers!

Thanks,

Simon

Nov 23 '05 #5

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

Similar topics

4
by: trialproduct2004 | last post by:
Hi all I have removed windows service from add/remove program, still that service is getting displayed in SCM. Problem is at a time of stopping that service error occured and so status of...
8
by: Jerry Camel | last post by:
I want my service to terminate automatically if the specified parameters are invalid. I tried to use a servicecontroller component to attach to the service, but I think that it's failing because...
3
by: Casper Hornstrup | last post by:
I decided to try out VS.NET 2005 Beta 1 refresh and ASP.NET 2.0. I built a simple page and published it to a virtual directory in C:\Inetpub\wwwroot\WebSite1. VS.NET 2005 precompiled it. I get a...
1
by: Vaibhav Modak | last post by:
Hi All, I have a Web Service written in Java (Web Logic) and I am trying to call it in my ASP. NET client. I am facing a problem while getting the data from the Web Service Method. My Web...
4
by: Jeremy S. | last post by:
About 6 months ago MS announced that a service pack for .NET Framework 2.0 and VS.NET (2003 and 2005) would be available around mid-year. Any update on that ETA? (we're approaching mid-year now) ...
15
by: Joseph Geretz | last post by:
OK, I'll admit it up front - I just don't get it. Here's our previous VS2003 development model. Developers develop the WS solution on their own workstations, using their own IIS web servers...
3
by: Steve | last post by:
Hi; We just migrated to SqlServer 2005. When I import tables from from SqlServer database into another the identity fields get switched off from being identities. How can I prevent that...
13
by: dancer | last post by:
I have made a new post because when I try to respond to another, I get the error, "Article Rejected -- Ill-formed message id" This is in response to the advice of Juan Libre to install Net...
41
by: pbd22 | last post by:
Hi. I know my windows service works when i run it in debug mode on my dev machine. It also works in release mode on my dev machine. But, when I move the service to a production server, it...
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.