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 Deepal Jayasinghe <de...@opensource.lk> on 2006/06/01 08:03:50 UTC
Re: axis2 servlet, trouble generating wsdl
Hi Jennifer;
pls have a look at;
http://www.wso2.net/faq/apache_axis2/q9
GOSSE Romain (Assistant Exterieur) wrote:
> Have you tried
> <messageReceiver
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/> ?
>
> -----Message d'origine-----
> *De :* JJC [mailto:jen2chen@yahoo.com]
> *Envoyé :* mercredi 31 mai 2006 17:06
> *À :* Axis Users
> *Objet :* axis2 servlet, trouble generating wsdl
>
>
> Hi All,
>
> 1) I created a simple web service by following the user's guide
> from ws.apache.org -
>
> http://ws.apache.org/axis2/0_95/userguide2.html
>
> 2) My service basically has a method to echo back the input
> String array -
>
> public Object[] echoInput( Object[] inParams )
> {
> for ( int i=0; i<inParams.length; ++i )
> {
> log.info( i + "," + inParams[i] );
> }
>
> return inParams;
> }
>
> 3) My services.xml is as below. I left the messageReceiver the
> same as in the user's guide.
>
> <service >
> <description>
> </description>
> <parameter name="ServiceClass"
> locked="false">edu.princeton.bb.ws.SID.puBBSIDService</parameter>
> <operation name="echoInput">
> <messageReceiver
> class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
> </operation>
> </service>
>
>
> 4) I compiled and created the puBBSIDService.aar and deployed
> successfully.
>
> 5) When I tried to access the wsdl for this service, which I
> think is supposed to be automatically generated I get the
> following error -
>
><error>
> <description>Unable to generate WSDL for this service</description>
> <reason>Either user has not dropped the wsdl into META-INF or operations use message receivers other than RPC.</reason>
></error>
>
>6) How can I fix the problem?? Any help is greatly
> appreciated.
>
>Thanks...
>
>Jennifer J. Chen
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
--
Thanks,
Deepal
................................................................
~Future is Open~
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: axis2 servlet, trouble generating wsdl
Posted by Davanum Srinivas <da...@gmail.com>.
Jen,
weird. That would qualify for creating a new bug report.
http://issues.apache.org/jira/
thanks,
dims
On 6/1/06, JJC <je...@yahoo.com> wrote:
>
> Hi Deepal,
>
> There seems to be additional problems with service deployment that I don't
> quite understand -
>
> 1) From the first message below I have an operation "echoInput" for my
> service puBBSIDService.
>
> 2) I removed this operation from my Java source and replaced it with an
> operation "testLDAPAuthen" with the same input type and return. I also have
> "setOperationContext" where it will log the incoming message.
>
> public void setOperationContext (OperationContext opctx)
> {
> log.info( "puBBSIDService(), setOperationContext" );
> }
>
> public String[] testLDAPAuthen( String[] inParams )
> {
> String[] yingYang = new String[inParams.length];
>
> String username = inParams[0];
> String password = inParams[1];
>
> yingYang[0] = "AOK";
> yingYang[1] = "AOK";
> return yingYang;
> }
>
> 3) I modified my services.xml
>
> <service >
> <description>
> </description>
> <parameter name="ServiceClass"
> locked="false">edu.princeton.bb.ws.SID.puBBSIDService</parameter>
> <operation name="testLDAPAuthen">
>
> <messageReceiver
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
> </operation>
> </service>
>
> 4) I recompiled, created my aar file, copied it into the services directory
> and stopped and started Tomcat.
>
> 5) The problem -
> a) When I go to
> http://localhost:8080/axis2/services/listServices, the
> service is active and the operation "echoInput" which is no longer in my
> puBBSIDService class is still available. From my php client, when I tried
> to access this operation "echoInput", the request goes thru because the
> "setOperationContext" log message is in the log file. However when I call
> the operation "testLDAPAuthen" the request doesn't even goes thru.
>
> Service Status : Active
> Available operations
> testLDAPAuthen
> echoInput 6) What is this problem? Is there something that is not being
> cleared, even though Tomcat is restarted?
>
> Thanks for possible inputs for this problem or please clarify...
>
> Jennifer J. Chen
>
>
>
>
>
> Deepal Jayasinghe <de...@opensource.lk> wrote:
>
> Hi Jennifer;
> pls have a look at;
>
> http://www.wso2.net/faq/apache_axis2/q9
>
> GOSSE Romain (Assistant Exterieur) wrote:
>
> > Have you tried
> >
> >
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
> ?
> >
> > -----Message d'origine-----
> > *De :* JJC [mailto:jen2chen@yahoo.com]
> > *Envoy� :* mercredi 31 mai 2006 17:06
> > *� :* Axis Users
>
> > *Objet :* axis2 servlet, trouble generating wsdl
> >
> >
> > Hi All,
> >
> > 1) I created a simple web service by following the user's guide
> > from ws.apache.org -
> >
> > http://ws.apache.org/axis2/0_95/userguide2.html
> >
> > 2) My service basically has a method to echo back the input
> > String array -
> >
> > public Object[] echoInput( Object[] inParams )
> > {
> > for ( int i=0; i
> > {
> > log.info( i + "," + inParams[i] );
> > }
> >
> > return inParams;
> > }
> >
> > 3) My services.xml is as below. I left the messageReceiver the
> > same as in the user's guide.
> >
> >
> >
> >
> >
> > locked="false">edu.princeton.bb.ws.SID.puBBSIDService
> >
> >
> >
> class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
> >
> >
> >
> >
> > 4) I compiled and created the puBBSIDService.aar and deployed
> > successfully.
> >
> > 5) When I tried to access the wsdl for this service, which I
> > think is supposed to be automatically generated I get the
> > following error -
> >
> >
> > Unable to generate WSDL for this service
> > Either user has not dropped the wsdl into META-INF or operations use
> message receivers other than RPC.
> >
> >
> >6) How can I fix the problem?? Any help is greatly
> > appreciated.
> >
> >Thanks...
> >
> >Jennifer J. Chen
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
>
> --
> Thanks,
> Deepal
> ................................................................
> ~Future is Open~
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
--
Davanum Srinivas : http://wso2.com/blogs/
Re: axis2 servlet, trouble generating wsdl
Posted by JJC <je...@yahoo.com>.
Hi Deepal,
There seems to be additional problems with service deployment that I don't quite understand -
1) From the first message below I have an operation "echoInput" for my service puBBSIDService.
2) I removed this operation from my Java source and replaced it with an operation "testLDAPAuthen" with the same input type and return. I also have "setOperationContext" where it will log the incoming message.
public void setOperationContext (OperationContext opctx)
{
log.info( "puBBSIDService(), setOperationContext" );
}
public String[] testLDAPAuthen( String[] inParams )
{
String[] yingYang = new String[inParams.length];
String username = inParams[0];
String password = inParams[1];
yingYang[0] = "AOK";
yingYang[1] = "AOK";
return yingYang;
}
3) I modified my services.xml
<service >
<description>
</description>
<parameter name="ServiceClass" locked="false">edu.princeton.bb.ws.SID.puBBSIDService</parameter>
<operation name="testLDAPAuthen">
<messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
</operation>
</service>
4) I recompiled, created my aar file, copied it into the services directory and stopped and started Tomcat.
5) The problem -
a) When I go to http://localhost:8080/axis2/services/listServices, the service is active and the operation "echoInput" which is no longer in my puBBSIDService class is still available. From my php client, when I tried to access this operation "echoInput", the request goes thru because the "setOperationContext" log message is in the log file. However when I call the operation "testLDAPAuthen" the request doesn't even goes thru.
Service Status : Active
Available operations
testLDAPAuthen
echoInput
6) What is this problem? Is there something that is not being cleared, even though Tomcat is restarted?
Thanks for possible inputs for this problem or please clarify...
Jennifer J. Chen
Deepal Jayasinghe <de...@opensource.lk> wrote: Hi Jennifer;
pls have a look at;
http://www.wso2.net/faq/apache_axis2/q9
GOSSE Romain (Assistant Exterieur) wrote:
> Have you tried
>
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/> ?
>
> -----Message d'origine-----
> *De :* JJC [mailto:jen2chen@yahoo.com]
> *Envoy� :* mercredi 31 mai 2006 17:06
> *� :* Axis Users
> *Objet :* axis2 servlet, trouble generating wsdl
>
>
> Hi All,
>
> 1) I created a simple web service by following the user's guide
> from ws.apache.org -
>
> http://ws.apache.org/axis2/0_95/userguide2.html
>
> 2) My service basically has a method to echo back the input
> String array -
>
> public Object[] echoInput( Object[] inParams )
> {
> for ( int i=0; i
> {
> log.info( i + "," + inParams[i] );
> }
>
> return inParams;
> }
>
> 3) My services.xml is as below. I left the messageReceiver the
> same as in the user's guide.
>
>
>
>
>
> locked="false">edu.princeton.bb.ws.SID.puBBSIDService
>
>
> class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
>
>
>
>
> 4) I compiled and created the puBBSIDService.aar and deployed
> successfully.
>
> 5) When I tried to access the wsdl for this service, which I
> think is supposed to be automatically generated I get the
> following error -
>
>
> Unable to generate WSDL for this service
> Either user has not dropped the wsdl into META-INF or operations use message receivers other than RPC.
>
>
>6) How can I fix the problem?? Any help is greatly
> appreciated.
>
>Thanks...
>
>Jennifer J. Chen
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
--
Thanks,
Deepal
................................................................
~Future is Open~
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com