You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Fred So <fr...@yahoo.com.au> on 2002/03/23 15:29:15 UTC

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/

Re: wsdl2java error

Posted by Jinghua Gu <eg...@cisco.com>.
Never mind it. I got it.

Thanks,

At 04:26 PM 3/24/2002 -0500, Jinghua Gu wrote:
>When I run the following command,
>
>java org.apache.axis.wsdl.WSDL2Java samples/addr/AddressBook.wsdl
>
>Exception in thread "main" java.lang.NoClassDefFoundError: 
>org/apache/avalon/exc
>alibur/cli/CLOptionDescriptor at 
>org.apache.axis.wsdl.WSDL2Java.<clinit>(Unknown Source)
>
>Where can I find the org/apache/avalon/excalibur/? It is not in the source 
>code tree.
>
>Thanks,
>Emily
>
>
>At 07:44 AM 3/24/2002 -0700, Stan Jordan wrote:
>>Fred...
>>The stanski service works fine with Axis.  Use WSDL2Java to build your
>>stubs, as I explained in the other thread.  Good luck.
>>Stan
>>
>>----- Original Message -----
>>From: "Fred So" <fr...@yahoo.com.au>
>>To: <ax...@xml.apache.org>
>>Sent: Sunday, March 24, 2002 2:04 AM
>>Subject: Re: WSDL2Java bug (Service1.asmx)
>>
>>
>> > There is another MS-based webservice which I also have
>> > problems with:
>> >
>> > http://www.stanski.com/services/worldweather/weather.asmx
>> >
>> > There was no problem when using Axis alpha 3, but
>> > started to break since beta versions.
>> >
>> > Fred
>> >
>> >
>> > --- Stan Jordan <sk...@worldnet.att.net> wrote:
>> > > The offending line (below) appears in this book:
>> > >
>> > >
>> > http://www.oreilly.com/catalog/dotnetfrmess2/chapter/ch06.html
>> > >      <s:element ref="s:schema" />
>> > > So it would appear that .NET folks believe this line
>> > > is legit.
>> > > Stan
>> > >
>> > > ----- Original Message -----
>> > > From: "Stan Jordan" <sk...@worldnet.att.net>
>> > > To: <ax...@xml.apache.org>
>> > > Sent: Saturday, March 23, 2002 5:40 PM
>> > > Subject: WSDL2Java bug (Service1.asmx)
>> > >
>> > >
>> > > > WSDL2Java chokes on this file (exception pasted
>> > > below):
>> > > >
>> > >
>> > http://srv2.advmrkt.com/yZWebService/Service1.asmx?wsdl
>> > > >
>> > > > But!  If you comment-out this line (which appears
>> > > twice in the wsdl file)
>> > > > then WSDL2Java works like a charm...
>> > > >     <s:element ref="s:schema" />
>> > > >
>> > > > Can somebody tell me...is this a bug in the
>> > > Microsoft wsdl emitter, or an
>> > > > issue for WSDL2Java ?
>> > > > Cheers.
>> > > > Stan
>> > > > I used beta1 for this exercise.
>> > > > This problem was brought to my attention by Fred
>> > > So.
>> > > > fredso2000@yahoo.com.au
>> > > > -------------------------------------------
>> > > > java.io.IOException: Type
>> > > http://www.w3.org/2001/XMLSchema:schema is
>> > > > referenced but not defined.
>> > > >  at
>> > >
>> > org.apache.axis.wsdl.toJava.SymbolTable.checkForUndefined(Unknown
>> > > > Source)
>> > > >  at
>> > > org.apache.axis.wsdl.toJava.SymbolTable.add(Unknown
>> > > Source)
>> > > >  at
>> > > org.apache.axis.wsdl.toJava.Emitter.emit(Unknown
>> > > Source)
>> > > >  at
>> > > org.apache.axis.wsdl.toJava.Emitter.emit(Unknown
>> > > Source)
>> > > >  at
>> > >
>> > org.apache.axis.wsdl.WSDL2Java$WSDLRunnable.run(Unknown
>> > > Source)
>> > > >  at java.lang.Thread.run(Thread.java:536)
>> > > >
>> > > >
>> > > >
>> > > >
>> > > >
>> > > >
>> > >
>> >
>> >
>> > __________________________________________________
>> > Do You Yahoo!?
>> > Yahoo! Movies - coverage of the 74th Academy Awards®
>> > http://movies.yahoo.com/

Re: WSDL2Java bug (Service1.asmx)

Posted by Fred So <fr...@yahoo.com.au>.
Thanks Stan

A question: Why the direct, simpler Call mechanism
does not work any more ? Is that a bug with .Net or is
that related to Axis?

Fred


--- Stan Jordan <sk...@worldnet.att.net> wrote:
> Fred...
> The stanski service works fine with Axis.  Use
> WSDL2Java to build your
> stubs, as I explained in the other thread.  Good
> luck.
> Stan
> 
> ----- Original Message -----
> From: "Fred So" <fr...@yahoo.com.au>
> To: <ax...@xml.apache.org>
> Sent: Sunday, March 24, 2002 2:04 AM
> Subject: Re: WSDL2Java bug (Service1.asmx)
> 
> 
> > There is another MS-based webservice which I also
> have
> > problems with:
> >
> >
>
http://www.stanski.com/services/worldweather/weather.asmx
> >
> > There was no problem when using Axis alpha 3, but
> > started to break since beta versions.
> >
> > Fred
> >
> >
> > --- Stan Jordan <sk...@worldnet.att.net> wrote:
> > > The offending line (below) appears in this book:
> > >
> > >
> >
>
http://www.oreilly.com/catalog/dotnetfrmess2/chapter/ch06.html
> > >      <s:element ref="s:schema" />
> > > So it would appear that .NET folks believe this
> line
> > > is legit.
> > > Stan
> > >
> > > ----- Original Message -----
> > > From: "Stan Jordan" <sk...@worldnet.att.net>
> > > To: <ax...@xml.apache.org>
> > > Sent: Saturday, March 23, 2002 5:40 PM
> > > Subject: WSDL2Java bug (Service1.asmx)
> > >
> > >
> > > > WSDL2Java chokes on this file (exception
> pasted
> > > below):
> > > >
> > >
> >
>
http://srv2.advmrkt.com/yZWebService/Service1.asmx?wsdl
> > > >
> > > > But!  If you comment-out this line (which
> appears
> > > twice in the wsdl file)
> > > > then WSDL2Java works like a charm...
> > > >     <s:element ref="s:schema" />
> > > >
> > > > Can somebody tell me...is this a bug in the
> > > Microsoft wsdl emitter, or an
> > > > issue for WSDL2Java ?
> > > > Cheers.
> > > > Stan
> > > > I used beta1 for this exercise.
> > > > This problem was brought to my attention by
> Fred
> > > So.
> > > > fredso2000@yahoo.com.au
> > > > -------------------------------------------
> > > > java.io.IOException: Type
> > > http://www.w3.org/2001/XMLSchema:schema is
> > > > referenced but not defined.
> > > >  at
> > >
> >
>
org.apache.axis.wsdl.toJava.SymbolTable.checkForUndefined(Unknown
> > > > Source)
> > > >  at
> > >
> org.apache.axis.wsdl.toJava.SymbolTable.add(Unknown
> > > Source)
> > > >  at
> > > org.apache.axis.wsdl.toJava.Emitter.emit(Unknown
> > > Source)
> > > >  at
> > > org.apache.axis.wsdl.toJava.Emitter.emit(Unknown
> > > Source)
> > > >  at
> > >
> >
>
org.apache.axis.wsdl.WSDL2Java$WSDLRunnable.run(Unknown
> > > Source)
> > > >  at java.lang.Thread.run(Thread.java:536)
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> >
> >
> > __________________________________________________
> > 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/

wsdl2java error

Posted by Jinghua Gu <eg...@cisco.com>.
When I run the following command,

java org.apache.axis.wsdl.WSDL2Java samples/addr/AddressBook.wsdl

Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/avalon/exc
alibur/cli/CLOptionDescriptor at 
org.apache.axis.wsdl.WSDL2Java.<clinit>(Unknown Source)

Where can I find the org/apache/avalon/excalibur/? It is not in the source 
code tree.

Thanks,
Emily


At 07:44 AM 3/24/2002 -0700, Stan Jordan wrote:
>Fred...
>The stanski service works fine with Axis.  Use WSDL2Java to build your
>stubs, as I explained in the other thread.  Good luck.
>Stan
>
>----- Original Message -----
>From: "Fred So" <fr...@yahoo.com.au>
>To: <ax...@xml.apache.org>
>Sent: Sunday, March 24, 2002 2:04 AM
>Subject: Re: WSDL2Java bug (Service1.asmx)
>
>
> > There is another MS-based webservice which I also have
> > problems with:
> >
> > http://www.stanski.com/services/worldweather/weather.asmx
> >
> > There was no problem when using Axis alpha 3, but
> > started to break since beta versions.
> >
> > Fred
> >
> >
> > --- Stan Jordan <sk...@worldnet.att.net> wrote:
> > > The offending line (below) appears in this book:
> > >
> > >
> > http://www.oreilly.com/catalog/dotnetfrmess2/chapter/ch06.html
> > >      <s:element ref="s:schema" />
> > > So it would appear that .NET folks believe this line
> > > is legit.
> > > Stan
> > >
> > > ----- Original Message -----
> > > From: "Stan Jordan" <sk...@worldnet.att.net>
> > > To: <ax...@xml.apache.org>
> > > Sent: Saturday, March 23, 2002 5:40 PM
> > > Subject: WSDL2Java bug (Service1.asmx)
> > >
> > >
> > > > WSDL2Java chokes on this file (exception pasted
> > > below):
> > > >
> > >
> > http://srv2.advmrkt.com/yZWebService/Service1.asmx?wsdl
> > > >
> > > > But!  If you comment-out this line (which appears
> > > twice in the wsdl file)
> > > > then WSDL2Java works like a charm...
> > > >     <s:element ref="s:schema" />
> > > >
> > > > Can somebody tell me...is this a bug in the
> > > Microsoft wsdl emitter, or an
> > > > issue for WSDL2Java ?
> > > > Cheers.
> > > > Stan
> > > > I used beta1 for this exercise.
> > > > This problem was brought to my attention by Fred
> > > So.
> > > > fredso2000@yahoo.com.au
> > > > -------------------------------------------
> > > > java.io.IOException: Type
> > > http://www.w3.org/2001/XMLSchema:schema is
> > > > referenced but not defined.
> > > >  at
> > >
> > org.apache.axis.wsdl.toJava.SymbolTable.checkForUndefined(Unknown
> > > > Source)
> > > >  at
> > > org.apache.axis.wsdl.toJava.SymbolTable.add(Unknown
> > > Source)
> > > >  at
> > > org.apache.axis.wsdl.toJava.Emitter.emit(Unknown
> > > Source)
> > > >  at
> > > org.apache.axis.wsdl.toJava.Emitter.emit(Unknown
> > > Source)
> > > >  at
> > >
> > org.apache.axis.wsdl.WSDL2Java$WSDLRunnable.run(Unknown
> > > Source)
> > > >  at java.lang.Thread.run(Thread.java:536)
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Movies - coverage of the 74th Academy Awards®
> > http://movies.yahoo.com/

Re: WSDL2Java bug (Service1.asmx)

Posted by Stan Jordan <sk...@worldnet.att.net>.
Fred...
The stanski service works fine with Axis.  Use WSDL2Java to build your
stubs, as I explained in the other thread.  Good luck.
Stan

----- Original Message -----
From: "Fred So" <fr...@yahoo.com.au>
To: <ax...@xml.apache.org>
Sent: Sunday, March 24, 2002 2:04 AM
Subject: Re: WSDL2Java bug (Service1.asmx)


> There is another MS-based webservice which I also have
> problems with:
>
> http://www.stanski.com/services/worldweather/weather.asmx
>
> There was no problem when using Axis alpha 3, but
> started to break since beta versions.
>
> Fred
>
>
> --- Stan Jordan <sk...@worldnet.att.net> wrote:
> > The offending line (below) appears in this book:
> >
> >
> http://www.oreilly.com/catalog/dotnetfrmess2/chapter/ch06.html
> >      <s:element ref="s:schema" />
> > So it would appear that .NET folks believe this line
> > is legit.
> > Stan
> >
> > ----- Original Message -----
> > From: "Stan Jordan" <sk...@worldnet.att.net>
> > To: <ax...@xml.apache.org>
> > Sent: Saturday, March 23, 2002 5:40 PM
> > Subject: WSDL2Java bug (Service1.asmx)
> >
> >
> > > WSDL2Java chokes on this file (exception pasted
> > below):
> > >
> >
> http://srv2.advmrkt.com/yZWebService/Service1.asmx?wsdl
> > >
> > > But!  If you comment-out this line (which appears
> > twice in the wsdl file)
> > > then WSDL2Java works like a charm...
> > >     <s:element ref="s:schema" />
> > >
> > > Can somebody tell me...is this a bug in the
> > Microsoft wsdl emitter, or an
> > > issue for WSDL2Java ?
> > > Cheers.
> > > Stan
> > > I used beta1 for this exercise.
> > > This problem was brought to my attention by Fred
> > So.
> > > fredso2000@yahoo.com.au
> > > -------------------------------------------
> > > java.io.IOException: Type
> > http://www.w3.org/2001/XMLSchema:schema is
> > > referenced but not defined.
> > >  at
> >
> org.apache.axis.wsdl.toJava.SymbolTable.checkForUndefined(Unknown
> > > Source)
> > >  at
> > org.apache.axis.wsdl.toJava.SymbolTable.add(Unknown
> > Source)
> > >  at
> > org.apache.axis.wsdl.toJava.Emitter.emit(Unknown
> > Source)
> > >  at
> > org.apache.axis.wsdl.toJava.Emitter.emit(Unknown
> > Source)
> > >  at
> >
> org.apache.axis.wsdl.WSDL2Java$WSDLRunnable.run(Unknown
> > Source)
> > >  at java.lang.Thread.run(Thread.java:536)
> > >
> > >
> > >
> > >
> > >
> > >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Movies - coverage of the 74th Academy Awards®
> http://movies.yahoo.com/


Re: WSDL2Java bug (Service1.asmx)

Posted by Fred So <fr...@yahoo.com.au>.
There is another MS-based webservice which I also have
problems with:

http://www.stanski.com/services/worldweather/weather.asmx

There was no problem when using Axis alpha 3, but
started to break since beta versions.

Fred


--- Stan Jordan <sk...@worldnet.att.net> wrote:
> The offending line (below) appears in this book:
>   
>
http://www.oreilly.com/catalog/dotnetfrmess2/chapter/ch06.html
>      <s:element ref="s:schema" />
> So it would appear that .NET folks believe this line
> is legit.
> Stan
> 
> ----- Original Message ----- 
> From: "Stan Jordan" <sk...@worldnet.att.net>
> To: <ax...@xml.apache.org>
> Sent: Saturday, March 23, 2002 5:40 PM
> Subject: WSDL2Java bug (Service1.asmx)
> 
> 
> > WSDL2Java chokes on this file (exception pasted
> below):
> >  
>
http://srv2.advmrkt.com/yZWebService/Service1.asmx?wsdl
> > 
> > But!  If you comment-out this line (which appears
> twice in the wsdl file)
> > then WSDL2Java works like a charm...
> >     <s:element ref="s:schema" />
> > 
> > Can somebody tell me...is this a bug in the
> Microsoft wsdl emitter, or an
> > issue for WSDL2Java ?
> > Cheers.
> > Stan
> > I used beta1 for this exercise.
> > This problem was brought to my attention by Fred
> So.
> > fredso2000@yahoo.com.au
> > -------------------------------------------
> > java.io.IOException: Type
> http://www.w3.org/2001/XMLSchema:schema is
> > referenced but not defined.
> >  at
>
org.apache.axis.wsdl.toJava.SymbolTable.checkForUndefined(Unknown
> > Source)
> >  at
> org.apache.axis.wsdl.toJava.SymbolTable.add(Unknown
> Source)
> >  at
> org.apache.axis.wsdl.toJava.Emitter.emit(Unknown
> Source)
> >  at
> org.apache.axis.wsdl.toJava.Emitter.emit(Unknown
> Source)
> >  at
>
org.apache.axis.wsdl.WSDL2Java$WSDLRunnable.run(Unknown
> Source)
> >  at java.lang.Thread.run(Thread.java:536)
> > 
> > 
> > 
> > 
> > 
> > 
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards�
http://movies.yahoo.com/

Re: WSDL2Java bug (Service1.asmx)

Posted by Stan Jordan <sk...@worldnet.att.net>.
The offending line (below) appears in this book:
   http://www.oreilly.com/catalog/dotnetfrmess2/chapter/ch06.html
     <s:element ref="s:schema" />
So it would appear that .NET folks believe this line is legit.
Stan

----- Original Message ----- 
From: "Stan Jordan" <sk...@worldnet.att.net>
To: <ax...@xml.apache.org>
Sent: Saturday, March 23, 2002 5:40 PM
Subject: WSDL2Java bug (Service1.asmx)


> WSDL2Java chokes on this file (exception pasted below):
>   http://srv2.advmrkt.com/yZWebService/Service1.asmx?wsdl
> 
> But!  If you comment-out this line (which appears twice in the wsdl file)
> then WSDL2Java works like a charm...
>     <s:element ref="s:schema" />
> 
> Can somebody tell me...is this a bug in the Microsoft wsdl emitter, or an
> issue for WSDL2Java ?
> Cheers.
> Stan
> I used beta1 for this exercise.
> This problem was brought to my attention by Fred So.
> fredso2000@yahoo.com.au
> -------------------------------------------
> java.io.IOException: Type http://www.w3.org/2001/XMLSchema:schema is
> referenced but not defined.
>  at org.apache.axis.wsdl.toJava.SymbolTable.checkForUndefined(Unknown
> Source)
>  at org.apache.axis.wsdl.toJava.SymbolTable.add(Unknown Source)
>  at org.apache.axis.wsdl.toJava.Emitter.emit(Unknown Source)
>  at org.apache.axis.wsdl.toJava.Emitter.emit(Unknown Source)
>  at org.apache.axis.wsdl.WSDL2Java$WSDLRunnable.run(Unknown Source)
>  at java.lang.Thread.run(Thread.java:536)
> 
> 
> 
> 
> 
> 


WSDL2Java bug (Service1.asmx)

Posted by Stan Jordan <sk...@worldnet.att.net>.
WSDL2Java chokes on this file (exception pasted below):
  http://srv2.advmrkt.com/yZWebService/Service1.asmx?wsdl

But!  If you comment-out this line (which appears twice in the wsdl file)
then WSDL2Java works like a charm...
    <s:element ref="s:schema" />

Can somebody tell me...is this a bug in the Microsoft wsdl emitter, or an
issue for WSDL2Java ?
Cheers.
Stan
I used beta1 for this exercise.
This problem was brought to my attention by Fred So.
fredso2000@yahoo.com.au
-------------------------------------------
java.io.IOException: Type http://www.w3.org/2001/XMLSchema:schema is
referenced but not defined.
 at org.apache.axis.wsdl.toJava.SymbolTable.checkForUndefined(Unknown
Source)
 at org.apache.axis.wsdl.toJava.SymbolTable.add(Unknown Source)
 at org.apache.axis.wsdl.toJava.Emitter.emit(Unknown Source)
 at org.apache.axis.wsdl.toJava.Emitter.emit(Unknown Source)
 at org.apache.axis.wsdl.WSDL2Java$WSDLRunnable.run(Unknown Source)
 at java.lang.Thread.run(Thread.java:536)







Re: Problem with axis client hitting Microsoft-based web services

Posted by Stan Jordan <sk...@worldnet.att.net>.
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" <fr...@yahoo.com.au>
To: <ax...@xml.apache.org>
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 <sk...@worldnet.att.net> 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" <fr...@yahoo.com.au>
> > To: <ax...@xml.apache.org>
> > 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/
>


Re: Problem with axis client hitting Microsoft-based web services

Posted by Fred So <fr...@yahoo.com.au>.
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 <sk...@worldnet.att.net> 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" <fr...@yahoo.com.au>
> To: <ax...@xml.apache.org>
> 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/

Re: Problem with axis client hitting Microsoft-based web services

Posted by Stan Jordan <sk...@worldnet.att.net>.
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" <fr...@yahoo.com.au>
To: <ax...@xml.apache.org>
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/
>