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 Paulo Carvalho <pj...@gmail.com> on 2008/02/12 10:24:33 UTC

Unable to generate WSDL for this service

Hello

I am new using Axis2 and I am having a problem. I already search over the
net to find the solution for my problem, but everything looks fine for me.

1 - I am using the last version of Axis2.

2 - I have a class called MyApp (in the app package) with the method Send

3 - My services.xml file is the following one:

     <serviceGroup>
       <service name="MyService">
            <description>My service</description>
            <parameter name="useOriginalWSDL">false</parameter>
            <parameter name="ServiceClass" locked="false">app.MyApp
</parameter>
            <operation name="Send">
                <messageReceiver class="
org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
            </operation>
       </service>
     </serviceGroup>

4 - The webservice is deployed with success

5 - When I try to access to this WSDL (
http://localhost:8084/MyWS/services/MyService?wsdl) I have the following
message/reason appearing on my browser instead of the WSDL:


<error>
 <description>Unable to generate WSDL for this service</description>
 <reason>
  If you wish Axis2 to automatically generate the WSDL, then please use one
of the RPC message receivers for the service(s)/operation(s) in services.xml.
If you have added a custom WSDL in the META-INF directory, then please make
sure that the name of the service in services.xml (
/serviceGroup/service/@name) is the same as in the custom wsdl's service
name (/wsdl:definitions/wsdl:service/@name).
 </reason>
</error>


Can anyone help me with that?


Thanks

Best regards

Paulo

Re: Unable to generate WSDL for this service

Posted by Paulo Carvalho <pj...@gmail.com>.
Yes, thank you!

regards.


On 2/12/08, Paul Fremantle <pz...@gmail.com> wrote:
>
> Yes the answer is fairly simple. In the axis2.xml it defines "default"
> message receivers. You only overrode the MR for one operation. Now
> admittedly you only had the one operation, but Axis2 didn't realise.
> So it looked at the service, saw there is no MR defined for the
> service, looked at the default. The default is RawXML, which it cannot
> create WSDL for, so it decided that it couldn't generate WSDL.
>
> Does that make sense?
>
> Paul
>
> On Feb 12, 2008 2:29 PM, Paulo Carvalho <pj...@gmail.com> wrote:
> > Hello
> >
> > Thanks for your quick answer. Your solution have resolved my problem.
> > But I would like to know why. Do you know?
> >
> > thanks again
> >
> > regards
> >
> >
> >
> > On 2/12/08, Paul Fremantle <pz...@gmail.com> wrote:
> > >
> > >
> > >
> > > Rather than specifying a per-operation message receiver, try using the
> > > standard message receiver config from the sample pojo service:
> > > <messageReceivers>
> > >        <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
> > >
> > > class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
> > >        <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
> > >
> > > class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
> > > </messageReceivers>
> > >
> > > Paul
> > >
> > > On Feb 12, 2008 9:24 AM, Paulo Carvalho <pj...@gmail.com> wrote:
> > > >
> > > > Hello
> > > >
> > > > I am new using Axis2 and I am having a problem. I already search
> over
> > the
> > > > net to find the solution for my problem, but everything looks fine
> for
> > me.
> > > >
> > > > 1 - I am using the last version of Axis2.
> > > >
> > > > 2 - I have a class called MyApp (in the app package) with the method
> > Send
> > > >
> > > > 3 - My services.xml file is the following one:
> > > >
> > > >      <serviceGroup>
> > > >        <service name="MyService">
> > > >             <description>My service</description>
> > > >             <parameter name="useOriginalWSDL">false</parameter>
> > > >              <parameter name="ServiceClass"
> > > > locked="false">app.MyApp</parameter>
> > > >             <operation name="Send">
> > > >                 <messageReceiver
> > > > class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
> > > >              </operation>
> > > >        </service>
> > > >      </serviceGroup>
> > > >
> > > > 4 - The webservice is deployed with success
> > > >
> > > > 5 - When I try to access to this WSDL
> > > > (http://localhost:8084/MyWS/services/MyService?wsdl) I have the
> > following
> > > > message/reason appearing on my browser instead of the WSDL:
> > > >
> > > >
> > > > <error>
> > > >  <description>Unable to generate WSDL for this service</description>
> > > >  <reason>
> > > >   If you wish Axis2 to automatically generate the WSDL, then please
> use
> > one
> > > > of the RPC message receivers for the service(s)/operation(s) in
> > > > services.xml. If you have added a custom WSDL in the META-INF
> directory,
> > > > then please make sure that the name of the service in services.xml
> > > > (/serviceGroup/service/@name) is the same as in the custom wsdl's
> > service
> > > > name (/wsdl:definitions/wsdl:service/@name).
> > > >   </reason>
> > > > </error>
> > > >
> > > >
> > > > Can anyone help me with that?
> > > >
> > > >
> > > > Thanks
> > > >
> > > > Best regards
> > > >
> > > > Paulo
> > >
> > >
> > >
> > > --
> > > Paul Fremantle
> > > Co-Founder and VP of Technical Sales, WSO2
> > > OASIS WS-RX TC Co-chair
> > >
> > > blog: http://pzf.fremantle.org
> > > paul@wso2.com
> > >
> > > "Oxygenating the Web Service Platform", www.wso2.com
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> >
> >
> > --
> > Paulo Carvalho
> > 1 rue du Chateau
> > 57710 Aumetz
> > France
> > www.antikuado.com
> > www.sunofportugal.com
>
>
>
> --
> Paul Fremantle
> Co-Founder and VP of Technical Sales, WSO2
> OASIS WS-RX TC Co-chair
>
> blog: http://pzf.fremantle.org
> paul@wso2.com
>
> "Oxygenating the Web Service Platform", www.wso2.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Paulo Carvalho
1 rue du Chateau
57710 Aumetz
France
www.antikuado.com
www.sunofportugal.com

Re: Unable to generate WSDL for this service

Posted by Paul Fremantle <pz...@gmail.com>.
Yes the answer is fairly simple. In the axis2.xml it defines "default"
message receivers. You only overrode the MR for one operation. Now
admittedly you only had the one operation, but Axis2 didn't realise.
So it looked at the service, saw there is no MR defined for the
service, looked at the default. The default is RawXML, which it cannot
create WSDL for, so it decided that it couldn't generate WSDL.

Does that make sense?

Paul

On Feb 12, 2008 2:29 PM, Paulo Carvalho <pj...@gmail.com> wrote:
> Hello
>
> Thanks for your quick answer. Your solution have resolved my problem.
> But I would like to know why. Do you know?
>
> thanks again
>
> regards
>
>
>
> On 2/12/08, Paul Fremantle <pz...@gmail.com> wrote:
> >
> >
> >
> > Rather than specifying a per-operation message receiver, try using the
> > standard message receiver config from the sample pojo service:
> > <messageReceivers>
> >        <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
> >
> > class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
> >        <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
> >
> > class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
> > </messageReceivers>
> >
> > Paul
> >
> > On Feb 12, 2008 9:24 AM, Paulo Carvalho <pj...@gmail.com> wrote:
> > >
> > > Hello
> > >
> > > I am new using Axis2 and I am having a problem. I already search over
> the
> > > net to find the solution for my problem, but everything looks fine for
> me.
> > >
> > > 1 - I am using the last version of Axis2.
> > >
> > > 2 - I have a class called MyApp (in the app package) with the method
> Send
> > >
> > > 3 - My services.xml file is the following one:
> > >
> > >      <serviceGroup>
> > >        <service name="MyService">
> > >             <description>My service</description>
> > >             <parameter name="useOriginalWSDL">false</parameter>
> > >              <parameter name="ServiceClass"
> > > locked="false">app.MyApp</parameter>
> > >             <operation name="Send">
> > >                 <messageReceiver
> > > class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
> > >              </operation>
> > >        </service>
> > >      </serviceGroup>
> > >
> > > 4 - The webservice is deployed with success
> > >
> > > 5 - When I try to access to this WSDL
> > > (http://localhost:8084/MyWS/services/MyService?wsdl) I have the
> following
> > > message/reason appearing on my browser instead of the WSDL:
> > >
> > >
> > > <error>
> > >  <description>Unable to generate WSDL for this service</description>
> > >  <reason>
> > >   If you wish Axis2 to automatically generate the WSDL, then please use
> one
> > > of the RPC message receivers for the service(s)/operation(s) in
> > > services.xml. If you have added a custom WSDL in the META-INF directory,
> > > then please make sure that the name of the service in services.xml
> > > (/serviceGroup/service/@name) is the same as in the custom wsdl's
> service
> > > name (/wsdl:definitions/wsdl:service/@name).
> > >   </reason>
> > > </error>
> > >
> > >
> > > Can anyone help me with that?
> > >
> > >
> > > Thanks
> > >
> > > Best regards
> > >
> > > Paulo
> >
> >
> >
> > --
> > Paul Fremantle
> > Co-Founder and VP of Technical Sales, WSO2
> > OASIS WS-RX TC Co-chair
> >
> > blog: http://pzf.fremantle.org
> > paul@wso2.com
> >
> > "Oxygenating the Web Service Platform", www.wso2.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
>
> --
> Paulo Carvalho
> 1 rue du Chateau
> 57710 Aumetz
> France
> www.antikuado.com
> www.sunofportugal.com



-- 
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
paul@wso2.com

"Oxygenating the Web Service Platform", www.wso2.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Unable to generate WSDL for this service

Posted by Paulo Carvalho <pj...@gmail.com>.
Hello

Thanks for your quick answer. Your solution have resolved my problem.
But I would like to know why. Do you know?

thanks again

regards


On 2/12/08, Paul Fremantle <pz...@gmail.com> wrote:
>
> Rather than specifying a per-operation message receiver, try using the
> standard message receiver config from the sample pojo service:
> <messageReceivers>
>        <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
>
> class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
>        <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
>
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
> </messageReceivers>
>
> Paul
>
> On Feb 12, 2008 9:24 AM, Paulo Carvalho <pj...@gmail.com> wrote:
> >
> > Hello
> >
> > I am new using Axis2 and I am having a problem. I already search over
> the
> > net to find the solution for my problem, but everything looks fine for
> me.
> >
> > 1 - I am using the last version of Axis2.
> >
> > 2 - I have a class called MyApp (in the app package) with the method
> Send
> >
> > 3 - My services.xml file is the following one:
> >
> >      <serviceGroup>
> >        <service name="MyService">
> >             <description>My service</description>
> >             <parameter name="useOriginalWSDL">false</parameter>
> >              <parameter name="ServiceClass"
> > locked="false">app.MyApp</parameter>
> >             <operation name="Send">
> >                 <messageReceiver
> > class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
> >              </operation>
> >        </service>
> >      </serviceGroup>
> >
> > 4 - The webservice is deployed with success
> >
> > 5 - When I try to access to this WSDL
> > (http://localhost:8084/MyWS/services/MyService?wsdl) I have the
> following
> > message/reason appearing on my browser instead of the WSDL:
> >
> >
> > <error>
> >  <description>Unable to generate WSDL for this service</description>
> >  <reason>
> >   If you wish Axis2 to automatically generate the WSDL, then please use
> one
> > of the RPC message receivers for the service(s)/operation(s) in
> > services.xml. If you have added a custom WSDL in the META-INF directory,
> > then please make sure that the name of the service in services.xml
> > (/serviceGroup/service/@name) is the same as in the custom wsdl's
> service
> > name (/wsdl:definitions/wsdl:service/@name).
> >   </reason>
> > </error>
> >
> >
> > Can anyone help me with that?
> >
> >
> > Thanks
> >
> > Best regards
> >
> > Paulo
>
>
>
> --
> Paul Fremantle
> Co-Founder and VP of Technical Sales, WSO2
> OASIS WS-RX TC Co-chair
>
> blog: http://pzf.fremantle.org
> paul@wso2.com
>
> "Oxygenating the Web Service Platform", www.wso2.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Paulo Carvalho
1 rue du Chateau
57710 Aumetz
France
www.antikuado.com
www.sunofportugal.com

Re: Unable to generate WSDL for this service

Posted by Paul Fremantle <pz...@gmail.com>.
Rather than specifying a per-operation message receiver, try using the
standard message receiver config from the sample pojo service:
 <messageReceivers>
        <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"

class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
        <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"

class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
</messageReceivers>

Paul

On Feb 12, 2008 9:24 AM, Paulo Carvalho <pj...@gmail.com> wrote:
>
> Hello
>
> I am new using Axis2 and I am having a problem. I already search over the
> net to find the solution for my problem, but everything looks fine for me.
>
> 1 - I am using the last version of Axis2.
>
> 2 - I have a class called MyApp (in the app package) with the method Send
>
> 3 - My services.xml file is the following one:
>
>      <serviceGroup>
>        <service name="MyService">
>             <description>My service</description>
>             <parameter name="useOriginalWSDL">false</parameter>
>              <parameter name="ServiceClass"
> locked="false">app.MyApp</parameter>
>             <operation name="Send">
>                 <messageReceiver
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>              </operation>
>        </service>
>      </serviceGroup>
>
> 4 - The webservice is deployed with success
>
> 5 - When I try to access to this WSDL
> (http://localhost:8084/MyWS/services/MyService?wsdl) I have the following
> message/reason appearing on my browser instead of the WSDL:
>
>
> <error>
>  <description>Unable to generate WSDL for this service</description>
>  <reason>
>   If you wish Axis2 to automatically generate the WSDL, then please use one
> of the RPC message receivers for the service(s)/operation(s) in
> services.xml. If you have added a custom WSDL in the META-INF directory,
> then please make sure that the name of the service in services.xml
> (/serviceGroup/service/@name) is the same as in the custom wsdl's service
> name (/wsdl:definitions/wsdl:service/@name).
>   </reason>
> </error>
>
>
> Can anyone help me with that?
>
>
> Thanks
>
> Best regards
>
> Paulo



-- 
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
paul@wso2.com

"Oxygenating the Web Service Platform", www.wso2.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Unable to generate WSDL for this service

Posted by Paulo Carvalho <pj...@gmail.com>.
Thanks for your answer.
I had already try it before with no positive result.


On 2/13/08, Jose Carlo Fabian <ca...@voxsant.com> wrote:
>
> Hello,
>
> try setting userOriginalWSDL to true, maybe that would help.
>
> Carlo Fabian
> Paulo Carvalho wrote:
>
>
> Hello
>
> I am new using Axis2 and I am having a problem. I already search over the
> net to find the solution for my problem, but everything looks fine for me.
>
> 1 - I am using the last version of Axis2.
>
> 2 - I have a class called MyApp (in the app package) with the method Send
>
> 3 - My services.xml file is the following one:
>
>      <serviceGroup>
>        <service name="MyService">
>             <description>My service</description>
>             <parameter name="useOriginalWSDL">false</parameter>
>             <parameter name="ServiceClass" locked="false">app.MyApp
> </parameter>
>             <operation name="Send">
>                 <messageReceiver class="
> org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>             </operation>
>        </service>
>      </serviceGroup>
>
> 4 - The webservice is deployed with success
>
> 5 - When I try to access to this WSDL (
> http://localhost:8084/MyWS/services/MyService?wsdl) I have the following
> message/reason appearing on my browser instead of the WSDL:
>
>
> <error>
>  <description>Unable to generate WSDL for this service</description>
>  <reason>
>   If you wish Axis2 to automatically generate the WSDL, then please use
> one of the RPC message receivers for the service(s)/operation(s) in
> services.xml. If you have added a custom WSDL in the META-INF directory,
> then please make sure that the name of the service in services.xml (
> /serviceGroup/service/@name) is the same as in the custom wsdl's service
> name (/wsdl:definitions/wsdl:service/@name).
>  </reason>
> </error>
>
>
> Can anyone help me with that?
>
>
> Thanks
>
> Best regards
>
> Paulo
>
>
>


-- 
Paulo Carvalho
1 rue du Chateau
57710 Aumetz
France
www.antikuado.com
www.sunofportugal.com

Re: Unable to generate WSDL for this service

Posted by Jose Carlo Fabian <ca...@voxsant.com>.
Hello,

try setting userOriginalWSDL to true, maybe that would help.

Carlo Fabian
Paulo Carvalho wrote:
>
> Hello
>  
> I am new using Axis2 and I am having a problem. I already search over 
> the net to find the solution for my problem, but everything looks fine 
> for me.
>  
> 1 - I am using the last version of Axis2.
>  
> 2 - I have a class called MyApp (in the app package) with the method Send
>  
> 3 - My services.xml file is the following one:
>  
>      <serviceGroup>
>        <service name="MyService">
>             <description>My service</description> 
>             <parameter name="useOriginalWSDL">false</parameter>
>             <parameter name="ServiceClass" 
> locked="false">app.MyApp</parameter>
>             <operation name="Send">
>                 <messageReceiver 
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>             </operation>
>        </service>
>      </serviceGroup>
>  
> 4 - The webservice is deployed with success
>  
> 5 - When I try to access to this WSDL 
> (http://localhost:8084/MyWS/services/MyService?wsdl) I have the 
> following message/reason appearing on my browser instead of the WSDL:
>  
>  
> <error>
>  <description>Unable to generate WSDL for this service</description>
>  <reason>
>   If you wish Axis2 to automatically generate the WSDL, then please 
> use one of the RPC message receivers for the service(s)/operation(s) 
> in services.xml. If you have added a custom WSDL in the META-INF 
> directory, then please make sure that the name of the service in 
> services.xml (/serviceGroup/service/@name) is the same as in the 
> custom wsdl's service name (/wsdl:definitions/wsdl:service/@name).
>  </reason>
> </error>
>  
>  
> Can anyone help me with that?
>  
>
> Thanks
>  
> Best regards
>  
> Paulo