Article View: borland.public.cppbuilder.webservices.soap
Article #6Re: Newbie question on invoking a webservice
From: Bogdan CIRLIG
Date: Thu, 21 Aug 2003 14:35
Date: Thu, 21 Aug 2003 14:35
55 lines
3334 bytes
3334 bytes
I guess you have to send some headers which IE doesn't. The way IIS identifies what webmethod to dispatch the call to is through SOAPAction header element which contains your method name (i.e. http://www.myserver.com/myws/mymethod You can test your webservice through browser IF your input data is not complex arrays (you'll have a test from from your webservice directly after you deploy it), otherwise you need to send it through SOAP. I hope this helps. Bogdan "wl" <bli01@yahoo.com> wrote in message news:28xXa.112$S4.6003@newsread2.prod.itd.earthlink.net... > Hi, > I am new to webservices. I am trying to invoke a webservice using my web > browser, but, it does not work. > > What am I doing wrong? > > I have simple html page, which uses javascript to construct an xml payload, > consisting of a SOAP message below to retrieve a stock quote: > > <?xml version="1.0" standalone="no"?> > <SOAP-ENV:Envelope xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema" > xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance" > xmlns:SOAPSDK3="http://schemas.xmlsoap.org/soap/encoding/" > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> > <SOAP-ENV:Body> > <s0:GetQuote xmlns:s0="http://www.webserviceX.NET/" > xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" > xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" > xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" > xmlns:s="http://www.w3.org/2001/XMLSchema"> > <s0:symbol>ibm</s0:symbol> > </s0:GetQuote> > </SOAP-ENV:Body> > </SOAP-ENV:Envelope> > > Then, I send the xml doc to a valid URL location hosting the webservice > application: http://www.webservicex.net/stockquote.asmx?WSDL#StockQuoteSoap > > This does not work. What am I doing wrong? > > Is it not possible to test a webservice using a browser? Is there a client > software I can use to test? > > Thanks in advance > >
Technical Details
Message-ID:
<efD1HG$ZDHA.2464@TK2MSFTNGP09.phx.gbl>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newsfeed.news2me.com!elnk-nf2-pas!newsfeed.earthlink.net!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!msrtrans1!msrnewsc1!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gblReferences:
<28xXa.112$S4.6003@newsread2.prod.itd.earthlink.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 114096,ed24f5a699c0f9c0 X-Google-Attributes: gid114096,public X-Google-Thread: f6a83,ed24f5a699c0f9c0 X-Google-Attributes: gidf6a83,public X-Google-Thread: fc30f,ed24f5a699c0f9c0 X-Google-Attributes: gidfc30f,public X-Google-Thread: 11096a,ed24f5a699c0f9c0 X-Google-Attributes: gid11096a,public X-Google-ArrivalTime: 2003-08-21 07:37:11 PST From: "Bogdan CIRLIG" <bcirlig@travtech.com> References: <28xXa.112$S4.6003@newsread2.prod.itd.earthlink.net> Subject: Re: Newbie question on invoking a webservice Date: Thu, 21 Aug 2003 10:35:53 -0400 Lines: 57 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: <efD1HG$ZDHA.2464@TK2MSFTNGP09.phx.gbl> Newsgroups: borland.public.cppbuilder.webservices.soap,borland.public.delphi.webservices.soap,borland.public.jbuilder.webservices,microsoft.public.webservices NNTP-Posting-Host: 12.154.68.2 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newsfeed.news2me.com!elnk-nf2-pas!newsfeed.earthlink.net!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!msrtrans1!msrnewsc1!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl