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

SOAP project

MR
i need to develop a SOAP client, Since I have never personally done one I
would like to make sure that I am going about it correctly.
The client is a Windows (probably 2k3) application that communicates over
HTTPS SOAP. The remote server is Unix based and implements Axis, which I
know nothing about

What are the steps I need to create this client? I will be developing in C#
and I have the XML schema of the SOAP messages.
How do I get started?
thanks for your help
m
Nov 17 '05 #1
15 3046
> What are the steps I need to create this client? I will be developing in
C# and I have the XML schema of the SOAP messages.


Try to add a "web reference". If that works, the rest of the client is a
breeze.

Greetings,
Wessel
Nov 17 '05 #2
Find out if the Server produces an industry standard "WSDL" contract xml
document. If it does, your job is much easier - you can create a SOAP proxy
class from the WSDL directly. Otherwise,
you will need to create classes based on the SOAP Schema, and submit them to
the server as standard SOAP messages.
Peter

"MR" <co******@newsgroup.nospam> wrote in message
news:eP**************@TK2MSFTNGP12.phx.gbl...
i need to develop a SOAP client, Since I have never personally done one I
would like to make sure that I am going about it correctly.
The client is a Windows (probably 2k3) application that communicates over
HTTPS SOAP. The remote server is Unix based and implements Axis, which I
know nothing about

What are the steps I need to create this client? I will be developing in
C# and I have the XML schema of the SOAP messages.
How do I get started?
thanks for your help
m

Nov 17 '05 #3
Thanks for Peter's informative suggestions.

Hi RM,

As Peter has mentioned, for consuming a certain XML WebServcice in our
clientside appolication, the most important is to get a copy of the
webservice's WSDL document since the WSDL is the contract of the webservice
which define the type system and message format and service specific infos.
I think the apache axis should has its own means to expose such
description. After you get it, we can use the WSDL.exe (or the
AddWebReference feature in VS.NET) to help generate the .net classes for
consuming the webservice. Anyway, I think we can start from this.

#Web Services Description Language Tool (Wsdl.exe)
http://msdn.microsoft.com/library/de...us/cptools/htm
l/cpgrfwebservicesdescriptionlanguagetoolwsdlexe.asp

Hope also helps.

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| From: "Peter Bromberg [C# MVP]" <pb*******@yahoo.com>
| References: <eP**************@TK2MSFTNGP12.phx.gbl>
| Subject: Re: SOAP project
| Date: Sun, 17 Jul 2005 19:30:14 -0400
| Lines: 23
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.3790.1830
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
| X-RFC2646: Format=Flowed; Response
| Message-ID: <Oz**************@TK2MSFTNGP12.phx.gbl>
| Newsgroups:
microsoft.public.dotnet.distributed_apps,microsoft .public.dotnet.framework,m
icrosoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: 201.239.165.24.cfl.res.rr.com 24.165.239.201
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.framework:29645
microsoft.public.dotnet.languages.csharp:110656
microsoft.public.dotnet.distributed_apps:3501
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| Find out if the Server produces an industry standard "WSDL" contract xml
| document. If it does, your job is much easier - you can create a SOAP
proxy
| class from the WSDL directly. Otherwise,
| you will need to create classes based on the SOAP Schema, and submit them
to
| the server as standard SOAP messages.
| Peter
|
| "MR" <co******@newsgroup.nospam> wrote in message
| news:eP**************@TK2MSFTNGP12.phx.gbl...
| >i need to develop a SOAP client, Since I have never personally done one
I
| >would like to make sure that I am going about it correctly.
| > The client is a Windows (probably 2k3) application that communicates
over
| > HTTPS SOAP. The remote server is Unix based and implements Axis, which
I
| > know nothing about
| >
| > What are the steps I need to create this client? I will be developing
in
| > C# and I have the XML schema of the SOAP messages.
| > How do I get started?
| > thanks for your help
| > m
| >
|
|
|

Nov 17 '05 #4
MR
.... and what do I do if they haven't published the WSDL document? they have
no plans to publish one in the foreseeable future

"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:Ep**************@TK2MSFTNGXA01.phx.gbl...
Thanks for Peter's informative suggestions.

Hi RM,

As Peter has mentioned, for consuming a certain XML WebServcice in our
clientside appolication, the most important is to get a copy of the
webservice's WSDL document since the WSDL is the contract of the
webservice
which define the type system and message format and service specific
infos.
I think the apache axis should has its own means to expose such
description. After you get it, we can use the WSDL.exe (or the
AddWebReference feature in VS.NET) to help generate the .net classes for
consuming the webservice. Anyway, I think we can start from this.

#Web Services Description Language Tool (Wsdl.exe)
http://msdn.microsoft.com/library/de...oolwsdlexe.asp

Hope also helps.

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| From: "Peter Bromberg [C# MVP]" <pb*******@yahoo.com>
| References: <eP**************@TK2MSFTNGP12.phx.gbl>
| Subject: Re: SOAP project
| Date: Sun, 17 Jul 2005 19:30:14 -0400
| Lines: 23
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.3790.1830
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
| X-RFC2646: Format=Flowed; Response
| Message-ID: <Oz**************@TK2MSFTNGP12.phx.gbl>
| Newsgroups:
microsoft.public.dotnet.distributed_apps,microsoft .public.dotnet.framework,m
icrosoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: 201.239.165.24.cfl.res.rr.com 24.165.239.201
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.framework:29645
microsoft.public.dotnet.languages.csharp:110656
microsoft.public.dotnet.distributed_apps:3501
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| Find out if the Server produces an industry standard "WSDL" contract xml
| document. If it does, your job is much easier - you can create a SOAP
proxy
| class from the WSDL directly. Otherwise,
| you will need to create classes based on the SOAP Schema, and submit
them
to
| the server as standard SOAP messages.
| Peter
|
| "MR" <co******@newsgroup.nospam> wrote in message
| news:eP**************@TK2MSFTNGP12.phx.gbl...
| >i need to develop a SOAP client, Since I have never personally done one
I
| >would like to make sure that I am going about it correctly.
| > The client is a Windows (probably 2k3) application that communicates
over
| > HTTPS SOAP. The remote server is Unix based and implements Axis, which
I
| > know nothing about
| >
| > What are the steps I need to create this client? I will be developing
in
| > C# and I have the XML schema of the SOAP messages.
| > How do I get started?
| > thanks for your help
| > m
| >
|
|
|

Nov 17 '05 #5
MR
i was given some DTDs. how do i generate the XML files based on these docs?

"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:Ep**************@TK2MSFTNGXA01.phx.gbl...
Thanks for Peter's informative suggestions.

Hi RM,

As Peter has mentioned, for consuming a certain XML WebServcice in our
clientside appolication, the most important is to get a copy of the
webservice's WSDL document since the WSDL is the contract of the
webservice
which define the type system and message format and service specific
infos.
I think the apache axis should has its own means to expose such
description. After you get it, we can use the WSDL.exe (or the
AddWebReference feature in VS.NET) to help generate the .net classes for
consuming the webservice. Anyway, I think we can start from this.

#Web Services Description Language Tool (Wsdl.exe)
http://msdn.microsoft.com/library/de...us/cptools/htm
l/cpgrfwebservicesdescriptionlanguagetoolwsdlexe.asp

Hope also helps.

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| From: "Peter Bromberg [C# MVP]" <pb*******@yahoo.com>
| References: <eP**************@TK2MSFTNGP12.phx.gbl>
| Subject: Re: SOAP project
| Date: Sun, 17 Jul 2005 19:30:14 -0400
| Lines: 23
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.3790.1830
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
| X-RFC2646: Format=Flowed; Response
| Message-ID: <Oz**************@TK2MSFTNGP12.phx.gbl>
| Newsgroups:
microsoft.public.dotnet.distributed_apps,microsoft .public.dotnet.framework,m
icrosoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: 201.239.165.24.cfl.res.rr.com 24.165.239.201
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.framework:29645
microsoft.public.dotnet.languages.csharp:110656
microsoft.public.dotnet.distributed_apps:3501
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| Find out if the Server produces an industry standard "WSDL" contract xml
| document. If it does, your job is much easier - you can create a SOAP
proxy
| class from the WSDL directly. Otherwise,
| you will need to create classes based on the SOAP Schema, and submit
them
to
| the server as standard SOAP messages.
| Peter
|
| "MR" <co******@newsgroup.nospam> wrote in message
| news:eP**************@TK2MSFTNGP12.phx.gbl...
| >i need to develop a SOAP client, Since I have never personally done one
I
| >would like to make sure that I am going about it correctly.
| > The client is a Windows (probably 2k3) application that communicates
over
| > HTTPS SOAP. The remote server is Unix based and implements Axis, which
I
| > know nothing about
| >
| > What are the steps I need to create this client? I will be developing
in
| > C# and I have the XML schema of the SOAP messages.
| > How do I get started?
| > thanks for your help
| > m
| >
|
|
|

Nov 17 '05 #6
Hi MR,

Thanks for your followup.
I'm afraid that would be very unprofessional if they don't provide a valid
and complete WSDL for their published webservice. The WSDL is the
fundamental service contract of the webservice, just like the IDL/type
library for COM.

#Understanding WSDL
http://msdn.microsoft.com/webservice...basics/default
..aspx?pull=/library/en-us/dnwebsrv/html/understandwsdl.asp

who are the service hoster, your own internal department, your partner or
..? Anyway, I strongly recommend that you contact with them on this since
WSDL is really necessary. If there're anything else we can help , please
feel free to post here.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| From: "MR" <co******@newsgroup.nospam>
| References: <eP**************@TK2MSFTNGP12.phx.gbl>
<Oz**************@TK2MSFTNGP12.phx.gbl>
<Ep**************@TK2MSFTNGXA01.phx.gbl>
| Subject: Re: SOAP project
| Date: Wed, 20 Jul 2005 20:50:33 +0300
| Lines: 91
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| Message-ID: <e0*************@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: hevron.biconix.com 62.90.12.234
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msft ngp13.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.languages.csharp:111306
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| ... and what do I do if they haven't published the WSDL document? they
have
| no plans to publish one in the foreseeable future
|
| "Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
| news:Ep**************@TK2MSFTNGXA01.phx.gbl...
| > Thanks for Peter's informative suggestions.
| >
| > Hi RM,
| >
| > As Peter has mentioned, for consuming a certain XML WebServcice in our
| > clientside appolication, the most important is to get a copy of the
| > webservice's WSDL document since the WSDL is the contract of the
| > webservice
| > which define the type system and message format and service specific
| > infos.
| > I think the apache axis should has its own means to expose such
| > description. After you get it, we can use the WSDL.exe (or the
| > AddWebReference feature in VS.NET) to help generate the .net classes for
| > consuming the webservice. Anyway, I think we can start from this.
| >
| > #Web Services Description Language Tool (Wsdl.exe)
| >
http://msdn.microsoft.com/library/de...us/cptools/htm
l/cpgrfwebservicesdescriptionlanguagetoolwsdlexe.asp
| >
| > Hope also helps.
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| >
| >
| > --------------------
| > | From: "Peter Bromberg [C# MVP]" <pb*******@yahoo.com>
| > | References: <eP**************@TK2MSFTNGP12.phx.gbl>
| > | Subject: Re: SOAP project
| > | Date: Sun, 17 Jul 2005 19:30:14 -0400
| > | Lines: 23
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.3790.1830
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
| > | X-RFC2646: Format=Flowed; Response
| > | Message-ID: <Oz**************@TK2MSFTNGP12.phx.gbl>
| > | Newsgroups:
| >
microsoft.public.dotnet.distributed_apps,microsoft .public.dotnet.framework,m
| > icrosoft.public.dotnet.languages.csharp
| > | NNTP-Posting-Host: 201.239.165.24.cfl.res.rr.com 24.165.239.201
| > | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
| > | Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.framework:29645
| > microsoft.public.dotnet.languages.csharp:110656
| > microsoft.public.dotnet.distributed_apps:3501
| > | X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
| > |
| > | Find out if the Server produces an industry standard "WSDL" contract
xml
| > | document. If it does, your job is much easier - you can create a SOAP
| > proxy
| > | class from the WSDL directly. Otherwise,
| > | you will need to create classes based on the SOAP Schema, and submit
| > them
| > to
| > | the server as standard SOAP messages.
| > | Peter
| > |
| > | "MR" <co******@newsgroup.nospam> wrote in message
| > | news:eP**************@TK2MSFTNGP12.phx.gbl...
| > | >i need to develop a SOAP client, Since I have never personally done
one
| > I
| > | >would like to make sure that I am going about it correctly.
| > | > The client is a Windows (probably 2k3) application that communicates
| > over
| > | > HTTPS SOAP. The remote server is Unix based and implements Axis,
which
| > I
| > | > know nothing about
| > | >
| > | > What are the steps I need to create this client? I will be
developing
| > in
| > | > C# and I have the XML schema of the SOAP messages.
| > | > How do I get started?
| > | > thanks for your help
| > | > m
| > | >
| > |
| > |
| > |
| >
|
|
|

Nov 17 '05 #7
> I'm afraid that would be very unprofessional if they don't provide a
valid
and complete WSDL for their published webservice. The WSDL is the
fundamental service contract of the webservice, just like the IDL/type
library for COM.

We regularly do not get WSDL here. In some SOAP implementations, the WSDL
is not generated automatically, and it's pretty tough to ask someone to
make their own WSDL.

What I do get are examples and sometimes a DTD/XML Schema.

Then I call the SOAP service like this:

HttpWebRequest req =
(HttpWebRequest)WebRequest.Create("http://yoururl");
req.Headers.Add("SOAPAction","\"\"");
req.ContentType = "text/xml;charset=\"utf-8\"";
req.Accept = "text/xml";
req.Method = "POST";
writer = new StreamWriter( req.GetRequestStream() );
writer.Write( "your SOAP document here" );
writer.Close();
WebResponse resp = req.GetResponse();
Stream stm = resp.GetResponseStream();
StreamReader r = new StreamReader(stm);
string sSOAPAnswer = r.ReadToEnd();

The SOAP document is based on the example document. The answer is parsed
using the XML parser.

Greetings,
Wessel
Nov 17 '05 #8
Hi Wessel,

Thanks for your further response. If it's really hard to get the WSDL, the
means you currently used (through httpwebrequest and manually generate soap
message) is ok. BTW, how are you generating the SOAP message now ? Since
you've mentioend that you've got the XmlSchema of the classes and message
format of the webservice, I think you can consider using the .NET xsd.exe
tool to create the dot.net serializable classes which maps to the SOAP
messages. Thus, it'll much ease the message building work and make it less
error-prone. Here are some msdn reference on the xsd.exe tool and Xml
Serialization in .NET:

#XML Schema Definition Tool (Xsd.exe)
http://msdn.microsoft.com/library/en...chemadefinitio
ntoolxsdexe.asp?frame=true

#XML and SOAP Serialization
http://msdn.microsoft.com/library/en...alization.asp?
frame=true

Hope helps. Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| Subject: Re: SOAP project
| References: <eP**************@TK2MSFTNGP12.phx.gbl>
<Oz**************@TK2MSFTNGP12.phx.gbl>
<Ep**************@TK2MSFTNGXA01.phx.gbl>
<e0*************@tk2msftngp13.phx.gbl>
<AW*************@TK2MSFTNGXA01.phx.gbl>
| Message-ID: <op.st9aodk4f3yrl7@asbel>
| Date: Thu, 21 Jul 2005 11:15:39 +0200
| From: "Wessel Troost" <no*****@like.the.sun>
| Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15
| MIME-Version: 1.0
| Content-Transfer-Encoding: 8bit
| User-Agent: Opera M2/8.01 (Win32, build 7642)
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: beetslaan.demon.nl 83.160.164.142
| Lines: 1
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP15.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.languages.csharp:111433
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| > I'm afraid that would be very unprofessional if they don't provide a
| > valid
| > and complete WSDL for their published webservice. The WSDL is the
| > fundamental service contract of the webservice, just like the IDL/type
| > library for COM.
| >
| We regularly do not get WSDL here. In some SOAP implementations, the
WSDL
| is not generated automatically, and it's pretty tough to ask someone to
| make their own WSDL.
|
| What I do get are examples and sometimes a DTD/XML Schema.
|
| Then I call the SOAP service like this:
|
| HttpWebRequest req =
| (HttpWebRequest)WebRequest.Create("http://yoururl");
| req.Headers.Add("SOAPAction","\"\"");
| req.ContentType = "text/xml;charset=\"utf-8\"";
| req.Accept = "text/xml";
| req.Method = "POST";
| writer = new StreamWriter( req.GetRequestStream() );
| writer.Write( "your SOAP document here" );
| writer.Close();
| WebResponse resp = req.GetResponse();
| Stream stm = resp.GetResponseStream();
| StreamReader r = new StreamReader(stm);
| string sSOAPAnswer = r.ReadToEnd();
|
| The SOAP document is based on the example document. The answer is parsed

| using the XML parser.
|
| Greetings,
| Wessel
|

Nov 17 '05 #9
Hi Wessel,

Thanks for your further response. If it's really hard to get the WSDL, the
means you currently used (through httpwebrequest and manually generate soap
message) is ok. BTW, how are you generating the SOAP message now ? Since
you've mentioend that you've got the XmlSchema of the classes and message
format of the webservice, I think you can consider using the .NET xsd.exe
tool to create the dot.net serializable classes which maps to the SOAP
messages. Thus, it'll much ease the message building work and make it less
error-prone. Here are some msdn reference on the xsd.exe tool and Xml
Serialization in .NET:

#XML Schema Definition Tool (Xsd.exe)
http://msdn.microsoft.com/library/en...chemadefinitio
ntoolxsdexe.asp?frame=true

#XML and SOAP Serialization
http://msdn.microsoft.com/library/en...alization.asp?
frame=true

Hope helps. Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| Subject: Re: SOAP project
| References: <eP**************@TK2MSFTNGP12.phx.gbl>
<Oz**************@TK2MSFTNGP12.phx.gbl>
<Ep**************@TK2MSFTNGXA01.phx.gbl>
<e0*************@tk2msftngp13.phx.gbl>
<AW*************@TK2MSFTNGXA01.phx.gbl>
| Message-ID: <op.st9aodk4f3yrl7@asbel>
| Date: Thu, 21 Jul 2005 11:15:39 +0200
| From: "Wessel Troost" <no*****@like.the.sun>
| Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15
| MIME-Version: 1.0
| Content-Transfer-Encoding: 8bit
| User-Agent: Opera M2/8.01 (Win32, build 7642)
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: beetslaan.demon.nl 83.160.164.142
| Lines: 1
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP15.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.languages.csharp:111433
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| > I'm afraid that would be very unprofessional if they don't provide a
| > valid
| > and complete WSDL for their published webservice. The WSDL is the
| > fundamental service contract of the webservice, just like the IDL/type
| > library for COM.
| >
| We regularly do not get WSDL here. In some SOAP implementations, the
WSDL
| is not generated automatically, and it's pretty tough to ask someone to
| make their own WSDL.
|
| What I do get are examples and sometimes a DTD/XML Schema.
|
| Then I call the SOAP service like this:
|
| HttpWebRequest req =
| (HttpWebRequest)WebRequest.Create("http://yoururl");
| req.Headers.Add("SOAPAction","\"\"");
| req.ContentType = "text/xml;charset=\"utf-8\"";
| req.Accept = "text/xml";
| req.Method = "POST";
| writer = new StreamWriter( req.GetRequestStream() );
| writer.Write( "your SOAP document here" );
| writer.Close();
| WebResponse resp = req.GetResponse();
| Stream stm = resp.GetResponseStream();
| StreamReader r = new StreamReader(stm);
| string sSOAPAnswer = r.ReadToEnd();
|
| The SOAP document is based on the example document. The answer is parsed

| using the XML parser.
|
| Greetings,
| Wessel
|

Nov 17 '05 #10
> message) is ok. BTW, how are you generating the SOAP message now ? Since
you've mentioend that you've got the XmlSchema of the classes and message
format of the webservice, I think you can consider using the .NET xsd.exe
tool to create the dot.net serializable classes which maps to the SOAP
messages. Thus, it'll much ease the message building work and make it


When possible we use the web reference (wsdl.exe) which is the simple way.

When there's no WSDL, we're generating the message by using a template and
filling in the variables. Thanks for the pointer to xsd.exe, I'll try
that next time!

There's even a web service written in Java that does publish WSDL, but
does not interact nicely with .NET. One of the functions returns an array
that .NET cannot read. For that service we use the template-filling
method too.

Greetings,
Wessel
Nov 17 '05 #11
> message) is ok. BTW, how are you generating the SOAP message now ? Since
you've mentioend that you've got the XmlSchema of the classes and message
format of the webservice, I think you can consider using the .NET xsd.exe
tool to create the dot.net serializable classes which maps to the SOAP
messages. Thus, it'll much ease the message building work and make it


When possible we use the web reference (wsdl.exe) which is the simple way.

When there's no WSDL, we're generating the message by using a template and
filling in the variables. Thanks for the pointer to xsd.exe, I'll try
that next time!

There's even a web service written in Java that does publish WSDL, but
does not interact nicely with .NET. One of the functions returns an array
that .NET cannot read. For that service we use the template-filling
method too.

Greetings,
Wessel
Nov 17 '05 #12
Thanks for the further followup Wessel,

As for those webservice which doesn't interop well between different
client/server, it is often caused by the message contract not well defined.
Generally, we are always recommended to define the message contract first
when buidling a certain XML WebService so as to increase the
interopability. This is often known as "Contract first" development, you
can also find may resources and articles discussing on this topic over the
net.

#Contract-First Service Development
http://msdn.microsoft.com/msdnmag/is...n/default.aspx

#Contract First Web Services Interoperability between Microsoft .NET and
IBM WebSphere
http://msdn.microsoft.com/vstudio/ja...p/default.aspx

Hope also helps. Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| Date: Fri, 22 Jul 2005 09:52:31 +0200
| Subject: Re: SOAP project
| References: <eP**************@TK2MSFTNGP12.phx.gbl>
<Oz**************@TK2MSFTNGP12.phx.gbl>
<Ep**************@TK2MSFTNGXA01.phx.gbl>
<e0*************@tk2msftngp13.phx.gbl>
<AW*************@TK2MSFTNGXA01.phx.gbl> <op.st9aodk4f3yrl7@asbel>
<em*************@TK2MSFTNGXA01.phx.gbl>
| From: "Wessel Troost" <no*****@like.the.sun>
| Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15
| MIME-Version: 1.0
| Content-Transfer-Encoding: 8bit
| Message-ID: <op.sua1hto1f3yrl7@asbel>
| User-Agent: Opera M2/8.01 (Win32, build 7642)
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: beetslaan.demon.nl 83.160.164.142
| Lines: 1
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP09.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.languages.csharp:111627
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| > message) is ok. BTW, how are you generating the SOAP message now ? Since
| > you've mentioend that you've got the XmlSchema of the classes and
message
| > format of the webservice, I think you can consider using the .NET
xsd.exe
| > tool to create the dot.net serializable classes which maps to the SOAP
| > messages. Thus, it'll much ease the message building work and make it
|
| When possible we use the web reference (wsdl.exe) which is the simple way.
|
| When there's no WSDL, we're generating the message by using a template
and
| filling in the variables. Thanks for the pointer to xsd.exe, I'll try
| that next time!
|
| There's even a web service written in Java that does publish WSDL, but
| does not interact nicely with .NET. One of the functions returns an
array
| that .NET cannot read. For that service we use the template-filling
| method too.
|
| Greetings,
| Wessel
|

Nov 17 '05 #13
> As for those webservice which doesn't interop well between different
client/server, it is often caused by the message contract not well
defined.
The interop problems I've seen are between .NET and AXIS, an open source
tool:
http://ws.apache.org/axis/

It may be that AXIS is in error, but you can't expect the business
developers of the other party to fix AXIS.

There's another Web Service written in perl. They parse the incoming
"SOAP" calls by hand. Of course, there is no WSDL for that.
#Contract-First Service Development
http://msdn.microsoft.com/msdnmag/is...n/default.aspx

Thanks for the pointer, interesting read! Although I think the author's
suggestion to write XML Schema using notepad may not be feasable for
small-sized projects. Say you have a week or two for the development of a
Web Service. Handcoding XML Schema's would take a large chunk of an
already tight schedule.

Greetings,
Wessel
Nov 17 '05 #14
Yes, sometimes limited to the specific condition, I could not but use some
informal means. However, if possible , providing WSDL is always the
prefered and recommended thing. Anyway, if there are any other questions
later, please feel free to post here.

Thanks & Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| Date: Mon, 25 Jul 2005 08:06:22 +0200
| Subject: Re: SOAP project
| References: <eP**************@TK2MSFTNGP12.phx.gbl>
<Oz**************@TK2MSFTNGP12.phx.gbl>
<Ep**************@TK2MSFTNGXA01.phx.gbl>
<e0*************@tk2msftngp13.phx.gbl>
<AW*************@TK2MSFTNGXA01.phx.gbl> <op.st9aodk4f3yrl7@asbel>
<em*************@TK2MSFTNGXA01.phx.gbl> <op.sua1hto1f3yrl7@asbel>
<Rs**************@TK2MSFTNGXA01.phx.gbl>
| From: "Wessel Troost" <no*****@like.the.sun>
| Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15
| MIME-Version: 1.0
| Content-Transfer-Encoding: 8bit
| Message-ID: <op.suggkw1mf3yrl7@asbel>
| User-Agent: Opera M2/8.01 (Win32, build 7642)
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: beetslaan.demon.nl 83.160.164.142
| Lines: 1
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.languages.csharp:111960
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| > As for those webservice which doesn't interop well between different
| > client/server, it is often caused by the message contract not well
| > defined.
|
| The interop problems I've seen are between .NET and AXIS, an open source
| tool:
| http://ws.apache.org/axis/
|
| It may be that AXIS is in error, but you can't expect the business
| developers of the other party to fix AXIS.
|
| There's another Web Service written in perl. They parse the incoming
| "SOAP" calls by hand. Of course, there is no WSDL for that.
|
| > #Contract-First Service Development
| >
http://msdn.microsoft.com/msdnmag/is...n/default.aspx
| >
| Thanks for the pointer, interesting read! Although I think the author's
| suggestion to write XML Schema using notepad may not be feasable for
| small-sized projects. Say you have a week or two for the development of
a
| Web Service. Handcoding XML Schema's would take a large chunk of an
| already tight schedule.
|
| Greetings,
| Wessel
|

Nov 17 '05 #15
If tight schedules are a concern, you may want to use an
interoperability tool such as J-Integra Espresso instead of Web
Services. Many people are choosing software "bridges" because Web
Services (a) are too complicated to setup quickly and (b) are too slow
for their requirements. The nice thing is that you can still develop in
C# (or whatever .NET language you are comfortable with) - the J-Integra
Espresso tools will do all the setup and configuration for you!

Shane Sauer
J-Integra Interoperability Solutions
http://j-integra.intrinsyc.com/
When Web Services are not enough

Nov 17 '05 #16

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

Similar topics

2
by: Tomislav Lepusic | last post by:
Hello, I don't know if this is the right group (I'm more in Perl, know nothing about Python), so if you can help me thanks, if not, sorry to bother you. I'm working on my student project and...
4
by: Mark | last post by:
i have a very simple web servive Imports System.Web.Services <System.Web.Services.WebService(Namespace:="urn:Example1")> _ Public Class Example1 Inherits System.Web.Services.WebService
0
by: Leonid | last post by:
Thanks a lot for your time! Here is WSDL: <?xml version="1.0" encoding="utf-8"?>
2
by: Simon Kennedy | last post by:
Hi All, Is it possible to support SOAP methods determined at runtime? I thought that by implementing a class derived from 'SoapReceiver' and registering the class within the web.config file of...
4
by: Jit Prasad | last post by:
I have been consuming a IBM Websphere (Java) web service using .Net 1.0 front end writen in VB.NET. The proxy class submits a soap request and gets a soap response. When I migrated the front-end...
0
by: Jigar.Patel | last post by:
I have simple remoting server exposing following simple method. When I try to add webreference to this server in another project by serveraddresss?wsdl, it gives me following error: Custom tool...
0
by: Jigar.Patel | last post by:
I have simple remoting server exposing following simple method. When I try to add webreference to this server in another project, it gives me following error: Custom tool error: Unable to import...
15
by: =?Utf-8?B?ZG91Zw==?= | last post by:
I hadn't had a class yet and I had some MS help on this to set up, but I wrote a .Net WS that creates a proxy class response using SOAP. Works fine. And in kind of a good way, the IDE has hidden...
0
by: nappingcub | last post by:
This is my first time coding a web service in .NET and ran into a slight snag that I was hoping that anyone could help me out on. I'm using the generic Hello World web service that is stubbed out on...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.