Web Service Deployment Question

K

klj_mcsd

I have a web service that I deployed on 2 different web sites. When I
go to www.mysite.com/ws/ws.asmx I get the page where you can enter
values and right below that it gives you an example of a SOAP envelope.
Well when I deploy my web service on another site (www.yoursite.com)
and go to www.yoursite.com/ws/ws.asmx, the same example of the SOAP
envelope is:


POST /ws/ws.asmx HTTP/1.1
Host: yoursite.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.mysite.com/ws/sImage/GetImage"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetImage xmlns="http://www.mysite.com/ws/sImage">
<sSpecNo>string</sSpecNo>
<ImageNo>int</ImageNo>
<ImageDrive>string</ImageDrive>
</GetImage>
</soap:Body>
</soap:Envelope>


See how it says in the namespace and SOAP action the mysite.com but the
webservice is on another site altogether why does it have mysite.com in
it? Or should I not be worrying about it? Thanks
 
M

Martin Kulov

I have a web service that I deployed on 2 different web sites. When I
go to www.mysite.com/ws/ws.asmx I get the page where you can enter
values and right below that it gives you an example of a SOAP envelope.
Well when I deploy my web service on another site (www.yoursite.com)
and go to www.yoursite.com/ws/ws.asmx, the same example of the SOAP
envelope is:

.....

See how it says in the namespace and SOAP action the mysite.com but the
webservice is on another site altogether why does it have mysite.com in
it? Or should I not be worrying about it? Thanks

Hi,
This is actually the namespace of your webservice. It does not have to be
the same as the URL of the site where the service is hosted. Search the
group for namespace related topics.

Regards,

--
Martin Kulov
http://www.codeattest.com/blogs/martin

MCAD Charter Member
MCSD.NET Early Achiever
MCSD
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top