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 Jaimin <ja...@transformaticsgroup.com> on 2006/08/30 19:17:39 UTC
[Axis2] making it work
I uploaded axis2.war onto Tomcat 5.5.17. I can see Axis2 home page, service
listed includes "version", and can get to its wsdl file from the browser.
But call to method "getVersion" fails with the following error message:
Requested resource not found!
The URL is http://localhost:8080/axis2/services/version?method=getVersion
What am I doing wrong?!?!!?! Something very simple, eh?
Any help appreciated as I am new to Axis2. (Things were fine with Axis1).
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.7/432 - Release Date: 8/29/2006
Re: [Axis2] making it work
Posted by Ajith Ranabahu <aj...@gmail.com>.
Hi,
You have to use the rest epr for this. Axis2 has two eprs for SOAP and
REST services. Also the operation name you have to have it as part of
the URL and not as a parameter
So the URL for you would be
http://localhost:8080/axis2/rest/version/getVersion
The easy thing to figure this out is to use the Axis2 Webapp services
page. It lists the correct epr to use
HTH
Ajith
On 8/30/06, Ruchith Fernando <ru...@gmail.com> wrote:
> Seems like your service URL is incorrect. Please try using :
>
> http://localhost:8080/axis2/services/version/getVersion
>
> Thanks,
> Ruchith
>
> On 8/30/06, Jaimin <ja...@transformaticsgroup.com> wrote:
> >
> >
> > I uploaded axis2.war onto Tomcat 5.5.17. I can see Axis2 home page, service
> > listed includes "version", and can get to its wsdl file from the browser.
> > But call to method "getVersion" fails with the following error message:
> >
> > Requested resource not found!
> > The URL is
> > http://localhost:8080/axis2/services/version?method=getVersion
> >
> > What am I doing wrong?!?!!?! Something very simple, eh?
> >
> > Any help appreciated as I am new to Axis2. (Things were fine with Axis1).
> >
> >
> >
>
>
> --
> www.ruchith.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Ajith Ranabahu
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] making it work
Posted by Eran Chinthaka <ch...@opensource.lk>.
This might be a late reply but just trying.
Please check this with the latest nightly. If it doesn't work, please
file a JIRA so that I can help fixing it.
Thanks,
Chinthaka
Jaimin wrote:
>
> Oops. I did tried rest EPR as well. The error in that case is
> different. Error message is "Internal server error" from Axis2 server.
>
> -----Original Message-----
> From: Ajith Ranabahu [mailto:ajith.ranabahu@gmail.com]
> Sent: Thursday, August 31, 2006 5:50 PM
> To: axis-user@ws.apache.org; jaimin.mehta@transformaticsgroup.com
> Subject: Re: [Axis2] making it work
>
>
> Hi,
> I'm pretty sure none of you guys saw my reply to this. So here is a hint
>
> Use the rest EPR!
>
> Ajith
>
>
>
> On 8/31/06, Jaimin <ja...@transformaticsgroup.com> wrote:
>>
>>
>> It is indeed strange that the call from HappyAxis.jsp client code works
>> fine, but not EPR from the browser itself. Even service EPR for
> "version",
>> let alone operation "getVersion", returns the error message "Requested
>> resource not found." Oddly the service is active (which is why
>> HappyAxis.jsp is able to obtain version information), but EPR access
> returns
>> error.
>>
>> What could explain that service is active, can be accessed using
> client API,
>> but EPR returns error?
>>
>> BTW, I repeated this problem after clean re-install of Tomcat and
> uploading
>> of axis2.war file.
>>
>>
>> -----Original Message-----
>> From: Ruchith Fernando [mailto:ruchith.fernando@gmail.com]
>> Sent: Thursday, August 31, 2006 4:18 PM
>> To: jaimin.mehta@transformaticsgroup.com
>> Cc: axis-user@ws.apache.org
>> Subject: Re: [Axis2] making it work
>>
>>
>> Are you trying to access the version service with a ServiceClient?
>>
>> If so following code snippet will let you do it:
>>
>> OMFactory fac = OMAbstractFactory.getOMFactory();
>> OMNamespace omNs =
>> fac.createOMNamespace("http://axisversion.sample/xsd", "ns1");
>> OMElement payload = fac.createOMElement("getVersion", omNs);
>> OMElement value = fac.createOMElement("myValue", omNs);
>> payload.addChild(value);
>>
>> ServiceClient client = new ServiceClient();
>> client.getOptions().setTo(new
>> EndpointReference("http://localhost:8080/axis2/services/version"));
>>
>> System.out.println(client.sendReceive(payload));
>>
>> The happyaxis.jsp constructs the payload (contents of the soap Body)
>> as shown above.
>>
>> Also I just tried changing the URL to
>> http://localhost:8080/axis2/services/version/getVersion and
>> it worked
>> !
>>
>> Thanks,
>> Ruchith
>>
>> On 8/31/06, Jaimin <ja...@transformaticsgroup.com>
>> wrote:
>> >
>> >
>> > Hi Ruchith,
>> >
>> > Thanks for your support. The address/EPR is same as you suggest.
>> >
>> > > In Axis2 we do allow one to use a URL to point upto the operation as
>> > well. Therefore
>> > >
>> > http://localhost:8080/axis2/services/version/getVersion
>> > should work !
>> >
>> > Yet it gives error message "requested resource not found".
>> >
>> > Oddly enough, happyaxis.jsp is able to call the operation successfully,
>> but
>> > it uses different API (OMElement types, etc.).
>> >
>> > Regards,
>> > Jaimin
>> >
>> >
>> >
>> >
>> > -----Original Message-----
>> > From: Ruchith Fernando
>> [mailto:ruchith.fernando@gmail.com]
>> > Sent: Thursday, August 31, 2006 12:17 PM
>> > To: axis-user@ws.apache.org;
>> > jaimin.mehta@transformaticsgroup.com
>> > Subject: Re: [Axis2] making it work
>> >
>> >
>> > On 8/31/06, Jaimin <ja...@transformaticsgroup.com>
>> > wrote:
>> > >
>> > >
>> > > Hi Ruchith,
>> > >
>> > > I tried as you suggested below, but the problem continues.
>> > >
>> > > The service is "version", not "getVersion".
>> > > The operation in that service I want to invoke is "getVersion"
>> >
>> > In Axis2 we do allow one to use a URL to point upto the operation as
>> > well. Therefore
>> > http://localhost:8080/axis2/services/version/getVersion
>> > should work !
>> >
>> > > The syntactic convention to invoke an operation via an URL, which
> works
>> > well
>> > > for all cases and which I follow, is
>> > >
>> > >
>> >
>> <EPR>"?method="<operationName>"&"<parameterName>=<parameterValue>"&"...
>> > >
>> > > The following works to obtain wsdl of "version" works. But the latter
>> to
>> > > invoke "getVersion" gives me error.
>> > > localhost:8080/axis2/services/version?wsdl
>> > >
>> > >
>> > localhost:8080/axis2/services/version?method=getVersion
>> > > The same EPR for axis1.x (replacing "axis2" with "axis") does not give
>> me
>> > > error.
>> >
>> > As you can see in the wsdl of the version service the valid address is
>> > http://localhost:8080/axis2/services/version
>> >
>> > I think the above case worked because Axis2 ignored the
>> > "?method=getVersion" part.
>> >
>> > Thanks,
>> > Ruchith
>> >
>> > --
>> > No virus found in this incoming message.
>> > Checked by AVG Free Edition.
>> > Version: 7.1.405 / Virus Database: 268.11.7/434 - Release Date:
> 8/30/2006
>> >
>> >
>> >
>>
>>
>> --
>> www.ruchith.org
>>
>> --
>> No virus found in this incoming message.
>> Checked by AVG Free Edition.
>> Version: 7.1.405 / Virus Database: 268.11.7/434 - Release Date: 8/30/2006
>>
>>
>>
>
>
> --
> Ajith Ranabahu
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.11.7/434 - Release Date: 8/30/2006
>
RE: [Axis2] making it work
Posted by Jaimin <ja...@transformaticsgroup.com>.
Oops. I did tried rest EPR as well. The error in that case is different.
Error message is "Internal server error" from Axis2 server.
-----Original Message-----
From: Ajith Ranabahu [mailto:ajith.ranabahu@gmail.com]
Sent: Thursday, August 31, 2006 5:50 PM
To: axis-user@ws.apache.org; jaimin.mehta@transformaticsgroup.com
Subject: Re: [Axis2] making it work
Hi,
I'm pretty sure none of you guys saw my reply to this. So here is a hint
Use the rest EPR!
Ajith
On 8/31/06, Jaimin <ja...@transformaticsgroup.com> wrote:
>
>
> It is indeed strange that the call from HappyAxis.jsp client code works
> fine, but not EPR from the browser itself. Even service EPR for
"version",
> let alone operation "getVersion", returns the error message "Requested
> resource not found." Oddly the service is active (which is why
> HappyAxis.jsp is able to obtain version information), but EPR access
returns
> error.
>
> What could explain that service is active, can be accessed using client
API,
> but EPR returns error?
>
> BTW, I repeated this problem after clean re-install of Tomcat and
uploading
> of axis2.war file.
>
>
> -----Original Message-----
> From: Ruchith Fernando [mailto:ruchith.fernando@gmail.com]
> Sent: Thursday, August 31, 2006 4:18 PM
> To: jaimin.mehta@transformaticsgroup.com
> Cc: axis-user@ws.apache.org
> Subject: Re: [Axis2] making it work
>
>
> Are you trying to access the version service with a ServiceClient?
>
> If so following code snippet will let you do it:
>
> OMFactory fac = OMAbstractFactory.getOMFactory();
> OMNamespace omNs =
> fac.createOMNamespace("http://axisversion.sample/xsd", "ns1");
> OMElement payload = fac.createOMElement("getVersion", omNs);
> OMElement value = fac.createOMElement("myValue", omNs);
> payload.addChild(value);
>
> ServiceClient client = new ServiceClient();
> client.getOptions().setTo(new
> EndpointReference("http://localhost:8080/axis2/services/version"));
>
> System.out.println(client.sendReceive(payload));
>
> The happyaxis.jsp constructs the payload (contents of the soap Body)
> as shown above.
>
> Also I just tried changing the URL to
> http://localhost:8080/axis2/services/version/getVersion and
> it worked
> !
>
> Thanks,
> Ruchith
>
> On 8/31/06, Jaimin <ja...@transformaticsgroup.com>
> wrote:
> >
> >
> > Hi Ruchith,
> >
> > Thanks for your support. The address/EPR is same as you suggest.
> >
> > > In Axis2 we do allow one to use a URL to point upto the operation as
> > well. Therefore
> > >
> > http://localhost:8080/axis2/services/version/getVersion
> > should work !
> >
> > Yet it gives error message "requested resource not found".
> >
> > Oddly enough, happyaxis.jsp is able to call the operation successfully,
> but
> > it uses different API (OMElement types, etc.).
> >
> > Regards,
> > Jaimin
> >
> >
> >
> >
> > -----Original Message-----
> > From: Ruchith Fernando
> [mailto:ruchith.fernando@gmail.com]
> > Sent: Thursday, August 31, 2006 12:17 PM
> > To: axis-user@ws.apache.org;
> > jaimin.mehta@transformaticsgroup.com
> > Subject: Re: [Axis2] making it work
> >
> >
> > On 8/31/06, Jaimin <ja...@transformaticsgroup.com>
> > wrote:
> > >
> > >
> > > Hi Ruchith,
> > >
> > > I tried as you suggested below, but the problem continues.
> > >
> > > The service is "version", not "getVersion".
> > > The operation in that service I want to invoke is "getVersion"
> >
> > In Axis2 we do allow one to use a URL to point upto the operation as
> > well. Therefore
> > http://localhost:8080/axis2/services/version/getVersion
> > should work !
> >
> > > The syntactic convention to invoke an operation via an URL, which
works
> > well
> > > for all cases and which I follow, is
> > >
> > >
> >
> <EPR>"?method="<operationName>"&"<parameterName>=<parameterValue>"&"...
> > >
> > > The following works to obtain wsdl of "version" works. But the latter
> to
> > > invoke "getVersion" gives me error.
> > > localhost:8080/axis2/services/version?wsdl
> > >
> > >
> > localhost:8080/axis2/services/version?method=getVersion
> > > The same EPR for axis1.x (replacing "axis2" with "axis") does not give
> me
> > > error.
> >
> > As you can see in the wsdl of the version service the valid address is
> > http://localhost:8080/axis2/services/version
> >
> > I think the above case worked because Axis2 ignored the
> > "?method=getVersion" part.
> >
> > Thanks,
> > Ruchith
> >
> > --
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.1.405 / Virus Database: 268.11.7/434 - Release Date:
8/30/2006
> >
> >
> >
>
>
> --
> www.ruchith.org
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.11.7/434 - Release Date: 8/30/2006
>
>
>
--
Ajith Ranabahu
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.7/434 - Release Date: 8/30/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.7/434 - Release Date: 8/30/2006
Re: [Axis2] making it work
Posted by Ajith Ranabahu <aj...@gmail.com>.
Hi,
I'm pretty sure none of you guys saw my reply to this. So here is a hint
Use the rest EPR!
Ajith
On 8/31/06, Jaimin <ja...@transformaticsgroup.com> wrote:
>
>
> It is indeed strange that the call from HappyAxis.jsp client code works
> fine, but not EPR from the browser itself. Even service EPR for "version",
> let alone operation "getVersion", returns the error message "Requested
> resource not found." Oddly the service is active (which is why
> HappyAxis.jsp is able to obtain version information), but EPR access returns
> error.
>
> What could explain that service is active, can be accessed using client API,
> but EPR returns error?
>
> BTW, I repeated this problem after clean re-install of Tomcat and uploading
> of axis2.war file.
>
>
> -----Original Message-----
> From: Ruchith Fernando [mailto:ruchith.fernando@gmail.com]
> Sent: Thursday, August 31, 2006 4:18 PM
> To: jaimin.mehta@transformaticsgroup.com
> Cc: axis-user@ws.apache.org
> Subject: Re: [Axis2] making it work
>
>
> Are you trying to access the version service with a ServiceClient?
>
> If so following code snippet will let you do it:
>
> OMFactory fac = OMAbstractFactory.getOMFactory();
> OMNamespace omNs =
> fac.createOMNamespace("http://axisversion.sample/xsd", "ns1");
> OMElement payload = fac.createOMElement("getVersion", omNs);
> OMElement value = fac.createOMElement("myValue", omNs);
> payload.addChild(value);
>
> ServiceClient client = new ServiceClient();
> client.getOptions().setTo(new
> EndpointReference("http://localhost:8080/axis2/services/version"));
>
> System.out.println(client.sendReceive(payload));
>
> The happyaxis.jsp constructs the payload (contents of the soap Body)
> as shown above.
>
> Also I just tried changing the URL to
> http://localhost:8080/axis2/services/version/getVersion and
> it worked
> !
>
> Thanks,
> Ruchith
>
> On 8/31/06, Jaimin <ja...@transformaticsgroup.com>
> wrote:
> >
> >
> > Hi Ruchith,
> >
> > Thanks for your support. The address/EPR is same as you suggest.
> >
> > > In Axis2 we do allow one to use a URL to point upto the operation as
> > well. Therefore
> > >
> > http://localhost:8080/axis2/services/version/getVersion
> > should work !
> >
> > Yet it gives error message "requested resource not found".
> >
> > Oddly enough, happyaxis.jsp is able to call the operation successfully,
> but
> > it uses different API (OMElement types, etc.).
> >
> > Regards,
> > Jaimin
> >
> >
> >
> >
> > -----Original Message-----
> > From: Ruchith Fernando
> [mailto:ruchith.fernando@gmail.com]
> > Sent: Thursday, August 31, 2006 12:17 PM
> > To: axis-user@ws.apache.org;
> > jaimin.mehta@transformaticsgroup.com
> > Subject: Re: [Axis2] making it work
> >
> >
> > On 8/31/06, Jaimin <ja...@transformaticsgroup.com>
> > wrote:
> > >
> > >
> > > Hi Ruchith,
> > >
> > > I tried as you suggested below, but the problem continues.
> > >
> > > The service is "version", not "getVersion".
> > > The operation in that service I want to invoke is "getVersion"
> >
> > In Axis2 we do allow one to use a URL to point upto the operation as
> > well. Therefore
> > http://localhost:8080/axis2/services/version/getVersion
> > should work !
> >
> > > The syntactic convention to invoke an operation via an URL, which works
> > well
> > > for all cases and which I follow, is
> > >
> > >
> >
> <EPR>"?method="<operationName>"&"<parameterName>=<parameterValue>"&"...
> > >
> > > The following works to obtain wsdl of "version" works. But the latter
> to
> > > invoke "getVersion" gives me error.
> > > localhost:8080/axis2/services/version?wsdl
> > >
> > >
> > localhost:8080/axis2/services/version?method=getVersion
> > > The same EPR for axis1.x (replacing "axis2" with "axis") does not give
> me
> > > error.
> >
> > As you can see in the wsdl of the version service the valid address is
> > http://localhost:8080/axis2/services/version
> >
> > I think the above case worked because Axis2 ignored the
> > "?method=getVersion" part.
> >
> > Thanks,
> > Ruchith
> >
> > --
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.1.405 / Virus Database: 268.11.7/434 - Release Date: 8/30/2006
> >
> >
> >
>
>
> --
> www.ruchith.org
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.11.7/434 - Release Date: 8/30/2006
>
>
>
--
Ajith Ranabahu
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
RE: [Axis2] making it work
Posted by Jaimin <ja...@transformaticsgroup.com>.
It is indeed strange that the call from HappyAxis.jsp client code works
fine, but not EPR from the browser itself. Even service EPR for "version",
let alone operation "getVersion", returns the error message "Requested
resource not found." Oddly the service is active (which is why
HappyAxis.jsp is able to obtain version information), but EPR access returns
error.
What could explain that service is active, can be accessed using client API,
but EPR returns error?
BTW, I repeated this problem after clean re-install of Tomcat and uploading
of axis2.war file.
-----Original Message-----
From: Ruchith Fernando [mailto:ruchith.fernando@gmail.com]
Sent: Thursday, August 31, 2006 4:18 PM
To: jaimin.mehta@transformaticsgroup.com
Cc: axis-user@ws.apache.org
Subject: Re: [Axis2] making it work
Are you trying to access the version service with a ServiceClient?
If so following code snippet will let you do it:
OMFactory fac = OMAbstractFactory.getOMFactory();
OMNamespace omNs =
fac.createOMNamespace("http://axisversion.sample/xsd", "ns1");
OMElement payload = fac.createOMElement("getVersion", omNs);
OMElement value = fac.createOMElement("myValue", omNs);
payload.addChild(value);
ServiceClient client = new ServiceClient();
client.getOptions().setTo(new
EndpointReference("http://localhost:8080/axis2/services/version"));
System.out.println(client.sendReceive(payload));
The happyaxis.jsp constructs the payload (contents of the soap Body)
as shown above.
Also I just tried changing the URL to
http://localhost:8080/axis2/services/version/getVersion and it worked
!
Thanks,
Ruchith
On 8/31/06, Jaimin <ja...@transformaticsgroup.com> wrote:
>
>
> Hi Ruchith,
>
> Thanks for your support. The address/EPR is same as you suggest.
>
> > In Axis2 we do allow one to use a URL to point upto the operation as
> well. Therefore
> >
> http://localhost:8080/axis2/services/version/getVersion
> should work !
>
> Yet it gives error message "requested resource not found".
>
> Oddly enough, happyaxis.jsp is able to call the operation successfully,
but
> it uses different API (OMElement types, etc.).
>
> Regards,
> Jaimin
>
>
>
>
> -----Original Message-----
> From: Ruchith Fernando [mailto:ruchith.fernando@gmail.com]
> Sent: Thursday, August 31, 2006 12:17 PM
> To: axis-user@ws.apache.org;
> jaimin.mehta@transformaticsgroup.com
> Subject: Re: [Axis2] making it work
>
>
> On 8/31/06, Jaimin <ja...@transformaticsgroup.com>
> wrote:
> >
> >
> > Hi Ruchith,
> >
> > I tried as you suggested below, but the problem continues.
> >
> > The service is "version", not "getVersion".
> > The operation in that service I want to invoke is "getVersion"
>
> In Axis2 we do allow one to use a URL to point upto the operation as
> well. Therefore
> http://localhost:8080/axis2/services/version/getVersion
> should work !
>
> > The syntactic convention to invoke an operation via an URL, which works
> well
> > for all cases and which I follow, is
> >
> >
> <EPR>"?method="<operationName>"&"<parameterName>=<parameterValue>"&"...
> >
> > The following works to obtain wsdl of "version" works. But the latter
to
> > invoke "getVersion" gives me error.
> > localhost:8080/axis2/services/version?wsdl
> >
> >
> localhost:8080/axis2/services/version?method=getVersion
> > The same EPR for axis1.x (replacing "axis2" with "axis") does not give
me
> > error.
>
> As you can see in the wsdl of the version service the valid address is
> http://localhost:8080/axis2/services/version
>
> I think the above case worked because Axis2 ignored the
> "?method=getVersion" part.
>
> Thanks,
> Ruchith
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.11.7/434 - Release Date: 8/30/2006
>
>
>
--
www.ruchith.org
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.7/434 - Release Date: 8/30/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.7/434 - Release Date: 8/30/2006
Re: [Axis2] making it work
Posted by Ruchith Fernando <ru...@gmail.com>.
Are you trying to access the version service with a ServiceClient?
If so following code snippet will let you do it:
OMFactory fac = OMAbstractFactory.getOMFactory();
OMNamespace omNs =
fac.createOMNamespace("http://axisversion.sample/xsd", "ns1");
OMElement payload = fac.createOMElement("getVersion", omNs);
OMElement value = fac.createOMElement("myValue", omNs);
payload.addChild(value);
ServiceClient client = new ServiceClient();
client.getOptions().setTo(new
EndpointReference("http://localhost:8080/axis2/services/version"));
System.out.println(client.sendReceive(payload));
The happyaxis.jsp constructs the payload (contents of the soap Body)
as shown above.
Also I just tried changing the URL to
http://localhost:8080/axis2/services/version/getVersion and it worked
!
Thanks,
Ruchith
On 8/31/06, Jaimin <ja...@transformaticsgroup.com> wrote:
>
>
> Hi Ruchith,
>
> Thanks for your support. The address/EPR is same as you suggest.
>
> > In Axis2 we do allow one to use a URL to point upto the operation as
> well. Therefore
> >
> http://localhost:8080/axis2/services/version/getVersion
> should work !
>
> Yet it gives error message "requested resource not found".
>
> Oddly enough, happyaxis.jsp is able to call the operation successfully, but
> it uses different API (OMElement types, etc.).
>
> Regards,
> Jaimin
>
>
>
>
> -----Original Message-----
> From: Ruchith Fernando [mailto:ruchith.fernando@gmail.com]
> Sent: Thursday, August 31, 2006 12:17 PM
> To: axis-user@ws.apache.org;
> jaimin.mehta@transformaticsgroup.com
> Subject: Re: [Axis2] making it work
>
>
> On 8/31/06, Jaimin <ja...@transformaticsgroup.com>
> wrote:
> >
> >
> > Hi Ruchith,
> >
> > I tried as you suggested below, but the problem continues.
> >
> > The service is "version", not "getVersion".
> > The operation in that service I want to invoke is "getVersion"
>
> In Axis2 we do allow one to use a URL to point upto the operation as
> well. Therefore
> http://localhost:8080/axis2/services/version/getVersion
> should work !
>
> > The syntactic convention to invoke an operation via an URL, which works
> well
> > for all cases and which I follow, is
> >
> >
> <EPR>"?method="<operationName>"&"<parameterName>=<parameterValue>"&"...
> >
> > The following works to obtain wsdl of "version" works. But the latter to
> > invoke "getVersion" gives me error.
> > localhost:8080/axis2/services/version?wsdl
> >
> >
> localhost:8080/axis2/services/version?method=getVersion
> > The same EPR for axis1.x (replacing "axis2" with "axis") does not give me
> > error.
>
> As you can see in the wsdl of the version service the valid address is
> http://localhost:8080/axis2/services/version
>
> I think the above case worked because Axis2 ignored the
> "?method=getVersion" part.
>
> Thanks,
> Ruchith
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.11.7/434 - Release Date: 8/30/2006
>
>
>
--
www.ruchith.org
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
RE: [Axis2] making it work
Posted by Jaimin <ja...@transformaticsgroup.com>.
Hi Ruchith,
Thanks for your support. The address/EPR is same as you suggest.
> In Axis2 we do allow one to use a URL to point upto the operation as
well. Therefore
> http://localhost:8080/axis2/services/version/getVersion should work !
Yet it gives error message "requested resource not found".
Oddly enough, happyaxis.jsp is able to call the operation successfully, but
it uses different API (OMElement types, etc.).
Regards,
Jaimin
-----Original Message-----
From: Ruchith Fernando [mailto:ruchith.fernando@gmail.com]
Sent: Thursday, August 31, 2006 12:17 PM
To: axis-user@ws.apache.org; jaimin.mehta@transformaticsgroup.com
Subject: Re: [Axis2] making it work
On 8/31/06, Jaimin <ja...@transformaticsgroup.com> wrote:
>
>
> Hi Ruchith,
>
> I tried as you suggested below, but the problem continues.
>
> The service is "version", not "getVersion".
> The operation in that service I want to invoke is "getVersion"
In Axis2 we do allow one to use a URL to point upto the operation as
well. Therefore
http://localhost:8080/axis2/services/version/getVersion should work !
> The syntactic convention to invoke an operation via an URL, which works
well
> for all cases and which I follow, is
>
> <EPR>"?method="<operationName>"&"<parameterName>=<parameterValue>"&"...
>
> The following works to obtain wsdl of "version" works. But the latter to
> invoke "getVersion" gives me error.
> localhost:8080/axis2/services/version?wsdl
>
> localhost:8080/axis2/services/version?method=getVersion
> The same EPR for axis1.x (replacing "axis2" with "axis") does not give me
> error.
As you can see in the wsdl of the version service the valid address is
http://localhost:8080/axis2/services/version
I think the above case worked because Axis2 ignored the
"?method=getVersion" part.
Thanks,
Ruchith
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.7/434 - Release Date: 8/30/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.7/434 - Release Date: 8/30/2006
Re: [Axis2] making it work
Posted by Ruchith Fernando <ru...@gmail.com>.
On 8/31/06, Jaimin <ja...@transformaticsgroup.com> wrote:
>
>
> Hi Ruchith,
>
> I tried as you suggested below, but the problem continues.
>
> The service is "version", not "getVersion".
> The operation in that service I want to invoke is "getVersion"
In Axis2 we do allow one to use a URL to point upto the operation as
well. Therefore
http://localhost:8080/axis2/services/version/getVersion should work !
> The syntactic convention to invoke an operation via an URL, which works well
> for all cases and which I follow, is
>
> <EPR>"?method="<operationName>"&"<parameterName>=<parameterValue>"&"...
>
> The following works to obtain wsdl of "version" works. But the latter to
> invoke "getVersion" gives me error.
> localhost:8080/axis2/services/version?wsdl
>
> localhost:8080/axis2/services/version?method=getVersion
> The same EPR for axis1.x (replacing "axis2" with "axis") does not give me
> error.
As you can see in the wsdl of the version service the valid address is
http://localhost:8080/axis2/services/version
I think the above case worked because Axis2 ignored the
"?method=getVersion" part.
Thanks,
Ruchith
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
RE: [Axis2] making it work
Posted by Jaimin <ja...@transformaticsgroup.com>.
Hi Ruchith,
I tried as you suggested below, but the problem continues.
The service is "version", not "getVersion".
The operation in that service I want to invoke is "getVersion"
The syntactic convention to invoke an operation via an URL, which works well
for all cases and which I follow, is
<EPR>"?method="<operationName>"&"<parameterName>=<parameterValue>"&"...
The following works to obtain wsdl of "version" works. But the latter to
invoke "getVersion" gives me error.
localhost:8080/axis2/services/version?wsdl
localhost:8080/axis2/services/version?method=getVersion
The same EPR for axis1.x (replacing "axis2" with "axis") does not give me
error.
So what's the basic difference between axis1.x and axis2 to explain the
above error.
Thanks,
Jaimin
-----Original Message-----
From: Ruchith Fernando [mailto:ruchith.fernando@gmail.com]
Sent: Thursday, August 31, 2006 12:00 AM
To: axis-user@ws.apache.org; jaimin.mehta@transformaticsgroup.com
Subject: Re: [Axis2] making it work
Seems like your service URL is incorrect. Please try using :
http://localhost:8080/axis2/services/version/getVersion
Thanks,
Ruchith
On 8/30/06, Jaimin <ja...@transformaticsgroup.com> wrote:
>
>
> I uploaded axis2.war onto Tomcat 5.5.17. I can see Axis2 home page,
service
> listed includes "version", and can get to its wsdl file from the browser.
> But call to method "getVersion" fails with the following error message:
>
> Requested resource not found!
> The URL is
> http://localhost:8080/axis2/services/version?method=getVersion
>
> What am I doing wrong?!?!!?! Something very simple, eh?
>
> Any help appreciated as I am new to Axis2. (Things were fine with Axis1).
>
>
>
--
www.ruchith.org
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.7/432 - Release Date: 8/29/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.7/432 - Release Date: 8/29/2006
Re: [Axis2] making it work
Posted by Ruchith Fernando <ru...@gmail.com>.
Seems like your service URL is incorrect. Please try using :
http://localhost:8080/axis2/services/version/getVersion
Thanks,
Ruchith
On 8/30/06, Jaimin <ja...@transformaticsgroup.com> wrote:
>
>
> I uploaded axis2.war onto Tomcat 5.5.17. I can see Axis2 home page, service
> listed includes "version", and can get to its wsdl file from the browser.
> But call to method "getVersion" fails with the following error message:
>
> Requested resource not found!
> The URL is
> http://localhost:8080/axis2/services/version?method=getVersion
>
> What am I doing wrong?!?!!?! Something very simple, eh?
>
> Any help appreciated as I am new to Axis2. (Things were fine with Axis1).
>
>
>
--
www.ruchith.org
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org