473,325 Members | 2,480 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,325 software developers and data experts.

Question on Document/Literal SOAP style.

Hi there,

In the document I fount on web sit
http://download.microsoft.com/downlo...Spec020904.doc,
it says that “To be .NET Connected compliant, a Web services application
must use the HTTP transport and the Document/Literal SOAP style. (A
document-based service uses an XML Schema to define the format for the
request and response of the service. A literal message stores each parameter
in its own element. Such well-described data offers the highest level of
interoperability.)” What does it mean? Does it mean the WSDL file? If it
does, how can I define the format for the request and response of the service
in the WSDL file during compiling the web service project (I’m using Visual
Studio .NET)? Thanks for any help.

Yolande

Nov 23 '05 #1
3 4786

"Yolande" <Yo*****@discussions.microsoft.com> wrote in message
news:E5**********************************@microsof t.com...
Hi there,

In the document I fount on web site
http://download.microsoft.com/downlo...Spec020904.doc, it says that "To be .NET Connected compliant, a Web services application
must use the HTTP transport and the Document/Literal SOAP style. (A
document-based service uses an XML Schema to define the format for the
request and response of the service. A literal message stores each parameter in its own element. Such well-described data offers the highest level of
interoperability.)" What does it mean? Does it mean the WSDL file?
[WilliamT] Yes, your WSDL File does reflect to the parties involved that
your messages much send over messages RPC-Encoding style

If it does, how can I define the format for the request and response of the service in the WSDL file during compiling the web service project (I'm using Visual Studio .NET)? Thanks for any help.

Yolande


[WilliamT] VS.NET uses Doc-Literal by default, so there is really nothing to
add or do. If you should want to use RPC, you just add the SoapRpcMethod
attribute

hth.
--
Thank you.

Regards,
William T (Softwaremaker)
http://www.softwaremaker.net/blog
=========================================
Nov 23 '05 #2
hi William,

Thank you very much for the help. As I'm new to WSDL, I wonder how to use
the modified WSDL file which includes my own schema. According to the
specification "Web Services Description Language (WSDL) 1.1", I import my
schema into the WSDL generated by "http://localhot/Service1.asmx?wsdl" . But
I don't know how to use the new WSDL (Service1.wsdl) for my Web Service. When
I go to http://localhot/Service1.asmx, the web service still uses the
Service1.asmx?wsdl but not Service1.wsdl. Any help?

Thank again.

Yolande

"Softwaremaker" wrote:

"Yolande" <Yo*****@discussions.microsoft.com> wrote in message
news:E5**********************************@microsof t.com...
Hi there,

In the document I fount on web site

http://download.microsoft.com/downlo...Spec020904.doc,
it says that "To be .NET Connected compliant, a Web services application
must use the HTTP transport and the Document/Literal SOAP style. (A
document-based service uses an XML Schema to define the format for the
request and response of the service. A literal message stores each

parameter
in its own element. Such well-described data offers the highest level of
interoperability.)" What does it mean? Does it mean the WSDL file?


[WilliamT] Yes, your WSDL File does reflect to the parties involved that
your messages much send over messages RPC-Encoding style

If it
does, how can I define the format for the request and response of the

service
in the WSDL file during compiling the web service project (I'm using

Visual
Studio .NET)? Thanks for any help.

Yolande


[WilliamT] VS.NET uses Doc-Literal by default, so there is really nothing to
add or do. If you should want to use RPC, you just add the SoapRpcMethod
attribute

hth.
--
Thank you.

Regards,
William T (Softwaremaker)
http://www.softwaremaker.net/blog
=========================================

Nov 23 '05 #3
This is just one of the few things I disagree with the RAD-approach style of
VS.NET in generating WSDL for the Web Services.

Take note of these steps:
1) Turn off HELP Documentation of asmx (so it doesnt get too smart and
generate the WSDLs)
<webServices>
<protocols>
<remove name="Documentation" />
</protocols>
</webServices>

2) Have some kind of communication channel to show your consumers the newly
generated WSDL. You can use a combination of approaches such as an off-line
out-of-band approach, so just have some default page that shows the WSDL. I
personally recommmend the use of UDDI (tModel deployment) for this BUT it
may be a bit too much for a simple deployment.

hth.

--
Thank you.

Regards,
William T (Softwaremaker)
http://www.softwaremaker.net/blog

Independent Microsoft Regional Director | Microsoft MVP - Solutions
Architect
================================================== =======

"Yolande" <Yo*****@discussions.microsoft.com> wrote in message
news:D1**********************************@microsof t.com...
hi William,

Thank you very much for the help. As I'm new to WSDL, I wonder how to use
the modified WSDL file which includes my own schema. According to the
specification "Web Services Description Language (WSDL) 1.1", I import my
schema into the WSDL generated by "http://localhot/Service1.asmx?wsdl" . But I don't know how to use the new WSDL (Service1.wsdl) for my Web Service. When I go to http://localhot/Service1.asmx, the web service still uses the
Service1.asmx?wsdl but not Service1.wsdl. Any help?

Thank again.

Yolande

"Softwaremaker" wrote:

"Yolande" <Yo*****@discussions.microsoft.com> wrote in message
news:E5**********************************@microsof t.com...
Hi there,

In the document I fount on web site

http://download.microsoft.com/downlo...Spec020904.doc,
it says that "To be .NET Connected compliant, a Web services application must use the HTTP transport and the Document/Literal SOAP style. (A
document-based service uses an XML Schema to define the format for the
request and response of the service. A literal message stores each

parameter
in its own element. Such well-described data offers the highest level of interoperability.)" What does it mean? Does it mean the WSDL file?


[WilliamT] Yes, your WSDL File does reflect to the parties involved that
your messages much send over messages RPC-Encoding style

If it
does, how can I define the format for the request and response of the

service
in the WSDL file during compiling the web service project (I'm using

Visual
Studio .NET)? Thanks for any help.

Yolande


[WilliamT] VS.NET uses Doc-Literal by default, so there is really nothing to add or do. If you should want to use RPC, you just add the SoapRpcMethod
attribute

hth.
--
Thank you.

Regards,
William T (Softwaremaker)
http://www.softwaremaker.net/blog
=========================================

Nov 23 '05 #4

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

Similar topics

4
by: jm | last post by:
I am new to WSDL and familiar with XML, but have used them very little. What I am used to is ASP and now ASP .NET using a datagrid or something like that. What I am trying to find out is when...
0
by: Zacknafein | last post by:
Hi, I am currently trying to test an home-made document style web-service with VB.NET. I can send my request without problem, but I can't extract the return document from the SOAP response...
0
by: Kaimar Seljame | last post by:
Hi, I have to create a web service client which uses SOAP encoding but does not use "multi-reference" values (see http://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383513 item 10). If I...
2
by: Phil Lee | last post by:
What's the general opinion on which of these to choose? I see that the SoapDocumentServiceAttribute defaults to literal/wrapped, but this article -...
1
by: Aditya | last post by:
A major issue I've been facing - It is often said that in document literal style - one has a lot of flexibility and one can do two things specifically - 1. Validate the SOAP body against a...
0
by: robert | last post by:
Hi all, I'm having a hard time resolving a namespace issue in my wsdl. Here's an element that explains my question, with the full wsdl below: <definitions name="MaragatoService"...
1
by: Rodrigo C. Souza | last post by:
Hello all, I´m trying to create a simple web service to be called by a J2ME application, but when I call the tool to create the stub classes it give me following error: java.lang.Exception: Soap...
7
by: Ward Germonpr | last post by:
Hi, On a html page I have a Table called "resultaattbl", generated using dom- methods and an array of jsobjects. The rows below the columnheader have a class called "normaal". This is the...
0
by: =?Utf-8?B?QXR1bA==?= | last post by:
When .Net 1.0 webservice (VS2003) generates a wsdl - <wsdl:binding name="TestSoap" type="tns:TestSoap"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/(note:...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shllpp 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.