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

Web Services from ASP

Hi,

I have a .net web service which has a method that takes an xml string as its
argument. I want to call this webservice method from ASP (classic) using a
mehtod other than the SOAP toolkit.

Can it be done simply by using the MSXML2.ServerXMLHTTP object? If so, how
do I specify the arguments to my method.

Service is e.g. http://a.b.c/service.asmx
Method is method
parameter is p1
argument is a1

Many thanks for any help on this,

Jimbo
Jan 20 '06 #1
4 2805


Jimbo wrote:

I have a .net web service which has a method that takes an xml string as its
argument. I want to call this webservice method from ASP (classic) using a
mehtod other than the SOAP toolkit.
Use the SOAP toolkit. If you can't use the SOAP toolkit on the real
server then for a start use it on your development server and have a
look at the SOAP request it generates (SOAP is XML), then make sure you
send that XML with
Can it be done simply by using the MSXML2.ServerXMLHTTP object?


MSXML2.ServerXMLHTTP and its send method. You also need to set the SOAP
action as a HTTP request header with the setRequestHeader method before
you call send.
--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Jan 20 '06 #2
Jimbo wrote:
Hi,

I have a .net web service which has a method that takes an xml string as its
argument. I want to call this webservice method from ASP (classic) using a
mehtod other than the SOAP toolkit.

Can it be done simply by using the MSXML2.ServerXMLHTTP object? If so, how
do I specify the arguments to my method.

Service is e.g. http://a.b.c/service.asmx
Method is method
parameter is p1
argument is a1

Many thanks for any help on this,

Jimbo

You can download the free PDF version of
"XML Programming: Web Applications and Web Services
With JSP and ASP"
from http://apress.com/free/

Some other free books available there:
* Google, Amazon, and Beyond: Creating and Consuming Web Services
* Practical Common Lisp
* A Programmer’s Introduction to PHP 4.0
* Writing Perl Modules for CPAN
* Programming VB.NET: A Guide For Experienced Programmers
* COM and .NET Interoperability
* Dissecting a C# Application: Inside SharpDevelop
Jan 21 '06 #3
Martin,

That's great, thanks. I can now communicate with my service correctly.

I have one further problem. One of the parameters to my service is a string
which is actually an xml document. This is giving me a problem when I send
using MSXML2.ServerXMLHTTP because SOAP doesn't like the special characters
in the xml of the variable xmlVariable as below;

<xmlVariable>string</xmlVariable>

Is there a way of sending this variable without causing such problems.

Many thanks,

Jimbo.

"Martin Honnen" <ma*******@yahoo.de> wrote in message
news:uW****************@tk2msftngp13.phx.gbl...


Jimbo wrote:

I have a .net web service which has a method that takes an xml string as
its
argument. I want to call this webservice method from ASP (classic) using
a
mehtod other than the SOAP toolkit.


Use the SOAP toolkit. If you can't use the SOAP toolkit on the real server
then for a start use it on your development server and have a look at the
SOAP request it generates (SOAP is XML), then make sure you send that XML
with
Can it be done simply by using the MSXML2.ServerXMLHTTP object?


MSXML2.ServerXMLHTTP and its send method. You also need to set the SOAP
action as a HTTP request header with the setRequestHeader method before
you call send.
--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/

Jan 24 '06 #4
OK,

I've sorted this using a DOMDocument object.

Jimbo.

"Jimbo" <ji***@nospam.none> wrote in message
news:dr**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
Martin,

That's great, thanks. I can now communicate with my service correctly.

I have one further problem. One of the parameters to my service is a
string which is actually an xml document. This is giving me a problem when
I send using MSXML2.ServerXMLHTTP because SOAP doesn't like the special
characters in the xml of the variable xmlVariable as below;

<xmlVariable>string</xmlVariable>

Is there a way of sending this variable without causing such problems.

Many thanks,

Jimbo.

"Martin Honnen" <ma*******@yahoo.de> wrote in message
news:uW****************@tk2msftngp13.phx.gbl...


Jimbo wrote:

I have a .net web service which has a method that takes an xml string as
its
argument. I want to call this webservice method from ASP (classic) using
a
mehtod other than the SOAP toolkit.


Use the SOAP toolkit. If you can't use the SOAP toolkit on the real
server then for a start use it on your development server and have a look
at the SOAP request it generates (SOAP is XML), then make sure you send
that XML with
Can it be done simply by using the MSXML2.ServerXMLHTTP object?


MSXML2.ServerXMLHTTP and its send method. You also need to set the SOAP
action as a HTTP request header with the setRequestHeader method before
you call send.
--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/


Jan 24 '06 #5

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

Similar topics

4
by: rbt | last post by:
How does one associate a "Description" with a Windows service written in Python? I've just started experimenting with Python services. Here's my code... copied straight from Mr. Hammond's "Python...
6
by: cs | last post by:
I noticed there is some .net services on my winxp. One or two mention the CLR. Does that mean that my .net apps/services wont run before those services start? I need to run my service as early on...
0
by: Diego F. | last post by:
I've been days with that. I'm trying to work with web services sending and returning objects, and the web service must store some objects. - My first try (the most obvious in my opinion) was to use...
26
by: Mr Newbie | last post by:
What do I need to run a web service on my PC ? I know I need the .NET Framework, but do I need IIS Running ?
3
by: Matt D | last post by:
I've got two web services that use the same data types and that clients will have to consume. I read the msdn article on sharing types...
7
by: Stu | last post by:
Hi, I have a web service which returns a record set and works well integrated with an asp dot net page. However if I decided to develop a unix app will i be able to read the dataset as it is...
3
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : ...
2
by: sdstraub | last post by:
I have created 5 services in my project, in the 1st service I set servicestorun = array of all 5 services, I have a project installer with 5 service installers, one for each service. I have code...
0
by: krishnaraju | last post by:
HI to all, please help me.its urgent requirement. my question is this is the wsdl file i got from our client.please see at bottom. when iam trying to access that webmethods iam getting...
1
by: Data Entry Outsourcing | last post by:
Data Entry plays vital role in every business area. Data Entry is one such aspects of any business that needs to be handled properly for expanding your business. Data Entry is one of the leading...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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
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
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.