 |
|
|
 |
|
|
 |
|
 |
hey buddy
i need ur help in web services,
i tried to use your code but it does not return may anything
i am using soaptool kit to do so and also i have tried various other tutorials available on net but failure
can u please help me out in this matter
my code is as follows
Set oSOAP = Server.CreateObject("MSSOAP.SoapClient30")
oSOAP.ClientProperty("ServerHTTPRequest") = True
oSOAP.mssoapinit("http://buergerserviceschul.niedersachsen.de/modules/id/public/webservice/V4_00/rpc_lit/?wsdl")
session("id") = oSOAP.startSession(param1,param2,param3)
response.Write(session("id"))
now this works but not any other method works, it does not return anything even if it wont give errors
i am stuck at this problem for quite a long time now, please help me anybody
|
|
|
|
 |
|
 |
Your example works great! However if I try to use it on HTTPS nothing happens, get empty results? Do you know why?
Henri
_____
www.4xs.nl (dutch)
|
|
|
|
 |
|
 |
Hi, I never use this class with HTTPS but I think that have to work well, may be the problem is in the certificate or other place in the IIS and the webservice that you try to call is not returning any thing, but again, I never used this class with HTTPS so I can't be sure, thank for your comment, any thing else please let me know
|
|
|
|
 |
|
 |
My client has given only this url.
When i try to acces thru browser it says use SVCUTIL.EXE to access the methods. Can you help me how to use the webservices in my asp page. In general we need .asmx file. but hre they didnt give any infor about this.
|
|
|
|
 |
|
|
 |
|
 |
When I use FQDN,
I received BAD REQUEST (INVALID URL) error...please help
|
|
|
|
 |
|
 |
Hi DanAXCP, can you give me more information, like some example of your error please, thanks a lot
|
|
|
|
 |
|
 |
I created a web service within my intranet environment and I can access it through both
http://mywebserver/webservice.asmx
or
http://mywebserver.mydomain.com/webservice.asmx
And I use the Class implementation you provieded to do all the soap request and reponse. Here is what I have in my test.asp file
*******************************************
<!--#include file="webservice.asp"-->
<html>
<head>
<title>TEST</title>
</head>
<body>
<![CDATA[<%
dim ws
set ws = new webservice
ws.url = "http://mywebserver/webservice.asmx"
ws.method = "GetHello"
ws.execute
Reponse.write ws.response
%>]]>
*************************************
everything works fine when I use http://mywebserver/webservice.asmx as the url
however, when you change the ws.url to "http://mywebserver.mydomain.com/webservice.asmx" it gives me a error message on the page saying "Error Occurred: 401 - Unauthorized"
Also I have SSL setup on my webserver so when you use
ws.url = "https://mywebserver.mydomain.com/webservice.asmx" I get the following
"Bad Request (Invalid URL)" </body></html>
|
|
|
|
 |
|
 |
Hello asanoguera,
I sent you this message via email as well, but thought I would post it here for others to see and either contribute their ideas or learn from our interaction. Thank you very much for posting your solution, it has gotten us very close to a solution for our users. We just need a little more help...
We have a need to call a web service through VB Script so that we can use the data returned to dynamically populate a form within another application.
The problem we are running into is that the web service we are trying to access takes a complex argument. The web service is built to handle several commands dynamically. To call it, you need to pass 2 arguments. First a string representing the name of the command you wish to use. Second, an array made up of a name value pair for each parameter that the command takes (name of parameter - string, value associated - in our case an integer). The command we are calling only has one parameter and value pair. We cannot figure out how to pass this complex value as a parameter to the web service. Can you give us any recommendation on how to overcome this issue? We really appreciate any suggestions you might have to help us out.
sjjm2@co.dakota.mn.us
|
|
|
|
 |
|
 |
Hi Scott, I was investigated a little and found 2 options.
1: If you have access to IIS manage it is best to create a DLL with a class. NET that accesses the webservice and then the DLL register like a ISAPI extension in IIS, then in VBScript you can create an object with:
Dim objDLL
Set objDLL = Server.CreateObject("xxx")
('xxx' is the full name you've chosen for your class in the DLL) and then using the object objDLL normally as any object in VBScript.
2: The second method is to emulate the structure of a so-called SOAP, for which you should pack your parameters in an XML format specified that the webservice required to consume, we attached a few links where this very well explained step by step:
http://www.devarticles.com/c/a/ASP/An-Introduction-To-XML-SOAP-Using-ASP-and-VB6/1/[^]
http://www.codeproject.com/KB/vbscript/SOAP___Classic_ASP.aspx[^]
I hope being able to help, anything else Tell Me please
|
|
|
|
 |
|
 |
Great Solution!!! Thanks a lot!!
and i need your help: i want to parse the string in xmlhttp.responseText, because this in XML Format. i need the value ot this.
Thanks!!!!
miguel leonardo. Guatemala
|
|
|
|
 |
|
 |
Hello all, First let me say this is a great article. I am having a small problem though. I have a very simple web method that takes 4 string parameters and returns a string. When I run this web method on my local machine using the script it executes fine. However when I execute it against a remote server I get an error. I do know that the web method on the remote box works from other applications. My dev box and the remote server have the same version of the web service code running. The only thing I can think of is the version of .NET that is running. Local Box WinXP with .NET 1.1 SP1 (1.1.4322.2032) Remote Box W2k3 with .NET 1.1 SP1 (1.1.4322.2300) Technically they are both SP1 of the 1.1 framework, but they are different builds. I suppose there could be a difference between XP and 2K3 in how the framework functions, but I haven't run into it before. This is the error that is returned: InvalidOperationException: Request format is unrecognized.] System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response) +388 System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext context, String verb, String url, String filePath) +94 System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, String path, String pathTranslated, Boolean useAppConfig) +699 System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +95 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +173 Once again using the same script against the webservice on my local machine I get no error. Anyway...just thought I'd check and see if anyone has had a similar issue. Thanks! -Jim F.
|
|
|
|
 |
|
 |
I wonder if you might help me here. I love your class but I need to know if you can help me. One of the fields that is returned from my webservice is a byte array which is actually a file. Can you help me understand how I can get this byte array to the local disk and save it as a file?
Thank you
|
|
|
|
 |
|
 |
That was great! Worked on the first try )
|
|
|
|
 |
|
 |
Hello all, like the author of this article, I've been trying to connect to an asp.net web service from an asp page and it's taken me quite a a while I must say. I got some tips from this site and was successfully able to talk to the web service sitting on my local machine.
However, the same web service on another machine gives the error
Error Type:
msxml4.dll (0x80070005)
Access is denied.
/merchant/paydirecttest.asp, line 42
on the other computer, the iusr_machinename account is an administrator.
So I guess everything should just go through like it does on localhost.
Am I missing anything? I even used the proxycfg tool to set up the proxy connection.
Thanks a lot any advice is much appreciated.
nuchild!
-- modified at 8:06 Thursday 8th December, 2005
|
|
|
|
 |
|
 |
I found this error
Error Type:
Active Server Pages, ASP 0126 (0x80004005)
The include file '/webservice.asp' was not found.
/aspcallwebservice_src/testws.asp, line 1
|
|
|
|
 |
|
 |
Hi YOONG CAME, the path of the include must be equal to the place where the file is hosted, for example if you put the file webservice.asp in root path you must use <!--#include virtual="/webservice.asp"--> but, if you put the file in some other place (for example : /aspcallwebservice_src ) you must use <!--#include virtual="/aspcallwebservice_src/webservice.asp"-->. I hope that this litle explanation can help you, please let me know if need any thing else
|
|
|
|
 |
|
 |
Thanks. Now, I face another problem. I have the web services like below. How can i make use the class that you provide to suit for my web services. The class you provide is add the parameter, but for mine, it does not need.
HTTP GET
The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.
GET /eDelegation/Service1.asmx/GetDelegation?app_id=string&delegator=string HTTP/1.1
Host: 165.204.189.134
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
schemaxml
I have change the code like below: finally it come out with nothing
<%
dim ws
set ws = new webservice
ws.url = "http://165.204.189.134/eDelegation/Service1.asmx"
ws.method = "GetDelegation"
ws.parameters.Add "app_id", 10
ws.parameters.Add "delegator", 20
ws.execute
response.Write ws.response
set ws = nothing
%>
|
|
|
|
 |
|
 |
Hi, I have solve the error above. Now, i have another question. The result come out with one line.
How can i separate the individual input?
For example :
my result : lily may 2005-10-13T00:00:00.0000000+08:00 this is an comment
I want the result is :
input 1 : lily
input 2 : may
input 3 : 2005-10-13T00:00:00.0000000+08:00
input 4 : this is an comment
Thanks for your help
|
|
|
|
 |
|
 |
Hi, I am sorry for the delay, I am sure that you had this resolve, but any way I will respond.
You can't get separate inputs automaticly, you must separate the string one by one (for example using tab char or pipline char)
For example :
my result : lily|may|2005-10-13T00:00:00.0000000+08:00|this is an comment|
after you separate the piplines :
input 1 : lily
input 2 : may
input 3 : 2005-10-13T00:00:00.0000000+08:00
input 4 : this is an comment
I am sorry again for the delay, any thing please let me know
|
|
|
|
 |
|
 |
Hey asanoguera,
thanks a lot for having created that class and a sample for ASP.Now the good news is that i could use that sample application of yours to create a Webservices client to consume a webservice for the Series 60 platform i.s the Webservices client would be deployed on to a smartphone that runs on Symbian OS. I can now consume webservices fo any kind from my Nokia 3230/6600 phone.
It would not have been possible without your code. thanks once more.
Regards
Wilbur J. Pereira
"If they love me let them, for the heck of it.If they don't, who da heck cares about it"
|
|
|
|
 |
|
 |
I am very happy that the example help to you, thanks to let to me know it
|
|
|
|
 |
|
 |
Good job !
But I got error at title ..
msxml3.dll Eror '80070005'
Deny Access。
/CS/_/webservice.asp, 列14
Does anything I had to do?
|
|
|
|
 |