excuse me hoang,
but my url is wrong.

my service is at this address
http://localhost:8040/webservice1/service1.asmx and
but i call
http://localhost:8040/hello3server/service1.asmx

now work fine.

sorry,
federico




                                                                                       
                           
                    Cong.Hoang.Hoang@                                                  
                           
                    namics.com               Per:    [EMAIL PROTECTED]          
                           
                                             Cc:                                       
                           
                    08/30/2001 09:45         Oggetto:     Re: Rif: Re: Rif: Re: Rif: 
Re: .NET service             
                    AM                                                                 
                           
                    Per favore,                                                        
                           
                    rispondere a                                                       
                           
                    soap-user                                                          
                           
                                                                                       
                           
                                                                                       
                           




Hi federico,

i htink you have missunderstood the code i send to you.

it was only a part of my webserverice.

Your problem is: the webservice with .NET use literal by default.
You have to set rpc if you want to use the webservice as java client.
In order to get rpc, you have to put [System.Web.Services.Pro...] over the
webmethod.

e.g.

[System.Web.Services.Protocols.SoapRpcMethodAttribute("yourURI_for_Method",
RequestNamespace="yourURI_for_Method_Request", ResponseNamespace
="yourURI_for_Method_Response")]
public string yourwebmethod(string blabla)
...

it's only an example. Change the properties to your own individual demand
(on the serverside and on the java - client)

By the way : you dont need to compile your file if you want to use an asmx
as webservice.
Generated an asmx-file an consume it by a client (like java-client send to
you).

greets
Hoang
















Reply via email to