• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 248
  • Last Modified:

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
0
newbieweb
Asked:
newbieweb
  • 14
  • 12
1 Solution
 
surajgupthaCommented:
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
0
 
newbiewebAuthor Commented:
So is it this easy??

Three files only?

/Service1.asmx
/Web.config
/bin/WebService1.dll
0
 
surajgupthaCommented:
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.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
newbiewebAuthor Commented:
what do you mean by the vitual directory?

Is this the root directory?  Or something inside the root?
0
 
surajgupthaCommented:
I meant the root folder of ur website.
0
 
newbiewebAuthor Commented:
thanks.
0
 
newbiewebAuthor Commented:
once I get the files over, what do I do next?
0
 
newbiewebAuthor Commented:
when I simply call the Service1.asmx from my browser it looks similar to when on my environment without the "Invoke" button.
0
 
surajgupthaCommented:
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.
0
 
surajgupthaCommented:
I think you managed deploying it manually :)
You can nowe consume it using your client.
0
 
newbiewebAuthor Commented:
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>
0
 
newbiewebAuthor Commented:
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"

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

Inside your web method??
0
 
newbiewebAuthor Commented:
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


0
 
newbiewebAuthor Commented:
I intentionally mis-spelled the return value "Hello wworld"
0
 
surajgupthaCommented:
It works for me.... Displays "Hello Wworld"
0
 
newbiewebAuthor Commented:
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>
0
 
surajgupthaCommented:
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
0
 
newbiewebAuthor Commented:
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?
0
 
surajgupthaCommented:
yes if u directly loaded the page all of that should be displaying....  What are u trying to do?
0
 
newbiewebAuthor Commented:
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.
0
 
surajgupthaCommented:
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.
0
 
newbiewebAuthor Commented:
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?
0
 
surajgupthaCommented:
Well i added a web reference with the name "Hello" to the url u provided and on a button click did  this...
            Hello.Service1 svc1 = new WindowsApplication1.Hello.Service1();
            MessageBox.Show(svc1.HelloWorld());

0
 
newbiewebAuthor Commented:
Thank you very much!

I have it working now.

thanks,
newbieweb
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 14
  • 12
Tackle projects and never again get stuck behind a technical roadblock.
Join Now