Am 21.03.2012 09:26, schrieb René Möhring:
Hello,
I am trying to generate C code from the Onvif wsdl. Onvif is a
standard for finding and managing IP cameras via web services.
Therefore the wsdl cannot contain a service. The cameras themselves
provide the actual services. How do I generate code from such a file?
My approach:
./wsdl2java.sh -l c -uri
http://www.onvif.org/onvif/ver10/device/wsdl/devicemgmt.wsdl
Using AXIS2_HOME: /home/moehring/axis2
Using JAVA_HOME: /opt/java
Retrieving document at
'http://www.onvif.org/onvif/ver10/device/wsdl/devicemgmt.wsdl'.
Retrieving schema at '../../../ver10/schema/onvif.xsd', relative to
'http://www.onvif.org/onvif/ver10/device/wsdl/devicemgmt.wsdl'.
Retrieving schema at 'http://www.w3.org/2005/05/xmlmime', relative to
'http://www.onvif.org/onvif/ver10/schema/onvif.xsd'.
Retrieving schema at 'http://docs.oasis-open.org/wsn/b-2.xsd',
relative to 'http://www.onvif.org/onvif/ver10/schema/onvif.xsd'.
Retrieving schema at 'http://docs.oasis-open.org/wsn/t-1.xsd',
relative to 'http://docs.oasis-open.org/wsn/b-2.xsd'.
Retrieving schema at 'http://docs.oasis-open.org/wsrf/bf-2.xsd',
relative to 'http://docs.oasis-open.org/wsn/b-2.xsd'.
Retrieving schema at
'http://www.w3.org/2005/08/addressing/ws-addr.xsd', relative to
'http://docs.oasis-open.org/wsrf/bf-2.xsd'.
Retrieving schema at 'http://www.w3.org/2001/xml.xsd', relative to
'http://docs.oasis-open.org/wsrf/bf-2.xsd'.
Retrieving schema at
'http://www.w3.org/2005/08/addressing/ws-addr.xsd', relative to
'http://docs.oasis-open.org/wsn/b-2.xsd'.
Retrieving schema at 'http://www.w3.org/2004/08/xop/include', relative
to 'http://www.onvif.org/onvif/ver10/schema/onvif.xsd'.
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:175)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: org.apache.axis2.AxisFault: No services found in the WSDL
at http://www.onvif.org/onvif/ver10/device/wsdl/devicemgmt.wsdl with
targetnamespace http://www.onvif.org/ver10/device/wsdl
at
org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:115)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:169)
... 2 more
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org
Really nobody any idea?
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org