Link to home
Start Free TrialLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

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
Avatar of surajguptha
surajguptha
Flag of United States of America image

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
Avatar of curiouswebster

ASKER

So is it this easy??

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.
what do you mean by the vitual directory?

Is this the root directory?  Or something inside the root?
I meant the root folder of ur website.
thanks.
once I get the files over, what do I do next?
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.
I think you managed deploying it manually :)
You can nowe consume it using your client.
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="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
    </system.web>
</configuration>
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"

Do you have any problems accessing your web service now?
>> I think it's failing somewhere inside the functions.

Inside your web method??
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 intentionally mis-spelled the return value "Hello wworld"
It works for me.... Displays "Hello Wworld"
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>
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
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?
yes if u directly loaded the page all of that should be displaying....  What are u trying to do?
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.
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.
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?
ASKER CERTIFIED SOLUTION
Avatar of surajguptha
surajguptha
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you very much!

I have it working now.

thanks,
newbieweb