thanks,
but i have some thinks that don't work fine.

in java i do a think like this with a com service

url = new URL ("http://localhost:8040/Hello2/Hello2.asp";);
:
call.setMethodName("HelloWorld");
:
params.addElement(new Parameter("sName", String.class, "Federico", null));
:
resp = call.invoke (url, "http://tempuri.org/action/Hello2.HelloWorld";);
:
and i have the result. the Hello2.asp is a page that i have build with soap
toolkit, and this page uses two file: hello2.wsdl and hello2.wsml.
:
WSDLFilePath = Server.MapPath("Hello2.wsdl")
WSMLFilePath = Server.MapPath("Hello2.wsml")
:
SoapServer.Init WSDLFilePath, WSMLFilePath
:

when i build a service with .NET, i don't have a asp page to call. i can
create a wsdl file but i have't a wsml file to use in asp page.

if i use this syntax in  my java client

url = new URL('http://localhost:8040/Hello2/service1.asmx');

i receive this error

Generated fault:
 Fault Code = soap:Client
 Fault String = System.Web.Services.Protocols.SoapException: Server did not
recognize the value of HTTP Header SOAPAction:
http://tempuri.org/action/Service1.HelloWorld.
   at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
   at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type,
Http Context context, HttpRequest request, HttpResponse response)

where is my error?

federico



                                                                                       
                           
                    Cong.Hoang.Hoang@                                                  
                           
                    namics.com               Per:    [EMAIL PROTECTED]          
                           
                                             Cc:                                       
                           
                    08/29/2001 12:06         Oggetto:     Re: .NET service             
                           
                    PM                                                                 
                           
                    Per favore,                                                        
                           
                    rispondere a                                                       
                           
                    soap-user                                                          
                           
                                                                                       
                           
                                                                                       
                           




Hi federico,
it's depends on how you want to create the webservice
in .NET.

1. you write a webservice in, e.g. C#
    the result is an asmx-file. In that case you can get the wsdl-File by
    typing in your browser:  localhost/theWebservice.asmx?wsdl
    To use this kind of service, you don't need the wsml file.
or

2. you use the soap sdk to create the wsdl and wsml file.
    (you have to write a dll in VB and use the WSDl Generator from the SOAP
SDK from Microsoft)
    In that case, you will get wsdl, wsml and the listener (the asp-File)


If you want to call the service from .NET there are different ways.

...
URL url = new URL("http://localhost/theWebservice.asp";);
...

or
...
URL url = new URL("http://localhost/theWebservice.asmx";);
...

If  you create an ISAPI listener (you can choos it in the WSDL Genertaor
Wizard of SOAP SDK):
...
URL url = new URL("http://localhost/theWebserviceIsapi.wsdl";);
...


Hope thats help a bit
cheers







                    TheMotorcycles@inf

                    omedica.it                To:
[EMAIL PROTECTED]
                                              cc:

                    29.08.2001 11:31          Subject:     .NET service

                    Please respond to

                    soap-user







i've created a simple service with .NET (on IIS 5.0 web server). i want
call this service from java client. how can i do? i need the wsdl? is it
sufficient?
i have a client java that speek with a com soap service. to do so, i need
to pass throught a asp page and i need of two files: wdsl and wsml.
when i build a service with .NET, these files aren't created.

any suggestion?

federico









Reply via email to