473,406 Members | 2,867 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,406 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 3265

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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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...

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.