Fred... This service produces a wsdl file that Axis doesn't like (ie, WSDL2Java fails). In the short term, I think you must abandon hope of getting Service1 to work with Axis. I suggest you concentrate on the two examples I mentioned below, where you are guaranteed Axis works ok.
Maybe in another month, Axis (WSDL2Java) will support Service1, but right now, it's no-go. Good luck. Stan ----- Original Message ----- From: "Fred So" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, March 23, 2002 8:42 AM Subject: Re: Problem with axis client hitting Microsoft-based web services > Thanks Stan > > Must admit I am only a beginner. > > Here is my code which is very simple, running from > command-line: > > String endpoint = > "http://srv2.advmrkt.com/yZWebService/Service1.asmx"; > String method = "QuoteForToday"; > Service service = new Service(); > Call call = (Call) service.createCall(); > call.setTargetEndpointAddress( new > java.net.URL(endpoint) ); > String ret = (String) call.invoke( > "http://srv2.advmrkt.com/yZWebServices/", > method, > new Object [] {} ); > System.out.println("Quote of the day : " + ret); > > When run, I get a SoapException: > > Server did not recognize the value of HTTP Header > SOAPAction: . > > Would be great if you can point out what I have done > wrong. > > Thanks > Fred > > > > --- Stan Jordan <[EMAIL PROTECTED]> wrote: > > Fred... > > I have tested against many .NET services, with good > > success. Here are two > > that work for me... > > http://www.alethea.net/webservices/LocalTime.asmx > > > > http://www.esynaps.com/WebServices/DailyDiblert.asmx > > Do this: > > 1. Delete your old %TOMCAT%\webapps\axis directory. > > Download axis-beta1 > > and create new %TOMCAT%\webapps\axis directory by > > copying the directory from > > the download. > > 2. Set up your CLASSPATH for all the jars in the > > %TOMCAT%\webapps\axis > > directory. > > 3. Get the wsdl file by tacking ?wsdl onto the URL > > in your browser. > > 4. Use WSDL2Java to make stubs, then write your > > client. > > I use Tomcat 4.0. Other people have had a little > > trouble with more recent > > versions of Tomcat. (See archives.) > > Good luck. > > Stan > > > > ----- Original Message ----- > > From: "Fred So" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Saturday, March 23, 2002 7:29 AM > > Subject: Problem with axis client hitting > > Microsoft-based web services > > > > > > > Hi > > > > > > I have been using Axis to retrieve information > > from a > > > number of web services which are all > > Microsoft-based. > > > > > > I have been using alpha 3 version which works > > fine. > > > However, when I tried on all the beta versions > > > released so far, they all give an error message > > saying > > > it does recognise http header Soapaction: . and > > > therefore the request is rejected. > > > > > > Any ideas? > > > > > > Thanks > > > Fred > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Yahoo! Movies - coverage of the 74th Academy > > Awards® > > > http://movies.yahoo.com/ > > > > > > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Movies - coverage of the 74th Academy Awards® > http://movies.yahoo.com/ >