You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Martin Gainty (JIRA)" <ji...@apache.org> on 2006/09/22 16:54:22 UTC
[jira] Created: (AXIS2-1218) Unable o generate WSDL for this
service
Unable o generate WSDL for this service
---------------------------------------
Key: AXIS2-1218
URL: http://issues.apache.org/jira/browse/AXIS2-1218
Project: Apache Axis 2.0 (Axis2)
Issue Type: Bug
Components: core
Environment: AXIS-2_1
Reporter: Martin Gainty
any all attempts to acquire any wsdl in Axis 2.1 with
http://localhost:8080/axis2/services/listServices/NameOfService?wsdl
(a specific example would be)
http://localhost:8080/axis2/services/SpringAwareService?wsdl
produces
- <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>
Looking at the AxisService.java one sees getWSDL method
private void getWSDL(OutputStream out, String [] serviceURL, String servicePath) throws AxisFault {
if (isWsdlfound()) {
AxisService2OM axisService2WOM = new AxisService2OM(this,
serviceURL, "document", "literal", servicePath);
try {
OMElement wsdlElement = axisService2WOM.generateOM();
wsdlElement.serialize(out);
out.flush();
out.close();
} catch (Exception e) {
throw new AxisFault(e);
}
} else {
try {
String wsdlntfound = "<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>";
out.write(wsdlntfound.getBytes());
out.flush();
out.close();
} catch (IOException e) {
throw new AxisFault(e);
}
}
}
so some process/class somewhere is NOT producing the wsdl
It would make sense to advertise your version at top of source
(so developers would know if there is a version mismatch)
Martin--
Martin --
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
Re: [jira] Commented: (AXIS2-1218) Unable o generate WSDL for this service
Posted by sandeep bhojwani <sa...@yahoo.com>.
I don't know if this is related but I found a problem with wsdl4j1.5 when my wsdl file had imports. My wsdl fle was importing schemas from a seperate file.
Try any of the parlayX webservices and the wsdl4j 1.5 will run into a loop. It fails to complete the read from aar file.
Have a fix that i plan to submit to the wsdl4j guys.
Sandeep
----- Original Message ----
From: Davanum Srinivas (JIRA) <ji...@apache.org>
To: axis-dev@ws.apache.org
Sent: Tuesday, September 26, 2006 2:05:50 PM
Subject: [jira] Commented: (AXIS2-1218) Unable o generate WSDL for this service
[ http://issues.apache.org/jira/browse/AXIS2-1218?page=comments#action_12437948 ]
Davanum Srinivas commented on AXIS2-1218:
-----------------------------------------
Can you please take a look at the services.xml and check if the name of the service is indeed "SpringAwareService" and check the wsdl in the META-INF folder of the aar and make sure that the service name in the services section matches "SpringAwareService"
thanks,
dims
> Unable o generate WSDL for this service
> ---------------------------------------
>
> Key: AXIS2-1218
> URL: http://issues.apache.org/jira/browse/AXIS2-1218
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: core
> Environment: AXIS-2_1
> Reporter: Martin Gainty
>
> any all attempts to acquire any wsdl in Axis 2.1 with
> http://localhost:8080/axis2/services/listServices/NameOfService?wsdl
> (a specific example would be)
> http://localhost:8080/axis2/services/SpringAwareService?wsdl
> produces
> - <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>
> Looking at the AxisService.java one sees getWSDL method
> private void getWSDL(OutputStream out, String [] serviceURL, String servicePath) throws AxisFault {
> if (isWsdlfound()) {
> AxisService2OM axisService2WOM = new AxisService2OM(this,
> serviceURL, "document", "literal", servicePath);
> try {
> OMElement wsdlElement = axisService2WOM.generateOM();
> wsdlElement.serialize(out);
> out.flush();
> out.close();
> } catch (Exception e) {
> throw new AxisFault(e);
> }
> } else {
> try {
> String wsdlntfound = "<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>";
> out.write(wsdlntfound.getBytes());
> out.flush();
> out.close();
> } catch (IOException e) {
> throw new AxisFault(e);
> }
> }
> }
> so some process/class somewhere is NOT producing the wsdl
> It would make sense to advertise your version at top of source
> (so developers would know if there is a version mismatch)
> Martin--
> Martin --
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-1218) Unable o generate WSDL for this
service
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-1218?page=comments#action_12437948 ]
Davanum Srinivas commented on AXIS2-1218:
-----------------------------------------
Can you please take a look at the services.xml and check if the name of the service is indeed "SpringAwareService" and check the wsdl in the META-INF folder of the aar and make sure that the service name in the services section matches "SpringAwareService"
thanks,
dims
> Unable o generate WSDL for this service
> ---------------------------------------
>
> Key: AXIS2-1218
> URL: http://issues.apache.org/jira/browse/AXIS2-1218
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: core
> Environment: AXIS-2_1
> Reporter: Martin Gainty
>
> any all attempts to acquire any wsdl in Axis 2.1 with
> http://localhost:8080/axis2/services/listServices/NameOfService?wsdl
> (a specific example would be)
> http://localhost:8080/axis2/services/SpringAwareService?wsdl
> produces
> - <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>
> Looking at the AxisService.java one sees getWSDL method
> private void getWSDL(OutputStream out, String [] serviceURL, String servicePath) throws AxisFault {
> if (isWsdlfound()) {
> AxisService2OM axisService2WOM = new AxisService2OM(this,
> serviceURL, "document", "literal", servicePath);
> try {
> OMElement wsdlElement = axisService2WOM.generateOM();
> wsdlElement.serialize(out);
> out.flush();
> out.close();
> } catch (Exception e) {
> throw new AxisFault(e);
> }
> } else {
> try {
> String wsdlntfound = "<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>";
> out.write(wsdlntfound.getBytes());
> out.flush();
> out.close();
> } catch (IOException e) {
> throw new AxisFault(e);
> }
> }
> }
> so some process/class somewhere is NOT producing the wsdl
> It would make sense to advertise your version at top of source
> (so developers would know if there is a version mismatch)
> Martin--
> Martin --
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-1218) Unable o generate WSDL for this
service
Posted by "Martin Gainty (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-1218?page=comments#action_12442237 ]
Martin Gainty commented on AXIS2-1218:
--------------------------------------
[[ Old comment, sent by email on Tue, 26 Sep 2006 19:18:26 -0400 ]]
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
> Unable o generate WSDL for this service
> ---------------------------------------
>
> Key: AXIS2-1218
> URL: http://issues.apache.org/jira/browse/AXIS2-1218
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: core
> Environment: AXIS-2_1
> Reporter: Martin Gainty
>
> any all attempts to acquire any wsdl in Axis 2.1 with
> http://localhost:8080/axis2/services/listServices/NameOfService?wsdl
> (a specific example would be)
> http://localhost:8080/axis2/services/SpringAwareService?wsdl
> produces
> - <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>
> Looking at the AxisService.java one sees getWSDL method
> private void getWSDL(OutputStream out, String [] serviceURL, String servicePath) throws AxisFault {
> if (isWsdlfound()) {
> AxisService2OM axisService2WOM = new AxisService2OM(this,
> serviceURL, "document", "literal", servicePath);
> try {
> OMElement wsdlElement = axisService2WOM.generateOM();
> wsdlElement.serialize(out);
> out.flush();
> out.close();
> } catch (Exception e) {
> throw new AxisFault(e);
> }
> } else {
> try {
> String wsdlntfound = "<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>";
> out.write(wsdlntfound.getBytes());
> out.flush();
> out.close();
> } catch (IOException e) {
> throw new AxisFault(e);
> }
> }
> }
> so some process/class somewhere is NOT producing the wsdl
> It would make sense to advertise your version at top of source
> (so developers would know if there is a version mismatch)
> Martin--
> Martin --
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Resolved: (AXIS2-1218) Unable o generate WSDL for this
service
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-1218?page=all ]
Davanum Srinivas resolved AXIS2-1218.
-------------------------------------
Resolution: Fixed
Please try nightly. If it does not work, please upload the AAR/wsdl/xsd.
thanks,
dims
> Unable o generate WSDL for this service
> ---------------------------------------
>
> Key: AXIS2-1218
> URL: http://issues.apache.org/jira/browse/AXIS2-1218
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: core
> Environment: AXIS-2_1
> Reporter: Martin Gainty
>
> any all attempts to acquire any wsdl in Axis 2.1 with
> http://localhost:8080/axis2/services/listServices/NameOfService?wsdl
> (a specific example would be)
> http://localhost:8080/axis2/services/SpringAwareService?wsdl
> produces
> - <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>
> Looking at the AxisService.java one sees getWSDL method
> private void getWSDL(OutputStream out, String [] serviceURL, String servicePath) throws AxisFault {
> if (isWsdlfound()) {
> AxisService2OM axisService2WOM = new AxisService2OM(this,
> serviceURL, "document", "literal", servicePath);
> try {
> OMElement wsdlElement = axisService2WOM.generateOM();
> wsdlElement.serialize(out);
> out.flush();
> out.close();
> } catch (Exception e) {
> throw new AxisFault(e);
> }
> } else {
> try {
> String wsdlntfound = "<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>";
> out.write(wsdlntfound.getBytes());
> out.flush();
> out.close();
> } catch (IOException e) {
> throw new AxisFault(e);
> }
> }
> }
> so some process/class somewhere is NOT producing the wsdl
> It would make sense to advertise your version at top of source
> (so developers would know if there is a version mismatch)
> Martin--
> Martin --
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-1218) Unable o generate WSDL for this
service
Posted by "Martin Gainty (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-1218?page=comments#action_12442238 ]
Martin Gainty commented on AXIS2-1218:
--------------------------------------
[[ Old comment, sent by email on Tue, 26 Sep 2006 19:21:15 -0400 ]]
Hello Dims
Unfortunately The wsdl wasnt created
Here is my services.xml
<serviceGroup>
<service name="SpringInit">
<description>
This is a spring sample Web Service with two operations.
</description>
<parameter name="ServiceClass" locked="false">spring.SpringInit</parameter>
<parameter name="load-on-startup" locked="false">true</parameter>
<operation name="springInit">
<messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
</operation>
</service>
<service name="SpringAwareService">
<description>
simple spring example
</description>
<parameter name="ServiceObjectSupplier" locked="false">org.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObjectSupplier</parameter>
<parameter name="SpringBeanName" locked="false">springAwareService</parameter>
<operation name="getValue">
<messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
</operation>
</service>
</serviceGroup>
Advice?
Thanks
Martin--
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
> Unable o generate WSDL for this service
> ---------------------------------------
>
> Key: AXIS2-1218
> URL: http://issues.apache.org/jira/browse/AXIS2-1218
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: core
> Environment: AXIS-2_1
> Reporter: Martin Gainty
>
> any all attempts to acquire any wsdl in Axis 2.1 with
> http://localhost:8080/axis2/services/listServices/NameOfService?wsdl
> (a specific example would be)
> http://localhost:8080/axis2/services/SpringAwareService?wsdl
> produces
> - <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>
> Looking at the AxisService.java one sees getWSDL method
> private void getWSDL(OutputStream out, String [] serviceURL, String servicePath) throws AxisFault {
> if (isWsdlfound()) {
> AxisService2OM axisService2WOM = new AxisService2OM(this,
> serviceURL, "document", "literal", servicePath);
> try {
> OMElement wsdlElement = axisService2WOM.generateOM();
> wsdlElement.serialize(out);
> out.flush();
> out.close();
> } catch (Exception e) {
> throw new AxisFault(e);
> }
> } else {
> try {
> String wsdlntfound = "<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>";
> out.write(wsdlntfound.getBytes());
> out.flush();
> out.close();
> } catch (IOException e) {
> throw new AxisFault(e);
> }
> }
> }
> so some process/class somewhere is NOT producing the wsdl
> It would make sense to advertise your version at top of source
> (so developers would know if there is a version mismatch)
> Martin--
> Martin --
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org