curiouswebster
asked on
Need to manually FTP my web service
I am having trouble uploading my web service using the Publish option in Visual Studio 2005, and want to try manually FTP'ing the files instead.
What file types should be copied and what directory structure must I adhere to in order to copy the service to my web site?
thanks,
newbieweb
What file types should be copied and what directory structure must I adhere to in order to copy the service to my web site?
thanks,
newbieweb
The asmx file, web config file should be present in the root of the virtual directory and in the bin folder should be present all the DLL's needed
ASKER
So is it this easy??
Three files only?
/Service1.asmx
/Web.config
/bin/WebService1.dll
Three files only?
/Service1.asmx
/Web.config
/bin/WebService1.dll
yeah thats right... its all that you need to do as far as i remember. But make sure that the virual directory already exists...
It should work.
It should work.
ASKER
what do you mean by the vitual directory?
Is this the root directory? Or something inside the root?
Is this the root directory? Or something inside the root?
I meant the root folder of ur website.
ASKER
thanks.
ASKER
once I get the files over, what do I do next?
ASKER
when I simply call the Service1.asmx from my browser it looks similar to when on my environment without the "Invoke" button.
Just try to check if the web service is alive by putting the url into ie and seeing if the http://machinename or website/Webservice1.asmx works
it should display a basic web services page.
it should display a basic web services page.
I think you managed deploying it manually :)
You can nowe consume it using your client.
You can nowe consume it using your client.
ASKER
does web.config need to be changed to run at my ISP??
<?xml version="1.0"?>
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true" />
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows" />
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericEr rorPage.ht m">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm " />
</customErrors>
-->
</system.web>
</configuration>
<?xml version="1.0"?>
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true" />
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows" />
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericEr
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm
</customErrors>
-->
</system.web>
</configuration>
ASKER
I think it's failing somewhere inside the functions. So I need to tailor my exception handler for the website.
What is the directory name for 'root'?
Something like this?
"./Errors.txt"
What is the directory name for 'root'?
Something like this?
"./Errors.txt"
Do you have any problems accessing your web service now?
>> I think it's failing somewhere inside the functions.
Inside your web method??
Inside your web method??
ASKER
it's not working. It's like the service is there but it's not alive.
I have a Hello World function I kept in there for test purposes, but it does nothing.
take a look:
http://ppdom1000.com/Service1.asmx
I have a Hello World function I kept in there for test purposes, but it does nothing.
take a look:
http://ppdom1000.com/Service1.asmx
ASKER
I intentionally mis-spelled the return value "Hello wworld"
It works for me.... Displays "Hello Wworld"
ASKER
What am I missing?
this is all I get:
Click here for a complete list of operations.
Send
Test
The test form is only available for requests from the local machine.
SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /Service1.asmx HTTP/1.1
Host: ppdom1000.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/Send"
<?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>
<Send xmlns="http://tempuri.org/" />
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?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>
<SendResponse xmlns="http://tempuri.org/" />
</soap:Body>
</soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /Service1.asmx HTTP/1.1
Host: ppdom1000.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<Send xmlns="http://tempuri.org/" />
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<SendResponse xmlns="http://tempuri.org/" />
</soap12:Body>
</soap12:Envelope>
this is all I get:
Click here for a complete list of operations.
Send
Test
The test form is only available for requests from the local machine.
SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /Service1.asmx HTTP/1.1
Host: ppdom1000.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/Send"
<?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>
<Send xmlns="http://tempuri.org/" />
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?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>
<SendResponse xmlns="http://tempuri.org/" />
</soap:Body>
</soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /Service1.asmx HTTP/1.1
Host: ppdom1000.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<Send xmlns="http://tempuri.org/" />
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<SendResponse xmlns="http://tempuri.org/" />
</soap12:Body>
</soap12:Envelope>
But isnt what u have pasted the WSDL??? You should be able to access it by adding a web reference and then invoking the HelloWorld() method after creating the proxy
ASKER
I did just notice I still had "tempuri.org" so I replaced it with my domain.
But that didn't fix it.
Should all this SOAP and XML be displaying? Am I compiling it in debug mode?
But that didn't fix it.
Should all this SOAP and XML be displaying? Am I compiling it in debug mode?
yes if u directly loaded the page all of that should be displaying.... What are u trying to do?
ASKER
Oh, you mean this is only visible if I have another program using the web service?
Yes, that was the WSDL (I assume) that I pasted. But nowhere in there is "wwo": the search string for my incorrectly spelled Hello World.
Yes, that was the WSDL (I assume) that I pasted. But nowhere in there is "wwo": the search string for my incorrectly spelled Hello World.
That information is present there so anyone will be able to generate a proxy. The Hello WWorld wont be present in that. But will be returned if the method is called.
ASKER
I just want to see if my web service is working on my website, that's all. I'm very new to this.
I thought the Hello World function would be a good one to test first.
What method are you using to test it?
I thought the Hello World function would be a good one to test first.
What method are you using to test it?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Thank you very much!
I have it working now.
thanks,
newbieweb
I have it working now.
thanks,
newbieweb