473,581 Members | 2,789 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3069
> 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******@newsg roup.nospam> wrote in message
news:eP******** ******@TK2MSFTN GP12.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/cpgrfwebservice sdescriptionlan guagetoolwsdlex e.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*******@yaho o.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.publi c.dotnet.distri buted_apps,micr osoft.public.do tnet.framework, m
icrosoft.public .dotnet.languag es.csharp
| NNTP-Posting-Host: 201.239.165.24. cfl.res.rr.com 24.165.239.201
| Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP12.phx. gbl
| Xref: TK2MSFTNGXA01.p hx.gbl microsoft.publi c.dotnet.framew ork:29645
microsoft.publi c.dotnet.langua ges.csharp:1106 56
microsoft.publi c.dotnet.distri buted_apps:3501
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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******@newsg roup.nospam> wrote in message
| news:eP******** ******@TK2MSFTN GP12.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******** ******@TK2MSFTN GXA01.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*******@yaho o.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.publi c.dotnet.distri buted_apps,micr osoft.public.do tnet.framework, m
icrosoft.public .dotnet.languag es.csharp
| NNTP-Posting-Host: 201.239.165.24. cfl.res.rr.com 24.165.239.201
| Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP12.phx. gbl
| Xref: TK2MSFTNGXA01.p hx.gbl microsoft.publi c.dotnet.framew ork:29645
microsoft.publi c.dotnet.langua ges.csharp:1106 56
microsoft.publi c.dotnet.distri buted_apps:3501
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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******@newsg roup.nospam> wrote in message
| news:eP******** ******@TK2MSFTN GP12.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******** ******@TK2MSFTN GXA01.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/cpgrfwebservice sdescriptionlan guagetoolwsdlex e.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*******@yaho o.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.publi c.dotnet.distri buted_apps,micr osoft.public.do tnet.framework, m
icrosoft.public .dotnet.languag es.csharp
| NNTP-Posting-Host: 201.239.165.24. cfl.res.rr.com 24.165.239.201
| Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP12.phx. gbl
| Xref: TK2MSFTNGXA01.p hx.gbl microsoft.publi c.dotnet.framew ork:29645
microsoft.publi c.dotnet.langua ges.csharp:1106 56
microsoft.publi c.dotnet.distri buted_apps:3501
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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******@newsg roup.nospam> wrote in message
| news:eP******** ******@TK2MSFTN GP12.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******@newsg roup.nospam>
| References: <eP************ **@TK2MSFTNGP12 .phx.gbl>
<Oz************ **@TK2MSFTNGP12 .phx.gbl>
<Ep************ **@TK2MSFTNGXA0 1.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.publi c.dotnet.langua ges.csharp
| NNTP-Posting-Host: hevron.biconix. com 62.90.12.234
| Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GP08.phx.gbl!tk 2msftngp13.phx. gbl
| Xref: TK2MSFTNGXA01.p hx.gbl
microsoft.publi c.dotnet.langua ges.csharp:1113 06
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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******** ******@TK2MSFTN GXA01.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/cpgrfwebservice sdescriptionlan guagetoolwsdlex e.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*******@yaho o.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.publi c.dotnet.distri buted_apps,micr osoft.public.do tnet.framework, m
| > icrosoft.public .dotnet.languag es.csharp
| > | NNTP-Posting-Host: 201.239.165.24. cfl.res.rr.com 24.165.239.201
| > | Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP12.phx. gbl
| > | Xref: TK2MSFTNGXA01.p hx.gbl microsoft.publi c.dotnet.framew ork:29645
| > microsoft.publi c.dotnet.langua ges.csharp:1106 56
| > microsoft.publi c.dotnet.distri buted_apps:3501
| > | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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******@newsg roup.nospam> wrote in message
| > | news:eP******** ******@TK2MSFTN GP12.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.Cre ate("http://yoururl");
req.Headers.Add ("SOAPAction"," \"\"");
req.ContentType = "text/xml;charset=\"u tf-8\"";
req.Accept = "text/xml";
req.Method = "POST";
writer = new StreamWriter( req.GetRequestS tream() );
writer.Write( "your SOAP document here" );
writer.Close();
WebResponse resp = req.GetResponse ();
Stream stm = resp.GetRespons eStream();
StreamReader r = new StreamReader(st m);
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************ **@TK2MSFTNGXA0 1.phx.gbl>
<e0************ *@tk2msftngp13. phx.gbl>
<AW************ *@TK2MSFTNGXA01 .phx.gbl>
| Message-ID: <op.st9aodk4f3y rl7@asbel>
| Date: Thu, 21 Jul 2005 11:15:39 +0200
| From: "Wessel Troost" <no*****@like.t he.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.publi c.dotnet.langua ges.csharp
| NNTP-Posting-Host: beetslaan.demon .nl 83.160.164.142
| Lines: 1
| Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP15.phx. gbl
| Xref: TK2MSFTNGXA01.p hx.gbl
microsoft.publi c.dotnet.langua ges.csharp:1114 33
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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.Cre ate("http://yoururl");
| req.Headers.Add ("SOAPAction"," \"\"");
| req.ContentType = "text/xml;charset=\"u tf-8\"";
| req.Accept = "text/xml";
| req.Method = "POST";
| writer = new StreamWriter( req.GetRequestS tream() );
| writer.Write( "your SOAP document here" );
| writer.Close();
| WebResponse resp = req.GetResponse ();
| Stream stm = resp.GetRespons eStream();
| StreamReader r = new StreamReader(st m);
| 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************ **@TK2MSFTNGXA0 1.phx.gbl>
<e0************ *@tk2msftngp13. phx.gbl>
<AW************ *@TK2MSFTNGXA01 .phx.gbl>
| Message-ID: <op.st9aodk4f3y rl7@asbel>
| Date: Thu, 21 Jul 2005 11:15:39 +0200
| From: "Wessel Troost" <no*****@like.t he.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.publi c.dotnet.langua ges.csharp
| NNTP-Posting-Host: beetslaan.demon .nl 83.160.164.142
| Lines: 1
| Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP15.phx. gbl
| Xref: TK2MSFTNGXA01.p hx.gbl
microsoft.publi c.dotnet.langua ges.csharp:1114 33
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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.Cre ate("http://yoururl");
| req.Headers.Add ("SOAPAction"," \"\"");
| req.ContentType = "text/xml;charset=\"u tf-8\"";
| req.Accept = "text/xml";
| req.Method = "POST";
| writer = new StreamWriter( req.GetRequestS tream() );
| writer.Write( "your SOAP document here" );
| writer.Close();
| WebResponse resp = req.GetResponse ();
| Stream stm = resp.GetRespons eStream();
| StreamReader r = new StreamReader(st m);
| 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

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

Similar topics

2
2843
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 I'm totally lost and don't have any idea how to continue, and the deadline is 1.9.2004. Please help, 'couse i'm loosing myself in this...
4
7872
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
404
by: Leonid | last post by:
Thanks a lot for your time! Here is WSDL: <?xml version="1.0" encoding="utf-8"?>
2
3269
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 our ASP.NET project might do the job but this seems to only support one way communication. I can receive the soap call and its arguments but I'm...
4
2647
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 to .NET1.1, the response from the web service appears as null in the proxy class. This only happens with .NET1.1, .NET1.0 is ok and works fine. I...
0
1972
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 error: Unable to import WebService/Schema. Unable to import binding 'MyRemoteObjectBinding' from namespace...
0
4825
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 WebService/Schema. Unable to import binding 'MyRemoteObjectBinding' from namespace...
15
4093
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 the SOAP implementation so from my end I'm just creating, passing back my XML proxy class. The client side consumer of WS has for 1) text file...
0
2100
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 a new web service project since it can convey what I would like to do in the smallest amount of code. I've figured out how to change the...
0
7882
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8157
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8312
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8181
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5366
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3809
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2309
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1410
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1145
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.